/**
 * Product Page Styles - Consolidated Version
 * Removed all duplicate rules and organized by component
 */

/* ========================================
   PRODUCT SHOWCASE COMPONENTS
   ======================================== */

/* Ensure proper spacing between elements */
.wp-block-columns .classic-bunn-video,
.wp-block-media-text .classic-bunn-video {
    margin-bottom: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-coffee), var(--secondary-coffee));
    margin: 30px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--soft-grey);
    font-weight: 400;
    line-height: 1.6;
}

/* PRODUCT SHOWCASE GRID */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-coffee), var(--secondary-coffee));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 69, 19, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.product-description {
    color: var(--soft-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-coffee);
    margin-bottom: 25px;
}

.product-cta {
    display: inline-block;
    background: transparent;
    color: var(--primary-coffee);
    padding: 12px 30px;
    border: 2px solid var(--primary-coffee);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.product-cta:hover {
    background: var(--primary-coffee);
    color: white;
    transform: translateY(-2px);
}

.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

/* ========================================
   PRODUCT BREADCRUMBS
   ======================================== */
.woocommerce-breadcrumb,
.breadcrumb,
.breadcrumbs,
.woocommerce .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb {
    display: none !important;
}

.woocommerce-breadcrumb {
    margin-top: 1rem !important;;
}
/* Hide featured image on single product pages */
.featured-image.page-header-image-single {
    display: none !important;
}

/* ========================================
   DESKTOP PRODUCT LAYOUT
   ======================================== */
.woocommerce div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: clamp(30px, 4vw, 60px) !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 20px 40px 20px !important;
    position: relative !important;
}

/* Responsive scaling for medium screens */
@media (max-width: 1200px) {
    .custom-product-masonry {
        flex: 0 0 60% !important;
        width: 60% !important;
    }
    
    .woocommerce div.product div.summary {
        flex: 0 0 35% !important;
        width: 35% !important;
    }
}

@media (max-width: 900px) {
    .custom-product-masonry {
        flex: 0 0 55% !important;
        width: 55% !important;
    }
    
    .woocommerce div.product div.summary {
        flex: 0 0 40% !important;
        width: 40% !important;
    }
    
    /* Ensure sticky positioning works at smaller widths */
    .woocommerce div.product div.summary.is-sticky {
        width: var(--sticky-width) !important;
    }
    
    .woocommerce div.product div.summary.is-parked {
        width: var(--park-width) !important;
    }
}

/* Gallery column - responsive width */
.custom-product-masonry {
    flex: 0 0 65% !important;
    width: 65% !important;
}

/* Product summary - ZERO transitions, smooth positioning */
.woocommerce div.product div.summary {
    flex: 0 0 30% !important;
    width: 30% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5 !important;
    align-self: flex-start !important;
    transition: none !important;
    transform: none !important;
}

/* Summary padding fix */
.summary.entry-summary {
    padding-top: 20px !important;
}

/* Sticky state - maintains EXACT screen coordinates */
.woocommerce div.product div.summary.is-sticky {
    position: fixed !important;
    top: var(--sticky-top) !important;
    left: var(--sticky-left) !important;
    width: var(--sticky-width) !important;
    z-index: 5 !important;
    transition: none !important;
    transform: none !important;
}

/* Parked state - positioned relative to product container */
.woocommerce div.product div.summary.is-parked {
    position: absolute !important;
    top: var(--park-top) !important;
    left: var(--park-left) !important;
    width: var(--park-width) !important;
    z-index: 5 !important;
    transition: none !important;
    transform: none !important;
}

/* Tabs section */
.woocommerce-tabs {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 3 !important;
    margin-top: 80px !important;
    position: relative !important;
    background: white !important;
    padding-top: 40px !important;
    z-index: 1 !important;
}

/* Related products */
.related.products {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 4 !important;
    margin-top: 40px !important;
}

/* Hide any remaining related products sections */
.related.products,
.woocommerce .related.products,
.single-product .related.products,
.products.related {
    display: none !important;
}

/* ========================================
   MASONRY IMAGE GALLERY SYSTEM
   ======================================== */
.custom-product-masonry {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Full-width images (first image and landscape images) */
.masonry-image-fullwidth,
.masonry-image-1 {
    grid-column: 1 / -1 !important;
}

/* Individual gallery images */
.masonry-image {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

.masonry-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 0px !important;
}

.masonry-image:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.masonry-image:hover img {
    transform: scale(1.03) !important;
}

/* Hover effect for masonry images */
.masonry-image.lightbox-trigger {
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
}

.masonry-image.lightbox-trigger:hover {
    transform: scale(1.02) !important;
}

/* Zoom icon overlay */
.lightbox-overlay-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

.masonry-image.lightbox-trigger:hover .lightbox-overlay-icon {
    opacity: 1 !important;
}

/* ========================================
   LIGHTBOX GALLERY SYSTEM
   ======================================== */
.krisette-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 9999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.krisette-lightbox.active {
    display: flex !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

.lightbox-container {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: lightboxSlideIn 0.3s ease-out !important;
}

.lightbox-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Navigation buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #333 !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

.lightbox-close {
    top: 30px !important;
    right: 30px !important;
    font-size: 32px !important;
    line-height: 1 !important;
}

.lightbox-prev {
    left: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
}

.lightbox-next {
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

.lightbox-counter {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    z-index: 10000 !important;
}

/* Lightbox image */
.lightbox-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
    border-radius: 0px !important;
}

/* Lightbox animations */
@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive lightbox adjustments */
@media (orientation: portrait) {
    .lightbox-image {
        max-height: 100% !important;
        width: auto !important;
    }
}

@media (orientation: landscape) {
    .lightbox-image {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* SUCCESS MESSAGES */
.woocommerce-message[role="alert"] {
    padding-top: 20px !important;
    padding-left: 50px !important;
}

.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value {
    display: none !important;
}

/* PRODUCT ESTIMATED DELIVERY (if using custom fields) */
.wpced.wpced-product {
    order: -1;
    margin: 20px 0 25px 0 !important;
    padding: 15px !important;
    background: #f8f8f8;
    border-left: 3px solid #8B4513;
    font-style: normal;
}

/* ========================================
   PRODUCT DETAILS STYLING
   ======================================== */

/* Hide the duplicate description in tabs panel - keep only short description */
.woocommerce-Tabs-panel.woocommerce-Tabs-panel--description {
    display: none !important;
}

.woocommerce div.product .product_title {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 300 !important;
    color: #2c2c2c !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
}

/* Product Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #8B4513 !important;
    margin-bottom: 2rem !important;
}

.woocommerce div.product .price del {
    color: #666 !important;
    opacity: 0.7 !important;
}

.woocommerce div.product .price ins {
    text-decoration: none !important;
    background: none !important;
}

/* Product Variations Table */
.woocommerce div.product table.variations {
    margin-bottom: 2rem !important;
    border: none !important;
    display: table !important;
    width: 100% !important;
    background: none !important;
    border-collapse: collapse !important;
}

.woocommerce div.product .variations tr {
    border: none !important;
    background: none !important;
    display: table-row !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product .variations th,
.woocommerce div.product .variations td {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: table-cell !important;
    vertical-align: top !important;
    text-align: left;
}

.woocommerce div.product .variations th {
    padding-right: 20px !important;
    padding-bottom: 15px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Force variation table headers to be visible */
.woocommerce div.product .variations th.label {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    color: #2c2c2c !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
    min-width: auto !important;
    padding: 0 !important;
    vertical-align: top !important;
    padding-bottom: 15px !important;
}

/* Show variation labels clearly */
.woocommerce div.product .variations th.label label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    color: #2c2c2c !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Style the selected variation value indicator */
.woocommerce div.product .variations .cfvsw-selected-label {
    display: inline-block !important;
    margin-left: 10px !important;
    font-weight: 600 !important;
    color: #8B4513 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Add colon or separator between label and selected value */
.woocommerce div.product .variations .cfvsw-selected-label:before {
    content: ": " !important;
    color: #666 !important;
    font-weight: 400 !important;
}

/* Variation options container - on separate line */
.woocommerce div.product .variations .value {
    display: block !important;
    width: 100% !important;
}

/* ========================================
   DESKTOP SWATCH SINGLE-ROW LAYOUT
   ======================================== */
@media (min-width: 769px) {
    /* Force swatches to stay on single row in desktop mode only */
    .woocommerce div.product .variations .cfvsw-swatches-container {
        flex-wrap: nowrap !important;
    }
}

/* Individual variation buttons/selects */
.woocommerce div.product .variations select,
.woocommerce div.product .variations .variation-selector {
    border: 2px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    background: white !important;
    color: #2c2c2c !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    margin-bottom: 8px !important;
}

/* Remove margin from variation disable logic plugin */
.cfvsw-variation-disable-logic {
    margin-bottom: 0 !important;
}

/* Target the variations table specifically */
.woocommerce div.product .variations.cfvsw-variation-disable-logic {
    margin-bottom: 0 !important;
}

/* Also target any general variations table margin */
.woocommerce div.product table.variations {
    margin-bottom: 0 !important;
}

.woocommerce div.product .variations select:focus {
    border-color: #8B4513 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1) !important;
}

/* Variation Buttons */
.woocommerce div.product .variations .variation-button {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 0 8px 8px 0 !important;
    border: 2px solid #f0f0f0 !important;
    border-radius: 8px !important;
    background: white !important;
    color: #2c2c2c !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce div.product .variations .variation-button:hover,
.woocommerce div.product .variations .variation-button.selected {
    border-color: #8B4513 !important;
    background: #8B4513 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* ========================================
   QUANTITY SELECTOR - Inline layout
   ======================================== */
.woocommerce div.product .quantity {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Show and style the quantity label - inline */
.woocommerce div.product .quantity label {
    display: inline-block !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    min-width: 100px !important;
    height: auto !important;
    font-weight: 500 !important;
    color: #2c2c2c !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 20px 0 0 !important;
    padding: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

/* Override screen-reader-text class specifically for quantity label */
.woocommerce div.product .quantity label.screen-reader-text {
    position: static !important;
    width: auto !important;
    min-width: 100px !important;
    height: auto !important;
    margin: 0 20px 0 0 !important;
    padding: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    display: inline-block !important;
    visibility: visible !important;
    font-weight: 500 !important;
    color: #2c2c2c !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

.woocommerce div.product .quantity .qty {
    display: inline-block !important;
    border: 2px solid #f0f0f0 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    background: white !important;
    color: #2c2c2c !important;
    font-size: 0.9rem !important;
    width: 80px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-left: 0 !important;
}

/* Keep default spinner arrows visible for better usability */
.woocommerce div.product .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product .quantity .qty::-webkit-inner-spin-button {
    opacity: 1 !important;
    height: auto !important;
}

.woocommerce div.product .quantity .qty[type=number] {
    -moz-appearance: auto !important;
    appearance: auto !important;
}

/* Focus state - clean and simple */
.woocommerce div.product .quantity .qty:focus {
    border-color: #818589 !important;
    box-shadow: 0 0 0 1px rgba(139, 69, 19, 0.2) !important;
    outline: none !important;
}

/* WooCommerce Block quantity selectors */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    min-width: 30px !important;
}

.wc-block-components-quantity-selector__input {
    order: 1 !important;
    margin-right: 0px !important;
    font-size: 0.75rem !important;
    color: #2c2c2c !important;
}

.wc-block-components-quantity-selector__button--minus {
    order: 2 !important;
    margin-right: 0px !important;
}

.wc-block-components-quantity-selector__button--plus {
    order: 3 !important;
}

/* Hide Stripe Express Checkout on Product Pages Only */
.single-product #wc-stripe-express-checkout-element,
.woocommerce div.product #wc-stripe-express-checkout-element,
.product-template-default #wc-stripe-express-checkout-element {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* All Stripe Express Checkout styling removed - buttons are hidden on product pages */

/* Ensure the cart form has proper flex ordering */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
}

/* Add to Cart Button */
.woocommerce div.product .cart .single_add_to_cart_button {
    background: linear-gradient(135deg, #000000, #000000) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    order: 1 !important; /* Place after Express Checkout */
}

.woocommerce div.product .cart .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3) !important;
}

.woocommerce div.product .cart .single_add_to_cart_button:active {
    transform: translateY(0) !important;
}

/* Remove background from cart container */
.woocommerce div.product .cart {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
    border: none !important;
}

/* Align quantity and add to cart button horizontally */
.woocommerce div.product form.cart .quantity {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    display: inline-block !important;
    vertical-align: middle !important;
}

.single_add_to_cart_button {
    padding-left: 35px !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
}

.variations_button {
    margin-top: 30px !important;
}

/* PRODUCT META (Hide SKU and Categories) */
.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as,
.woocommerce div.product .product_meta,
.single-product .product_meta {
    display: none !important;
}

/* Product Description Collapsible Section */
.product-description-wrapper {
    margin-bottom: 2.5rem !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.3s ease !important;
}

.product-description-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.product-description-header {
    padding: 18px 24px !important;
    background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    border-bottom: 1px solid #e8e8e8 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

.product-description-header:hover {
    background: linear-gradient(135deg, #f0f2f5, #f8f9fa) !important;
}

.product-description-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding-bottom: 0px !important;
}

.product-description-toggle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #e8e8e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.product-description-toggle::before {
    content: '+' !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #666 !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.product-description-wrapper.expanded .product-description-toggle {
    background: #2c2c2c !important;
    border-color: #2c2c2c !important;
    transform: rotate(180deg) !important;
}

.product-description-wrapper.expanded .product-description-toggle::before {
    content: '−' !important;
    color: #ffffff !important;
}

.product-description-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-description-wrapper.expanded .product-description-content {
    max-height: 500px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #666 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    padding: 24px !important;
    background: #ffffff !important;
}

/* Stock Status */
.woocommerce div.product .stock {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
}

.woocommerce div.product .stock.in-stock {
    color: #27ae60 !important;
}

.woocommerce div.product .stock.out-of-stock {
    color: #e74c3c !important;
}

/* Product Rating */
.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 1.5rem !important;
}

.woocommerce div.product .star-rating {
    color: #D4AF37 !important;
}

.woocommerce div.product .woocommerce-review-link {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    margin-left: 10px !important;
}

.woocommerce div.product .woocommerce-review-link:hover {
    color: #8B4513 !important;
}

/* ========================================
   YOU MIGHT ALSO LIKE SECTION
   ======================================== */
.you-might-also-like-section {
    width: 100vw !important;
    order: 5 !important;
    margin: 60px calc(-50vw + 50%) !important;
    padding: 60px 20px !important;
    background-color: #f5f5f5 !important;
    clear: both !important;
    position: relative !important;
}

.you-might-also-like-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 50px;
    color: #333;
    letter-spacing: 0.5px;
}

.you-might-also-like-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.you-might-also-like-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.you-might-also-like-item:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-container {
    width: 100%;
    max-width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.you-might-also-like-item:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ========================================
   MOBILE RESPONSIVE LAYOUT
   ======================================== */
@media (max-width: 768px) {
    /* Hide woocommerce tabs completely on mobile */
    .woocommerce-tabs {
        display: none !important;
    }

    /* Product details - disable all sticky behavior on mobile */
    .woocommerce div.product div.summary {
        flex: none !important;
        width: 100vw !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        order: 2 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        z-index: auto !important;
    }

    /* Force static positioning on mobile */
    .woocommerce div.product div.summary.is-sticky,
    .woocommerce div.product div.summary.is-parked {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100vw !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .woocommerce-tabs {
        margin-top: 30px !important;
        order: 3 !important;
    }
    
    /* Hide the existing masonry gallery on mobile only */
    .custom-product-masonry {
        display: none !important;
    }
    
    /* Mobile Gallery Container - only exists on mobile */
    .mobile-product-gallery {
        display: block !important;
        width: 100vw !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 0 !important;
        position: relative !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    
    /* Gallery Slider Container */
    .mobile-gallery-slider {
        position: relative !important;
        width: 100% !important;
        height: 60vh !important;
        max-height: 400px !important;
        min-height: 300px !important;
        overflow: hidden !important;
        background: #f8f8f8 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Image Track */
    .mobile-gallery-track {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        transition: transform 0.3s ease !important;
        will-change: transform !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        position: relative !important;
    }
    
    /* Individual Image Containers */
    .mobile-gallery-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f8f8 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    
    /* Images - show entire image with proper centering */
    .mobile-gallery-slide img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        cursor: pointer !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        margin: 0 auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -ms-interpolation-mode: nearest-neighbor !important;
    }
    
    /* ARROW NAVIGATION STYLES */
    .mobile-gallery-arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        border: none !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 10 !important;
        transition: all 0.3s ease !important;
        opacity: 0.8 !important;
        backdrop-filter: blur(4px) !important;
    }
    
    .mobile-gallery-arrow:hover,
    .mobile-gallery-arrow:active {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }
    
    .mobile-gallery-arrow.prev {
        left: 15px !important;
    }
    
    .mobile-gallery-arrow.next {
        right: 15px !important;
    }
    
    /* Hide arrows when there's only one image */
    .mobile-gallery-slider.single-image .mobile-gallery-arrow {
        display: none !important;
    }
    
    /* Arrow icons using CSS */
    .mobile-gallery-arrow.prev::before {
        content: "‹" !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }
    
    .mobile-gallery-arrow.next::before {
        content: "›" !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }
    
    /* Dots Navigation */
    .mobile-gallery-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px 0 !important;
        gap: 8px !important;
        background: #ffffff !important;
        margin: 0 !important;
        margin-top: -5px !important;
        position: relative !important;
        z-index: 10 !important;
        clear: both !important;
        width: 100% !important;
        box-shadow: 0 -5px 0 #ffffff !important;
    }
    
    .mobile-gallery-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: #d1d1d1 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-gallery-dot.active {
        background: #333333 !important;
        transform: scale(1.2) !important;
    }
    
    .mobile-gallery-dot:hover {
        background: #666666 !important;
    }
    
    /* Hide dots when there's only one image */
    .mobile-gallery-slider.single-image + .mobile-gallery-dots {
        display: none !important;
    }
}

/* Mobile responsive - quantity and other adjustments */
@media (max-width: 768px) {
    .woocommerce div.product .quantity .qty {
        width: 60px !important;
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
    }
    
    /* Stripe Express Checkout - Mobile */
    #wc-stripe-express-checkout-element {
        padding: 15px !important;
        margin-bottom: 1.5rem !important;
    }
    
    #wc-stripe-express-checkout-element .wc-stripe-express-checkout-button-container,
    #wc-stripe-express-checkout-element .payment-method-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #wc-stripe-express-checkout-element button,
    #wc-stripe-express-checkout-element .apple-pay-button,
    #wc-stripe-express-checkout-element .google-pay-button,
    #wc-stripe-express-checkout-element .payment-request-button,
    #wc-stripe-express-checkout-element [class*="payment-button"] {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Mobile responsive for collapsible description */
    .product-description-header {
        padding: 16px 20px !important;
    }
    
    .product-description-title {
        font-size: 1rem !important;
        padding-bottom: 0rem !important;
    }
    
    .product-description-toggle {
        width: 22px !important;
        height: 22px !important;
    }
    
    .product-description-toggle::before {
        font-size: 14px !important;
    }
    
    .woocommerce div.product .woocommerce-product-details__short-description {
        padding: 20px !important;
        font-size: 1rem !important;
    }
    
    .you-might-also-like-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-image-container {
        max-width: 200px;
        height: 200px;
    }
    
    .you-might-also-like-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Small mobile - 1 column */
@media (max-width: 480px) {
    .you-might-also-like-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-container {
        max-width: 250px;
        height: 250px;
    }
}

/* Large tablets - 2 columns */
@media (max-width: 1200px) {
    .you-might-also-like-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

