﻿:root {
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Colors - Neutral */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #1a1a1a;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;

    /* Colors - GEOTECO (Warm Green / Earthy) */
    --color-geoteco-primary: #4a7c59;
    --color-geoteco-dark: #365c42;
    --color-geoteco-light: #e8f5e9;

    /* Colors - DEBLA (Yellow / Charcoal) */
    --color-debla-primary: #fdd835;
    --color-debla-dark: #212121;
    /* Anthracite */
    --color-debla-accent: #fbc02d;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Note: overflow-x: hidden breaks sticky positioning on desktop */
}

/* Prevent horizontal scroll/zoom on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: none; /* Full width */
    margin: 0 auto;
    padding: 0 24px; /* Minimal padding - just for breathing room */
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px; /* Slightly more on large screens */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px; /* Tight on mobile */
    }
}

/* Full-width container for header and other full-bleed sections */
.container-fluid {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1rem, 3vw, 2.5rem); /* Responsive padding: 16px-40px */
}

/* Header */
/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.catalog-strip {
    display: flex;
    width: 100%;
    height: 44px;
    margin: 0 !important;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    background-color: transparent;
    color: #111;
    text-decoration: none !important;
    border: 0;
    outline: 0;
}

.catalog-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: var(--bg-alpha, 0.25);
    pointer-events: none;
    transition: opacity 180ms ease;
}

.catalog-strip__text {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.2px;
    font-weight: 400;
    text-decoration: none !important;
    transition: transform 180ms ease, color 180ms ease, letter-spacing 180ms ease;
    will-change: transform;
}

.catalog-strip:hover,
.catalog-strip:focus {
    text-decoration: none !important;
}

.catalog-strip:hover .catalog-strip__text,
.catalog-strip:focus .catalog-strip__text {
    transform: scale(1.06);
    color: #2e7d32;
    letter-spacing: 0.35px;
}

.catalog-strip:hover::before,
.catalog-strip:focus::before {
    opacity: clamp(0, calc(var(--bg-alpha, 0.25) + 0.08), 1);
}

@media (prefers-reduced-motion: reduce) {
    .catalog-strip__text {
        transition: none;
    }
}

.is-home .catalog-strip {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
}

/* Category grid centering */
.category-grid-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.category-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    align-items: stretch;
}

.category-card {
    display: block;
    width: 100%;
    max-width: 260px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-page-title {
    text-align: center;
}

.category-card__body {
    padding: 1.25rem 1.25rem 2.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.category-card__body::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    height: 6px;
    bottom: 0.9rem;
    border-radius: 999px;
    background: var(--category-card-stripe, transparent);
    opacity: 0.7;
}

.category-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.2;
}

.category-card__cta {
    color: var(--category-card-cta, var(--color-geoteco-primary));
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
    white-space: nowrap;
}

.category-card__cta--muted {
    color: var(--color-text-muted);
    font-weight: 400;
}

.category-grid-wrap.category-theme-geoteco {
    --category-card-cta: #2f6f3e;
    --category-card-stripe: #9ccc9b;
}

.category-grid-wrap.category-theme-debla {
    --category-card-cta: #8a6d1d;
    --category-card-stripe: #f2d679;
}

@media (max-width: 520px) {
    .category-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

}


.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* Mobile default: allow wrapping if needed, though usually hamburger is better */
    flex-wrap: wrap;
}

.brand-logos {
    display: flex;
    gap: var(--spacing-md);
    font-weight: 700;
    font-size: 1.25rem;
    align-items: center;
}

.nav-menu {
    display: none;
    /* Hidden on mobile by default, shown in desktop query */
    gap: var(--spacing-lg); /* 2rem gap between nav items */
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap !important;
    /* Force single line */
}

.nav-link:hover {
    color: var(--color-geoteco-primary);
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}


/* Mobile: Hide header actions and search, show hamburger */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-actions,
    .search-container {
        display: none !important;
    }
    
    .header-inner {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .brand-logos {
        flex-grow: 1;
        justify-content: center;
    }
    
    .brand-logos img {
        height: 32px !important;
    }
}

.badge-cart {
    background: var(--color-geoteco-primary);
    color: white;
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    font-size: 0.8rem;
}

.badge-cart.hidden {
    display: none;
}

.site-flash-wrap {
    margin-top: 0.75rem;
}

.site-flash {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.site-flash-success {
    background: #e8f7ee;
    color: #0f5132;
    border-color: #badbcc;
}

.site-flash-error {
    background: #fbe9eb;
    color: #842029;
    border-color: #f5c2c7;
}

.site-flash-warning {
    background: #fff7e6;
    color: #664d03;
    border-color: #ffe69c;
}

.site-flash-info {
    background: #e8f1fd;
    color: #084298;
    border-color: #b6d4fe;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.lang-btn-active {
    text-decoration: underline;
    color: var(--color-geoteco-primary);
}

.lang-btn-inactive {
    color: var(--color-text-muted);
}

/* Desktop Navigation (min-width: 992px) */
@media (min-width: 992px) {
    .header-inner {
        flex-wrap: nowrap;
        /* Prevent wrapping on desktop */
    }

    .nav-menu {
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        /* Show menu on desktop */
        flex-shrink: 0;
        /* Prevent menu from shrinking too much */
    }

    .nav-link {
        white-space: nowrap;
        /* Force single line for text like "B2B Partner" */
        font-size: 0.95rem;
        /* Slightly reduced size for better fit */
        padding: 0.5rem;
        /* Ensure clickable area */
    }

    .brand-logos {
        flex-shrink: 0;
        /* Keep logos intact */
    }
}

/* Compact Navigation for smaller laptops (992px - 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
    .nav-menu {
        gap: 0.25rem;
        /* Tighter gap */
    }

    .nav-link {
        font-size: 0.85rem;
        /* Smaller font */
        padding: 0.25rem 0.4rem;
        /* Reduced padding */
    }

    .brand-logos img {
        height: 32px !important;
        /* Slightly smaller logos */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-geoteco {
    background-color: var(--color-geoteco-primary);
    color: white;
}

.btn-geoteco:hover {
    background-color: var(--color-geoteco-dark);
}

.btn-debla {
    background-color: var(--color-debla-primary);
    color: var(--color-debla-dark);
}

.btn-debla:hover {
    background-color: var(--color-debla-accent);
}

.btn-outline {
    border: 2px solid var(--color-text);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-text);
    color: white;
}

.btn-success-custom {
    background-color: #28a745;
    /* Brighter green for call to action */
    color: white;
}

.btn-success-custom:hover {
    background-color: #218838;
}

/* Footer */
.site-footer {
    background: var(--color-debla-dark);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-debla-primary);
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a:hover {
    color: var(--color-debla-primary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

main {
    width: 100%;
    flex: 1 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
    width: 100%;
}

/* Mobile Menu (Basic) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* TODO: Implement mobile toggle */
    }
}

/* Mega Menu */
.nav-item.has-mega {
    position: static;
    /* For full width menu */
}

/* If we want the menu to be relative to the item, use relative. 
   But user asked for "Positions the dropdown nicely under the nav bar on desktop" 
   and "width: 100vw". 
   Usually full width means parent is static (header-inner or nav-menu) and menu is absolute left 0.
   However, user also said: "Putting the mega-menu ... inside the same <li> ... Using CSS so that hovering the entire <li> ... keeps it open."
   So we need the menu inside the LI.
   To make it full width while inside LI, we can use:
   position: absolute; left: 0; right: 0; (relative to the nearest positioned ancestor).
   The nearest positioned ancestor should be .header-inner or .site-header.
   Let's check .site-header. It is sticky.
   .header-inner is flex.
   If we want full width of the viewport or container, we might need to adjust.
   Let's try to make it full width of the container (1400px).
   So .header-inner should be position: relative.
*/

.header-inner {
    position: relative;
}

.mega-menu {
    display: none;
    position: fixed; /* Fixed to viewport for full width */
    top: 80px; /* Below header */
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    background: white;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Show menu only when .open class is present (JS-controlled) */
.nav-item.has-mega .mega-menu.open {
    display: block;
}

.mega-menu-grid {
    display: flex; /* Use flexbox for auto-collapsing columns */
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 0;
    width: 100%;
    max-width: none; /* Full width - no constraint */
    margin: 0;
    padding: 0 clamp(2rem, 4vw, 4rem); /* More padding on sides */
    background: white;
}

/* Base column widths - flexible, filling full width */
.mega-menu-grid .mega-col {
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 400px;
}

/* First column (L1) - fixed width for root categories */
.mega-menu-grid .col-1 {
    flex: 0 0 300px;
    border-right: 1px solid var(--color-border);
}

/* L2 column - wider to fill space */
.mega-menu-grid .col-2 {
    flex: 1 1 350px;
}

/* L3 and L4 - flexible to fill remaining space */
.mega-menu-grid .col-3,
.mega-menu-grid .col-4 {
    flex: 1 1 300px;
}

.mega-col {
    padding: 1.5rem;
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    min-width: 0; /* Allow columns to shrink */
}

.mega-col:last-child {
    border-right: none;
}

/* Hidden by default - JS controls visibility */
.mega-col.col-2,
.mega-col.col-3,
.mega-col.col-4 {
    display: none;
}

.mega-col ul li {
    margin-bottom: 0.25rem;
}

.mega-col a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
}

.mega-col a:hover,
.mega-col li.active>a {
    background-color: var(--color-bg-alt);
    color: var(--color-geoteco-primary);
    font-weight: 600;
}

/* Level 2 & 3 containers hidden by default, shown via JS */
.level-2-container,
.level-3-container,
.level-4-container {
    display: none;
}

.level-2-container.active,
.level-3-container.active,
.level-4-container.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Placeholder shown when a category has no subcategories */
.mega-placeholder {
    display: none; /* JS controls visibility */
    padding: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sidebar Filters */
.brand-filter-list a.active {
    font-weight: 700;
    color: var(--color-geoteco-primary);
}

.cat-block-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.25rem;
}

.category-tree {
    list-style: none;
    padding-left: 0;
}

.cat-node {
    margin-bottom: 0.25rem;
}

.cat-node>a {
    display: block;
    padding: 0.25rem 0;
    color: var(--color-text);
    font-size: 0.95rem;
}

.cat-node>a:hover {
    color: var(--color-geoteco-primary);
}

.cat-node.is-active>a {
    color: var(--color-geoteco-primary);
    font-weight: 600;
}

.cat-children {
    list-style: none;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
    margin-left: 0.25rem;
}

/* User Dropdown */
.user-menu-container:hover .user-dropdown-menu {
    display: block !important;
}


/* Checkout Page Styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.checkout-step.active {
    color: var(--color-geoteco-primary);
    font-weight: 700;
}

.checkout-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
}

.checkout-card-header {
    background: var(--color-bg-alt);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 1.1rem;
}

.checkout-card-body {
    padding: 1.5rem;
}

.checkout-submit-btn {
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    border-radius: 8px;
}

.checkout-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-table th {
    text-align: left;
    padding: 0.75rem 0;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

.checkout-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.checkout-table tr:last-child td {
    border-bottom: none;
}

.checkout-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.checkout-total-row.final {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.checkout-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid .full-width {
        grid-column: 1 / -1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-geoteco-primary);
    box-shadow: 0 0 0 3px var(--color-geoteco-light);
}

.form-error {
    color: #b42318;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.form-help {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.field-invalid {
    border-color: #f04438;
}

.form-card-option {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-card-option:focus-within {
    border-color: var(--color-geoteco-primary);
    background: #f9fcfa;
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-submit-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

.checkout-sticky-summary {
    position: sticky;
    top: 96px;
}

@media (max-width: 991px) {
    .checkout-sticky-summary {
        position: static;
    }
}

.order-success-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.order-success-icon {
    color: #16a34a;
    font-size: 3.2rem;
    margin-bottom: 0.75rem;
}

.order-success-title {
    color: var(--color-geoteco-primary);
    margin-bottom: 0.8rem;
}

.order-success-text {
    color: var(--color-text-muted);
    max-width: 62ch;
    margin: 0 auto 1.25rem;
}

.order-success-refs {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    margin: 0 auto 1rem;
    max-width: 460px;
    text-align: left;
}

.order-success-refs-label {
    margin-bottom: 0.55rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-success-ref-item {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-success-ref-item:last-child {
    border-bottom: none;
}

.order-success-next {
    margin-bottom: 1rem;
}

.order-success-next h2 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.order-success-next p {
    color: var(--color-text-muted);
    margin: 0;
}

.order-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    background: #fff;
}

.checkout-item-top {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checkout-item-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: start;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border);
}

.checkout-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-meta-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.checkout-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.checkout-meta-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: right;
    white-space: nowrap;
}

.checkout-meta-value.total {
    color: var(--color-geoteco-primary);
}

.checkout-meta-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-left: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .checkout-steps {
        gap: 0.5rem;
        margin-bottom: 1.1rem;
        font-size: 0.86rem;
        flex-wrap: wrap;
    }

    .checkout-card-header {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .checkout-card-body {
        padding: 1rem;
    }

    .checkout-item {
        padding: 0.75rem;
    }

    .checkout-submit-btn {
        padding: 0.85rem 1rem !important;
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }

    .checkout-submit-note {
        font-size: 0.8rem;
    }

    .checkout-item-meta {
        grid-template-columns: 1fr;
    }

    .order-success-card {
        padding: 1.5rem 1rem;
    }

    .order-success-icon {
        font-size: 2.4rem;
    }

    .order-success-ref-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
}

/* Cart Page Styles */
.cart-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.cart-item-left {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    object-fit: contain;
    display: block;
}

.cart-item-image.placeholder {
    display: block;
    width: 64px;
    height: 64px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.product-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
}

.product-variant {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.product-sku {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cart-data-block {
    text-align: center;
    min-width: 72px;
}

.cart-data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.cart-data-value {
    font-weight: 600;
    color: var(--color-geoteco-primary);
    font-size: 1.05rem;
}

.cart-data-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.qty-group {
    display: flex;
    align-items: center;
}

.input-group-custom {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-qty {
    background: var(--color-bg-alt);
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text);
    transition: background 0.2s;
}

.btn-qty:hover {
    background: #e9ecef;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    padding: 0.5rem 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.btn-delete {
    color: #dc2626;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-delete:hover {
    opacity: 1;
}

.line-total {
    font-weight: 600;
    white-space: nowrap;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.cart-actions {
    margin-top: 1rem;
}

.cart-summary {
    position: sticky;
    top: 96px;
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
    }

    .cart-item-right {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: space-between;
    }

    .cart-data-block {
        min-width: auto;
        flex: 1;
        text-align: left;
    }

    .cart-item-left {
        grid-template-columns: 64px 1fr;
        align-items: center;
    }

    .product-name {
        font-size: 1rem;
        line-height: 1.3;
    }

    .cart-data-value {
        font-size: 1rem;
    }

    .input-group-custom {
        width: 100%;
        justify-content: space-between;
    }

    .btn-qty {
        min-width: 40px;
    }

    .qty-input {
        width: 64px;
    }

    .cart-summary {
        padding: 1rem !important;
    }
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 1.25rem;
        align-items: start;
    }

    .cart-actions {
        margin-top: 0;
    }

    .cart-summary {
        position: sticky;
    }

    .cart-item {
        padding: 0.75rem 0.9rem;
        gap: 0.7rem;
        margin-bottom: 0.3rem;
        grid-template-columns: minmax(0, 520px) auto;
        justify-content: start;
    }

    .cart-item-left {
        grid-template-columns: 80px 1fr;
        gap: 0.7rem;
        align-items: center;
        max-width: 520px;
    }

    .cart-item-image,
    .cart-item-image.placeholder {
        width: 80px;
        height: 80px;
    }

    .cart-item-right {
        align-items: flex-start;
        gap: 1.4rem;
        justify-self: start;
    }

    .cart-data-block {
        min-width: 70px;
    }

    .cart-data-label {
        margin-bottom: 0.25rem;
    }

    .cart-data-value {
        font-size: 1.05rem;
    }

    .cart-data-sub {
        font-size: 0.75rem;
    }
}

@media (max-width: 991px) {
    .cart-summary {
        position: static;
    }
}


/* Products Page Refactor Styles */

/* Sidebar Navigation (Clean) */
.sidebar-nav {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-nav .brand-section {
    border-bottom: 1px solid var(--color-border);
}

.sidebar-nav .brand-section:last-child {
    border-bottom: none;
}

.sidebar-nav .brand-header {
    padding: 0.75rem 1rem;
    background: var(--color-bg-alt);
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .category-item {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-nav .category-link {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-nav .category-link:hover {
    background-color: #f8f9fa;
    color: var(--color-geoteco-primary);
}

.sidebar-nav .category-link.active {
    background-color: #f0fdf4;
    color: var(--color-geoteco-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-geoteco-primary);
}

.sidebar-nav .subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fcfcfc;
    display: none;
    /* Hidden by default unless active or expanded */
}

.sidebar-nav .category-item.expanded .subcategory-list {
    display: block;
}

.sidebar-nav .subcategory-link {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    /* Indented */
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-nav .subcategory-link:hover {
    color: var(--color-geoteco-primary);
}

.sidebar-nav .subcategory-link.active {
    color: var(--color-geoteco-primary);
    font-weight: 600;
}

/* Top Bar */
.product-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.product-top-bar h1 {
    margin: 0;
    font-size: 1.25rem;
}

.top-bar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-filter:hover,
.btn-filter.active {
    border-color: var(--color-geoteco-primary);
    color: var(--color-geoteco-primary);
    background: #f0fdf4;
}

.filter-count {
    background: var(--color-geoteco-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

/* Filter Panel */
.filter-panel {
    display: none;
    /* Hidden by default */
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-panel.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.filter-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    accent-color: var(--color-geoteco-primary);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    width: 80px;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.filter-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.btn-clear-filters {
    color: var(--color-text-muted);
    text-decoration: underline;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-clear-filters:hover {
    color: var(--color-text);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar-actions {
        justify-content: space-between;
    }

    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        display: none;
    }

    .filter-panel.open {
        display: flex;
        flex-direction: column;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        flex: 1;
    }

    .filter-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }
}

/* Search Dropdown */
.search-container {
    position: relative;
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown form {
    display: flex;
    gap: 0.5rem;
}

.search-dropdown input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.search-dropdown button[type="submit"] {
    background: var(--color-geoteco-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}

.search-dropdown button[type="submit"]:hover {
    background: var(--color-geoteco-secondary);
}

/* Header Search Autocomplete */
.header-search-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.header-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 450px;
    width: max-content;
    max-width: 550px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 4px;
}

.header-autocomplete.active {
    display: block;
}

.ac-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.selected {
    background-color: #f9fafb;
}

.ac-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 0.8rem;
    background: #f3f4f6;
    flex-shrink: 0;
}

.ac-img-placeholder {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.ac-info {
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #111;
    line-height: 1.3;
    /* Allow wrapping for long names */
    white-space: normal;
    word-break: break-word;
}

.ac-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.ac-sku {
    font-family: monospace;
    background: #e5e7eb;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.ac-no-results {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* =========================================
   Global Footer Styles
   ========================================= */

/* Footer Container */
.global-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: var(--font-main);
    margin-top: auto;
}

/* 1. Top Logo Strip */
.footer-logo-strip {
    background-color: var(--color-geoteco-primary);
    /* Green Strip */
    padding: 1rem 0;
    width: 100%;
}

.logo-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* Spacing between logos */
    flex-wrap: wrap;
    /* Stack on very small screens if needed */
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

/* Filter to turn existing color logos to white */
.white-filter {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* 2. Main Black Footer */
.footer-main {
    background-color: #000000;
    /* Pure Black */
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns on Desktop */
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

/* Green Underline */
.footer-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-geoteco-primary);
    margin-top: 8px;
    margin-bottom: 12px;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.info-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
}

.footer-info a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info a:hover {
    color: var(--color-geoteco-primary);
}

/* Column 3 & 4 Links */
.footer-links,
.footer-social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--color-geoteco-primary);
}

/* Social / Find Us */
.footer-social-links li {
    margin-bottom: 1rem;
}

.social-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.2s;
}

.social-link-row:hover {
    color: var(--color-geoteco-primary);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
}

.social-text {
    font-size: 0.95rem;
}

/* 3. Bottom Bar */
.footer-bottom {
    background-color: #000000;
    border-top: 1px solid #222;
    /* Dark line separator */
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-center {
    display: flex;
    gap: 0.5rem;
}

.payment-icon {
    width: 36px;
    height: auto;
    border-radius: 2px;
    background: #fff;
    /* White bg for payment icons to pop */
    padding: 2px;
}

.gear-icon {
    width: 16px;
    height: 16px;
    color: #555;
}

.credits-link {
    color: #888;
    text-decoration: none;
}

.credits-link:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid on Tablet */
    }
}

@media (max-width: 768px) {
    .logo-strip-inner {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on Mobile */
        text-align: center;
        gap: 2.5rem;
    }

    .footer-title::after {
        margin: 8px auto 12px;
        /* Center the underline */
    }

    .footer-col {
        align-items: center;
    }

    .social-link-row {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* Product Detail Page Redesign */

.product-detail-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 992px) {
    .product-main-grid {
        grid-template-columns: 4fr 6fr; /* 40% - 60% split */
        gap: var(--spacing-xl);
        align-items: start;
    }
}

/* Product Images */
.product-image-block {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
}

.main-image-wrapper {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Fixed height container */
    max-height: 500px;
}

.main-image-wrapper img {
    max-height: 450px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.product-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Product Info Column */
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.brand-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.brand-badge.geoteco {
    background-color: var(--color-geoteco-light);
    color: var(--color-geoteco-dark);
}

.brand-badge.debla {
    background-color: #fff9c4; /* lightly yellow */
    color: #f57f17;
}

.product-title-lg {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.product-description-short {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.product-desc .desc-bullets {
    list-style: disc;
    list-style-position: outside;
    margin: 8px 0 10px 18px;
    padding-left: 16px;
}

.product-desc .desc-bullets li {
    margin: 4px 0;
}

/* Modern browsers: color only the bullet marker */
.product-desc .desc-bullets li::marker {
    color: #2e7d32;
}

/* Fallback for browsers without ::marker support */
@supports not (selector(::marker)) {
    .product-desc .desc-bullets {
        list-style: none;
        padding-left: 0;
        margin-left: 0;
    }
    .product-desc .desc-bullets li {
        position: relative;
        padding-left: 18px;
    }
    .product-desc .desc-bullets li::before {
        content: "•";
        color: #2e7d32;
        position: absolute;
        left: 0;
        top: 0;
    }
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--color-text-muted);
}

.wholesale-notice {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Variants Table Modern */
.variants-header {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-border);
}

.variants-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem; /* Row spacing */
}

.variants-table-modern th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: none;
}

.variants-table-modern tbody tr {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.variants-table-modern tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 1;
    position: relative;
}

.variants-table-modern td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.variants-table-modern td:first-child {
    border-left: 1px solid var(--color-border);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.variants-table-modern td:last-child {
    border-right: 1px solid var(--color-border);
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.sku-text {
    font-family: monospace;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.price-net {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.price-vat {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.price-gross {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-geoteco-primary);
    margin-top: 0.2rem;
}

.qty-controls-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.qty-input-modern {
    width: 70px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    font-weight: 600;
}

.btn-add-cart-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-geoteco-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.btn-add-cart-icon:hover {
    background: var(--color-geoteco-dark);
}

/* Product Page Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 1rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .product-title-lg {
        font-size: 1.25rem !important;
    }
    
    .variants-section {
        margin-top: 1.5rem;
    }
    
    .variants-table-modern {
        font-size: 0.85rem;
    }
    
    .variants-table-modern th {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .variants-table-modern td {
        padding: 0.5rem;
    }
    
    .qty-controls-modern {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .qty-input-modern {
        width: 50px;
        padding: 0.25rem;
        font-size: 0.85rem;
    }
    
    .btn-qty {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem;
    }
    
    .btn-add-cart-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .price-block {
        font-size: 0.85rem;
    }
    
    .price-net {
        font-size: 0.95rem !important;
    }
    
    .thumbnails-row {
        flex-wrap: wrap !important;
    }
    
    .thumbnail {
        width: 50px !important;
        height: 50px !important;
    }
    
    .info-section {
        padding: 1rem;
    }
}

/* Tabs / Info Sections below */
.info-section {
    margin-top: var(--spacing-xl);
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.info-section h3 {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    color: var(--color-text);
}

/* =====================================================
   HERO SECTION STYLES
   ===================================================== */

.hero-carousel {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 80px); /* Full viewport minus header */
    min-height: 500px;
}

.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero buttons - side by side by default */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Hero - take full available space */
@media (max-width: 991px) {
    .hero-carousel {
        height: calc(100svh - 80px); /* Use svh for mobile browsers */
        min-height: 70vh;
        max-height: none;
    }
    
    .hero-section {
        min-height: calc(100svh - 80px);
        padding: 2rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    .hero-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Hero buttons stay side by side on mobile */
    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        min-width: auto;
        flex: 0 0 auto;
    }
}

/* Extra small screens - only stack if really needed */
@media (max-width: 340px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
}

/* =====================================================
   BRANDS SECTION
   ===================================================== */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.brand-card {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Stack brand cards on mobile */
@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brand-card {
        padding: 1.5rem;
    }
}

/* Info Pages Typography & Layout */
.info-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.info-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-geoteco-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 3rem; /* Extra space below title */
}

/* Headings */
.info-content h2,
.info-content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.3;
}

.info-content h2 {
    font-size: 1.5rem; /* ~24px */
}

.info-content h3 {
    font-size: 1.25rem; /* ~20px */
}

/* Paragraphs */
.info-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem; /* ~16px */
    color: var(--color-text);
}

/* Lists */
.info-content ul,
.info-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .info-page-container {
        padding: 2rem 1rem;
    }
    
    .info-page-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

/* =====================================================
   MOBILE MENU STYLES
   ===================================================== */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--color-geoteco-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: -1; /* Put before logos */
    margin-right: 12px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    background: white;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Contain children */
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: var(--color-geoteco-primary);
    flex-shrink: 0; /* Don't shrink */
}

.mobile-menu-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Search Section (at top) */
.mobile-search-section {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Don't shrink */
}

/* Mobile Bottom Actions (Cart, Language - below menu) */
.mobile-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    flex-shrink: 0; /* Don't shrink */
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-action-btn--icon-only {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    position: relative;
}

.mobile-action-btn--icon-only .mobile-action-label {
    display: none;
}

.mobile-action-btn svg {
    color: var(--color-geoteco-primary);
}

.mobile-cart-badge {
    background: var(--color-geoteco-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-action-btn--icon-only .mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    margin: 0;
}

.mobile-lang-form {
    display: flex;
    gap: 0.25rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.mobile-lang-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.mobile-lang-btn.active {
    background: var(--color-geoteco-primary);
    color: white;
}

.mobile-search-form {
    flex: 1;
    min-width: 150px;
    display: flex;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.mobile-search-form input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
}

.mobile-search-form button {
    padding: 0.5rem 0.75rem;
    background: var(--color-geoteco-primary);
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain; /* Prevent scroll chaining */
    min-height: 0; /* Critical for flexbox scrolling */
}

/* Main Links */
.mobile-menu-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
    background: #f9f9f9;
}

/* Accordion Trigger */
.mobile-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: left;
    transition: background 0.2s ease;
}

.mobile-accordion-trigger:hover {
    background: #f9f9f9;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-accordion-trigger.active .accordion-arrow {
    transform: rotate(180deg);
}

/* Accordion Content */
.mobile-accordion-content {
    display: none;
    background: #fafafa;
}

.mobile-accordion-content.active {
    display: block;
}

.mobile-submenu-link {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.mobile-submenu-link:hover {
    background: #f0f0f0;
}

.mobile-view-all {
    font-weight: 600;
    color: var(--color-geoteco-primary);
}

/* Category Group (nested accordion) */
.mobile-category-group {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-align: left;
    transition: background 0.2s ease;
}

.mobile-category-trigger:hover {
    background: #f0f0f0;
}

.mobile-category-trigger.active .accordion-arrow {
    transform: rotate(180deg);
}

/* Subcategory Content */
.mobile-subcategory-content {
    display: none;
    background: #f5f5f5;
}

.mobile-subcategory-content.active {
    display: block;
}

/* Level 3 subcategory styling */
.mobile-subcategory-group {
    margin: 0;
}

.mobile-subcategory-group .mobile-category-trigger {
    padding-left: 2rem;
    font-size: 0.9rem;
    background: #f0f0f0;
}

.mobile-subcategory-content.mobile-level3 {
    background: #e8e8e8;
    padding-left: 1rem;
}

.mobile-subcategory-content.mobile-level3 .mobile-subcategory-link {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

.mobile-subcategory-link {
    display: block;
    padding: 0.6rem 1.25rem 0.6rem 3rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-subcategory-link:hover {
    background: #eee;
    color: var(--color-text-main);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0; /* Don't shrink - always visible */
}

.mobile-logout-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s ease;
}

.mobile-logout-btn:hover {
    background: #b91c1c;
}

.mobile-login-btn {
    display: block;
    text-align: center;
    background: var(--color-geoteco-primary);
    color: white !important;
    border-radius: 6px;
    padding: 0.75rem 1rem !important;
    border: none;
}

.mobile-login-btn:hover {
    background: var(--color-geoteco-dark);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===========================================
   MOBILE RESPONSIVE TABLES - Card Layout
   =========================================== */

/* --- Product Variants Table (Mobile) --- */
@media (max-width: 768px) {
    .variants-table-modern {
        display: block;
    }
    
    .variants-table-modern thead {
        display: none;
    }
    
    .variants-table-modern tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .variants-table-modern tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
    
    .variants-table-modern tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .variants-table-modern tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 1rem;
    }
    
    .variants-table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        min-width: 100px;
        flex-shrink: 0;
    }
    
    .variants-table-modern .sku-text {
        font-weight: 600;
        color: var(--color-geoteco-primary);
    }
    
    .variants-table-modern .price-block {
        text-align: right;
    }
    
    .variants-table-modern .qty-controls-modern {
        justify-content: flex-end;
    }
    
    .variants-table-modern .btn-add-cart-icon {
        width: 100%;
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }
    
    /* Table responsive wrapper */
    .table-responsive {
        overflow-x: visible;
    }
}

/* --- Cart Table (Mobile) --- */
@media (max-width: 768px) {
    .cart-table {
        display: block;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-table .cart-row {
        display: block;
        background: white;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
        position: relative;
    }
    
    .cart-table .cart-cell {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-table .cart-cell:last-child {
        border-bottom: none;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0;
    }
    
    .cart-table .cart-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        min-width: 80px;
        flex-shrink: 0;
    }
    
    /* Product cell - no label needed, it's the main content */
    .cart-table .cart-cell.col-product::before {
        display: none;
    }
    
    .cart-table .cart-cell.col-product {
        display: block;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    /* Delete button cell */
    .cart-table .cart-cell.col-action::before {
        display: none;
    }
    
    /* Quantity controls on mobile */
    .cart-table .qty-group {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .cart-table .input-group-custom {
        width: auto;
    }
}

/* --- Checkout Table (Mobile) --- */
@media (max-width: 768px) {
    .checkout-items-table {
        display: block;
    }
    
    .checkout-items-table thead {
        display: none;
    }
    
    .checkout-items-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .checkout-items-table tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 1rem;
    }
    
    .checkout-items-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .checkout-items-table tbody td:last-child {
        border-bottom: none;
    }
    
    .checkout-items-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    /* Product name cell - full width */
    .checkout-items-table tbody td:first-child::before {
        display: none;
    }
    
    .checkout-items-table tbody td:first-child {
        display: block;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border);
        font-weight: 600;
    }
}

/* =====================================================
   Premium Shell System Overrides (Phase 3)
   ===================================================== */
:root {
    /* Core neutrals */
    --surface-0: #f6f7f5;
    --surface-1: #ffffff;
    --surface-2: #f3f4f2;
    --surface-3: #eaede9;

    --text-strong: #161b18;
    --text-body: #2a352e;
    --text-muted: #67736c;
    --text-subtle: #849087;

    --border-soft: #dfe5df;
    --border-strong: #c7d0c8;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 30px rgba(15, 24, 19, 0.08);
    --shadow-panel: 0 20px 48px rgba(15, 24, 19, 0.12);
    --shadow-lift: 0 10px 24px rgba(15, 24, 19, 0.1);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;

    --duration-fast: 160ms;
    --duration-base: 200ms;
    --duration-slow: 220ms;
    --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);

    --content-max-width: 1360px;
    --header-height: 78px;

    /* Compatibility aliases for existing templates */
    --color-bg: var(--surface-0);
    --color-bg-alt: var(--surface-2);
    --color-text: var(--text-body);
    --color-text-main: var(--text-strong);
    --color-text-muted: var(--text-muted);
    --color-border: var(--border-soft);
    --color-geoteco-secondary: var(--color-geoteco-dark);

    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-4);
    --spacing-lg: var(--space-6);
    --spacing-xl: 3rem;

    --shadow-sm: 0 3px 12px rgba(15, 24, 19, 0.06);
    --shadow-md: 0 8px 20px rgba(15, 24, 19, 0.08);
    --shadow-lg: 0 16px 38px rgba(15, 24, 19, 0.12);
}

body {
    background: var(--surface-0);
    color: var(--text-body);
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-inline: clamp(1rem, 2.2vw, 2rem);
}

.container-fluid {
    padding-inline: clamp(1rem, 2.8vw, 2.5rem);
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 0 rgba(22, 27, 24, 0.04);
    backdrop-filter: saturate(150%) blur(8px);
}

.header-inner {
    min-height: var(--header-height);
    height: auto;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
    flex-wrap: nowrap;
}

.brand-logos {
    gap: 0.85rem;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.25rem;
    transition: background-color var(--duration-fast) var(--ease-standard),
                transform var(--duration-fast) var(--ease-standard);
}

.brand-link:hover {
    background: rgba(74, 124, 89, 0.08);
}

.brand-link:focus-visible {
    outline: 2px solid var(--color-geoteco-primary);
    outline-offset: 2px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-divider {
    width: 1px;
    height: 30px;
    background: var(--border-strong);
    opacity: 0.75;
}

.header-nav {
    min-width: 0;
}

.nav-menu {
    gap: clamp(0.6rem, 1.4vw, 1.5rem);
}

.nav-link {
    position: relative;
    color: var(--text-body);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.2rem;
    transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 2px;
    border-radius: 2px;
    background: var(--color-geoteco-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-base) var(--ease-standard);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.has-mega:hover > .nav-link {
    color: var(--text-strong);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-item.has-mega:hover > .nav-link::after {
    transform: scaleX(1);
}

.header-actions {
    gap: 0.35rem;
}

.search-toggle-btn,
.header-cart-link,
.user-menu-trigger,
.user-login-link {
    min-height: 40px;
}

.search-toggle-btn {
    color: var(--text-body);
    border: 1px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.search-toggle-btn:hover,
.search-toggle-btn:focus-visible {
    background-color: var(--surface-2);
    border-color: var(--border-soft);
    color: var(--text-strong);
}

.search-dropdown {
    top: calc(100% + 0.65rem);
    width: min(500px, 86vw);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
    background: var(--surface-1);
    padding: 0.9rem;
}

.search-dropdown form {
    display: block;
}

.header-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search-wrapper input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--text-strong);
    padding: 0.62rem 0.75rem;
    font-size: 0.92rem;
}

.header-search-wrapper input[type="text"]:focus {
    border-color: var(--color-geoteco-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.16);
}

.header-search-wrapper button[type="submit"] {
    border: 1px solid var(--color-geoteco-primary);
    border-radius: var(--radius-sm);
    background: var(--color-geoteco-primary);
    color: #fff;
    padding: 0.62rem 0.95rem;
    font-weight: 600;
    transition: transform var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.header-search-wrapper button[type="submit"]:hover {
    background: var(--color-geoteco-dark);
    border-color: var(--color-geoteco-dark);
    transform: translateY(-1px);
}

.header-autocomplete {
    margin-top: 0.5rem;
    min-width: 100%;
    width: 100%;
    max-width: none;
    border-color: var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.ac-item {
    border-bottom-color: #eef1ed;
}

.ac-item:hover,
.ac-item.selected {
    background-color: var(--surface-2);
}

.header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    color: var(--text-body);
    margin-right: 0.35rem;
    padding: 0.2rem 0.6rem;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.header-cart-link:hover {
    background: var(--surface-2);
    color: var(--text-strong);
}

.header-cart-icon {
    width: 22px;
    height: 22px;
    opacity: 0.88;
}

.badge-cart {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-geoteco-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(54, 92, 66, 0.28);
}

.header-lang-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.3rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-1);
}

.header-lang-form > span {
    color: var(--text-muted);
    font-size: 0.82rem;
    user-select: none;
}

.lang-btn {
    min-width: 2rem;
    height: 1.9rem;
    padding: 0 0.45rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    border: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.lang-btn-active {
    background: var(--surface-2);
    color: var(--color-geoteco-dark);
    text-decoration: none;
}

.lang-btn-inactive:hover {
    color: var(--text-strong);
}

.user-menu-container {
    margin-left: 0.6rem;
    position: relative;
}

.user-menu-trigger {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-body);
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    transition: background-color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible {
    background: var(--surface-2);
    border-color: var(--border-soft);
    color: var(--text-strong);
}

.user-menu-name {
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: 220px;
    z-index: 1000;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel);
    padding: 0.35rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--duration-base) var(--ease-standard),
                transform var(--duration-base) var(--ease-standard),
                visibility var(--duration-base) var(--ease-standard);
}

.user-menu-container:hover .user-dropdown-menu,
.user-menu-container:focus-within .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-link,
.user-dropdown-logout {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    text-align: left;
    text-decoration: none;
    color: var(--text-body);
    padding: 0.62rem 0.7rem;
    font-size: 0.9rem;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.user-dropdown-link:hover,
.user-dropdown-link:focus-visible {
    background: var(--surface-2);
    color: var(--text-strong);
}

.user-dropdown-logout {
    color: #b42318;
    cursor: pointer;
}

.user-dropdown-logout:hover,
.user-dropdown-logout:focus-visible {
    background: #fee4e2;
    color: #912018;
}

.user-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    padding: 0.35rem 0.6rem;
    transition: background-color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.user-login-link:hover,
.user-login-link:focus-visible {
    background: var(--surface-2);
    border-color: var(--border-soft);
    color: var(--text-strong);
}

.menu-form-reset {
    margin: 0;
}

.mega-menu {
    top: var(--header-height);
    background: var(--surface-1);
    border-top: 1px solid var(--border-soft);
    box-shadow: var(--shadow-panel);
    max-height: min(78vh, calc(100vh - var(--header-height)));
}

.mega-menu-grid {
    background: var(--surface-1);
    padding: 0 clamp(1rem, 2.6vw, 2.5rem);
}

.mega-col {
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--border-soft);
    max-height: none;
}

.mega-col a {
    padding: 0.5rem 0.62rem;
    border-radius: 10px;
    color: var(--text-body);
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.mega-col a:hover,
.mega-col li.active > a {
    background-color: var(--surface-2);
    color: var(--text-strong);
}

.mega-placeholder {
    color: var(--text-muted);
}

.btn {
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: transform var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    border-width: 1px;
    border-color: var(--border-strong);
}

.global-footer {
    border-top: 1px solid rgba(22, 27, 24, 0.08);
}

.footer-logo-strip {
    background: linear-gradient(120deg, var(--color-geoteco-dark) 0%, var(--color-geoteco-primary) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0;
}

.logo-strip-inner {
    gap: clamp(2rem, 6vw, 5rem);
}

.footer-logo {
    height: 42px;
    opacity: 0.95;
}

.footer-main {
    background: #0f1310;
    color: #d4ddd6;
    padding: 3.2rem 0 2.4rem;
}

.footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 2vw, 2.5rem);
}

.footer-title {
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.7rem;
}

.footer-title::after {
    width: 42px;
    height: 2px;
    margin-top: 0.55rem;
    margin-bottom: 0.85rem;
    background: var(--color-debla-primary);
}

.footer-subtitle {
    font-size: 0.82rem;
    font-weight: 500;
    color: #a9b4ad;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.88rem;
    line-height: 1.58;
    color: #c5cec6;
}

.info-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-info a,
.footer-links a,
.social-link-row {
    color: #d7ddd6;
}

.footer-info a:hover,
.footer-links a:hover,
.social-link-row:hover {
    color: #fff;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
}

.social-link-row {
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.social-link-row:hover {
    border-color: rgba(253, 216, 53, 0.42);
    background: rgba(255, 255, 255, 0.03);
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: #f0f0f0;
}

.footer-bottom {
    background: #0b0f0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #95a39a;
    padding: 0.9rem 0;
}

.footer-bottom-inner {
    gap: 0.75rem;
}

.gear-icon {
    color: #75837a;
}

/* Mobile shell tuning */
@media (max-width: 991px) {
    .header-inner {
        min-height: 72px;
        justify-content: flex-start;
        gap: 0.65rem;
    }

    .brand-logo {
        height: 34px;
    }

    .brand-divider {
        height: 24px;
    }

    .mobile-menu-toggle {
        border-radius: var(--radius-sm);
        background: var(--color-geoteco-primary);
        box-shadow: 0 8px 18px rgba(54, 92, 66, 0.24);
    }
}

@media (max-width: 768px) {
    .search-dropdown {
        width: min(92vw, 420px);
        right: -0.35rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }

    .footer-col {
        align-items: flex-start;
    }

    .footer-title::after {
        margin-left: 0;
        margin-right: 0;
    }

    .social-link-row {
        justify-content: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Accessible focus rings across shell controls */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(74, 124, 89, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* =====================================================
   Storefront Journey System (Phase 4)
   ===================================================== */

/* Shared section rhythm */
.home-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.home-section-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2vw, 1.8rem);
}

.home-section-head {
    max-width: 760px;
    margin: 0 auto;
}

.home-section-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.home-section-title {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

/* Home hero */
.home-hero {
    position: relative;
    background: #0e1310;
}

.home-hero .hero-carousel {
    position: relative;
    min-height: min(760px, calc(100vh - var(--header-height)));
    height: calc(100vh - var(--header-height));
    max-height: 860px;
    overflow: hidden;
}

.home-hero .hero-carousel.hero-carousel--single {
    height: min(760px, calc(100vh - var(--header-height)));
}

.home-hero .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-standard),
                visibility var(--duration-slow) var(--ease-standard);
}

.home-hero .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, rgba(9, 12, 10, 0.68) 0%, rgba(9, 12, 10, 0.42) 45%, rgba(9, 12, 10, 0.6) 100%);
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #fff;
    gap: 0.9rem;
}

.hero-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.hero-title {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2rem, 5.4vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero-subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: clamp(1rem, 1.7vw, 1.32rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
    margin-top: 0.45rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-buttons .btn {
    min-width: 172px;
    min-height: 44px;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(15, 22, 18, 0.38);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                transform var(--duration-fast) var(--ease-standard);
}

.hero-control:hover {
    background: rgba(15, 22, 18, 0.56);
    border-color: rgba(255, 255, 255, 0.68);
}

.hero-control:active {
    transform: translateY(-50%) scale(0.97);
}

.hero-control--prev {
    left: clamp(0.75rem, 1.8vw, 1.75rem);
}

.hero-control--next {
    right: clamp(0.75rem, 1.8vw, 1.75rem);
}

/* Home brand cards */
.home-section--brands {
    background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
}

.home-brand-grid {
    gap: clamp(1rem, 1.8vw, 1.4rem);
}

.home-brand-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    padding: clamp(1.2rem, 2.5vw, 1.75rem);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.home-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.home-brand-card--geoteco:hover {
    border-color: rgba(74, 124, 89, 0.45);
}

.home-brand-card--debla:hover {
    border-color: rgba(253, 216, 53, 0.55);
}

.home-brand-logo-wrap {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.home-brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.home-brand-description {
    margin: 0;
    color: var(--text-body);
    line-height: 1.55;
}

.home-brand-cta {
    margin-top: auto;
}

/* Home product rails */
.home-section--products {
    background: var(--surface-2);
}

.home-section--offers {
    background: var(--surface-1);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.home-product-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.home-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-strong);
}

.home-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-product-image-frame {
    position: relative;
    height: 210px;
    padding: 1.15rem;
    border-bottom: 1px solid #eef1ed;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-product-empty {
    font-size: 0.82rem;
    color: var(--text-subtle);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-product-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1rem 1.1rem;
    min-height: 150px;
}

.home-product-brand {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
}

.home-product-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65em;
}

.home-product-price-row {
    margin-top: auto;
    min-height: 1.45rem;
    display: flex;
    align-items: center;
}

.home-product-price {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-geoteco-primary);
}

.home-product-state {
    font-size: 0.82rem;
    color: #a66f16;
    font-weight: 600;
}

.home-product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(253, 216, 53, 0.95);
    color: #3b3220;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.27rem 0.52rem;
}

/* Brand landing */
.brand-home-hero {
    padding: clamp(2.6rem, 5vw, 4.8rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border-soft);
}

.brand-home-hero--geoteco {
    background: linear-gradient(180deg, #eef4ef 0%, #f8faf8 100%);
}

.brand-home-hero--debla {
    background: linear-gradient(180deg, #fff9e4 0%, #fffdf5 100%);
}

.brand-home-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.brand-home-logo {
    max-height: 76px;
    width: auto;
    object-fit: contain;
}

.brand-home-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-strong);
}

.brand-home-description {
    margin: 0;
    max-width: 760px;
    color: var(--text-body);
    line-height: 1.62;
}

.brand-home-categories {
    padding-top: clamp(2rem, 3.4vw, 3rem);
}

.brand-category-grid-wrap {
    margin-top: 0.4rem;
}

.brand-category-grid {
    gap: 1rem;
}

.brand-category-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.brand-category-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
}

/* Product list + detail shared shell */
.products-page-container,
.product-detail-container {
    width: min(100%, var(--content-max-width));
    margin: 0 auto;
    padding: clamp(1rem, 2.4vw, 1.6rem) clamp(0.85rem, 2vw, 1.3rem) clamp(2rem, 3vw, 3rem);
}

.products-layout,
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(250px, 282px) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.products-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: sticky;
    top: calc(var(--header-height) + 0.9rem);
    align-self: start;
}

.products-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title,
.sidebar-card h2 {
    margin: 0 0 0.7rem;
    padding: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-soft);
}

.category-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.brand-group {
    border-radius: var(--radius-sm);
    border: 1px solid #edf1ed;
    background: #fff;
    overflow: hidden;
}

.brand-toggle,
.category-toggle {
    width: 100%;
    padding: 0.58rem 0.68rem;
    border: none;
    background: #fff;
    text-align: left;
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.brand-toggle:hover,
.category-toggle:hover {
    background: var(--surface-2);
    color: var(--text-strong);
}

.brand-panel,
.category-level-2 {
    padding: 0.35rem 0.6rem 0.6rem 0.95rem;
}

.arrow {
    font-size: 0.68rem;
    color: var(--text-subtle);
}

.hidden {
    display: none;
}

.category-item.is-active {
    background: #edf6ef;
    border-radius: 8px;
}

.category-item.is-active > .category-link {
    font-weight: 700;
    color: var(--color-geoteco-dark);
}

.category-link {
    display: block;
    padding: 0.34rem 0.52rem;
    border-radius: 8px;
    color: var(--text-body);
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.category-link:hover {
    color: var(--color-geoteco-dark);
    background: var(--surface-2);
}

.products-main,
.product-detail-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.products-breadcrumbs,
.product-breadcrumbs {
    font-size: 0.86rem;
    color: var(--text-muted);
    padding-inline: 0.25rem;
}

.products-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: 0 0 0.45rem;
}

.products-breadcrumbs a,
.product-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.products-breadcrumbs a:hover,
.product-breadcrumbs a:hover {
    color: var(--text-strong);
}

.breadcrumb-current {
    color: var(--text-strong);
    font-weight: 600;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.9rem;
    padding: 0.2rem 0.15rem 0.8rem;
    border-bottom: 1px solid var(--border-soft);
}

.products-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.products-count {
    font-size: 0.92rem;
}

.sort-select-input {
    width: auto;
    min-width: 210px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--text-body);
    font-size: 0.88rem;
    padding: 0.47rem 0.7rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-1);
    color: var(--text-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.filter-group {
    margin-bottom: 0.7rem;
}

.filter-label {
    display: block;
    margin-bottom: 0.34rem;
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-body);
}

.filter-option input {
    accent-color: var(--color-geoteco-primary);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.36rem;
}

.price-inputs input {
    width: 72px;
    padding: 0.34rem 0.42rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--surface-1);
    color: var(--text-body);
    font-size: 0.84rem;
}

.filter-actions {
    margin-top: 0.95rem;
    padding-top: 0.7rem;
    border-top: 1px solid #edf1ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.btn-clear-filters {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-clear-filters:hover {
    color: var(--text-strong);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(222px, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

.product-card-wrapper {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
    display: flex;
}

.product-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-strong);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-image-container {
    height: 220px;
    background: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eef1ed;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: var(--text-subtle);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-details {
    padding: 0.85rem 0.9rem 0.95rem;
    display: flex;
    flex: 1;
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brand-label {
    font-size: 0.68rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-title {
    margin: 0.18rem 0 0.34rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.34;
    color: var(--text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65em;
}

.product-description {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: 3.9em;
    margin-bottom: 0;
}

.product-description.is-empty {
    visibility: hidden;
}

.product-price {
    margin-top: 0.1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-geoteco-primary);
    min-height: 2.45rem;
    display: flex;
    align-items: flex-start;
}

.product-price-state {
    font-size: 0.8rem;
    font-weight: 600;
}

.product-price-state--pending {
    color: #a66f16;
}

.product-price-state--login {
    color: var(--text-muted);
}

.product-actions {
    margin-top: auto;
    padding-top: 0.65rem;
}

.view-options-btn {
    width: 100%;
    min-height: 40px;
    padding-inline: 0.65rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
}

.quick-add-single-variant {
    margin-left: 0;
}

.quick-add-single-variant.is-loading {
    opacity: 0.84;
}

.loading-overlay {
    display: none;
}

.no-products {
    grid-column: 1 / -1;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Product detail visuals */
.product-detail-container.section {
    padding-top: clamp(1rem, 2vw, 1.4rem);
}

.product-detail-layout {
    grid-template-columns: minmax(250px, 282px) minmax(0, 1fr);
}

.product-breadcrumbs {
    margin-bottom: 0.8rem;
}

.back-to-results {
    color: var(--color-geoteco-primary);
    font-weight: 600;
    text-decoration: none;
}

.back-to-results:hover {
    text-decoration: underline;
}

.product-main-grid {
    display: grid;
    grid-template-columns: minmax(330px, 40%) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.6rem);
    margin-bottom: 1rem;
}

.product-image-block {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.main-image-wrapper {
    border: 1px solid #e9ede8;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fdfefd 0%, #f5f7f4 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-image-wrapper a.glightbox {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    transition: transform var(--duration-base) var(--ease-standard);
}

.main-image-wrapper:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.36rem 0.56rem;
    border-radius: 8px;
    background: rgba(11, 17, 13, 0.6);
    color: #fff;
    font-size: 0.78rem;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-standard);
    pointer-events: none;
}

.main-image-wrapper:hover .zoom-hint {
    opacity: 1;
}

.product-placeholder {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-soft);
    background: #f7f9f6;
    color: var(--text-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-weight: 600;
}

.product-placeholder i {
    font-size: 3rem;
    opacity: 0.45;
}

.product-placeholder-note {
    font-size: 0.8rem;
    margin-top: 0.45rem;
    font-weight: 500;
}

.gallery-link-hidden {
    display: none;
}

.thumbnails-row {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-standard),
                transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
}

.thumbnail:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 124, 89, 0.55);
}

.thumbnail.active {
    border-width: 2px;
    border-color: var(--color-geoteco-primary);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.14);
}

.thumbnail-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info-col {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 2vw, 1.35rem);
    box-shadow: var(--shadow-sm);
    gap: 0.85rem;
}

.brand-badge {
    border-radius: var(--radius-pill);
    padding: 0.23rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-title-lg {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.08;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.product-description-main {
    margin: 0.3rem 0;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid #e8ede7;
    border-radius: var(--radius-md);
    background: #f8fbf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.product-description-main .description-content {
    font-size: 0.95rem;
    line-height: 1.68;
    color: var(--text-body);
}

.product-description-short {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.58;
}

.wholesale-notice {
    margin-top: 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e9ede8;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.variants-section {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(0.85rem, 2vw, 1.2rem);
}

.variants-header {
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e8ede7;
}

.variants-header h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--text-strong);
}

.variants-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.variants-table-modern th,
.variants-table-modern td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #ebefea;
    vertical-align: middle;
}

.variants-table-modern thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-subtle);
    background: #f7f9f6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.variants-col--quantity {
    text-align: right;
}

.variants-col--action {
    width: 52px;
}

.variants-table-modern td[data-label="Quantity"] {
    text-align: right;
}

.variant-name {
    font-weight: 600;
    color: var(--text-strong);
}

.variant-attr {
    margin-top: 0.18rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-block {
    gap: 0.14rem;
}

.price-net {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-geoteco-primary);
}

.price-vat {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.qty-controls-modern {
    justify-content: flex-end;
}

.btn-qty {
    min-width: 30px;
    min-height: 30px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #fff;
}

.qty-input-modern {
    width: 70px;
    height: 34px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #fff;
}

.variant-step-note {
    margin-top: 0.22rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: right;
}

.btn-add-cart-icon {
    border-radius: 10px;
    width: 38px;
    height: 38px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-key,
.spec-value {
    padding: 0.6rem 0.65rem;
    border-bottom: 1px solid #ebefea;
    font-size: 0.9rem;
}

.spec-key {
    width: 30%;
    color: var(--text-body);
    font-weight: 600;
    text-align: left;
}

.spec-value {
    color: var(--text-body);
}

.info-description-body {
    line-height: 1.65;
    color: var(--text-body);
}

.info-section {
    margin-top: 0.95rem;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(0.9rem, 2vw, 1.25rem);
}

.info-section h3 {
    margin: 0 0 0.75rem;
    padding-bottom: 0.48rem;
    border-bottom: 1px solid #e8ede7;
    font-size: 1.02rem;
    color: var(--text-strong);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.document-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.78rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e9ede8;
    background: #f8faf8;
}

.document-row:hover {
    background: #f2f6f2;
}

.doc-icon {
    font-size: 1.3rem;
    color: #cf3333;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-title {
    margin: 0 0 0.15rem;
    font-weight: 600;
    color: var(--text-strong);
}

.doc-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.meta-separator {
    margin: 0 0.4rem;
    color: var(--text-subtle);
}

.badge-lang {
    border-radius: 8px;
    background: #e9eeea;
    color: var(--text-body);
    padding: 0.12rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.doc-action {
    margin-left: 0.65rem;
}

/* Mobile behavior */
.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .products-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .products-sidebar {
        position: static;
        order: -1;
    }

    .products-sidebar-inner {
        display: none;
    }

    .products-sidebar.is-open .products-sidebar-inner {
        display: flex;
    }

    .mobile-only {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        border-radius: 10px;
        border: 1px solid var(--border-soft);
        background: var(--surface-1);
        color: var(--text-body);
        font-size: 0.84rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .main-image-wrapper {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .home-hero .hero-carousel,
    .home-hero .hero-carousel.hero-carousel--single {
        height: calc(100svh - var(--header-height));
        min-height: 520px;
    }

    .hero-slide-content {
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding-top: 0.75rem;
    }

    .hero-subtitle {
        max-width: 38ch;
    }

    .hero-control {
        width: 38px;
        height: 38px;
    }

    .hero-buttons .btn {
        min-width: 150px;
    }

    .home-brand-card {
        align-items: center;
        text-align: center;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-toolbar-right,
    .sort-dropdown {
        width: 100%;
    }

    .sort-select-input {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image-container {
        height: 180px;
    }

    .products-breadcrumbs,
    .product-breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.3rem;
    }

    .variants-table-modern thead {
        display: none;
    }

    .variants-table-modern,
    .variants-table-modern tbody,
    .variants-table-modern tr,
    .variants-table-modern td {
        display: block;
        width: 100%;
    }

    .variants-table-modern tr {
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-md);
        margin-bottom: 0.65rem;
        padding: 0.55rem;
        background: #fff;
    }

    .variants-table-modern td {
        border: none;
        border-bottom: 1px dashed #ecf0eb;
        padding: 0.46rem 0.2rem;
    }

    .variants-table-modern td:last-child {
        border-bottom: none;
    }

    .variants-table-modern td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-subtle);
        margin-bottom: 0.2rem;
    }

    .variants-table-modern td[data-label=""]::before,
    .variants-table-modern td[data-label=""][data-label] {
        content: none;
    }

    .qty-controls-modern {
        justify-content: flex-start;
    }

    .variant-step-note {
        text-align: left;
    }

    .document-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .doc-action {
        margin-left: 0;
        width: 100%;
    }

    .doc-action .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}/* Search + Documents Consistency Layer */
.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2.25rem) 0;
}

.search-page-header {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    text-align: center;
}

.search-page-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.15;
    color: var(--text-strong);
}

.search-query {
    color: var(--color-geoteco-primary);
}

.results-count {
    margin-left: 0.45rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.search-page-form {
    max-width: 680px;
    margin: 0 auto;
}

.search-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-page .search-input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 3.1rem 0.75rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
    color: var(--text-body);
    font-size: 0.98rem;
    transition: border-color var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
}

.search-page .search-input:focus {
    outline: none;
    border-color: rgba(74, 124, 89, 0.55);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.search-page .search-clear {
    position: absolute;
    right: 52px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.search-page .search-clear:hover,
.search-page .search-clear:focus-visible {
    color: var(--text-strong);
    background: #f4f7f3;
}

.search-page .search-btn {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: var(--color-geoteco-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.search-page .search-btn:hover,
.search-page .search-btn:focus-visible {
    transform: translateY(-1px);
    background: var(--color-geoteco-dark);
}

.search-page .autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 40;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.search-page .autocomplete-dropdown.active {
    display: block;
}

.search-page .autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef2ee;
}

.search-page .autocomplete-item:last-child {
    border-bottom: none;
}

.search-page .autocomplete-item:hover,
.search-page .autocomplete-item.selected {
    background: #f7faf7;
}

.search-page .autocomplete-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f4f1;
}

.search-page .autocomplete-image.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}

.search-page .autocomplete-info {
    min-width: 0;
    flex: 1;
}

.search-page .autocomplete-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-page .autocomplete-meta {
    margin-top: 0.15rem;
    display: flex;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-page .autocomplete-sku {
    font-family: var(--font-main);
    background: #e9eeea;
    border-radius: 6px;
    padding: 0.05rem 0.3rem;
    font-size: 0.74rem;
    color: var(--text-body);
}

.search-page .autocomplete-loading,
.search-page .autocomplete-no-results {
    padding: 0.85rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.search-product-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.search-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 124, 89, 0.35);
    box-shadow: 0 12px 24px rgba(18, 24, 18, 0.08);
}

.search-product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.search-product-media {
    height: 200px;
    padding: 1rem;
    border-bottom: 1px solid #edf1ed;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.search-product-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-product-placeholder {
    color: #c0c8c0;
}

.search-product-content {
    padding: 0.9rem 0.95rem 1rem;
}

.search-product-brand {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
}

.search-product-title {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text-strong);
}

.search-product-category {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-product-price {
    margin-top: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-geoteco-primary);
}

.search-pagination {
    margin-top: clamp(1.2rem, 2.3vw, 1.8rem);
}

.search-no-results {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: clamp(1.35rem, 3vw, 2.2rem);
}

.search-no-results .no-results-icon {
    color: #c3cbc3;
    margin-bottom: 0.6rem;
}

.search-no-results h2 {
    margin-bottom: 0.45rem;
    font-size: 1.38rem;
    color: var(--text-strong);
}

.search-no-results p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.search-suggestions {
    max-width: 520px;
    margin: 0 auto 1.2rem;
    text-align: left;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #e8ede8;
    background: #f8faf8;
}

.search-suggestions h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-strong);
}

.search-suggestions ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.1rem;
}

.search-suggestions li {
    margin-bottom: 0.24rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.search-suggestions code {
    border-radius: 6px;
    background: #e9ede9;
    color: var(--text-body);
    padding: 0.08rem 0.3rem;
    font-size: 0.8em;
}

.documents-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2.25rem) 0;
}

.documents-hero {
    margin-bottom: 1rem;
}

.documents-page-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--text-strong);
}

.documents-page-description {
    margin-top: 0.4rem;
    max-width: 72ch;
}

.documents-filters-panel {
    margin-bottom: clamp(0.95rem, 2vw, 1.35rem);
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem;
}

.documents-filters-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.documents-filters-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.documents-filter-select,
.documents-sort-select {
    min-width: 148px;
    border-color: #dce4dc;
    border-radius: 10px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.documents-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    outline: none;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}

.documents-card:hover,
.documents-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(74, 124, 89, 0.35);
    box-shadow: 0 14px 26px rgba(16, 22, 16, 0.1);
}

.documents-card-media {
    height: 210px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #edf1ed;
    background: #f3f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documents-card .doc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-medium) var(--ease-standard);
}

.documents-card:hover .doc-image {
    transform: scale(1.04);
}

.documents-card .download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(54, 92, 66, 0.86);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-standard);
}

.documents-card .download-overlay i {
    font-size: 2rem;
}

.documents-card:hover .download-overlay,
.documents-card:focus-visible .download-overlay {
    opacity: 1;
}

.documents-card .doc-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.documents-card .doc-icon {
    font-size: 2.35rem;
    margin-bottom: 0.35rem;
    color: #c6cfc6;
}

.documents-card .brand-names {
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.documents-card .doc-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 0.18rem 0.56rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(21, 25, 21, 0.82);
    color: #fff;
}

.documents-card-content {
    padding: 0.9rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    height: 100%;
}

.documents-page .doc-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.documents-page .doc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.documents-page .meta-sep {
    margin: 0 0.34rem;
    color: var(--text-subtle);
}

.documents-page .file-indicators {
    margin-top: auto;
}

.documents-page .file-badge {
    border-radius: 999px;
    padding: 0.18rem 0.56rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.documents-page .file-badge.public {
    background: #e7f4e8;
    color: #2f7040;
}

.documents-page .file-badge.b2b {
    background: #e7f1ff;
    color: #1b579e;
}

.documents-page .file-badge.b2b.locked {
    background: #ecefed;
    color: #6a726a;
}

.documents-page .doc-view-link {
    align-self: flex-start;
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    border-radius: 9px;
    border: 1px solid rgba(54, 92, 66, 0.3);
    color: var(--color-geoteco-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.documents-page .doc-view-link:hover,
.documents-page .doc-view-link:focus-visible {
    background: #edf4ed;
}

.no-docs-message {
    grid-column: 1 / -1;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: #f8faf8;
    text-align: center;
    padding: clamp(1.1rem, 2.5vw, 2rem);
}

.download-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 16, 14, 0.56);
}

.download-modal-content {
    position: relative;
    width: min(460px, calc(100% - 2rem));
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid #dde4dd;
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: var(--text-strong);
    border-color: #c8d2c8;
}

.modal-title {
    margin: 0 2rem 0.4rem 0;
    color: var(--text-strong);
    font-size: 1.2rem;
}

.modal-doc-title {
    margin: 0 1.5rem 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.62rem 0.9rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-btn--secondary {
    background: #f3f6f3;
    color: var(--text-body);
    border-color: #e2e9e2;
}

.modal-btn--secondary:hover,
.modal-btn--secondary:focus-visible {
    background: #ecf2ec;
}

.modal-btn--primary {
    background: var(--color-geoteco-primary);
    color: #fff;
}

.modal-btn--primary:hover,
.modal-btn--primary:focus-visible {
    background: var(--color-geoteco-dark);
}

.modal-btn.is-hidden {
    display: none;
}

.document-viewer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.2rem, 2.5vw, 2.2rem) 0;
}

.document-viewer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.document-viewer-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1.18;
    color: var(--text-strong);
}

.document-viewer-meta {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.document-viewer-meta-sep {
    margin: 0 0.4rem;
    color: var(--text-subtle);
}

.document-viewer-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.document-viewer-frame {
    height: 80vh;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.document-viewer-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.document-viewer-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .documents-filters-form {
        align-items: stretch;
    }

    .documents-filters-main,
    .documents-filters-sort {
        width: 100%;
    }

    .documents-filter-select,
    .documents-sort-select {
        width: 100%;
        min-width: 0;
    }

    .document-viewer-frame {
        height: 72vh;
    }
}

@media (max-width: 560px) {
    .search-results-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Auth + Conversion Flow System (Phase 5)
   ===================================================== */

.is-hidden {
    display: none;
}

.auth-page {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2.25rem, 5vw, 4.5rem);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 2vw, 2rem);
    max-width: 1320px;
    margin: 0 auto;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

.auth-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 58ch;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2.2vw, 1.6rem);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-field-group {
    margin-bottom: 0;
}

.auth-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-label--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-label--info {
    color: #145c86;
}

.auth-form input:not([type="checkbox"]),
.auth-form select,
.auth-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    color: var(--text-body);
    background: #fff;
    font: inherit;
    transition: border-color var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
}

.auth-form textarea {
    min-height: 96px;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: rgba(74, 124, 89, 0.6);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.auth-form .field-error {
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.82rem;
}

.auth-help {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.45;
}

.auth-help--info {
    color: #145c86;
}

.auth-notice {
    margin-top: 0.55rem;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-notice--success {
    border: 1px solid #7dcfaa;
    background: #e8f8ef;
    color: #0b6a3f;
}

.auth-special-vat {
    border: 1px solid #bde6ff;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #f3faff;
}

.auth-vat-location {
    border: 1px solid #bfdef3;
    border-radius: 10px;
    padding: 0.72rem 0.75rem;
    background: #eef7fd;
}

.form-group--inline {
    margin-top: 0.15rem;
}

.auth-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-check-label--strong {
    font-weight: 600;
}

.auth-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-geoteco-primary);
}

.auth-submit {
    width: 100%;
    min-height: 44px;
}

.auth-footer {
    margin-top: 0.3rem;
    text-align: center;
}

.auth-footer-link {
    color: var(--color-geoteco-primary);
    font-size: 0.87rem;
    text-decoration: none;
}

.auth-footer-link:hover,
.auth-footer-link:focus-visible {
    text-decoration: underline;
}

.error-msg {
    border-radius: 10px;
    border: 1px solid #f5c2c7;
    background: #fdebec;
    color: #9a1b1f;
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
}

.cart-page-header {
    max-width: 980px;
}

.cart-summary-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2vw, 1.25rem);
}

.cart-summary-title {
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1.2rem;
    color: var(--text-strong);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.62rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-value {
    color: var(--text-body);
    font-weight: 600;
}

.summary-row--total {
    margin-top: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-soft);
    color: var(--text-strong);
    font-size: 1.16rem;
    font-weight: 700;
}

.summary-row--vat-exempt {
    border: 1px solid #7fcdaa;
    background: #e8f8ef;
    color: #0b6a3f;
    border-radius: 10px;
    padding: 0.52rem 0.62rem;
}

.cart-summary-meta {
    text-align: right;
    font-size: 0.86rem;
}

.cart-checkout-btn {
    width: 100%;
    min-height: 46px;
    font-size: 1rem;
}

.cart-security-note {
    font-size: 0.84rem;
    line-height: 1.45;
}

.cart-data-sub--vat-exempt {
    color: #0b6a3f;
    font-weight: 600;
}

.cart-empty-state {
    text-align: center;
    padding: clamp(2rem, 5vw, 3.2rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.checkout-page-title {
    margin-bottom: 1.6rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
    gap: clamp(0.9rem, 2vw, 1.4rem);
    align-items: start;
}

.checkout-col {
    min-width: 0;
}

.checkout-step-sep {
    color: var(--text-subtle);
}

.checkout-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.checkout-card-header {
    background: #f7f9f6;
    border-bottom: 1px solid #e4ebe4;
    color: var(--text-strong);
    font-size: 1.04rem;
    font-weight: 700;
}

.checkout-item-title {
    font-weight: 700;
    color: var(--text-strong);
}

.checkout-item-subtitle {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.checkout-item-sku {
    font-size: 0.76rem;
    color: var(--text-subtle);
}

.checkout-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-meta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.checkout-meta-label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.checkout-meta-value {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-body);
    text-align: right;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    line-height: 1.2;
}

.checkout-meta-sub {
    display: block;
    margin-left: 0;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
}

.checkout-meta-sub--vat-exempt {
    color: #0b6a3f;
}

.checkout-meta-value.total {
    display: inline-block;
    line-height: 1.1;
}

.checkout-meta-value.total,
.checkout-total-value--final {
    color: var(--color-geoteco-primary);
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.checkout-total-row--vat-exempt {
    border-radius: 10px;
    border: 1px solid #7fcdaa;
    background: #e8f8ef;
    color: #0b6a3f;
    padding: 0.5rem 0.62rem;
}

.checkout-total-value {
    font-weight: 700;
    color: var(--text-body);
}

.checkout-note--center {
    text-align: center;
}

.checkout-back-link {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.checkout-back-link:hover,
.checkout-back-link:focus-visible {
    color: var(--text-body);
    text-decoration: underline;
}

.checkout-alert {
    border-radius: 10px;
    border: 1px solid #f5c2c7;
    background: #fdebec;
    color: #9a1b1f;
    padding: 0.72rem 0.8rem;
}

.checkout-section-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-strong);
    font-size: 1.02rem;
    font-weight: 700;
}

.checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
}

.form-grid > .checkout-fields-grid {
    grid-column: 1 / -1;
}

.checkout-fields-grid .full-width {
    grid-column: 1 / -1;
}

.checkout-fields-grid .form-group,
.checkout-fields-grid .form-card-option,
.checkout-fields-grid .form-control,
.checkout-fields-grid textarea,
.checkout-fields-grid input {
    min-width: 0;
}

.checkout-inline-note {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 10px;
    border: 1px solid #bfdef3;
    background: #eef7fd;
    color: #145c86;
    padding: 0.58rem 0.72rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.checkout-inline-note i {
    margin-top: 0.08rem;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-geoteco-primary);
}

.form-check-label {
    margin: 0;
    font-weight: 600;
    color: var(--text-body);
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-label--muted {
    color: var(--text-muted);
}

.is-readonly {
    background: #f4f7f4;
    color: #5f6d63;
}

.checkout-profile-note {
    font-size: 0.84rem;
    line-height: 1.45;
}

.checkout-profile-link {
    margin-left: 0.25rem;
    color: var(--color-geoteco-primary);
    font-weight: 700;
    text-decoration: none;
}

.checkout-profile-link:hover,
.checkout-profile-link:focus-visible {
    text-decoration: underline;
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkout-submit-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.3rem, 2vw, 2rem);
    }
}

@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-col--summary {
        order: 2;
    }

    .checkout-col--form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 0.9rem;
    }

    .auth-submit {
        min-height: 42px;
    }

    .checkout-fields-grid {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: 0.55rem;
        font-size: 0.86rem;
        flex-wrap: wrap;
    }

    .checkout-card-body {
        padding: 1rem;
    }

    .summary-row--total {
        font-size: 1.05rem;
    }
}

/* Favorites feature */
.header-favorites-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--radius-pill);
    color: var(--text-body);
    padding: 0.2rem 0.58rem;
    min-height: 40px;
    transition: background-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard);
}

.header-favorites-link:hover,
.header-favorites-link:focus-visible {
    background: var(--surface-2);
    color: var(--text-strong);
}

.header-favorites-link .fa-heart {
    font-size: 1.05rem;
}

.badge-favorites {
    background: var(--color-debla-accent);
    color: #1f1f1f;
    box-shadow: 0 4px 10px rgba(33, 33, 33, 0.16);
}

.favorite-toggle-form {
    margin: 0;
    display: inline-flex;
}

.favorite-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-1);
    color: var(--text-muted);
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard),
                color var(--duration-fast) var(--ease-standard),
                background-color var(--duration-fast) var(--ease-standard);
}

.favorite-toggle-btn:hover,
.favorite-toggle-btn:focus-visible {
    color: var(--text-strong);
    border-color: rgba(74, 124, 89, 0.45);
    background: #f5f8f5;
    transform: translateY(-1px);
}

.favorite-toggle-btn:focus-visible {
    outline: 2px solid rgba(74, 124, 89, 0.45);
    outline-offset: 2px;
}

.favorite-toggle-btn.is-active {
    color: var(--color-geoteco-dark);
    border-color: rgba(74, 124, 89, 0.52);
    background: rgba(74, 124, 89, 0.1);
}

.favorite-toggle-btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.favorite-toggle-btn--card {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    padding: 0;
}

.favorite-toggle-btn--detail {
    padding: 0.45rem 0.72rem;
    border-radius: var(--radius-pill);
    font-size: 0.81rem;
    font-weight: 600;
}

.favorite-toggle-btn--login {
    cursor: pointer;
}

.favorite-toggle-text {
    line-height: 1;
}

.product-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-top {
    display: flex;
    justify-content: flex-end;
    padding: 0.62rem 0.62rem 0;
}

.product-card-link {
    flex: 1;
}

.product-actions {
    margin-top: auto;
    padding: 0 0.9rem 0.95rem;
}

.home-product-card,
.search-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.home-product-top,
.search-product-top {
    display: flex;
    justify-content: flex-end;
    padding: 0.62rem 0.62rem 0;
}

.home-product-link,
.search-product-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-product-image-frame,
.search-product-media {
    border-top: 1px solid #eef1ed;
}

.search-product-state {
    margin-top: 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.search-product-state--pending {
    color: #a66f16;
}

.search-product-state--login {
    color: var(--text-muted);
}

.product-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.favorites-page-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorites-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.favorites-eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.favorites-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: var(--text-strong);
}

.favorites-empty {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    text-align: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}

.favorites-empty h2 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    color: var(--text-strong);
}

.favorites-empty p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.mobile-action-btn .fa-heart {
    color: var(--color-geoteco-primary);
}

@media (max-width: 991px) {
    .mobile-bottom-actions {
        gap: 0.55rem;
    }

    .mobile-action-btn:not(.mobile-action-btn--icon-only) {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .mobile-action-btn--icon-only {
        flex: 0 0 44px;
    }
}

@media (max-width: 767px) {
    .product-info-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .favorite-toggle-btn--detail {
        width: 100%;
        justify-content: center;
    }
}

