/* ============================================================
   woocommerce.css — Maison Guérin
   Styles for WooCommerce archive (shop) and single product pages.
   Class names mirror WooCommerce conventions for easy WP migration.
   ============================================================ */

/* ============================================================
   Shared wrapper
   ============================================================ */
.woocommerce {
    background: var(--off-white);
}

/* Inner container carries the bottom spacing, not the wrapper */
.shop-container,
.product-single-container {
    padding-top: 48px;
    padding-bottom: 80px;
}

/* Single product page — white background
   On WordPress: body.single-product .woocommerce */
body.single-product .woocommerce,
.product-single-container ~ * { background: var(--white); }

/* Used in HTML prototype — wraps only the single product */
.woocommerce.woocommerce-single {
    background: var(--white);
}

/* ============================================================
   SHOP PAGE — archive-product
   ============================================================ */

/* Toolbar: result count + ordering */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--grey-light);
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-result-count {
    font-size: 0.8rem;
    color: var(--grey);
    margin: 0;
}

.woocommerce-result-count strong { color: var(--dark); }

.shop-select,
select.orderby {
    font-family: var(--inter);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 0;
    padding: 8px 32px 8px 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.shop-select:focus,
select.orderby:focus {
    outline: none;
    border-color: var(--bordeaux);
}

/* ── Sidebar ── */
.shop-sidebar {
    padding-right: 40px;
    padding-top: 4px;
}

.shop-widget {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--grey-light);
}

.shop-widget:last-child {
    border-bottom: none;
}

.shop-widget-title {
    font-family: var(--inter);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 16px;
}

/* Category list */
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories .cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.product-categories .cat-item a {
    font-size: 0.83rem;
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    padding-left: 0;
    display: block;
}

.product-categories .cat-item a:hover,
.product-categories .current-cat > a {
    color: var(--bordeaux);
    padding-left: 6px;
}

.product-categories .current-cat > a {
    font-weight: 500;
}

.product-categories .count {
    font-size: 0.72rem;
    color: rgba(107,107,107,0.5);
}

/* Price filter */
.price-filter-options { display: flex; flex-direction: column; gap: 8px; }

.price-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--grey);
}

.price-option input[type="radio"] {
    accent-color: var(--bordeaux);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.price-option:hover span { color: var(--dark); }

/* Layered nav (checkboxes) */
.layered-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layered-nav li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--grey);
    cursor: pointer;
    justify-content: space-between;
}

.layered-nav input[type="checkbox"] {
    accent-color: var(--bordeaux);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.layered-nav .count {
    font-size: 0.72rem;
    color: rgba(107,107,107,0.45);
    margin-left: auto;
}

/* ── Product grid ── */
ul.products {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 24px;
}

ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }

li.product {
    background: var(--white);
    display: flex;
    flex-direction: column;
}

/* Product thumbnail */
.product-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

li.product:hover .product-thumbnail img {
    transform: scale(1.05);
}

/* Badges */
.onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bordeaux);
    color: white;
    font-family: var(--inter);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
    pointer-events: none;
}

.badge-promo {
    background: var(--dark);
}

/* Hover action buttons on thumbnail */
.product-actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

li.product:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.product-action-btn:hover {
    background: var(--bordeaux);
    color: var(--white);
}

/* Product info */
.woocommerce-LoopProduct-link {
    text-decoration: none;
    display: block;
    flex: 1;
}

.product-info {
    padding: 16px 20px 12px;
    border-top: 1px solid var(--grey-light);
}

.product-category {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bordeaux);
    display: block;
    margin-bottom: 6px;
}

.woocommerce-loop-product__title {
    font-family: var(--playfair);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color var(--transition);
}

li.product:hover .woocommerce-loop-product__title { color: var(--bordeaux); }

.product-ref {
    font-size: 0.7rem;
    color: var(--grey);
    display: block;
    margin-bottom: 8px;
}

/* Price */
.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce-Price-amount {
    font-family: var(--playfair);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
}

.price del .woocommerce-Price-amount {
    font-size: 0.88rem;
    color: var(--grey);
    font-weight: 400;
    text-decoration: line-through;
}

.price ins {
    text-decoration: none;
}

.price ins .woocommerce-Price-amount { color: var(--bordeaux); }

.tax-label {
    font-size: 0.65rem;
    color: var(--grey);
    letter-spacing: 0.5px;
}

/* Add to cart button in loop */
a.button.add_to_cart_button {
    display: block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--grey-light);
    color: var(--dark);
    font-family: var(--inter);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

a.button.add_to_cart_button::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--bordeaux);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

a.button.add_to_cart_button:hover {
    color: var(--white);
    border-color: var(--bordeaux);
}

a.button.add_to_cart_button:hover::before { width: 100%; }

/* Pagination */
.woocommerce-pagination {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination ul.wc-page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.wc-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-family: var(--inter);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border: 1px solid var(--grey-light);
    background: var(--white);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* Only number items get hover — not prev/next arrows */
a.wc-page-num:hover,
.wc-page-num.current {
    background: var(--bordeaux);
    border-color: var(--bordeaux);
    color: var(--white);
}

.wc-page-next,
.wc-page-prev {
    gap: 6px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
}

/* Prev/next: subtle hover only */
a.wc-page-next:hover,
a.wc-page-prev:hover {
    background: var(--off-white);
    border-color: var(--grey-light);
    color: var(--dark);
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

/* Breadcrumb */
.woocommerce-breadcrumb.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 36px;
}

.woocommerce-breadcrumb a {
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition);
}

.woocommerce-breadcrumb a:hover { color: var(--bordeaux); }

.woocommerce-breadcrumb .bi-chevron-right {
    font-size: 0.6rem;
    opacity: 0.5;
}

.woocommerce-breadcrumb span {
    color: var(--bordeaux);
    font-weight: 500;
}

/* Gallery */
.woocommerce-product-gallery {
    position: sticky;
    top: 90px;
}

.product-gallery-main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--off-white);
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-gallery-main:hover img { transform: scale(1.04); }

.product-gallery-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb.active { border-color: var(--bordeaux); }

/* Summary */
.summary.entry-summary { padding-top: 8px; }

.posted-in .product-cat-link {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bordeaux);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: opacity var(--transition);
}

.posted-in .product-cat-link:hover { opacity: 0.7; }

.product_title.entry-title {
    font-family: var(--playfair);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 8px;
}

.sku-wrapper.product-ref-line {
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.sku-wrapper .sku { color: var(--dark); font-weight: 500; }

/* Price block */
.product-price-wrap {
    margin-bottom: 20px;
}

.product-price-wrap .price {
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price-wrap .woocommerce-Price-amount {
    font-family: var(--playfair);
    font-size: 2rem;
    font-weight: 600;
    color: var(--bordeaux);
}

.product-price-wrap .tax-label {
    font-size: 0.72rem;
    color: var(--grey);
    display: block;
    margin-top: 2px;
}

/* Badges */
.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
    border: 1px solid var(--grey-light);
    padding: 5px 10px;
    background: var(--off-white);
}

.product-badge .bi { color: var(--bordeaux); }

/* Short description */
.woocommerce-product-details__short-description {
    margin-bottom: 20px;
}

.woocommerce-product-details__short-description strong,
.woocommerce-product-details__short-description b {
    font-weight: 600;
    color: var(--dark);
}

.woocommerce-product-details__short-description p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--grey);
}

/* Tab description strong */
.panel.wc-tab strong,
.panel.wc-tab b {
    font-weight: 600;
    color: var(--dark);
}

.product-divider {
    border: none;
    border-top: 1px solid var(--grey-light);
    margin: 24px 0;
}

/* Attributes table */
.woocommerce-product-attributes.product-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.product-attributes-table tr { border-bottom: 1px solid var(--grey-light); }
.product-attributes-table tr:last-child { border-bottom: none; }

.product-attributes-table th {
    padding: 9px 0;
    font-weight: 500;
    color: var(--dark);
    width: 42%;
    vertical-align: top;
    font-family: var(--inter);
}

.product-attributes-table td {
    padding: 9px 0;
    color: var(--grey);
    vertical-align: top;
}

/* Add to cart form */
.product-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.quantity-wrap { display: flex; flex-direction: column; gap: 6px; }

.quantity-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark);
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-light);
}

.qty-btn {
    width: 38px;
    height: 44px;
    background: var(--off-white);
    border: none;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.qty-btn:hover { background: var(--bordeaux); color: var(--white); }

input.qty {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--grey-light);
    border-right: 1px solid var(--grey-light);
    text-align: center;
    font-family: var(--inter);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    outline: none;
    -moz-appearance: textfield;
}

input.qty::-webkit-inner-spin-button,
input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
}

/* Secondary actions */
.product-secondary-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-action-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--grey);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.product-action-link:hover { color: var(--bordeaux); }
.product-action-link .bi { font-size: 0.9rem; }

/* Meta / tags */
.product_meta {
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 4px;
}

.tagged-as { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tagged-as .bi { color: var(--bordeaux); font-size: 0.8rem; }
.tagged-as a { color: var(--grey); text-decoration: none; transition: color var(--transition); }
.tagged-as a:hover { color: var(--bordeaux); }

/* ── Tabs ── */
.product-tabs-section {
    padding-top: 56px;
}

ul.tabs.wc-tabs.nav-tabs-mg {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--grey-light);
}

.nav-tabs-mg li {
    position: relative;
}

.nav-tabs-mg li a {
    display: block;
    padding: 12px 28px;
    font-family: var(--inter);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-tabs-mg li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bordeaux);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-tabs-mg li:hover a { color: var(--dark); }
.nav-tabs-mg li.active a { color: var(--bordeaux); }
.nav-tabs-mg li.active a::after,
.nav-tabs-mg li:hover a::after { transform: scaleX(1); }

.nav-tabs-mg .count {
    font-size: 0.65rem;
    opacity: 0.6;
}

.panel.wc-tab {
    padding: 40px 0;
}

.panel.wc-tab h2 {
    font-family: var(--playfair);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.panel.wc-tab p {
    font-size: 0.92rem;
    line-height: 1.95;
    color: var(--grey);
    margin-bottom: 14px;
}

/* Spec table in tabs */
.spec-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.spec-table tr { border-bottom: 1px solid var(--grey-light); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th { padding: 10px 0; font-weight: 500; color: var(--dark); width: 40%; }
.spec-table td { padding: 10px 0; color: var(--grey); }

/* Reviews */
ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
}

.review {
    padding: 28px 32px;
    border: 1px solid var(--grey-light);
    transition: border-color var(--transition);
}

.review:hover { border-color: var(--bordeaux); }

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-stars {
    color: var(--bordeaux);
    font-size: 0.85rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.review-meta {
    font-size: 0.78rem;
    color: var(--dark);
    font-weight: 500;
}

.review-date {
    font-size: 0.72rem;
    color: var(--grey);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.review .description p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--grey);
    font-style: italic;
    margin: 0;
}

/* ── Related products ── */
.related-section {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--grey-light);
}

/* Cards always white — page produit has white background */
.related-section .product-card {
    background: var(--white);
}

.related-section > h2 {
    font-family: var(--playfair);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 32px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
    .shop-sidebar { padding-right: 24px; }
    ul.products.columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .shop-sidebar { padding-right: 0; margin-bottom: 40px; }
    ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); }
    ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
    .woocommerce-product-gallery { position: static; }
}

@media (max-width: 767px) {
    .product-form-row { flex-direction: column; }
    .single_add_to_cart_button { width: 100%; }
    ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); }
    /* .product-tabs-section has no margin-top by default */
    .nav-tabs-mg li a { padding: 10px 16px; font-size: 0.65rem; }
    .product-secondary-actions { gap: 16px; }
}

@media (max-width: 575px) {
    ul.products.columns-3,
    ul.products.columns-4 { grid-template-columns: 1fr; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .product-badges { gap: 6px; }
}

/* ============================================================
   Shop page — price styles within product-card context
============================================================ */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.shop-price {
    font-family: var(--playfair);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
}

.shop-price-sale { color: var(--bordeaux); }

.shop-price-old {
    font-size: 0.85rem;
    color: var(--grey);
    text-decoration: line-through;
}

.shop-tax {
    font-size: 0.65rem;
    color: var(--grey);
    font-family: var(--inter);
    font-weight: 400;
}

/* Shop badge (on product-card images) */
.shop-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bordeaux);
    color: white;
    font-family: var(--inter);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
    pointer-events: none;
}

.shop-badge-promo { background: var(--dark); }

/* ============================================================
   Product single — CTA row (devis + PDF)
============================================================ */
.product-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-cta-row .btn {
    flex: 1;
    min-width: 160px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   Lightbox
============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

body.lightbox-open { overflow: hidden; }

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 2;
    padding: 4px;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    border-radius: 0;
    z-index: 2;
}

.lightbox-arrow:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--white); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-family: var(--inter);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Zoom button on gallery main */
.product-gallery-zoom-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--dark);
    font-family: var(--inter);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.product-gallery-zoom-btn:hover { background: var(--bordeaux); color: var(--white); }

/* ============================================================
   Devis modal
============================================================ */
.devis-modal-content {
    border-radius: 0;
    border: none;
    overflow: hidden;
}

.devis-modal-header {
    background: var(--dark);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.devis-modal-title {
    font-family: var(--playfair);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px 0;
}

.devis-modal-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
    margin: 0;
}

.devis-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
    flex-shrink: 0;
}

.devis-modal-close:hover { color: var(--white); }

.devis-modal-body {
    padding: 32px 28px;
    background: var(--off-white);
}

/* WooCommerce ordering form wrapper — strip default styles */
.woocommerce-ordering {
    margin: 0;
    padding: 0;
}
