/**
 * WooCommerce Styles for Old Jail Museum Theme
 * Main WooCommerce styling file
 */

/* ========================================
   WOOCOMMERCE GLOBAL OVERRIDES
   ======================================== */

/* Remove all WooCommerce default styling */
.woocommerce,
.woocommerce-page {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

/* Override WooCommerce container */
.woocommerce-main {
    padding: 80px 0 !important;
    background: #fff;
}

/* Add proper top padding for shop and single product pages to account for fixed header */
.woocommerce-archive .woocommerce-main,
.single-product .woocommerce-main {
    padding: 5rem 0 3rem 0 !important;
}

/* Fix header spacing for shop pages */
.woocommerce .site-header {
    margin-bottom: 0 !important;
}

.woocommerce-products-header {
    padding-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.woocommerce-products-header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.woocommerce-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 0 !important;
}

/* ========================================
   SHOP PAGE HEADER & SORTING
   ======================================== */

/* Result count and ordering wrapper */
.woocommerce .woocommerce-result-count {
    float: left;
    margin: 0 0 2rem 0;
    font-family: var(--body-font);
    color: #666;
}

.woocommerce .woocommerce-ordering {
    float: right;
    margin: 0 0 2rem 0;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    background: #fff;
    cursor: pointer;
}

/* Clear floats */
.woocommerce-products-header::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================
   PRODUCT GRID LAYOUT
   ======================================== */

/* Main product grid container */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
}

/* Individual product card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.related.products ul.products li.product {
    background: var(--light-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(74, 55, 40, 0.05) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.related.products ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 20px rgba(74, 55, 40, 0.15) !important;
}

/* Product card link - makes entire card clickable */
.product-card-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
}

.product-card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Product image */
.woocommerce ul.products li.product .product-image,
.woocommerce-page ul.products li.product .product-image,
.related.products ul.products li.product .product-image {
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .product-image img,
.woocommerce-page ul.products li.product .product-image img,
.related.products ul.products li.product .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product:hover .product-image img,
.woocommerce-page ul.products li.product:hover .product-image img,
.related.products ul.products li.product:hover .product-image img {
    transform: scale(1.05) !important;
}

/* Placeholder image */
.placeholder-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--light-bg) !important;
    color: var(--text-color) !important;
    font-size: 3rem !important;
}

/* Product info section */
.woocommerce ul.products li.product .product-info,
.woocommerce-page ul.products li.product .product-info,
.related.products ul.products li.product .product-info {
    padding: 1.5rem 1.5rem 1rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 0.5rem 0 !important;
    font-family: var(--heading-font) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-align: center !important;
    line-height: 1.4 !important;
    flex: 1 !important;
}

/* Product price */
.woocommerce ul.products li.product .product-price,
.woocommerce-page ul.products li.product .product-price,
.related.products ul.products li.product .product-price {
    margin: 0 !important;
    font-family: var(--body-font) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    text-align: center !important;
}

/* Product actions section - for consistent button height */
.woocommerce ul.products li.product .product-actions,
.woocommerce-page ul.products li.product .product-actions,
.related.products ul.products li.product .product-actions {
    padding: 0 1.5rem 1.5rem !important;
    margin-top: auto !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Add to cart button - consistent height */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.related.products ul.products li.product .button {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: var(--primary-color) !important;
    color: var(--light-text) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.related.products ul.products li.product .button:hover {
    background: var(--secondary-color) !important;
    color: var(--light-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
    text-decoration: none !important;
}

/* Out of stock styling */
.woocommerce ul.products li.product .out-of-stock {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    background: #f8f8f8 !important;
    color: #666 !important;
    text-align: center !important;
    border-radius: 4px !important;
    font-family: var(--body-font) !important;
    font-size: 0.9rem !important;
    min-height: 50px !important;
}

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

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-gallery-section {
    position: relative;
}

.product-summary-section {
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    align-self: flex-start;
}

/* Product gallery styling */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.woocommerce-product-gallery__wrapper {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.woocommerce-product-gallery__image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* WooCommerce FlexSlider Gallery */
.woocommerce-product-gallery .flex-viewport {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.woocommerce-product-gallery .flex-control-thumbs li.flex-active {
    border-color: var(--accent-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.woocommerce-product-gallery .flex-control-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.woocommerce-product-gallery .flex-control-thumbs li:hover img {
    transform: scale(1.1);
}

/* WooCommerce Gallery Zoom */
.woocommerce-product-gallery .zoomImg {
    border-radius: 8px;
}

/* Hide the zoom trigger icon but keep functionality */
.woocommerce-product-gallery .zoom {
    position: relative;
}

.woocommerce-product-gallery .zoom::after {
    display: none !important;
}

.woocommerce-product-gallery .zoom::before {
    display: none !important;
}

/* Alternative way to hide zoom icon */
.woocommerce-product-gallery .zoom .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Hide WordPress emoji magnifying glass */
.woocommerce-product-gallery .emoji,
.woocommerce-product-gallery img[alt="🔍"],
.woocommerce-product-gallery .woocommerce-product-gallery__trigger img,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide any zoom trigger elements */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Gallery navigation */
.woocommerce-product-gallery .flex-direction-nav a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev {
    left: 1rem;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next {
    right: 1rem;
}

.woocommerce-product-gallery .flex-direction-nav a:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Product title */
.single-product .product_title {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product price */
.single-product .price {
    font-family: var(--body-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Product excerpt/description */
.single-product .woocommerce-product-details__short-description {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Thank you message styling */
.product-thankyou {
    font-family: var(--body-font);
    font-size: 1rem;
    color: rgba(123, 45, 38, 0.8); /* Semi-transparent bold red */
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(123, 45, 38, 0.2);
    border-bottom: 1px solid rgba(123, 45, 38, 0.2);
    background-color: rgba(123, 45, 38, 0.05);
    border-radius: 4px;
    text-align: center;
}

/* Add to cart section - only show white box when variations exist */
.single-product .cart {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

/* When variations exist, show the white box */
.single-product .variations_form .cart {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Add to cart button - left aligned in all cases */
.single-product .single_add_to_cart_button {
    background: var(--primary-color) !important;
    color: var(--light-text) !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: auto;
    display: inline-block;
    text-align: left;
    float: left;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--secondary-color) !important;
    color: var(--light-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2);
}

.single-product .single_add_to_cart_button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Variations styling */
.single-product .variations {
    margin-bottom: 2rem;
}

.single-product .variations .variation-field {
    margin-bottom: 1.5rem;
}

.single-product .variations label {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.single-product .variations select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.single-product .variations select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 198, 168, 0.2);
}

/* Style variation dropdown options with prices */
.single-product .variations select option {
    padding: 8px 12px;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.4;
}

/* Style the price part in dropdown options */
.single-product .variations select option:not([value=""]) {
    font-weight: 500;
}

/* Ensure proper spacing for options with prices */
.single-product .variations select {
    min-height: 50px;
}

.single-product .reset_variations {
    display: none !important;
}

/* Quantity selector - hidden for simplicity */
.single-product .quantity {
    display: none !important;
}

.single-product .quantity input.qty {
    display: none !important;
}

.single-product .quantity label {
    display: none !important;
}

/* Product meta - hidden for simplicity */
.single-product .product_meta {
    display: none !important;
}

/* Breadcrumb navigation */
.woocommerce-breadcrumb {
    background: #f8f8f8;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid var(--accent-color);
}

.woocommerce-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 0.5rem;
    color: #999;
}

/* Related products */
.related.products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #ddd;
}

.related.products > h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Product Tabs - Keep description and additional info, remove reviews */
.woocommerce-tabs {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    border-bottom: 2px solid #eee;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: none;
    margin: 0;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #7b2d26;
    border-bottom-color: #7b2d26;
    background: none;
}

.woocommerce-tabs .panel {
    margin: 0;
    padding: 2rem 0;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.woocommerce-tabs .panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.woocommerce-tabs .panel table th,
.woocommerce-tabs .panel table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-tabs .panel table th {
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
}

.woocommerce-tabs .panel table td {
    color: #666;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .woocommerce-tabs ul.tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .woocommerce-tabs ul.tabs li a {
        border-bottom: 1px solid #eee;
        border-right: none;
    }
    
    .woocommerce-tabs ul.tabs li.active a {
        border-bottom-color: #7b2d26;
    }
}

/* ========================================
   CART PAGE
   ======================================== */

/* --- Ensure Cart & Checkout Styles Always Apply --- */
.woocommerce-cart .woocommerce, .woocommerce-page .woocommerce-cart .woocommerce {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(123, 45, 38, 0.10), 0 1.5px 6px rgba(0,0,0,0.07) !important;
    padding: 2.5rem 2rem !important;
    max-width: 900px !important;
    margin: 2rem auto 3rem auto !important;
    font-family: var(--body-font) !important;
}
.woocommerce-cart table.cart, .woocommerce-page .woocommerce-cart table.cart {
    background: #f8f6f2 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(123,45,38,0.04) !important;
    overflow: hidden !important;
    margin-bottom: 2.5rem !important;
}
.woocommerce-cart table.cart th, .woocommerce-cart table.cart td, .woocommerce-page .woocommerce-cart table.cart th, .woocommerce-page .woocommerce-cart table.cart td {
    padding: 1.2rem 1rem !important;
    text-align: left !important;
    border-bottom: 1px solid #e5d6c2 !important;
    font-size: 1rem !important;
}
.woocommerce-cart table.cart th, .woocommerce-page .woocommerce-cart table.cart th {
    background: #e5d6c2 !important;
    color: #7b2d26 !important;
    font-family: var(--heading-font) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}
.woocommerce-cart table.cart .product-thumbnail img, .woocommerce-page .woocommerce-cart table.cart .product-thumbnail img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1.5px solid #e5d6c2 !important;
    background: #fff !important;
}
.woocommerce-cart table.cart .product-name a, .woocommerce-page .woocommerce-cart table.cart .product-name a {
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    color: #7b2d26 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
}
.woocommerce-cart table.cart .product-name a:hover, .woocommerce-page .woocommerce-cart table.cart .product-name a:hover {
    color: #b8a88a !important;
}
.woocommerce-cart table.cart .product-remove a, .woocommerce-page .woocommerce-cart table.cart .product-remove a {
    color: #b8a88a !important;
    text-decoration: none !important;
    font-size: 1.3rem !important;
    transition: color 0.2s !important;
}
.woocommerce-cart table.cart .product-remove a:hover, .woocommerce-page .woocommerce-cart table.cart .product-remove a:hover {
    color: #7b2d26 !important;
}
.woocommerce-cart .cart-collaterals, .woocommerce-page .woocommerce-cart .cart-collaterals {
    display: flex !important;
    flex-direction: row !important;
    gap: 2.5rem !important;
    margin-top: 2.5rem !important;
}
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals {
    background: #f8f6f2 !important;
    padding: 2rem 2rem 2.5rem 2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(123,45,38,0.04) !important;
    min-width: 320px !important;
}
.woocommerce-cart .cart-collaterals .cart_totals h2, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-family: var(--heading-font) !important;
    color: #7b2d26 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.2rem !important;
}
.woocommerce-cart .cart-collaterals .cart_totals table, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100% !important;
    margin-bottom: 1.2rem !important;
}
.woocommerce-cart .cart-collaterals .cart_totals th, .woocommerce-cart .cart-collaterals .cart_totals td, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals th, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals td {
    padding: 0.6rem 0 !important;
    text-align: left !important;
    font-size: 1rem !important;
}
.woocommerce-cart .cart-collaterals .cart_totals .order-total th, .woocommerce-cart .cart-collaterals .cart_totals .order-total td, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals .order-total th, .woocommerce-page .woocommerce-cart .cart-collaterals .cart_totals .order-total td {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    border-top: 2px solid #e5d6c2 !important;
    padding-top: 1rem !important;
    color: #7b2d26 !important;
    font-family: var(--heading-font) !important;
}
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button, .woocommerce-page .woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button {
    background: var(--primary-color) !important;
    color: var(--light-text) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    margin-top: 1.2rem !important;
}
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button:hover, .woocommerce-page .woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--secondary-color) !important;
    color: var(--light-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
}

/* --- Checkout Page --- */
.woocommerce-checkout .woocommerce, .woocommerce-page .woocommerce-checkout .woocommerce {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(123, 45, 38, 0.10), 0 1.5px 6px rgba(0,0,0,0.07) !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order {
    background: #f8f8f8 !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin-top: 2rem !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order h3, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order h3 {
    font-family: var(--heading-font) !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order table, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order table {
    width: 100% !important;
    margin-bottom: 1rem !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order th, .woocommerce-checkout .woocommerce-checkout-review-order td, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order th, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order td {
    padding: 0.5rem 0 !important;
    text-align: left !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order .order-total th, .woocommerce-checkout .woocommerce-checkout-review-order .order-total td, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order .order-total th, .woocommerce-page .woocommerce-checkout .woocommerce-checkout-review-order .order-total td {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    border-top: 2px solid #ddd !important;
    padding-top: 1rem !important;
}
.woocommerce-checkout #place_order, .woocommerce-page .woocommerce-checkout #place_order {
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}
.woocommerce-checkout #place_order:hover, .woocommerce-page .woocommerce-checkout #place_order:hover {
    background: #b8a88a !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
}

/* --- Cart Popup Fade-in Animation --- */
@keyframes cartPopupFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-dropdown {
    animation: cartPopupFadeIn 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .woocommerce ul.products li.product a img {
        height: 200px !important;
    }
    
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-summary-section {
        padding: 1.5rem;
    }
    
    .single-product .product_title {
        font-size: 1.5rem;
    }
    
    .single-product .price {
        font-size: 1.3rem;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }
    
    .woocommerce-tabs ul.tabs li a {
        border-radius: 4px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 0.5rem;
    }
    
    .woocommerce-cart .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-cart table.cart {
        font-size: 0.9rem;
    }
    
    .woocommerce-cart table.cart .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .woocommerce-main .container {
        padding: 0 1rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1.1rem !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1.2rem !important;
    }
    
    .single-product-layout {
        gap: 1.5rem;
    }
    
    .product-summary-section {
        padding: 1rem;
    }
    
    .single-product .cart {
        padding: 1.5rem;
    }
    
    .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* Custom Hand Rating System - Clean and reliable approach */
.custom-hand-rating {
    margin: 1rem 0;
}

.hand-rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hand-labels {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hand-label {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.hand-label:hover {
    background-color: rgba(123, 45, 38, 0.1);
}

.hand-icon {
    width: 30px;
    height: 30px;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.3s ease;
}

/* Default state - gray hands */
.hand-label .hand-icon {
    filter: grayscale(100%) brightness(0.6);
}

/* Hover state - red hands */
.hand-label:hover .hand-icon,
.hand-label.highlighted .hand-icon {
    filter: grayscale(0%) brightness(1);
    filter: hue-rotate(0deg) saturate(1.5) brightness(0.8);
}

/* Selected state - red hands */
.hand-label input[type="radio"]:checked + .hand-icon,
.hand-label.highlighted .hand-icon {
    filter: grayscale(0%) brightness(1);
    filter: hue-rotate(0deg) saturate(1.5) brightness(0.8);
}

/* Hide the original WooCommerce stars completely */
.comment-form-rating .stars a {
    display: none !important;
}

.comment-form-rating .stars {
    display: block !important;
}

/* Ensure the hidden rating select is properly hidden */
#rating {
    display: none !important;
}

/* Style the rating label */
#comment-form-rating-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Add some spacing */
.comment-form-rating {
    margin-bottom: 1.5rem;
}

/* WooCommerce Product Page Styling */

/* Product Images */
.woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.woocommerce-product-gallery__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Title */
.woocommerce h1.product_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

/* Product Price */
.woocommerce .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7b2d26;
    margin-bottom: 1.5rem;
}

.woocommerce .price del {
    color: #999;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.woocommerce .price ins {
    text-decoration: none;
    color: #7b2d26;
}

/* Product Description */
.woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

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

.woocommerce form.cart .variations {
    margin-bottom: 1.5rem;
}

.woocommerce form.cart .variations td {
    padding: 0.5rem 0;
    vertical-align: middle;
}

.woocommerce form.cart .variations label {
    font-weight: 600;
    color: #333;
    margin-right: 1rem;
}

.woocommerce form.cart .variations select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    min-width: 200px;
}

.woocommerce form.cart .variations select:focus {
    outline: none;
    border-color: #7b2d26;
    box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

/* Quantity Input */
.woocommerce form.cart .quantity {
    margin-bottom: 1rem;
}

.woocommerce form.cart .quantity input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    width: 80px;
    text-align: center;
}

.woocommerce form.cart .quantity input:focus {
    outline: none;
    border-color: #7b2d26;
    box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

/* Add to Cart Button */
.woocommerce form.cart .single_add_to_cart_button {
    background-color: #7b2d26;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce form.cart .single_add_to_cart_button:hover {
    background-color: #5a1f1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 45, 38, 0.3);
}

.woocommerce form.cart .single_add_to_cart_button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Product Meta */
.woocommerce .product_meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.woocommerce .product_meta span {
    display: block;
    margin-bottom: 0.5rem;
}

.woocommerce .product_meta a {
    color: #7b2d26;
    text-decoration: none;
}

.woocommerce .product_meta a:hover {
    text-decoration: underline;
}

/* Product Tabs - Removed for simplicity */
.woocommerce-tabs {
    display: none;
}

/* Related Products */
.woocommerce .related {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.woocommerce .related h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Product Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1rem;
    text-align: center;
}

.woocommerce ul.products li.product .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7b2d26;
    margin: 0 1rem 1rem;
    text-align: center;
}

.woocommerce ul.products li.product .button {
    background-color: #7b2d26;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 1rem 1rem;
    display: block;
    text-align: center;
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #5a1f1a;
    color: #fff;
}

/* Cart and Checkout Styling */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

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

.woocommerce-cart table.cart th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.woocommerce-cart table.cart img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.woocommerce-cart .cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.woocommerce-cart .cart_totals {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.woocommerce-cart .cart_totals table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 0.5rem 0;
    text-align: left;
}

.woocommerce-cart .cart_totals table th {
    font-weight: 600;
    color: #333;
}

.woocommerce-cart .cart_totals table td {
    text-align: right;
    font-weight: 600;
    color: #7b2d26;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background-color: #7b2d26;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    width: 100%;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(123,45,38,0.08);
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #b8a88a;
    color: #7b2d26;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce h1.product_title {
        font-size: 2rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .woocommerce-cart .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .woocommerce form.cart .variations select {
        min-width: 150px;
    }
}

/* Product Long Description */
.product-long-description {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: #ede5d0;
    border: 1px solid #e0d6c3;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.product-long-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.product-long-description .description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.product-long-description .description-content p {
    margin-bottom: 1rem;
}

.product-long-description .description-content p:last-child {
    margin-bottom: 0;
}

/* Related Products - Match Product Grid Styling */
.woocommerce .related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.woocommerce .related h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Override WooCommerce default related products styling */
.woocommerce .related ul.products {
    display: flex !important;
    justify-content: center !important;
    gap: 32px !important;
    margin-bottom: 48px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
}

.woocommerce .related ul.products li.product {
    background-color: #ede5d0 !important;
    border: 1px solid #e0d6c3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.3s, transform 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 390px !important;
    padding: 22px 18px 18px 18px !important;
    margin: 0 !important;
    width: 280px !important;
    max-width: 100% !important;
    float: none !important;
}

.woocommerce .related ul.products li.product:hover {
    transform: translateY(-7px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.13) !important;
}

.woocommerce .related ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
    margin-bottom: 18px !important;
}

.woocommerce .related ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.08rem !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Ensure prices are visible in related products */
.woocommerce .related ul.products li.product .price,
.woocommerce .related ul.products li.product span.price {
    font-weight: 700 !important;
    color: #7b2d26 !important;
    font-size: 1.13rem !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce .related ul.products li.product .price del {
    color: #999 !important;
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
}

.woocommerce .related ul.products li.product .price ins {
    text-decoration: none !important;
    color: #7b2d26 !important;
}

.woocommerce .related ul.products li.product .button {
    display: block !important;
    width: 100% !important;
    margin: 22px 0 0 0 !important;
    padding: 13px 0 !important;
    background: #7b2d26 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.04rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
    text-align: center !important;
    text-decoration: none !important;
    margin-top: auto !important;
}

.woocommerce .related ul.products li.product .button:hover {
    background: #5a1f1a !important;
    color: #fff !important;
}

/* Force related products to show */
.woocommerce .related {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce .related ul.products {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce .related ul.products li.product {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive related products */
@media (max-width: 768px) {
    .woocommerce .related ul.products {
        justify-content: center !important;
        gap: 20px !important;
    }
    
    .woocommerce .related ul.products li.product {
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* ========================================
   PRODUCT NAVIGATION - BREADCRUMBS & BACK TO SHOP
   ======================================== */

.product-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.breadcrumb-nav {
    flex: 1;
}

.woocommerce-breadcrumb {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.woocommerce-breadcrumb .delimiter {
    margin: 0 0.5rem;
    color: #999;
}

.back-to-shop {
    margin-left: 2rem;
}

.back-to-shop-btn,
.woocommerce-page .back-to-shop-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    background-color: var(--primary-color) !important;
    color: var(--light-text) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.back-to-shop-btn i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.back-to-shop-btn:hover,
.woocommerce-page .back-to-shop-btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--light-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
    text-decoration: none !important;
}

/* ========================================
   PRESERVATION SECTION
   ======================================== */

.preservation-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.preservation-card {
    background: #f8f6f2;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.preservation-card h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.preservation-content p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.preservation-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.preservation-content li {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.preservation-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e0d0;
}

.preservation-cta p {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .back-to-shop {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .preservation-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .preservation-card h2 {
        font-size: 1.8rem;
    }
    
    .preservation-content p,
    .preservation-content li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-navigation {
        margin-bottom: 1.5rem;
    }
    
    .back-to-shop-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .preservation-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .preservation-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .preservation-card h2 {
        font-size: 1.6rem;
    }
    
    .preservation-content p,
    .preservation-content li {
        font-size: 0.95rem;
    }
}

/* General WooCommerce buttons (for single product pages, etc.) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: block !important;
    width: calc(100% - 3rem) !important;
    margin: 1rem 1.5rem 1.5rem !important;
    padding: 1rem !important;
    background: var(--accent-color) !important;
    color: var(--primary-color) !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #b8a88a !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
}

/* Unified product card grid for shop and index preview */
.product-card {
    min-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: 100% !important;
    background: #f8f6f2 !important;
    border: 1px solid #e8e0d0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13) !important;
    transform: translateY(-2px) scale(1.01);
}

.product-card .product-info {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 1.5rem 1.5rem 1rem !important;
}

.product-card .product-info h3 {
    min-height: 3.5em !important;
    display: flex !important;
    align-items: flex-end !important;
    font-family: var(--heading-font) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 0 0.5rem 0 !important;
    justify-content: center !important;
}

.product-card .product-price {
    font-family: var(--body-font) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #7b2d26 !important;
    text-align: center !important;
    margin: 0 0 0.5rem 0 !important;
    min-height: 1.5em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-card .product-actions {
    margin-top: auto !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 1.5rem 1.5rem 1.5rem !important;
}

.product-card .button,
.product-card .view-product {
    width: 100% !important;
    min-height: 50px !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 6px !important;
    background: #d6ccb3 !important;
    color: #7b2d26 !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 1.5rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
}

.product-card .button:hover,
.product-card .view-product:hover {
    background: #b8a88a !important;
    color: #7b2d26 !important;
    text-decoration: none !important;
}

.product-card .product-info {
    padding-bottom: 0 !important;
}

/* Responsive product grid */
.products-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}
@media (max-width: 1200px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 900px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}
@media (max-width: 600px) {
    .products-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .product-card {
        min-height: 340px !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.10) !important;
    }
    .product-card .product-info {
        padding: 1rem 1rem 0.5rem !important;
    }
    .product-card .product-info h3 {
        font-size: 1rem !important;
        min-height: 2.5em !important;
    }
    .product-card .product-price {
        font-size: 1.05rem !important;
        min-height: 1.2em !important;
    }
    .product-card .product-actions {
        min-height: 50px !important;
        padding: 0 1rem 1rem 1rem !important;
    }
    .product-card .button,
    .product-card .view-product {
        min-height: 40px !important;
        height: 40px !important;
        font-size: 0.95rem !important;
        border-radius: 5px !important;
        padding: 0 1rem !important;
    }
}

.shop-category-dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.shop-category-dropdown select {
    padding: 0.7rem 1.2rem;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 1rem;
    background: #f8f6f2;
    color: #7b2d26;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    margin: 0;
}
.shop-category-dropdown select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 198, 168, 0.2);
}

/* --- Subtle Cart Popup Styling --- */
.cart-dropdown {
    background: #fffefc !important;
    border: 1.5px solid #e5d6c2 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(123, 45, 38, 0.07), 0 1.5px 6px rgba(0,0,0,0.04) !important;
    font-family: var(--body-font) !important;
    color: var(--text-color) !important;
    padding: 0 !important;
    transition: box-shadow 0.3s, background 0.3s !important;
}
.cart-dropdown-header {
    background: #f8f6f2 !important;
    color: #7b2d26 !important;
    font-family: var(--heading-font) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.1rem 1.5rem !important;
    border-bottom: 1px solid #e5d6c2 !important;
}
.close-cart {
    color: #b8a88a !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    margin-left: auto !important;
    transition: color 0.2s !important;
}
.close-cart:hover {
    color: #7b2d26 !important;
}
.cart-items {
    padding: 0.5rem 1.5rem 0.5rem 1.5rem !important;
}
.cart-item {
    background: #f8f6f2 !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 1px 4px rgba(123,45,38,0.03) !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}
.cart-item-image {
    border-radius: 6px !important;
    overflow: hidden !important;
    width: 48px !important;
    height: 48px !important;
    margin-right: 1rem !important;
    background: #fff !important;
    border: 1px solid #e5d6c2 !important;
}
.cart-item-details {
    flex: 1 !important;
    min-width: 0 !important;
}
.cart-item-title {
    font-family: var(--heading-font) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #7b2d26 !important;
    margin-bottom: 0.2rem !important;
}
.cart-item-price {
    color: #7b2d26 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
}
.cart-item-quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
.quantity-btn {
    background: #fff !important;
    border: 1.5px solid #e5d6c2 !important;
    color: #7b2d26 !important;
    border-radius: 4px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 1rem !important;
    font-family: var(--heading-font) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
}
.quantity-btn:hover {
    background: #f8f6f2 !important;
    color: #b8a88a !important;
}
.quantity-display {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #7b2d26 !important;
}
.cart-item-remove {
    background: none !important;
    border: none !important;
    color: #b8a88a !important;
    font-size: 1.2rem !important;
    margin-left: 0.5rem !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}
.cart-item-remove:hover {
    color: #7b2d26 !important;
}
.cart-footer, .cart-dropdown-footer {
    background: #f8f6f2 !important;
    border-radius: 0 0 12px 12px !important;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem !important;
    border-top: 1px solid #e5d6c2 !important;
}
.cart-total {
    font-family: var(--heading-font) !important;
    font-size: 1.1rem !important;
    color: #7b2d26 !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}
.checkout-btn, .cart-checkout-btn {
    background: #7b2d26 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.5rem !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    box-shadow: 0 2px 8px rgba(123,45,38,0.04) !important;
}
.checkout-btn:hover, .cart-checkout-btn:hover {
    background: #b8a88a !important;
    color: #7b2d26 !important;
}
.empty-cart-message {
    color: #b8a88a !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 2rem 0 !important;
}
.cart-overlay {
    background: rgba(123, 45, 38, 0.10) !important;
    transition: background 0.3s !important;
}

/* Reduce padding for single product pages */

/* Reduce padding for cart and checkout pages */
.woocommerce-cart .woocommerce-main,
.woocommerce-checkout .woocommerce-main {
    padding: 1.5rem 0 !important;
}

/* === WOOCOMMERCE MOBILE FIXES === */
@media (max-width: 768px) {
    /* Product Grid Improvements */
    .woocommerce ul.products,
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    /* Product Card Fixes */
    .woocommerce ul.products li.product,
    .product-card {
        margin: 0 0 20px 0 !important;
        padding: 10px !important;
    }

    .woocommerce ul.products li.product img,
    .product-card img {
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
    }

    /* Single Product Page */
    .single-product-layout,
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 10px !important;
    }

    .product-gallery,
    .product-main-image {
        width: 100% !important;
        max-width: none !important;
    }

    /* Cart Page Improvements */
    .woocommerce-cart-form {
        margin: 0 10px !important;
    }

    .woocommerce-cart-form__contents {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .cart_totals {
        width: 100% !important;
        padding: 15px !important;
    }

    /* Checkout Improvements */
    .woocommerce-checkout {
        padding: 15px !important;
    }

    #order_review {
        padding: 15px !important;
    }

    /* Better Touch Targets */
    .quantity input,
    .add_to_cart_button,
    .single_add_to_cart_button {
        min-height: 44px !important;
        line-height: 44px !important;
    }
}

/* Extra Small Screen Fixes */
@media (max-width: 576px) {
    /* Single Column Product Grid */
    .woocommerce ul.products,
    .products-container {
        grid-template-columns: 1fr !important;
    }

    /* Simplified Product Cards */
    .product-card .product-image {
        height: auto !important;
        min-width: 0 !important;
        max-height: 300px !important;
    }

    /* Compact Cart */
    .woocommerce-cart-form__contents td {
        padding: 10px 5px !important;
    }

    .product-thumbnail {
        display: none !important;
    }

    /* Streamlined Checkout */
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
    }
}

/* --- MOBILE PATCH: Fix product card issues --- */
@media (max-width: 768px) {
    /* Product Grid Improvements */
    .woocommerce ul.products,
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px !important;
        margin: 0 !important;
    }

    /* Product Card Fixes */
    .woocommerce ul.products li.product,
    .product-card {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
        min-height: 0 !important;
        background: #f8f6f2 !important;
        border: 1px solid #e8e0d0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    .product-card .product-image {
        height: 160px !important;
        min-width: 0 !important;
        border-radius: 8px 8px 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .product-card .product-image img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .product-card .product-info {
        padding: 8px 8px 4px !important;
        margin: 0 !important;
    }

    .product-card .product-info h3 {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin: 0 0 4px 0 !important;
        min-height: 0 !important;
        font-weight: 600 !important;
    }

    .product-card .product-price {
        font-size: 1rem !important;
        margin: 0 0 8px 0 !important;
        color: #7b2d26 !important;
    }

    .product-card .product-actions {
        padding: 0 8px 8px !important;
        margin: 0 !important;
    }

    .product-card .button,
    .product-card .view-product {
        min-height: 36px !important;
        font-size: 0.85rem !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        background: #d6ccb3 !important;
        color: #7b2d26 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

/* Extra Small Screen Fixes */
@media (max-width: 480px) {
    /* Single Column Product Grid */
    .woocommerce ul.products,
    .products-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px !important;
    }

    /* Larger Product Cards for Single Column */
    .product-card {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .product-card .product-image {
        height: 200px !important;
    }

    .product-card .product-info h3 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .product-card .product-price {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    .product-card .button,
    .product-card .view-product {
        min-height: 40px !important;
        font-size: 0.9rem !important;
    }
}

/* WooCommerce Header Elements */
.woocommerce .site-header .logo h1,
.woocommerce-page .site-header .logo h1,
.woocommerce .site-header .cart-icon,
.woocommerce-page .site-header .cart-icon {
    color: var(--light-text) !important;
}

.woocommerce .site-header .cart-icon svg,
.woocommerce-page .site-header .cart-icon svg {
    fill: var(--light-text) !important;
}

.woocommerce .site-header .cart-count,
.woocommerce-page .site-header .cart-count {
    background: var(--accent-color) !important;
    color: var(--dark-bg) !important;
}

/* WooCommerce breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #666;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Global button styling for WooCommerce */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce button.button.alt.disabled,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order,
.single-product .single_add_to_cart_button {
    background-color: var(--primary-color) !important;
    color: var(--light-text) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 4px !important;
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: 1rem !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Button hover states */
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover,
.woocommerce button.button.alt.disabled:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.single-product .single_add_to_cart_button:hover {
    background-color: var(--secondary-color) !important;
    color: var(--light-text) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(123, 45, 38, 0.2) !important;
}

/* WooCommerce breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #666;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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