/* Breadcrumb Styles - Match Collection Pages */
.breadcrumb {
    background-color: white;
    padding: 12px 0;
    margin-bottom: 0;
    margin-top: 95px; /* Account for fixed navbar on mobile */
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .breadcrumb {
        margin-top: 95px;
    }
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline animation effect */
.breadcrumb a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #0B2341;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.breadcrumb a:hover {
    color: #0B2341;
}

.breadcrumb a:hover::before {
    width: 100%;
}

/* Closing animation - shrinks from edges toward center */
.breadcrumb a:not(:hover)::before {
    width: 0;
    transition: width 0.4s ease;
}

.breadcrumb span {
    color: #6c757d;
    margin: 0 8px;
}

.breadcrumb .separator {
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Modern Product Detail Styles */
.product-detail {
    padding: 2rem 1rem;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Consolidated Mobile Responsive Layout */

.product-layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.product-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    align-self: start;
    height: fit-content;
}

/* ABSOLUTE STICKY ENFORCEMENT - DESKTOP ONLY */
@media (min-width: 761px) {
    /* Ensure no parent containers break sticky */
    body, html, .container, .product-detail, .product-layout {
        overflow: visible !important;
        contain: none !important;
    }
    
    /* Force sticky positioning on left column */
    .product-left-column {
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start !important;
        height: fit-content !important;
        z-index: 50 !important;
        will-change: auto !important;
    }
    
    /* Ensure sticky works regardless of any state */
    .product-left-column,
    .product-left-column:hover,
    .product-left-column:focus,
    .product-left-column:active,
    body .product-left-column,
    body:hover .product-left-column,
    body:focus .product-left-column,
    body:active .product-left-column,
    body:has(*:hover) .product-left-column,
    body:has(*:focus) .product-left-column,
    body:has(*:active) .product-left-column,
    body:has(input:focus) .product-left-column,
    body:has(button:focus) .product-left-column,
    body:has(button:active) .product-left-column {
        position: sticky !important;
        top: 80px !important;
        z-index: 50 !important;
    }
}

/* Tablet responsive layout at 760px */
@media (max-width: 760px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-left-column {
        position: static !important;
        width: 100%;
        max-width: 100%;
    }
    
    .product-info {
        width: 100%;
        max-width: 100%;
        order: 2;
    }
    
    .main-image {
        max-height: 400px;
    }
    
    .thumbnail-gallery {
        justify-content: center;
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Ensure NO sticky positioning on mobile and tablet */
@media (max-width: 768px) {
    .product-left-column {
        position: static !important;
        position: relative !important;
    }
}

/* Ensure container maintains positioning context */
.product-layout {
    position: relative;
}
    
/* Features section styling */
.product-features {
    position: relative;
    margin-top: 40px;
}

/* Image Navigation Arrows */
.main-image {
    position: relative;
}

/* Hide ALL navigation arrows/buttons in main product image */
.main-image .image-nav-arrow,
.main-image > div,
.main-image > button {
    display: none !important;
}

.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(8, 26, 48, 0.7); /* Dark blue with transparency */
    color: white;
    display: none !important; /* Hide arrows on main product page */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    user-select: none;
}

.image-nav-arrow:hover {
    background: rgba(8, 26, 48, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-arrow.left-arrow {
    left: 10px;
}

.image-nav-arrow.right-arrow {
    right: 10px;
}

/* Show arrows on main image hover */
.main-image:hover .image-nav-arrow {
    opacity: 1;
}

/* Mobile touch-friendly arrows */
@media (max-width: 768px) {
    .image-nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .image-nav-arrow.left-arrow {
        left: 5px;
    }
    
    .image-nav-arrow.right-arrow {
        right: 5px;
    }
}

/* Lifestyle images within product-left-column (sticky container) */
.product-left-column .lifestyle-images {
    margin-top: 1.5rem;
}

.product-left-column .lifestyle-image {
    width: 100%;
    max-width: 100%;
    height: 550px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-left-column .lifestyle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lifestyle Section - For video section only */
.lifestyle-section {
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 200vh;
    position: relative;
}



/* Make sure calculator and project details flow normally without sticky positioning */
.calculator-section {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.calculator-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-details-section {
    background: white;
    padding: 1.5rem;
    
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.project-details-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-tabs {
    background: white;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: none;
    transition: all 0.3s ease;
}

/* Enhanced calculator header styling */
.calculator-header {
    background: linear-gradient(135deg, #081a30 0%, #0a1e36 100%);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator-header:hover {
    background: linear-gradient(135deg, #0a1e36 0%, #0c223c 100%);
}

.calculator-content {
    padding: 0;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.calculator-content.expanded {
    max-height: none !important;
    height: auto !important;
    padding: 1.25rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
}

.calculator-toggle {
    transition: transform 0.3s ease;
}

.calculator-toggle.expanded {
    transform: rotate(180deg);
}

/* Removed sticky positioning completely */

@media (max-width: 568px) {
    /* Complete mobile reset */
    .product-detail {
        padding: 1rem 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: visible;
        box-sizing: border-box;
    }
    
    /* Hide lifestyle images and videos on mobile */
    .lifestyle-images,
    .lifestyle-image,
    .product-video {
        display: none !important;
    }
    
    .product-layout {
        display: block; /* Remove grid completely on mobile */
        width: 100%;
        padding: 0 1rem;
        margin: 0;
        box-sizing: border-box;
    }
    
    .product-left-column,
    .product-info {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }
    
    .product-gallery {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .main-image {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 100% !important;
        position: relative !important;
        order: 1;
        overflow: hidden !important;
        margin: 0 0 0.25rem 0 !important;
        display: block !important;
    }
    
    .main-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .thumbnail-gallery {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0.5rem;
        padding: 0 0 0.5rem 0;
        margin-top: 0.15rem !important;
        order: 2;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
        scroll-snap-type: x mandatory; /* Snap to thumbnails */
        scroll-behavior: smooth; /* Smooth scrolling */
    }
    
    .thumbnail-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important; /* Ensure minimum width */
        flex-shrink: 0 !important; /* NEVER shrink - all images visible */
        border: 2px solid transparent !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        cursor: pointer !important;
        transition: border-color 0.2s ease !important;
        position: relative !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start; /* Snap alignment */
    }
    
    .thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .thumbnail.active {
        border-color: #081a30 !important;
    }
}

/* Modern Product Gallery */
.product-gallery {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 80px;
    width: 80px;
    flex-shrink: 0;
    order: 1;
    margin: 0;
    padding: 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.thumbnail.active {
    border-color: #0B2341;
}

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

.main-image {
    width: calc(100% - 96px);
    max-width: 800px;
    height: 550px;
    overflow: hidden;
    order: 2;
    cursor: zoom-in;
    flex-shrink: 1;
    margin: 0;
    position: relative;
}


.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* Image Navigation Arrows */
.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #081a30;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: none !important; /* Hide arrows on main product page */
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.image-nav-arrow:hover {
    background: #0d2747;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Lifestyle Images - Now in separate section */
.lifestyle-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.lifestyle-image {
    width: 100%;
    max-width: 100%;
    height: 550px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lifestyle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Video Section */
.product-video {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    box-sizing: border-box;
}

.product-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Modern Product Info - Removed duplicate as it's now in the layout section */

.product-header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    text-align:left;
    margin-top:10px;
}

.collection-name {
    font-size: 1.25rem;
    color: #666;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    text-decoration: none;
     
}

/* Underline animation effect for collection name - starts full, closes on hover */
.collection-name::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #0B2341;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.collection-name:hover {
    color: #0B2341;
}

.collection-name:hover::before {
    width: 0;
}

/* Default state - full underline */
.collection-name:not(:hover)::before {
    width: 100%;
    transition: width 0.4s ease;
}

/* Also apply to product-collection class for consistency */
.product-collection {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    text-decoration: none;
    
    
}

.product-collection::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #0B2341;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.product-collection:hover {
    color: #0B2341;
}

.product-collection:hover::before {
    width: 0;
}

.product-collection:not(:hover)::before {
    width: 100%;
    transition: width 0.4s ease;
}

.product-category {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Star Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffa500;
    font-size: 1.2rem;
}

.star.empty {
    color: #ddd;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.5rem;
}

/* Product Features */
.product-features {
    margin: 1.5rem 0;
    padding: 24px;
    padding-bottom: 2rem;
    border-radius: 10px;
    background: #f8f9fb;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "•";
    color: #0B2341;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Color Swatches */
.color-swatches {
    margin: 0.5rem 0 1.5rem 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    margin: 1.5rem 0 1rem 0;
    width: 100%;
}

.swatch-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.color-swatches h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7a7a7a;
    margin: 0 0 1rem 0;
    text-align:left;
}

.swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.color-swatch {
    width: 60px;
    height: 60px;
    
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}

/* Custom tooltip for color swatches */
.color-swatch::before {
    content: attr(data-color-name);
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
   
    background: white;
    color: rgba(8, 26, 48, 0.95);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.color-swatch:hover::before {
    opacity: 1;
    visibility: visible;
}

.color-swatch.active {
    border-color: #0B2341;
    box-shadow: 0 0 0 2px rgba(11, 35, 65, 0.2);
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-pricing {
    margin-top:-20px!important;
    margin: 10px 0;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid #eee;
}

.price-per-sqft .price,
.price-per-box .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0B2341;
}

.price-per-sqft .unit,
.price-per-box .unit {
    font-size: 1rem;
    color: #666;
    margin-left: 0.25rem;
}

.product-size {
    font-size: 1rem;
    color: #666;
    padding: 0.5rem 0;
}

.product-size strong {
    color: #333;
    font-weight: 600;
}

.product-size-inline {
    font-size: 0.8rem;
    color: #888;
    margin-left: 20px;
    font-weight: normal;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        flex-direction: column;
    }
    
    .thumbnail-gallery {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .thumbnail {
        min-width: 80px;
        height: 80px;
    }
    
    .main-image {
        order: -1;
        max-width: 100%;
    }
    
    .product-header h1 {
        font-size: 2rem;
    }
    
    .swatch-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        max-width: 100%;
    }
    
    .color-swatch {
        width: 55px;
        height: 55px;
    }
}

/* Modern Calculator */
.calculator-section {
    background: white;
    border: 1px solid #e0e0e0;
    margin-top: 0.3rem;
    overflow: visible;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.calculator-header {
    background: #fff;
    padding: 0.1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.calculator-header:hover {
    background: #f0f0f0;
}

.calculator-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calculator-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    margin-top:5px;
    font-size: 12px!important;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.calculator-icon {
    width: 40px!important;
    height: 40px!important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.calculator-toggle {
    transition: transform 0.3s ease;
    color: #666;
    font-size: 1.1rem;
    font-weight: bold;
}

.calculator-toggle.expanded {
    transform: rotate(180deg);
}

.calculator-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-top: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* Project Details Section */
.project-details-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;

    margin-top: 1rem;
    padding: 1.5rem;
    overflow: hidden;
}

.calc-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
    justify-content: flex-start;
}

@media (max-width: 480px) {
    .calc-row {
        gap: 0.5rem;
    }
    
    .calc-input {
        max-width: 100px;
        min-width: 80px;
    }
}

@media (max-width: 360px) {
    .calc-row {
        gap: 0.375rem;
    }
    
    .calc-input {
        max-width: 85px;
        min-width: 70px;
        font-size: 0.85rem;
    }
    
    .calc-group label {
        font-size: 0.8rem;
    }
}

.calc-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 140px;
}

.calc-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.calc-input {
    padding: 0.5rem 0.625rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease;
    width: 100%;
    max-width: 120px;
    min-width: 90px;
    box-sizing: border-box;
}

.calc-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    scroll-margin-top: 0;
}



.calc-input::placeholder {
    color: #999;
}

.project-size-section {
    margin: 0.5rem 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

.project-size-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-size-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-size-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.size-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid #ddd;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.3;
}

.size-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.size-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.size-sqft {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.custom-size-input {
    margin-top: 1rem;
}

.project-size-input {
    padding: 0.625rem 0.75rem;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s ease;
    width: 160px;
    max-width: 160px;
    min-width: 120px;
    -moz-appearance: textfield;
}

.project-size-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.project-boxes-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    padding: 0.75rem 1rem;
    min-width: 80px;
    text-align: center;
}

.project-boxes-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #081a30;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.project-boxes-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-transform: lowercase;
}

/* Remove spinner arrows from number input */
.project-size-input:focus {
    outline: none;
    border-color: var(--primary-color);
    scroll-margin-top: 0;
}

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

.calc-input {
    -moz-appearance: textfield;
}

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

.calc-result-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;

    text-align: center;
}

.calc-result-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: right;
}

.use-amount-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #081a30;
    border: 2px solid #081a30;
   
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.use-amount-btn:hover {
    background: #051226;
    border-color: #051226;
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.quantity-btn.minus {
    color: #666;
}
.quantity-btn.minus:hover {
    color: #000;
}
.quantity-btn.plus {
    color: #dc3545;
}
.quantity-btn.plus:hover {
    color: #dc3545;
}

.quantity-display {
    min-width: 60px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-per-box {
    font-weight: 600;
    color: #333;
}

.box-coverage {
    font-size: 0.9rem;
    color: #666;
}

.contingency-section {
    margin-bottom: 1.5rem;
}

.contingency-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.contingency-checkbox input[type="checkbox"] {
    margin: 0;
}

.contingency-text {
    font-size: 0.9rem;
    color: #333;
}

.return-policy-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.subtotal-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subtotal-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtotal-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.paypal-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.paypal-text {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.paypal-logo {
    color: #003087;
    font-weight: bold;
}



.calc-result span:first-child {
    color: var(--text-light);
}

.calc-result span:last-child {
    font-weight: 500;
    color: var(--text-color);
}

.calc-hint {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;

    color: #856404;
    font-size: 0.9rem;
}

/* Quantity Section */
.quantity-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.quantity-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;

    background: white;
    overflow: hidden;
    width: fit-content;
}

.quantity-input-integrated {
    font-size: 1.1rem;
    font-weight: 600;
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem 0.25rem;
    background: white;
    outline: none;
}

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

.quantity-input-integrated {
    -moz-appearance: textfield;
}

.quantity-btn-left,
.quantity-btn-right {
    background: white;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn-left {
    color: #666;
    border-right: 1px solid #ddd;
}

.quantity-btn-right {
    color: #dc3545;
    border-left: 1px solid #ddd;
}

.quantity-btn-left:hover {
    background: #f8f9fa;
    color: #333;
}

.quantity-btn-right:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.quantity-input-wrapper:focus-within {
    border-color: #081a30;
    box-shadow: 0 0 0 2px rgba(8, 26, 48, 0.1);
}

.quantity-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;

    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Product Swatches */
.product-swatches {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    overflow: hidden; /* Prevent horizontal overflow from affecting page */
    width: 100%;
    box-sizing: border-box;
}

.swatches-grid {
    display: flex;
    gap: 1rem;
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swatches-grid::-webkit-scrollbar {
    display: none;
}

.product-swatches h3,
.product-swatches h4 {
    margin: 0 0 0 0;
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
}


.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    
    transition: all 0.3s ease;
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.swatch-item:hover {
    transform: translateY(-4px);
    
}

.swatch-image {
    width: 320px;
    height: 300px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.swatch-image .image-room,
.swatch-image .image-closeup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.swatch-image .image-closeup {
    opacity: 0;
}

.swatch-image:hover .image-closeup {
    opacity: 1;
}

.swatch-image:hover .image-room {
    opacity: 0;
}

/* Mobile tap to flip - show closeup image */
@media (max-width: 768px) {
    .swatch-image.mobile-flipped .image-closeup {
        opacity: 1;
    }
    
    .swatch-image.mobile-flipped .image-room {
        opacity: 0;
    }
}

.swatch-details {
    text-align: left;
    margin-top: 0.75rem;
    padding-left: 0;
    line-height: 1.3;
    width: 100%;
}

.swatch-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.swatch-collection {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.swatch-colors {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
}

/* Color swatches replace text on hover */
.color-swatches-popup {
    position: absolute;
    
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.swatch-colors:hover {
    color: transparent;
}

.swatch-colors:hover .color-swatches-popup {
    opacity: 1;
    visibility: visible;
}

.color-swatches-popup .popup-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.color-swatches-popup .popup-color-item {
    width: 22px;
    height: 22px;
    border-radius: 0;
    border: none;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.color-swatches-popup .popup-color-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Color name tooltip */
.popup-color-item .color-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 8px;
    z-index: 1002;
    pointer-events: none;
}

.popup-color-item:hover .color-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile: Neutralize sticky positioning for color swatches */
@media (max-width: 768px) {
    .color-swatches.end-sticky {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 1.5rem;
        margin-top: 0;
    }
    
    .product-info {
        min-height: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .swatches-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .product-swatches {
        overflow: hidden; /* Prevent container from expanding page width */
        width: 100%;
    }
    
    .swatches-grid {
        display: flex;
        grid-template-columns: none;
        gap: 1.5rem;
        padding: 0 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-behavior: smooth;
        width: 100%;
        box-sizing: border-box;
    }
    
    .swatches-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .swatch-item {
        flex: 0 0 280px;
        padding: 1rem;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .swatches-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .swatch-item {
        flex: 0 0 240px;
        padding: 0.75rem;
        box-sizing: border-box;
    }
    
    .swatch-name {
        font-size: 0.9rem;
    }
}

/* Whiskey & Wine Collection Special Styling */
.swatch-section {
    margin-bottom: 1rem;
}

.swatch-section:last-child {
    margin-bottom: 0;
}

.swatch-category-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swatch-category-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Product Tabs */
.product-tabs {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .product-tabs {
        margin-top: 1rem;
    }
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 0.8rem;
    margin-right: 0.6rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1.5px solid transparent;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 500;
}

.tab-btn:focus,
.tab-btn.active {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: -2px !important;
    border-radius: 4px;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
    min-height: 200px;
}

.tab-pane.active {
    display: block;
    margin-bottom: 3rem;
    min-height: 200px;
    padding-top: 1.25rem;
}

#tab-description {
    padding-top: 1.25rem;
}

#tab-installation .installation-section {
    padding-top: 1.25rem;
}

#tab-specs .specs-container {
    padding-top: 1.25rem;
}

.tab-pane p {
    line-height: 1.7;
    color: var(--text-color);
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Bullet list styling for descriptions */
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.bullet-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.bullet-list li:before {
    content: "• ";
    margin-right: 0.6em;
    font-weight: 900;
    font-size: 1.1em;
}

/* Product Highlights styling */
.highlights-icons {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    margin: 2rem 0 2.5rem 0;
    padding: 0;
}

.highlight-item {
    text-align: center;
    flex: 1;
}

.highlight-icon {
    margin: 0 auto 1rem auto;
    color: #4a5568;
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.highlight-text {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.2;
}

.highlights-list {
    margin-top: 1.5rem;
}

.highlights-list.highlights-small li {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* Product Information & Warranty Download Styling */
.product-info-section,
.warranty-section {
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.simple-download {
    color: var(--text-color);
    text-decoration: underline;
    font-size: 1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.simple-download:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Specifications Table Styling */
.specs-container {
    padding: 1rem 0;
}

.download-link-container {
    margin-bottom: 2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
}

.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table .spec-label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
    width: 25%;
}

.specs-table .spec-value {
    color: var(--text-color);
    font-size: 0.9rem;
    width: 25%;
}

@media (max-width: 768px) {
    .specs-table {
        font-size: 0.85rem;
    }
    
    .specs-table td {
        padding: 0.75rem;
    }
    
    .specs-table .spec-label,
    .specs-table .spec-value {
        font-size: 0.8rem;
    }
}

.specs-table th,
.specs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
}

.specs-table td {
    color: var(--text-light);
}

/* Warranties Tab Styles */
.warranty-section {
    margin-bottom: 2rem;
}

.warranty-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.warranty-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.warranty-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.warranty-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.warranty-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.warranty-item span {
    color: var(--text-light);
    line-height: 1.5;
}

.warranty-terms {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-terms li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.warranty-terms li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.warranty-contact {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.warranty-contact p {
    margin: 0;
    line-height: 1.6;
}

.warranty-contact a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.warranty-contact a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .warranty-item {
        flex-direction: column;
    }
    
    .warranty-details {
        padding: 1rem;
    }
    
    .warranty-contact {
        padding: 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* Accordion-style tabs on mobile */
    .product-tabs {
        display: flex;
        flex-direction: column;
    }
    
    .tab-headers,
    .tab-content {
        display: contents;
    }
    
    .tab-nav {
        display: flex;
        flex-direction: column;
        border-bottom: none;
        margin-bottom: 0;
        gap: 0;
    }

    .tab-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        margin-right: 0;
        font-weight: 500;
        text-transform: none;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        width: 100%;
        color: #333;
        position: relative;
        order: 0;
    }
    
    .tab-btn::after {
        content: '›';
        font-size: 1.8rem;
        color: #666;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .tab-btn:focus,
    .tab-btn.active {
        outline: none !important;
        background-color: transparent;
    }
    
    .tab-btn.active {
        color: #081a30;
        font-weight: 600;
    }
    
    .tab-btn.active::after {
        transform: rotate(90deg);
    }
    
    /* Accordion panes */
    .tab-pane {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 1.5rem;
        border-bottom: 1px solid #e0e0e0;
        background-color: #fafafa;
    }
    
    .tab-pane.active {
        padding: 1.5rem;
    }
    
    /* Reorder panes to appear after their buttons */
    .tab-btn[data-tab="description"] { order: 1; }
    #tab-description { order: 2; }
    .tab-btn[data-tab="specs"] { order: 3; }
    #tab-specs { order: 4; }
    .tab-btn[data-tab="warranties"] { order: 5; }
    #tab-warranties { order: 6; }
    .tab-btn[data-tab="highlights"] { order: 7; }
    #tab-highlights { order: 8; }
    .tab-btn[data-tab="resources"] { order: 9; }
    #tab-resources { order: 10; }
}

/* Additional responsive font sizes for tab buttons - Desktop only */
@media (min-width: 769px) and (max-width: 1075px) {
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.75rem 0.6rem;
        margin-right: 0.4rem;
    }
}

/* Delivery Section */
.delivery-section {
    margin: 16px 0;
}

.delivery-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.delivery-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #333;
}

.delivery-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.delivery-dropdown {
    background-color: #f8f9fa;
    padding: 12px 16px;

    margin-top: 8px;
}

.delivery-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.delivery-text {
    font-size: 13px;
    color: #666;
}

.learn-more-link {
    font-size: 13px;
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
}

.learn-more-link:hover {
    color: #0056b3;
}

/* Updated Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.add-to-cart-btn,
.order-sample-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;

    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    background-color: #dc3545;
    color: white;
}

.add-to-cart-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.order-sample-btn {
    background-color: transparent;
    color: #333;
    border: 2px solid #333 !important;
}

.order-sample-btn:hover {
    background-color: #333;
    color: white;
    transform: translateY(-1px);
}

.add-to-cart-btn svg,
.order-sample-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .product-detail {
        padding: 1rem 0;
    }

    .calculator-section {
        padding: 1rem;
    }

    .dimension-inputs input {
        width: 50px;
    }
}

/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
}

/* Prevent scrolling when modal is active - DISABLED to preserve sticky positioning */
/* 
body.modal-open,
html.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}
*/

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    text-align: center;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 50px;
    padding-right: 2px; /* Slight adjustment for visual centering */
}

.modal-next {
    right: 50px;
    padding-left: 2px; /* Slight adjustment for visual centering */
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #666;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 300;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    text-align: center;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Modal Dots Indicator */
.modal-dots {
    position: absolute;
    bottom: 50px;
    margin-bottom:10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.modal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(204, 204, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

.modal-dot.active {
    background: rgb(247, 247, 247, 0.8);
    transform: scale(1.4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.modal-dot:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .image-modal.active {
        padding: 0;
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
    }

    .modal-image {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .modal-prev {
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-next {
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        line-height: 1;
        padding: 0;
    }
    
    .modal-dots {
        bottom: 30px;
        gap: 10px;
    }
    
    .modal-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .image-modal.active {
        padding: 0;
    }
    
    .modal-content {
        width: 100vw;
        height: 100vh;
    }

    .modal-image {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .modal-prev, .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
        line-height: 1;
        padding: 0;
    }
    
    .modal-dots {
        bottom: 25px;
        gap: 8px;
    }
    
    .modal-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        box-sizing: border-box;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .modal-image {
        max-width: 80vw;
        max-height: 80vh;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) {
    .modal-image {
        max-height: 80vh;
        max-width: 90vw;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 700px) {
    .modal-image {
        max-height: 95vh;
        max-width: 85vw;
    }
    
    .modal-dots {
        bottom: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
    
    .image-modal.active {
        padding: 0;
    }
}

.price-per-sqft{font-size:20px; color:#000; margin-top:10px;}
.sq-ft{color:#6b6b6b;
      font-size:15px;}



.force-sticky-reset {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

/* ==================== IMAGE SLIDER MODAL ==================== */
/* Full-screen modal overlay */
.image-slider-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overscroll-behavior: contain;
}

.image-slider-modal.active {
    display: flex;
}

/* Modal content wrapper */
.slider-modal-content {
    display: flex;
    width: 90%;
    max-width: 1400px;
    height: 90%;
    max-height: 900px;
    position: relative;
    margin: auto;
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Left sidebar with thumbnails */
.slider-thumbnail-sidebar {
    width: 150px;
    background-color: #f8f9fa;
    overflow-y: auto;
    padding: 80px 10px 20px 10px;
    border-right: 0;
    border-radius: 0;
}

.slider-thumbnail-sidebar::-webkit-scrollbar {
    width: 6px;
}

.slider-thumbnail-sidebar::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.slider-thumbnail-sidebar::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 0;
}

.slider-thumbnail-sidebar::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.slider-sidebar-thumb {
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 0;
    transition: all 0.2s ease;
    opacity: 0.7;
    box-sizing: border-box;
}

.slider-sidebar-thumb:hover {
    opacity: 1;
}

.slider-sidebar-thumb.active {
    opacity: 1;
    border-color: #081a30;
}

.slider-sidebar-thumb img {
    width: 100%;
    height: 120px;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

/* Main image display area */
.slider-main-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 60px 60px;
    position: relative;
    background-color: #fff;
    border-radius: 0;
}

.slider-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* FORCE HIDE all slider navigation buttons by default */
button.slider-nav-btn,
button.slider-prev-btn,
button.slider-next-btn,
.slider-nav-btn,
.slider-prev-btn,
.slider-next-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show arrows ONLY when modal is active */
.image-slider-modal.active button.slider-nav-btn,
.image-slider-modal.active .slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #081a30;
    color: #fff;
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.slider-nav-btn:hover {
    background-color: #0a2240;
    transform: translateY(-50%) scale(1.05);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev-btn {
    left: 20px;
}

.slider-prev-btn::before {
    content: '‹';
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

.slider-next-btn {
    right: 20px;
}

.slider-next-btn::before {
    content: '›';
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

/* Close button */
.slider-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    color: #666;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.slider-close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.slider-close-btn:active {
    transform: scale(0.95);
}

/* Tab navigation (Product Images / Videos) */
.slider-tabs {
    position: absolute;
    top: 20px;
    left: 180px;
    display: flex;
    gap: 40px;
    z-index: 10;
    background-color: #fff;
    padding: 0 20px;
}

.slider-tab {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    padding: 12px 0;
    position: relative;
    transition: color 0.2s ease;
}

.slider-tab:hover {
    color: #666;
}

.slider-tab.active {
    color: #333;
}

.slider-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
}

/* View All button - Desktop only */
.view-all-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
   
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-all-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Hide View All button on mobile - users can swipe thumbnails instead */
@media (max-width: 768px) {
    .view-all-btn {
        display: none !important;
    }
    
    /* Make thumbnail gallery smoothly swipeable on mobile */
    .thumbnail-gallery {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .thumbnail {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* Mobile responsive - Complete layout restructure */
@media (max-width: 768px) {
    .slider-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        flex-direction: column;
        border-radius: 0;
    }
    
    /* Move thumbnails to top - horizontal scrollable row */
    .slider-thumbnail-sidebar {
        width: 100%;
        height: auto;
        max-height: 140px;
        padding: 10px 15px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-direction: row;
        gap: 8px;
        order: 2;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-top: 50px;
    }
    
    .slider-thumbnail-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    
    .slider-sidebar-thumb {
        width: 90px;
        min-width: 90px;
        height: 90px;
        margin-bottom: 0;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .slider-sidebar-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Main image display area */
    .slider-main-display {
        flex: 1;
        padding: 20px 15px 80px 15px;
        order: 3;
        min-height: 0;
    }
    
    /* Smaller navigation arrows */
    .image-slider-modal.active .slider-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .slider-prev-btn {
        left: 12px;
    }
    
    .slider-next-btn {
        right: 12px;
    }
    
    /* Close button */
    .slider-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 28px;
        z-index: 1000;
    }
    
    /* Tabs - centered at very top */
    .slider-tabs {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: center;
        gap: 30px;
        padding: 12px 20px;
        order: 1;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
        z-index: 100;
    }
    
    .slider-tab {
        font-size: 11px;
        font-weight: 700;
        padding: 8px 0;
        letter-spacing: 1px;
    }
}

/* Tablet Responsive (569px - 1024px) - Same layout as mobile */
@media (min-width: 569px) and (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-left-column {
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }
    
    .product-gallery {
        flex-direction: column !important;
        gap: 1rem;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .main-image {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 75% !important;
        position: relative !important;
        order: 1;
        overflow: hidden !important;
        margin: 0 0 0.5rem 0 !important;
        display: block !important;
    }
    
    .main-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .thumbnail-gallery {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0.75rem;
        padding: 0 0 0.5rem 0;
        margin-top: 0.5rem !important;
        order: 2;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .thumbnail-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px !important;
        flex-shrink: 0 !important;
        border: 2px solid transparent !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        cursor: pointer !important;
        transition: border-color 0.2s ease !important;
        position: relative !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start;
    }
    
    .thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .thumbnail.active {
        border-color: #081a30 !important;
    }
    
    .view-all-btn {
        display: none !important;
    }
}

