body {
    background-color: #fff;
}

/* Product Archive Styles */
.product-archive-main {
    padding: 10px 0 80px;
    background: #fff;
    color: #000;
}

.archive-header-bg {
    text-align: center;
    padding: 100px 0 50px;
    /* Reduced padding for 300px height */
    color: #fff;
    /* Ensure text is white */
    position: relative;
    background-size: cover;
    background-position: top center;
    /* Start from top to avoid bottom gap */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 300px;
    width: 100%;
    margin-bottom: 0;
    /* Ensure full width */
}

.archive-header-bg .page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}



.gmc-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    /* Transparent card - content centered/aligned with grid */
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    /* Square Aspect Ratio matching reference approximately */
    border-radius: 6px;
    /* Rounded corners on image only */
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 15px 0 0 0;
    /* Space between image and text */
    text-align: left;
    /* Left align text */
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    /* Larger title */
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-gold);
}

.product-desc {
    font-size: 15px;
    color: #808080;
    /* Grey description */
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc:hover {
    color: #515151;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.nav-links a.page-numbers,
.nav-links span.page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #313131;
    font-weight: 400;
    transition: all 0.3s;
    background: #fff;
    text-decoration: none;
    gap: 5px;
}

.nav-links .nav-text {
    font-size: 14px;
}

.nav-links .nav-arrow {
    font-size: 16px;
}

.nav-links span.current,
.nav-links a.page-numbers:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.nav-links a:hover .nav-text,
.nav-links a:hover .nav-arrow {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .gmc-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-archive-main {
        padding-top: 0px !important;
    }

    .mobile-title-count-wrapper {
        margin-top: 50px !important;
    }
}

@media (max-width: 576px) {
    .gmc-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-archive-main {
        padding: 0 0 60px;
    }

    .archive-header-bg {
        min-height: 200px;
        height: 200px;
        align-items: flex-end;
        padding-bottom: 30px;
        /* Space from bottom edge */
    }

    .archive-header-bg .page-title {
        font-size: 30px;
        margin-bottom: 0;
    }

    .product-desc {
        display: none;
    }

    .product-title {
        font-size: 16px;
    }
}

/* Layout Grid (Sidebar + Content) */
.product-archive-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.product-content-area {
    min-width: 0;
    max-width: 100%;
}

/* Sidebar Styles */
.product-sidebar {
    box-shadow: 2px 2px 22px 0px #0000000F;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.product-sidebar .fa-solid,
.product-sidebar .fas {
    font-size: 12px;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-all {
    font-size: 16px;
    font-weight: 500;
    color: #808080;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.clear-all:hover {
    color: #333;
}

.widget-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #808080;
    cursor: pointer;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: all 0.2s ease;
}

.filter-list input[type="checkbox"]:checked {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.filter-list input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-list label:hover {
    color: var(--primary-gold);
}

.color-filter-list {
    display: flex;
    gap: 10px;
}

.color-swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.color-swatch.active {
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-gold), 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align bottom to match title baseline roughly or center */
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.toolbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    height: 100%;
}

.sort-dropdown {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.active-filters .category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 5px;
}

.mobile-title-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.mobile-title-count-wrapper .category-title {
    margin-bottom: 0;
}

.mobile-item-count {
    display: none;
}

.item-count {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    margin: 0 !important;
    padding: 0;
    line-height: normal;
    /* Let flex center it */
    display: block;
    /* Flex item behaves like block */
}

.woocommerce-ordering {
    margin: 0 !important;
    display: inline-block;
    /* Or flex */
    vertical-align: middle;
}

.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 40px 0 15px;
    /* Adjust padding for fixed height */
    height: 40px;
    /* Explicit height */
    line-height: 38px;
    /* Vertical align text inside select (height - borders) */
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C38F26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: all 0.2s ease;
    min-width: 160px;
    margin: 0 !important;
    vertical-align: middle;
}

.woocommerce-ordering select:hover {
    border-color: var(--primary-gold);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(195, 143, 38, 0.1);
}

.active-filters {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tag i {
    font-size: 14px;
    color: #000;
}

/* Ensure Close Button is HIDDEN on Desktop */
.mobile-filter-close {
    display: none;
}

/* Hide Mobile Bottom Bar on Desktop */
.mobile-bottom-bar {
    display: none;
}

/* Mobile Responsive Updates */
@media (max-width: 992px) {
    .product-archive-container {
        grid-template-columns: 1fr;
    }

    /* Initial State: Mobile Sidebar Bottom Sheet */
    .product-sidebar {
        display: block !important;
        position: fixed;
        bottom: -100%;
        /* Hidden below screen */
        left: 0;
        top: auto;
        /* Ensure top is not set */
        width: 100%;
        max-width: 100%;
        height: 85vh;
        /* Max height taking up most of screen */
        background: #fff;
        z-index: 10000;
        padding: 25px 20px;
        overflow-y: auto;
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        /* Smooth spring-like effect */
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
        border-radius: 20px 20px 0 0;
        /* Rounded top corners */
    }

    .product-sidebar.active {
        bottom: 0;
        /* Slide Up */
        left: 0;
    }

    /* Backdrop */
    body.filter-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    /* Reveal Mobile Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 9000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        padding-bottom: env(safe-area-inset-bottom);
        height: 60px;
    }

    .mobile-bar-btn {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: none;
        border-top: 1px solid #eee;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        padding: 0;
        position: relative;
    }

    .mobile-bar-btn:first-child::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15px;
        bottom: 15px;
        width: 1px;
        background: #eee;
    }

    .mobile-sort-wrapper {
        position: relative;
        overflow: hidden;
    }

    .mobile-ordering {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0;
        opacity: 0;
    }

    .mobile-ordering select {
        width: 100%;
        height: 100%;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Close Button */
    /* Close Button - positioned to top right if needed, or inline */
    /* Close Button - Visible on Mobile */
    .mobile-filter-close {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        font-size: 20px;
        color: #000;
        cursor: pointer;
        background: #f5f5f5;
        /* Optional: circle bg */
        border-radius: 50%;
    }

    /* Specific Mobile Widget Title Styling to match 'Filter By ... Clear All' */
    .product-sidebar .sidebar-widget:first-child .widget-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    /* Adjust Clear All to look like the action button on right */
    .product-sidebar .clear-all {
        font-size: 14px;
        color: #999;
        font-weight: 500;
    }

    /* Hide specific elements on mobile */
    .toolbar-right .sort-dropdown {
        display: none !important;
    }

    .product-content-area {
        padding-bottom: 80px;
        /* Space for bar */
        min-width: 0;
        max-width: 100%;
    }

    /* Mobile Shop Toolbar Design */
    .shop-toolbar {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .mobile-item-count {
        display: inline-block;
        color: #999;
        font-size: 14px;
        font-weight: 400;
        font-family: 'Montserrat', sans-serif;
    }

    .toolbar-right .item-count {
        display: none !important;
    }

    .shop-toolbar .active-filters {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .shop-toolbar .filter-tags {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        gap: 10px;
        padding-bottom: 5px;
        width: 100%;
    }

    .shop-toolbar .filter-tags::-webkit-scrollbar {
        display: none;
    }

    .shop-toolbar .filter-tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Single Product Page Styles */

/* Header Fix */
body.single-product .site-header {
    position: relative !important;
    background: #fff !important;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Header Text & Icon Colors for White Background */
body.single-product .main-navigation a,
body.single-product .header-actions i,
body.single-product .search-submit i,
body.single-product .menu-toggle,
body.single-product .mobile-search-icon {
    color: #333 !important;
}

body.single-product .search-submit {
    color: #bbb !important;
    /* Lighter icon initially */
    right: 10px;
}

body.single-product .main-navigation a:hover {
    color: var(--primary-gold) !important;
}

/* Header Search Box Style - Specific to Product Page */
body.single-product .header-search .search-field {
    border: 1px solid #eee !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    /* Gentle shadow */
    transition: all 0.3s;
}

body.single-product .header-search .search-field:focus {
    border-color: #ddd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.single-product .header-search .search-field::placeholder {
    color: #bbb !important;
    font-weight: 400;
}

/* Button position adjust if needed inside input */
/* Removed duplicate selector - consolidated above */

.single-product-page-wrapper {
    padding: 20px 0 80px;
    background: #fff;
    color: #212121;
}

.gmc-breadcrumbs,
.woocommerce-breadcrumb {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    /* Darker text */
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: capitalize;
}

.gmc-breadcrumbs a,
.woocommerce-breadcrumb a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.gmc-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
    color: var(--primary-gold);
}

.gmc-separator {
    color: var(--primary-gold);
    font-size: 10px;
    margin: 0 8px;
    display: inline-block;
    vertical-align: middle;
}


.product-detail-layout {
    display: grid;
    grid-template-columns: 55% 40%;
    gap: 5%;
    align-items: start;
    margin-bottom: 80px;
}

/* Gallery - 2x2 Grid */
.product-gallery-column {
    width: 100%;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
}

.gallery-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 576px) {
    .gallery-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.gallery-item-card {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square */
    border-radius: 6px;
    overflow: hidden;
    display: none;
    /* Hide all by default, JS shows active page */
}

/* Show first 4 by default if JS fails or before load, though JS is better */
.gallery-item-card:nth-child(-n+4) {
    display: block;
}

.gallery-item-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-card:hover img {
    transform: scale(1.03);
}

/* Pagination Dots */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.gallery-dot {
    width: 30px;
    height: 3px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.gallery-dot.active,
.gallery-dot:hover {
    background-color: var(--primary-gold);
}

/* Info Column */
.product-info-column {
    padding-top: 0;
}

.product-subtitle {
    display: block;
    color: var(--primary-gold);
    font-size: 20px;
    /* Highlighting Natural Stones */
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    /* Matching heading font for subtitle per image */
}

.product-main-title {
    font-family: 'Quattrocento', serif;
    font-size: 40px;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
}

.stock-status-badges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #FAF7F0;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.separator {
    color: #ddd;
}

.product-short-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #808080;
    margin-bottom: 24px;
}

.product-short-desc ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-short-desc ol {
    list-style-type: decimal;
    padding-left: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-short-desc li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* Features Grid */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}

.feature-item {
    background: #FAF7F0;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 128px;
}

.feature-icon {
    width: 40px;
    height: 40px;
}

.feature-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121A21;
    line-height: 1.4;
}

/* Color Section */
.product-color-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #000;
}

.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-card {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    background: #fff;
    min-width: 180px;
}

.color-preview {
    width: 60px;
    height: 45px;
    background: #ccc;
    border-radius: 6px;
    margin-right: 15px;
    border: 0.5px solid #d0d0d05d;
}

.color-info {
    display: flex;
    flex-direction: column;
}

.color-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121A21;
    line-height: 1.2;
}

.color-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #121A21;
}

/* Button */
.btn-add-to-query {
    width: 100%;
    background: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: capitalize;
    box-shadow: 0 4px 10px rgba(195, 143, 38, 0.2);
}

.btn-add-to-query:hover {
    background: #a97818;
    box-shadow: 0 6px 15px rgba(195, 143, 38, 0.35);
    transform: translateY(-2px);
}

.btn-add-to-query.already-in-cart {
    background-color: #121A21;
    box-shadow: 0 4px 10px rgba(18, 26, 33, 0.2);
}

.btn-add-to-query.already-in-cart:hover {
    background-color: #000;
}

.already-in-cart-notice {
    animation: fadeInNotice 0.5s ease-out;
}

@keyframes fadeInNotice {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Specifications */
.product-specifications {
    background-color: #F9F4EA;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.specifications-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    line-height: 128%;
    letter-spacing: 0;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table th.spec-label {
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    padding: 0 0 16px 0;
    width: 45%;
    vertical-align: top;
    line-height: 27px;
    letter-spacing: 0;
}

.specifications-table td.spec-value {
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    padding: 0 0 16px 0;
    vertical-align: top;
    line-height: 27px;
    letter-spacing: 0;
}

.specifications-table tr:last-child th.spec-label,
.specifications-table tr:last-child td.spec-value {
    padding-bottom: 0;
}

/* Related Section */
.related-products-section {
    margin-top: 80px;
    border-top: none;
    /* Removed border per visual cleanliness */
    padding-top: 0;
}

.related-title {
    font-family: 'Quattrocento', serif;
    font-size: 48px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 20px !important;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-main-title {
        font-size: 40px;
    }

    .gallery-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols on tablet */
    }
}

@media (max-width: 576px) {
    .product-main-title {
        font-size: 32px;
    }

    .product-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .feature-item {
        padding: 15px 5px;
        min-height: 120px;
    }

    .feature-icon {
        font-size: 20px;
    }

    .feature-text {
        font-size: 14px;
    }

    .gallery-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item-card {
        width: 100%;
        max-width: 343px;
        height: auto;
        aspect-ratio: 1 / 1;
        padding-top: 0 !important;
        margin: 0 auto;
    }
}


/* Marquee / Infinity Scroll Section */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 30px 0;
}

.marquee-swiper .swiper-wrapper {
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, linear) !important;
}

.marquee-track {
    display: flex;
    /* gap: 20px; */
    /* width: max-content; */
    /* animation: marquee-scroll 60s linear infinite; */
}

/* .marquee-container:hover .marquee-track {
    animation-play-state: paused;
} */

.marquee-product-card {
    width: 100%;
    flex: 0 0 auto;
    text-align: left;
    transition: transform 0.3s ease;
}

.marquee-product-card:hover {
    transform: translateY(-5px);
}

.marquee-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.marquee-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.marquee-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.marquee-product-card:hover .marquee-img-wrapper img {
    transform: scale(1.05);
}

.marquee-info {
    padding-right: 10px;
}

.marquee-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: capitalize;
}

.marquee-desc {
    font-size: 14px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .marquee-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        overflow-x: hidden !important;
        padding: 30px 0 !important;
        display: block !important;
    }


    /* Fixed bottom Add to Query button on mobile - adjust footer spacing */
    .site-footer {
        padding-bottom: 50px !important;
    }

    .product-detail-layout {
        margin-bottom: 0;
    }

    .purchase-action-area {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #FFFFFF;
        padding: 12px 16px;
        z-index: 2000;
        box-shadow: 0 -4px 30px 0 rgba(0, 0, 0, 0.14);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box !important;
    }

    .already-in-cart-notice {
        display: none !important;
        /* Hide notice in the sticky bar to keep it clean */
    }

    .btn-add-to-query {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 16px;
        height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .header-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .single-product-page-wrapper {
        padding-top: 10px;
        padding-bottom: 120px !important;
    }

    .gmc-breadcrumbs,
    .woocommerce-breadcrumb {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
        width: 100% !important;
        line-height: 1.6 !important;
        margin-bottom: 20px;
    }

    .gmc-breadcrumbs a,
    .gmc-breadcrumbs span,
    .woocommerce-breadcrumb a,
    .woocommerce-breadcrumb span {
        display: inline !important;
        white-space: normal !important;
    }

    .section-label {
        font-size: 20px;
    }

    .product-subtitle {
        margin-top: 30px !important;
        font-size: 14px !important;
    }

    .product-main-title {
        font-size: 30px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
        white-space: normal !important;
    }

    .stock-status-badges {
        margin-bottom: 24px !important;
        font-size: 14px !important;
    }

    .product-short-desc {
        margin-bottom: 24px !important;
        display: block !important;
        font-size: 14px !important;
    }

    .product-detail-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: block !important;
    }

    .specifications-title {
        font-size: 18px !important;
    }

    .related-title {
        font-size: 30px;
    }

    .related-products-section {
        margin-top: 20px;
    }

    .specifications-table th.spec-label,
    .specifications-table td.spec-value {
        font-size: 14px !important;
        padding-bottom: 8px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .sidebar-widget {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .mobile-title-count-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a {
    color: #121A21;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    color: #121A21;
}

/* Category Thumbnail / Brand Logo on Product Card */
.product-cat-brand-thumb {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    pointer-events: none;
}

.product-cat-brand-thumb img {
    width: 100px;
    height: 24px;
    object-fit: contain;
    object-position: left bottom;
}

@media (max-width: 576px) {
    .product-cat-brand-thumb {
        bottom: 10px;
        left: 10px;
    }
}

/* Breadcrumbs Responsive Truncation */
#breadcrumbs, 
.gmc-breadcrumbs, 
.breadcrumbs-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 100% !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    color: #121A21 !important;
}

/* Ensure children flex and don't wrap */
#breadcrumbs span, 
.gmc-breadcrumbs span, 
.breadcrumbs-top span {
    display: inline-flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

/* Logic for truncating middle segments */
#breadcrumbs span span:not(.breadcrumb_last),
.gmc-breadcrumbs span span:not(.breadcrumb_last) {
    display: block !important;
    max-width: 25vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

#breadcrumbs span span a,
.gmc-breadcrumbs span span a {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#breadcrumbs .breadcrumb_last,
.gmc-breadcrumbs .breadcrumb_last,
.breadcrumbs-top .current,
.breadcrumbs-top .current-breadcrumb {
    flex-shrink: 0 !important;
    font-weight: 500 !important;
    padding-right: 10px !important;
    color: #121A21 !important;
}

/* Style breadcrumb separators (arrows) */
#breadcrumbs .breadcrumb-separator, 
#breadcrumbs i,
.gmc-breadcrumbs i, 
.breadcrumbs-top i,
#breadcrumbs .gmc-separator {
    color: #C38F26 !important; /* Gold */
    margin: 0 10px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

@media screen and (max-width: 767px) {
    #breadcrumbs, 
    .gmc-breadcrumbs, 
    .breadcrumbs-top {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    #breadcrumbs span span:not(.breadcrumb_last),
    .gmc-breadcrumbs span span:not(.breadcrumb_last) {
        max-width: 110px !important;
    }
}