.products-page {
    background: #f6f4f1;
    min-height: 100vh;
}

.products-title {
    text-align: center;
    font-size: 50px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    color: #2c2c2c;
}

.filters-bar {
    background: #EEE1D1;
    padding: 25px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: center;
}

.filters-bar input,
.filters-bar select {
    width: 100%;
    height: 45px;
    border: 1px solid #d9bc97;
    border-radius: 10px;
    padding: 0 12px;
    background: white;
    font-family: 'Playfair Display', serif;
    outline: none;
}

.filter-btn {
    height: 45px;
    border: 2px solid #D9BC97;
    background: #D9BC97;
    color: white;
    border-radius: 10px;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}

.filter-btn:hover {
    background: #c9a97f;
}

.product-card {
    background: #EEE1D1;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #F4EBE0;
}

.product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
    color: #2c2c2c;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-description {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    min-height: 70px;
    margin-bottom: 20px;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.product-prices {
    display: flex;
    flex-direction: column;
}

.store-price {
    text-decoration: line-through;
    color: gray;
    font-size: 14px;
}

.sale-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c2c2c;
}

.view-btn {
    border: 2px solid #D9BC97;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.view-btn:hover {
    background: #D9BC97;
    color: white;
}

.no-products {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-top: 40px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 18px;
    border: 2px solid #D9BC97;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #D9BC97;
    color: white;
}

@media (max-width: 992px) {
    .filters-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-btn {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .products-title {
        font-size: 38px;
    }

    .filters-bar {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        grid-column: span 1;
    }

    .product-image {
        height: 240px;
    }

    .product-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.product-show-page {
    background: #FAF6F1;
    min-height: 100vh;
}

.product-show-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.product-gallery {
    width: 100%;
    min-width: 0;
}

.product-main-carousel {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #F4EBE0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.product-main-carousel .carousel-inner,
.product-main-carousel .carousel-item {
    height: 620px;
}

.product-main-image {
    width: 100%;
    height: 620px;
    object-fit: contain;
    display: block;
    background: #F4EBE0;
}

.product-no-image {
    height: 620px;
    border-radius: 24px;
    background: #F4EBE0;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-carousel-control {
    width: 55px;
    opacity: 0.85;
}

.product-carousel-control:hover {
    opacity: 1;
}

.product-carousel-control .carousel-control-prev-icon,
.product-carousel-control .carousel-control-next-icon {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

.product-thumbnails {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
}

.product-thumbnails::-webkit-scrollbar {
    height: 7px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #D9BC97;
    border-radius: 20px;
}

.product-thumbnail {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: white;
    cursor: pointer;
    transition: 0.2s;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: #D9BC97;
    transform: translateY(-2px);
}

.product-show-info {
    background: #F4EBE0;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    position: sticky;
    top: 120px;
}

.product-show-brand {
    color: #8a6f4d;
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-show-info h1 {
    font-size: 42px;
    color: #2c2c2c;
    margin-bottom: 22px;
    line-height: 1.15;
}

.product-show-prices {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 35px;
}

.product-show-store-price {
    color: gray;
    font-size: 18px;
    text-decoration: line-through;
}

.product-show-sale-price {
    color: #2c2c2c;
    font-size: 34px;
    font-weight: bold;
}

.product-show-description {
    margin-bottom: 35px;
}

.product-show-description h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #2c2c2c;
}

.product-show-description p {
    color: #444;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

.product-show-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-add-cart-btn,
.product-back-btn {
    text-decoration: none;
    text-align: center;
    padding: 13px 20px;
    border-radius: 14px;
    transition: 0.3s;
    font-family: 'Playfair Display', serif;
}

.product-add-cart-btn {
    background: #D9BC97;
    border: 2px solid #D9BC97;
    color: white;
}

.product-add-cart-btn:hover {
    background: #c9a97f;
    border-color: #c9a97f;
    color: white;
}

.product-back-btn {
    background: transparent;
    border: 2px solid #D9BC97;
    color: #2c2c2c;
}

.product-back-btn:hover {
    background: #D9BC97;
    color: white;
}

.zoom-modal-content {
    background: transparent;
    border: none;
}

.zoom-modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-modal-body img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 18px;
    background: white;
}

.zoom-close {
    position: absolute;
    top: -35px;
    right: 0;
    background-color: white;
    opacity: 1;
    z-index: 10;
}

@media (max-width: 992px) {
    .product-show-layout {
        grid-template-columns: 1fr;
    }

    .product-show-info {
        position: static;
    }

    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 520px;
    }
}

@media (max-width: 576px) {
    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 430px;
    }

    .product-show-info {
        padding: 28px 22px;
    }

    .product-show-info h1 {
        font-size: 32px;
    }

    .product-show-sale-price {
        font-size: 28px;
    }

    .product-thumbnail {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
}

.product-zoom-wrapper {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    cursor: zoom-in;
    background: #F4EBE0;
}

.product-zoom-lens {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid #D9BC97;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 768px) {
    .product-zoom-lens {
        display: none !important;
    }

    .product-zoom-wrapper {
        cursor: default;
    }
}

/* =========================
   RESPONSIVE ARTICLES + FICHE PRODUIT
========================= */
.filters-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-show-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.product-show-info {
    top: calc(var(--navbar-height, 86px) + 28px);
}

.product-show-info h1,
.product-show-description p {
    overflow-wrap: anywhere;
}

.product-zoom-lens {
    width: 260px;
    height: 260px;
}

@media (max-width: 1199.98px) {
    .product-show-layout {
        gap: 34px;
    }

    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 560px;
    }

    .product-show-info {
        padding: 32px;
    }
}

@media (max-width: 991.98px) {
    .filters-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-btn {
        grid-column: 1 / -1;
    }

    .product-show-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-show-info {
        position: static;
    }

    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 540px;
    }

    .product-zoom-lens {
        display: none !important;
    }

    .product-zoom-wrapper {
        cursor: default;
    }
}

@media (max-width: 767.98px) {
    .filters-bar {
        padding: 20px;
        gap: 12px;
    }

    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 500px;
    }

    .product-show-info {
        padding: 28px;
    }

    .product-thumbnail {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
}

@media (max-width: 575.98px) {
    .products-title {
        margin-bottom: 30px;
        font-size: 36px;
    }

    .filters-bar {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .filter-btn {
        grid-column: auto;
    }

    .product-content h3,
    .product-description {
        min-height: 0;
    }

    .product-main-carousel {
        border-radius: 18px;
    }

    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 440px;
    }

    .product-show-info {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .product-show-info h1 {
        font-size: 31px;
    }

    .product-show-prices {
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .product-show-sale-price {
        font-size: 29px;
    }

    .product-thumbnail {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {
    .product-main-carousel .carousel-inner,
    .product-main-carousel .carousel-item,
    .product-main-image,
    .product-no-image,
    .product-zoom-wrapper {
        height: 390px;
    }

    .product-show-info {
        padding: 22px 16px;
    }
}

