

/* ========================================
   HERO IMAGE FULL-WIDTH STYLING
   Makes only the first/hero cover block extend across entire viewport
   ======================================== */

/* Make only the FIRST cover block (hero) extend to full viewport width */
.site-main > .wp-block-cover.alignfull:first-child,
.entry-content > .wp-block-cover.alignfull:first-child,
.inside-article > .wp-block-cover.alignfull:first-child {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Ensure first cover blocks break out of container constraints */
.inside-article .wp-block-cover.alignfull:first-child,
.entry-content .wp-block-cover.alignfull:first-child {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Handle nested container scenarios for first cover block only */
.inside-article .wp-block-group__inner-container .wp-block-cover.alignfull:first-child,
.inside-article .wp-block-group-is-layout-constrained .wp-block-cover.alignfull:first-child,
.entry-content .wp-block-group__inner-container .wp-block-cover.alignfull:first-child,
.entry-content .wp-block-group-is-layout-constrained .wp-block-cover.alignfull:first-child {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Alternative approach - target hero covers specifically */
.wp-block-cover.alignfull:first-of-type {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Stripe Express Checkout - see product.css for styling */

.wpced.wpced-product {
    order: -1;
    margin: 20px 0 25px 0 !important;
    padding: 15px !important;
    background: #f8f8f8;
    border-left: 3px solid #8B4513;
    font-style: normal;
}


/* ========================================
   MOVE QUANTITY +/- BUTTONS TO THE RIGHT
   Target the quantity selector buttons
======================================== */

/* METHOD 1: Look for WooCommerce quantity selector buttons */
.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;
}

/* METHOD 2: Target traditional WooCommerce quantity buttons */
.quantity {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

.quantity input[type="number"] {
    order: 1 !important;
    margin-right: 10px !important;
    flex: 0 0 auto !important;
    grid-column: 1 !important;
}

/* METHOD 3: Target by button symbols */
button[aria-label*="Increase"],
button[aria-label*="Reduce"] {
    order: 3 !important;
    margin-left: 5px !important;
}

input[aria-label*="quantity"] {
    order: 1 !important;
    margin-right: 10px !important;
}



.variations_form .quantity input {
    order: 1 !important;
    margin-right: 10px !important;
}

.variations_form .quantity button,
.variations_form .quantity .button {
    order: 2 !important;
    margin-left: 5px !important;
}



/* METHOD 8: Grid layout approach */
.quantity {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 22px !important;
    align-items: center !important;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
    padding-left: 0px !important;
    padding-right: 0px !important;
}


/* Hide the first instance of product description */
.summary .woocommerce-product-details__short-description:not(.krisette-collapsible-description .woocommerce-product-details__short-description) {
    display: none !important;
}



.woocommerce-tabs {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 60px !important;
    order: 3 !important;
    position: relative !important;
    z-index: 10 !important;
    background: white !important;
}


.js-sticky-control .summary-should-stop {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
}

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

/* Ultra Compact Product Image Styling */
.woocommerce ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0px;
}

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



/* Hide individual elements if you want more control */
.sku_wrapper,
.posted_in {
    display: none !important;
}


/* Hide all product attributes and variations on shop page */
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .product-attributes,
.woocommerce ul.products li.product .attribute-label,
.woocommerce ul.products li.product .attribute-swatches,
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .single_variation_wrap,
.woocommerce ul.products li.product .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* Hide Select Options button - keep only Add to Cart for simple products */
.woocommerce ul.products li.product .button.product_type_variable {
    display: none !important;
}

/* Minimal Product Content - Title and Price Only */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0.6rem 0 0.3rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Minimal Price Styling */
.woocommerce ul.products li.product .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 0.5rem;
}

/* Remove Add to Cart button from shop page */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.ajax_add_to_cart {
    display: none !important;
}

/* Make entire product card clickable */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:hover {
    opacity: 0.9;
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
}

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

/* Remove all button styling since buttons are hidden */

/* Select Options Button */
.woocommerce ul.products li.product .product_type_variable {
    background: linear-gradient(135deg, #2c2c2c 0%, #404040 100%);
}

.woocommerce ul.products li.product .product_type_variable:hover {
    background: linear-gradient(135deg, #404040 0%, #2c2c2c 100%);
}

/* Conflicting tablet layout moved to product.css with corrected 1350px breakpoint */

/* =================================================================
   MOBILE PRODUCT LAYOUT FIX - CORRECT STACKING ON NARROW SCREENS
   Add this CSS to Appearance > Customize > Additional CSS
   ================================================================= */

/* Override the existing problematic mobile CSS */
@media (max-width: 480px) {
    
    /* FORCE VERTICAL STACKING ON VERY NARROW SCREENS */
        display: flex !important;
        flex-direction: column !important; /* Stack vertically */
        align-items: stretch !important;
        gap: 20px !important;
        padding: 10px !important;
    }
    
    /* Product gallery - stays at top */
    .mobile-product-gallery {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        flex: none !important;
    }
    
    /* Product summary - second */
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 20px !important;
        margin: 0 !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        
    
    /* Product description - third (below summary) */
    .woocommerce-tabs {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 20px !important;
        background: white !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
        box-sizing: border-box !important;
        
        /* Force visibility */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide tab navigation on mobile since we're showing description directly */
    .woocommerce-tabs ul.tabs {
        display: none !important;
    }
    
    /* Force the description tab panel to show */
    .woocommerce-tabs .woocommerce-Tabs-panel--description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide other tab panels */
    .woocommerce-tabs .woocommerce-Tabs-panel:not(.woocommerce-Tabs-panel--description) {
        display: none !important;
    }
    
    /* Style the description content */
    .woocommerce-tabs .woocommerce-Tabs-panel h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        border-bottom: 2px solid #8B4513 !important;
        padding-bottom: 10px !important;
    }
    
    .woocommerce-tabs .woocommerce-Tabs-panel p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        color: #666 !important;
    }
    
    /* You might also like section - last */
    .you-might-also-like-section {
        order: 4 !important;
        margin-top: 30px !important;
    }
    


/* Slightly wider mobile screens - maintain side-by-side */
@media (min-width: 481px) and (max-width: 799px) {
    
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
    }
    

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

    .mobile-gallery-dots {
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        min-height: 20px !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        min-height: 10px !important;
        height: auto !important;
        box-sizing: border-box !important;
    } 



/* Ensure images scale properly for different orientations */
@media (orientation: portrait) {
    .lightbox-image {
        max-height: 100% !important;
        width: auto !important;
    }
}

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

/* =================================================================
   KRISETTE & CO. - LUXURY SHOP PAGE ENHANCEMENTS
   Custom CSS for GeneratePress + WooCommerce
   ================================================================= */

/* Ultra Compact Product Grid Layout - All 5 Products Fully Visible */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.8rem !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    max-width: 1400px;
    margin: 0 auto !important;
}

.woocommerce-shop .wpced-inner {
    display: none !important;
}

.woocommerce-shop .wpced.wpced-product.wpced-default {
    display: none !important;
}

/* Hide undefined text */
.woocommerce-LoopProduct-link:has(.cfvsw_variations_form) {
    font-size: 0;
}

/* Flat Product Card Styling - No Shadows */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: transparent;
    border-radius: 0px;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: none;
    box-shadow: none;
    border: none;
}

/* Ultra Compact Product Image Styling */
.woocommerce ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0px;
}

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



/* Hide individual elements if you want more control */
.sku_wrapper,
.posted_in {
    display: none !important;
}

/* Hide all product attributes and variations on shop page */
.woocommerce ul.products li.product .variations,
.woocommerce ul.products li.product .product-attributes,
.woocommerce ul.products li.product .attribute-label,
.woocommerce ul.products li.product .attribute-swatches,
.woocommerce ul.products li.product .variations_form,
.woocommerce ul.products li.product .single_variation_wrap,
.woocommerce ul.products li.product .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* Hide Select Options button - keep only Add to Cart for simple products */
.woocommerce ul.products li.product .button.product_type_variable {
    display: none !important;
}

/* Minimal Product Content - Title and Price Only */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0.6rem 0 0.3rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Minimal Price Styling */
.woocommerce ul.products li.product .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 0.5rem;
}

/* Remove Add to Cart button from shop page */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.ajax_add_to_cart {
    display: none !important;
}


/* Select Options Button */
.woocommerce ul.products li.product .product_type_variable {
    background: linear-gradient(135deg, #2c2c2c 0%, #404040 100%);
}

.woocommerce ul.products li.product .product_type_variable:hover {
    background: linear-gradient(135deg, #404040 0%, #2c2c2c 100%);
}

/* Sustainability Badge (Add via functions.php or plugin) */
.sustainability-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 2;
    text-transform: uppercase;
}

/* Shop Page Header - Compact */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f6f3 0%, #ede7e0 100%);
    border-radius: 0;
    
    /* Full width extension */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    width: 100vw;
    box-sizing: border-box;
}

.woocommerce-products-header__title {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Product Sorting and Results Count - Compact */
.woocommerce-ordering,
.woocommerce-result-count {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.woocommerce-ordering select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    background: white;
    transition: border-color 0.3s ease;
    font-size: 0.9rem;
}

.woocommerce-ordering select:focus {
    border-color: #8b4513;
    outline: none;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    min-height: 50px;
    min-width: 50px;
    line-height: 50px;
    text-align: center;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Product Categories */
.woocommerce .widget_product_categories ul li a {
    color: #666;
    transition: color 0.3s ease;
    font-family: 'Georgia', serif;
}

.woocommerce .widget_product_categories ul li a:hover {
    color: #8b4513;
}

/* Remove all swatch styling since swatches are hidden */

/* Responsive Design for Compact Layout */
@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    
    .woocommerce ul.products li.product img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
    }
    
    .woocommerce ul.products li.product img {
        height: 160px;
    }
    
    .woocommerce-products-header__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce ul.products li.product img {
        height: 220px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem;
    }
    
    .woocommerce ul.products li.product .price {
        margin: 0 0 1rem;
    }
}



/* Loading Animation for Images */
.woocommerce ul.products li.product img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Enhanced Focus States for Accessibility */
.woocommerce ul.products li.product:focus-within {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

.woocommerce ul.products li.product .button:focus {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* Coffee-themed subtle background pattern (optional) */
.woocommerce ul.products::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =================================================================
   KRISETTE & CO. - RETURNS POLICY & PRIVACY POLICY PAGE
   Custom CSS for GeneratePress + WooCommerce
   ================================================================= */

.wp-block-columns .returns-policy-column-padding {
    padding: 2rem 2rem !important;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-columns .returns-policy-column-padding {
        padding: 1rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .wp-block-columns .returns-policy-column-padding {
        padding: 0.75rem 1rem !important;
    }
}

/* =================================================================
   KRISETTE & CO. - ABOUT US
   Custom CSS for GeneratePress + WooCommerce
   ================================================================= */

@media (max-width: 780px) {
    .wp-block-group__inner-container.is-layout-flow wp-block-group-is-layout-flow {
        padding: 10px !important;
    }
    .about-us-mobile-only-spacer {
        display: block !important;
    }

}

.about-us-mobile-only-spacer {
    display: none;
}


/* =================================================================
   KRISETTE & CO. - RETURNS POLICY & PRIVACY POLICY PAGE
   Custom CSS for GeneratePress + WooCommerce
   ================================================================= */

.materials-cover-text {
    position: relative;
    margin-top: -250px !important;
    z-index: 2; /* Lower numbers, but still layered correctly */
}

.choose-your-brew-header {
    margin-left: -10px !important;
}

@media (min-width: 0px) {
    .choose-your-brew-header {
        margin-left: 0px !important;
    }
}
choose-your-brew-header

.still-not-sure-cover-text {
    position: relative;
    margin-top: -350px !important;
    z-index: 2; /* Lower numbers, but still layered correctly */
}

/* =================================================================
   KRISETTE & CO. - DESKTOP HEADER GAP FIX
   Remove the space between header and hero image on desktop only
   ================================================================= */

/* STEP 1: Remove the debug CSS first, then add this fix */

/* Desktop only fix - targets the content containers creating the gap */
@media (min-width: 769px) {
    
    /* Remove top padding/margin from content containers */
    .site-content,
    #content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove top padding/margin from content area */
    .content-area,
    #primary {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force main content to start immediately */
    .site-main,
    #main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove any default spacing from the site container */
    .site,
    #page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure the first content block (your hero) starts immediately */
    .site-main > *:first-child,
    .entry-content > *:first-child,
    .page-content > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force your hero cover block to connect to header */
    .wp-block-cover:first-child,
    .wp-block-group:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* GeneratePress specific container fixes */
    .inside-article {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .inside-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* WordPress site blocks container */
    .wp-site-blocks {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Additional safety - remove any theme default spacing */
    .hfeed {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* =================================================================
   KRISETTE & CO. - FAQ PAGE
   Custom CSS for GeneratePress + WooCommerce
   ================================================================= */

.FAQ-header-text{
    position: relative;
    margin-top: -225px !important;
    z-index: 2; /* Lower numbers, but still layered correctly */
}