.centered-content {
    max-width: 1400px;
    padding: 5px 10px;
    margin: 30px auto 0;
    z-index: 1;
}

.product-page-container {
    height: auto;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 15px;
    box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
    background: white;
    overflow: hidden;
}

.product-description {
    padding: 20px;
    width: 100%;
}

.filter-layout-container {
    gap: 20px;
    margin: 20px auto;
}

.product-page-details {
    display: flex;
}

.product-page-image {
    flex: 1;
    max-width: 400px;
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px 0 0 7px;
    border-radius: 15px;
}

.product-page-card {
    flex: 1;
    padding: 20px 20px 20px 20px;
    background-color: #ffffff;
    border-radius: 0 7px 7px 0;
}

.product-page-title {
    font-family: 'Bentham', serif;
    font-size: 34px;
    color: #474747;
}

.product-page-item {
    margin-bottom: 5px;
    font-family: 'Raleway', sans-serif;
    color: #8d8d8d;
    line-height: 1.7em;
}

.product-page-label {
    font-weight: 600;
    color: #474747;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    display: block;
}

.product-page-price {
    margin-top: 5px;
    font-family: 'Trocchi', serif;
    font-size: 28px;
    color: #474747;
}

.product-page-btn {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    padding: 0 40px;
    margin-top: 10px;
    border-radius: 60px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    background-color: #e56a23;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.product-page-btn:hover {
    background-color: #bb6431;
}

.product-description h3 {
    font-family: 'Bentham', serif;
    color: #474747;
    margin-bottom:10px;
}

.product-description p {
    font-family: 'Playfair Display', serif;
    line-height: 1.7em;
}
.product-description h1 {
    font-family: 'Playfair Display', serif;
    line-height: 1.7em;
}
.product-description h2 {
    font-family: 'Playfair Display', serif;
    line-height: 1.7em;
}
.product-description h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.7em;
}
.product-description h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.7em;
}

.back-to-categories-btn {
    display: inline-block;
    margin: 20px 0;
    color: #474747;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
}

.back-to-categories-btn:hover {
    color: #79b0a1;
}

/* Filter Layout */
.filter-layout-container {
    display: flex;
}

.product-layout-container {
    display: flex;
    gap: 30px;
}

.main-product-section {
    flex: 1;
    min-width: 0;
}

.similar-products-section {
    width: 300px;
    flex-shrink: 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
    height: fit-content;
    position: sticky;
    top: 100px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .product-layout-container {
        flex-direction: column;
    }

    .similar-products-section {
        width: 100%;
        position: static;
        padding: 10px;
    }
    .centered-content {
        padding: 5px;
        margin: 0 auto 0;
        z-index: 1;
    }
}

.similar-products-section h3 {
    font-family: 'Bentham', serif;
    color: #474747;
    margin-bottom: 20px;
}

.similar-products-grid {
    display: grid;
    gap: 20px;
}

.similar-product-card {
    padding: 10px;
    border-radius: 15px;
    transition: transform 0.5s ease;
    box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
}

.similar-product-card:hover {
    transform: translateY(-5px);
}

.similar-product-card a {
    text-decoration: none;
    color: inherit;
}

.similar-product-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.similar-product-card h4 {
    font-family: 'Raleway', sans-serif;
    color: #474747;
    margin: 10px 0 5px;
    font-size: 16px;
}

.similar-product-type {
    color: #8d8d8d;
    font-size: 14px;
    margin: 5px 0;
}

.similar-product-price {
    color: #474747;
    font-weight: bold;
    margin: 5px 0;
}

@media (max-width: 992px) {
    .product-layout-container {
        flex-direction: column;
    }

    .similar-products-section {
        width: 100%;
    }

    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
        gap:10px;
    }
    .similar-product-card {
        padding:5px;
    }
    .similar-products-section h3 {
        text-align: center;
        margin-bottom: 10px;
    }
}

.filter-sidebar {
    width: 250px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-header {
    font-family: 'Raleway', sans-serif;
    color: #474747;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-link {
    display: block;
    padding: 8px 0;
    color: #8d8d8d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.filter-link:hover {
    color: #e56a23;
}

.filter-main-content {
    flex: 1;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    padding: 8px 15px;
    background: transparent;
    border: 2px solid #e56a23;
    border-radius: 25px;
    color: #e56a23;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-filter-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-filter-btn:hover {
    background: #e56a23;
    color: white;
}

@media (max-width: 992px) {
    .mobile-filter-btn {
        display: flex;
    }
}
.close-filter-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #474747;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 9001;
}
/* Responsive Design */
@media (max-width: 992px) {
    .filter-layout-container {
        flex-direction: column;
    }
    .product-page-image {
        max-width: 60%;
    }

    .filter-sidebar {
        width: 70%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 3000;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .mobile-filter-btn,
    .close-filter-btn {
        display: flex;
    }
}

/* Add to the existing media queries */
@media (max-width: 768px) {
    .product-page-details {
        flex-direction: column;
        min-height: auto;
    }

    .product-page-image {
        max-width: 80%;
        height: auto;
        padding: 10px;
    }

    .product-detail-image {
        border-radius: 15px;
    }
    .product-page-title {
        font-size: 24px;
    }

    .product-page-btn {
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    .centered-content {
        margin: 70px auto 0;
    }
}

@media (max-width: 480px) {
    .product-page-container {
        width: 95%;
        margin: 10px auto;
    }

    .product-page-image {
        height: 250px;
    }

    .product-page-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {

    .filter-layout-container {
        margin: 20px auto;
    }
    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
        gap:10px;
    }
}
