/* PureCommerce WooCommerce Styles - Modern and Clean */

/* ==========================================================================
   GENERAL WOO COMMERCE STYLES
   ========================================================================== */

.woocommerce {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   SHOP LOOP / PRODUCT GRID
   ========================================================================== */

.woocommerce .products {
    display: grid;
    /* caler la grille sur la largeur de contenu du thème */
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 3.5rem;
    margin: 0 auto 3rem;
    padding: 0;
    list-style: none;
    max-width: var(--wp--style--global--content-size, 1200px);
    justify-content: center;
    align-items: start;
}

/* Neutraliser les pseudo-éléments WooCommerce qui créent un "slot" vide en grille */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}

/* Désactiver la mise en page par floats héritée pour les items (conflit avec CSS Grid) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: auto !important;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    /* laisser la carte remplir la cellule de la grille */
    width: 100%!important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.woocommerce .products .product {
    margin: 0;
}

/* Product Images */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product img {
    width: 100%;
    /* garder le ratio de l'image et éviter le recadrage excessif */
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Product Info */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #1f2937;
    line-height: 1.4;
    text-align: center;
}

.woocommerce ul.products li.product .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8B4513;
    margin: 0.5rem 0 1rem;
    display: block;
    text-align: center;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #dc2626;
}

/* Add to Cart Buttons */
.woocommerce ul.products li.product .button {
    display: block;
    /* bouton centré et adaptatif */
    width: auto;
    margin: 1rem 21px 1.5rem;
    padding: 0.75rem 1.25rem;
    background: #8B4513;
    color: #fafafa;
    border: 2px solid #8B4513;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
}

.woocommerce ul.products li.product .button:hover {
    background: #654321;
    border-color: #654321;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #8B4513;
    color: #fafafa;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

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

.woocommerce div.product {
    margin-bottom: 3rem;
}

.woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-gallery img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Product Title */
.woocommerce div.product .product_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product Price */
.woocommerce div.product .price {
    font-size: 2rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 2rem;
    display: block;
}

.woocommerce div.product .price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 1rem;
}

/* Product Summary */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Add to Cart Form */
.woocommerce .cart {
    margin: 2rem 0;
}

.woocommerce .quantity,
.woocommerce div.product .quantity,
.woocommerce-page .quantity {
    display: inline-flex !important;
    align-items: center;
    margin-right: 1rem;
}

.woocommerce .quantity .qty {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #d2b48c;
    border-radius: 0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.woocommerce .qty-btn,
.woocommerce div.product .qty-btn,
.woocommerce-page .qty-btn {
    background: #fafafa !important;
    border: 2px solid #d2b48c !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #3D2817 !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

.woocommerce .qty-btn:hover,
.woocommerce div.product .qty-btn:hover,
.woocommerce-page .qty-btn:hover {
    background: #8B4513 !important;
    border-color: #8B4513 !important;
    color: white !important;
}

.woocommerce .qty-minus,
.woocommerce div.product .qty-minus,
.woocommerce-page .qty-minus {
    border-radius: 6px 0 0 6px !important;
    border-right: none !important;
}

.woocommerce .qty-plus,
.woocommerce div.product .qty-plus,
.woocommerce-page .qty-plus {
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important;
}

.woocommerce div.product .single_add_to_cart_button {
    background: #8B4513;
    color: white;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #654321;
    border-color: #654321;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Product Meta */
.woocommerce div.product .product_meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.woocommerce div.product .product_meta strong {
    font-weight: 600;
    color: #374151;
}

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */

body.woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 2rem;
}

.woocommerce table.shop_table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce table.shop_table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.woocommerce .checkout-button,
.woocommerce .wc-forward {
    background: #8B4513;
    color: white;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.woocommerce .checkout-button:hover,
.woocommerce .wc-forward:hover {
    background: #654321;
    border-color: #654321;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   NOTICES & MESSAGES
   ========================================================================== */

.woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.woocommerce-info {
    background: #eff6ff;
    border-left-color: #A0522D;
    color: #654321;
}

.woocommerce-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

/* ==========================================================================
   MINI CART
   ========================================================================== */

.woocommerce .widget_shopping_cart .cart_list {
    list-style: none;
    padding: 0;
}

.woocommerce .widget_shopping_cart .cart_list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce .widget_shopping_cart .cart_list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .woocommerce .products {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .woocommerce div.product .product_title {
        font-size: 2rem;
    }

    .woocommerce table.shop_table {
        font-size: 0.9rem;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .woocommerce .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .woocommerce ul.products li.product {
        margin: 0;
    }

    .woocommerce div.product .product_title {
        font-size: 1.75rem;
    }

    .woocommerce .quantity .qty {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .woocommerce .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   WOO COMMERCE BLOCKS STYLES (Cart & Checkout)
   ========================================================================== */

/* Cart Page Styles */
.wp-block-woocommerce-cart {
    margin: 2rem 0;
}

.wp-block-woocommerce-cart .wc-block-cart {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .wp-block-woocommerce-cart .wc-block-cart {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.wc-block-cart-items {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.wc-block-cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.wc-block-cart-item:last-child {
    border-bottom: none;
}

.wc-block-cart-item__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.wc-block-cart-item__content {
    flex: 1;
}

.wc-block-cart-item__content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #2D1810;
}

.wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.wc-block-cart-item__total {
    font-weight: 600;
    color: #8B4513;
}

/* Cart Totals */
.wc-block-cart-totals {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    position: sticky;
    top: 120px;
}

.wc-block-cart-totals h3 {
    margin: 0 0 1.5rem 0;
    color: #2D1810;
    font-size: 1.3rem;
}

.wc-block-cart-totals .wc-block-cart-totals__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.wc-block-cart-totals .wc-block-cart-totals__item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: #8B4513;
}

/* Proceed to Checkout Button */
.wc-block-cart-proceed-to-checkout {
    margin-top: 1.5rem;
}

.wc-block-cart-proceed-to-checkout .wc-block-cart-proceed-to-checkout-block {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: #fafafa;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.wc-block-cart-proceed-to-checkout .wc-block-cart-proceed-to-checkout-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

/* Empty Cart */
.wc-block-cart-empty {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.wc-block-cart-empty h2 {
    color: #2D1810;
    margin-bottom: 1rem;
}

.wc-block-cart-empty p {
    color: #654321;
    margin-bottom: 2rem;
}

.wc-block-cart-empty .wc-block-cart-empty__link {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: #fafafa;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.wc-block-cart-empty .wc-block-cart-empty__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

/* ==========================================================================
   CHECKOUT PAGE STYLES
   ========================================================================== */

/* Classic Checkout – conteneurs propres */
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #order_review {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
}

/* Labels classiques plus lisibles */
body.woocommerce-checkout form .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Champs classiques modernisés */
body.woocommerce-checkout form .form-row input.input-text,
body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout form .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease;
}

body.woocommerce-checkout form .form-row input.input-text:focus,
body.woocommerce-checkout form .form-row select:focus,
body.woocommerce-checkout form .form-row textarea:focus {
    outline: none;
    border-color: #8B4513;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Tableau récapitulatif classique */
body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px dashed #e8ecf0;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table th {
    text-align: left;
    font-weight: 600;
    color: #2D1810;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: #8B4513;
}

/* Bouton Place Order (checkout classique) */
body.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
}

body.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #654321, #5D4E37);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.35);
}

/* Checkout Progress Steps */
.checkout-progress {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.checkout-progress .progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-progress .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkout-progress .step.active {
    color: #2563eb;
}

.checkout-progress .step.completed {
    color: #059669;
}

.checkout-progress .step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.checkout-progress .step.active .step-icon {
    background: #2563eb;
    color: white;
}

.checkout-progress .step.completed .step-icon {
    background: #059669;
    color: white;
}

.checkout-progress .step.completed .step-icon::before {
    content: '✓';
}

.checkout-progress .progress-line {
    height: 2px;
    background: #e5e7eb;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.checkout-progress .progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.5s ease;
}

.checkout-progress.active-step-2 .progress-line::after { width: 33%; }
.checkout-progress.active-step-3 .progress-line::after { width: 66%; }
.checkout-progress.active-step-4 .progress-line::after { width: 100%; }

.wp-block-woocommerce-checkout {
    margin: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.wp-block-woocommerce-checkout .wc-block-checkout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .wp-block-woocommerce-checkout .wc-block-checkout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Checkout Fields */
.wc-block-checkout-fields {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-block-checkout-fields::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #06b6d4);
}

.wc-block-checkout-fields h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.wc-block-checkout-form {
    display: grid;
    gap: 1.5rem;
}

/* Form Fields */
.wc-block-checkout-form .wc-block-checkout-form-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.wc-block-checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 400;
    font-size: 1rem;
}

.wc-block-checkout-form input[type="text"],
.wc-block-checkout-form input[type="email"],
.wc-block-checkout-form input[type="tel"],
.wc-block-checkout-form select,
.wc-block-checkout-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

.wc-block-checkout-form input[type="text"]:focus,
.wc-block-checkout-form input[type="email"]:focus,
.wc-block-checkout-form input[type="tel"]:focus,
.wc-block-checkout-form select:focus,
.wc-block-checkout-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Form validation states */
.wc-block-checkout-form input[type="text"].error,
.wc-block-checkout-form input[type="email"].error,
.wc-block-checkout-form input[type="tel"].error,
.wc-block-checkout-form select.error,
.wc-block-checkout-form textarea.error {
    border-color: #e74c3c;
}

.wc-block-checkout-form input[type="text"].success,
.wc-block-checkout-form input[type="email"].success,
.wc-block-checkout-form input[type="tel"].success,
.wc-block-checkout-form select.success,
.wc-block-checkout-form textarea.success {
    border-color: #27ae60;
}

/* Payment Methods */
.wc-block-checkout-payment-methods {
    margin-top: 2rem;
}

.wc-block-checkout-payment-methods .wc-block-checkout-payment-method {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wc-block-checkout-payment-methods .wc-block-checkout-payment-method:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.wc-block-checkout-payment-methods .wc-block-checkout-payment-method.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wc-block-checkout-payment-methods .wc-block-checkout-payment-method.selected::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================================================
   ULTRA PRO CART PAGE STYLES
   ========================================================================== */

/* Cart Page Layout */
body.woocommerce-cart {
    margin: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Fix footer width on cart page */
body.woocommerce-cart .site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Wrapper pour le layout deux colonnes */
body.woocommerce-cart .cart-layout-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 2rem !important;
    align-items: start !important;
}

body.woocommerce-cart .cart-layout-wrapper .woocommerce-cart-form {
    grid-column: 1 !important;
}

body.woocommerce-cart .cart-layout-wrapper .cart-collaterals {
    grid-column: 2 !important;
}

body.woocommerce-cart .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D1810;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
    grid-column: 1 / -1; /* Le titre prend toute la largeur */
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Form Container */
body.woocommerce-cart .woocommerce-cart-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf0;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

/* Cart Table - Style moderne liste */
body.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Masquer complètement le header du tableau */
body.woocommerce-cart table.cart thead {
    display: none;
}

/* Style liste moderne pour chaque ligne */
body.woocommerce-cart table.cart tbody {
    display: block;
}

/* Chaque ligne = carte de produit */
body.woocommerce-cart table.cart tbody tr {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    gap: 1.5rem;
}

body.woocommerce-cart table.cart tbody tr:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

body.woocommerce-cart table.cart tbody td {
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

/* Remove action - position à gauche */
body.woocommerce-cart table.cart .product-remove {
    order: -1;
    flex-shrink: 0;
}

body.woocommerce-cart table.cart .product-remove a {
    color: #6b7280 !important;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

body.woocommerce-cart table.cart .product-remove a:hover {
    background: #fef2f2;
    color: #dc2626 !important;
    border-color: #fecaca;
}

/* Product Images */
body.woocommerce-cart table.cart .product-thumbnail {
    flex-shrink: 0;
    width: auto;
}

body.woocommerce-cart table.cart .product-thumbnail img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
}

body.woocommerce-cart table.cart .product-thumbnail img:hover {
    opacity: 0.85;
}

/* Product Names + description */
body.woocommerce-cart table.cart .product-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.woocommerce-cart table.cart .product-name a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    line-height: 1.3;
}

body.woocommerce-cart table.cart .product-name a:hover {
    color: #8B4513;
}

/* Ajouter sous-titre produit si besoin */
body.woocommerce-cart table.cart .product-name .product-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

/* Prix à droite (caché car on utilise le total à droite) */
body.woocommerce-cart table.cart .product-price,
body.woocommerce-cart table.cart .product-subtotal {
    display: none;
}

/* Quantity Input - style minimaliste */
body.woocommerce-cart .product-quantity {
    flex-shrink: 0;
    margin-left: auto;
}

body.woocommerce-cart .product-quantity .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

body.woocommerce-cart .product-quantity .quantity button {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 600;
}

body.woocommerce-cart .product-quantity .quantity button:hover {
    background: #f3f4f6;
    color: #1f2937;
}

body.woocommerce-cart .product-quantity .quantity input[type="number"] {
    width: 50px;
    height: 36px;
    padding: 0;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    background: white;
    -moz-appearance: textfield;
    appearance: textfield;
}

body.woocommerce-cart .product-quantity .quantity input[type="number"]:focus {
    outline: none;
}

body.woocommerce-cart .product-quantity .quantity input[type="number"]::-webkit-outer-spin-button,
body.woocommerce-cart .product-quantity .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Actions - style épuré */
body.woocommerce-cart .actions {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.woocommerce-cart .actions .coupon {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 450px;
}

body.woocommerce-cart .actions .coupon input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #1f2937;
    font-weight: 400;
    transition: all 0.2s ease;
}

body.woocommerce-cart .actions .coupon input[type="text"]:focus {
    outline: none;
    background: white;
    border-color: #8B4513;
}

body.woocommerce-cart .actions .coupon input[type="text"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

body.woocommerce-cart .actions button[name="apply_coupon"],
body.woocommerce-cart .actions button[name="update_cart"] {
    padding: 0.75rem 1.5rem;
    background: #1f2937;
    color: white;
    border: 1px solid #1f2937;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

body.woocommerce-cart .actions button[name="apply_coupon"]:hover,
body.woocommerce-cart .actions button[name="update_cart"]:hover {
    background: #374151;
    border-color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Cart Totals */
.cart-collaterals {
    margin-top: 0;
    animation: slideInUp 0.8s ease-out;
    position: sticky;
    top: 120px;
}

.cart-collaterals .cart_totals {
    float: right;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf0;
    overflow: hidden;
}

.cart-collaterals .cart_totals h2 {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #654321 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

.cart-collaterals .cart_totals h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #A0522D, #654321);
}

.cart-collaterals .cart_totals table {
    width: 100%;
    padding: 1.5rem;
}

.cart-collaterals .cart_totals table th,
.cart-collaterals .cart_totals table td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px dashed #e8ecf0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.cart-collaterals .cart_totals table tr:hover {
    background: rgba(139, 69, 19, 0.02);
}

.cart-collaterals .cart_totals table th {
    text-align: left;
    font-weight: 600;
    color: #2D1810;
}

.cart-collaterals .cart_totals table td {
    text-align: right;
    font-weight: 700;
    color: #8B4513;
    font-size: 1.05rem;
}

.cart-collaterals .cart_totals .order-total {
    position: relative;
}

.cart-collaterals .cart_totals .order-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #A0522D, #654321);
}

.cart-collaterals .cart_totals .order-total th,
.cart-collaterals .cart_totals .order-total td {
    font-size: 1.3rem;
    padding-top: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: none;
    color: #8B4513;
}

.cart-collaterals .wc-proceed-to-checkout {
    padding: 1.5rem;
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
    position: relative;
    overflow: hidden;
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
    background: linear-gradient(135deg, #654321 0%, #5D4E37 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.3);
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover::before {
    left: 100%;
}

/* Responsive Cart */
@media (max-width: 768px) {
    body.woocommerce-cart {
        padding: 1rem 0;
    }
    
    /* Layout mobile en une seule colonne */
    body.woocommerce-cart .cart-layout-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    body.woocommerce-cart .cart-layout-wrapper .woocommerce-cart-form,
    body.woocommerce-cart .cart-layout-wrapper .cart-collaterals {
        grid-column: 1 !important;
    }
    
    body.woocommerce-cart .cart-layout-wrapper .cart-collaterals {
        position: static !important;
    }
    
    body.woocommerce-cart .page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    body.woocommerce-cart .woocommerce-cart-form {
        padding: 1rem;
    }
    
    body.woocommerce-cart table.cart thead {
        display: none;
    }
    
    body.woocommerce-cart table.cart tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e8ecf0;
        border-radius: 12px;
        overflow: hidden;
        background: white;
    }
    
    body.woocommerce-cart table.cart tbody tr:hover {
        transform: none;
    }
    
    body.woocommerce-cart table.cart tbody td {
        display: block;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid #f1f5f9;
    }
    
    body.woocommerce-cart table.cart tbody td:last-child {
        border-bottom: none;
    }
    
    body.woocommerce-cart table.cart tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #2D1810;
        display: inline-block;
        margin-right: 0.5rem;
    }
    
    body.woocommerce-cart table.cart .product-thumbnail img {
        width: 80px;
        height: 80px;
    }
    
    body.woocommerce-cart table.cart .product-name a::after {
        display: none;
    }
    
    body.woocommerce-cart .actions {
        flex-direction: column;
        padding: 1rem;
    }
    
    body.woocommerce-cart .actions .coupon {
        max-width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    body.woocommerce-cart .actions .coupon input[type="text"] {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }

    body.woocommerce-cart .actions button[name="apply_coupon"],
    body.woocommerce-cart .actions button[name="update_cart"] {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: unset;
    }
    
    .cart-collaterals {
        margin-top: 2rem;
    }
    
    .cart-collaterals .cart_totals {
        float: none;
        max-width: 100%;
    }
    
    .cart-collaterals .cart_totals table {
        padding: 1rem;
    }
    
    .cart-collaterals .cart_totals table th,
    .cart-collaterals .cart_totals table td {
        padding: 0.75rem 1rem;
    }
    
    .cart-collaterals .cart_totals .order-total th,
    .cart-collaterals .cart_totals .order-total td {
        font-size: 1.25rem;
    }
}

/* Checkout Totals */
.wc-block-checkout-totals {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf0;
    padding: 2rem;
    position: sticky;
    top: 120px;
    overflow: hidden;
    animation: slideInRight 0.6s ease-out 0.2s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wc-block-checkout-totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ea580c, #ca8a04);
}

.wc-block-checkout-totals h3 {
    margin: 0 0 2rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.wc-block-checkout-totals .wc-block-checkout-totals__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.wc-block-checkout-totals .wc-block-checkout-totals__item:hover {
    background: rgba(37, 99, 235, 0.02);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.wc-block-checkout-totals .wc-block-checkout-totals__item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 1rem;
    margin: 1rem -1rem -1rem -1rem;
    border-radius: 0 0 12px 12px;
}

/* Place Order Button */
.wc-block-checkout-place-order {
    margin-top: 2rem;
    position: relative;
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block:hover::before {
    left: 100%;
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0891b2 100%);
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Loading state for button */
.wc-block-checkout-place-order .wc-block-checkout-place-order-block.loading {
    pointer-events: none;
    position: relative;
}

.wc-block-checkout-place-order .wc-block-checkout-place-order-block.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Terms and Conditions */
.wc-block-checkout-terms {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wc-block-checkout-terms input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #2563eb;
}

.wc-block-checkout-terms a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.wc-block-checkout-terms a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wp-block-woocommerce-checkout {
        margin: 1rem 0;
        padding: 1rem 0;
    }

    .wp-block-woocommerce-checkout .wc-block-checkout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .wc-block-cart-totals,
    .wc-block-checkout-totals {
        position: static;
        order: -1;
    }

    .wc-block-checkout-fields {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .wc-block-checkout-fields h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .wc-block-checkout-form {
        gap: 1.25rem;
    }

    .wc-block-checkout-form input[type="text"],
    .wc-block-checkout-form input[type="email"],
    .wc-block-checkout-form input[type="tel"],
    .wc-block-checkout-form select,
    .wc-block-checkout-form textarea {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .wc-block-checkout-payment-methods .wc-block-checkout-payment-method {
        padding: 1.25rem;
    }

    .wc-block-checkout-totals {
        padding: 1.5rem;
    }

    .wc-block-checkout-place-order .wc-block-checkout-place-order-block {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .wc-block-checkout-terms {
        padding: 0.875rem;
        font-size: 0.8rem;
    }
}

/* Product Gallery Thumbnails */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.product-thumbnail {
    width: 80px;
    height: 80px; /* Ratio 1:1 = 80:80 */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-thumbnail:hover {
    border-color: #007cba;
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

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

/* WooCommerce Native Thumbnails */
.woocommerce-product-gallery .woocommerce-product-gallery__image a img,
.woocommerce-product-gallery .flex-control-nav img {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image a img:hover,
.woocommerce-product-gallery .flex-control-nav img:hover {
    border-color: #007cba !important;
    transform: scale(1.05) !important;
    opacity: 0.8 !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image a img.active,
.woocommerce-product-gallery .flex-control-nav img.active {
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3) !important;
}

/* Thumbnail styling - only for actual thumbnails */
.product-gallery-thumbnail {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.product-gallery-thumbnail:hover {
    border-color: #007cba !important;
    transform: scale(1.05) !important;
    opacity: 0.8 !important;
}

.product-gallery-thumbnail.active {
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3) !important;
}

/* Custom Product Gallery Layout - Basic styling only */

.main-product-image-container {
    margin-bottom: 15px;
}

/* Format uniforme pour toutes les images - ratio 1:1 */
.main-product-image-container img {
    max-height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

.product-thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 15px;
    align-items: flex-start;
}

.product-thumbnail-item {
    flex-shrink: 0;
}

.product-thumbnail-link {
    display: inline-block !important;
    width: 80px !important;
    height: 80px !important; /* Ratio 1:1 = 80:80 */
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 80px !important; /* Force width in flexbox */
    margin-right: 10px !important;
}

.product-thumbnail-link:hover {
    border-color: #007cba;
    transform: scale(1.05);
}

.product-thumbnail-link.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

@media (max-width: 768px) {
    .product-thumbnails-container {
        justify-content: center;
    }

    .product-thumbnail-link {
        width: 60px !important;
        height: 60px !important; /* Ratio 1:1 = 60:60 */
    }
}

@media (max-width: 768px) {
    .product-thumbnails {
        justify-content: center;
    }

    .product-thumbnail {
        width: 60px !important;
        height: 60px !important; /* Ratio 1:1 = 60:60 */
    }

    .woocommerce-product-gallery .woocommerce-product-gallery__image a img,
    .woocommerce-product-gallery .flex-control-nav img {
        width: 60px !important;
        height: 60px !important; /* Ratio 1:1 = 60:60 */
    }
}

