/* ============================================================
   SHENGOODS — Main Stylesheet
   Modern wholesale distributor website
   ============================================================ */

/* ===================== CSS VARIABLES ===================== */
:root {
    /* Primary Colors */
    --primary: #1B4D3E;
    --primary-light: #2A7A5F;
    --primary-dark: #0F2E25;
    --primary-rgb: 27, 77, 62;

    /* Accent */
    --accent: #D4A843;
    --accent-light: #E8C46A;
    --accent-dark: #B8912E;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-50: #F1F3F5;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --dark: #111111;

    /* Semantic */
    --success: #2ECC71;
    --error: #E74C3C;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 20px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================== PRELOADER ===================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-inner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loader span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================== NAVIGATION ===================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 0;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: var(--transition);
}

#header:not(.scrolled) .logo-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.logo-text {
    color: var(--gray-800);
    transition: var(--transition);
}

#header:not(.scrolled) .logo-text {
    color: var(--white);
}

.logo-text .accent {
    color: var(--accent);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    color: var(--gray-600);
}

#header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(27, 77, 62, 0.08);
}

#header:not(.scrolled) .nav-link:hover,
#header:not(.scrolled) .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.cta-link {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    font-weight: 600;
}

.nav-link.cta-link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-toggle i {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown:focus-within .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-link {
    display: block;
    width: 100%;
    color: var(--gray-700) !important;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
}

.nav-dropdown-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary) !important;
}

.nav-search-item {
    margin-left: 8px;
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-input {
    width: 220px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-search-input::placeholder {
    color: var(--gray-500);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.nav-search-submit {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-search-submit:hover {
    background: var(--primary-light);
}

#header:not(.scrolled) .nav-search-input {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}

#header:not(.scrolled) .nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#header:not(.scrolled) .nav-search-submit {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#header:not(.scrolled) .nav-search-submit:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger .bar {
    width: 28px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 4px;
    transition: var(--transition);
}

#header:not(.scrolled) .hamburger .bar {
    background: var(--white);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== HERO SECTION ===================== */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 1120px;
    padding: 92px 24px 44px;
}

.hero-intro-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
    text-align: left;
    margin-bottom: 26px;
}

.hero-title-wrap {
    max-width: 620px;
}

.hero-side-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(212, 168, 67, 0.2);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: var(--radius-xl);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.8vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(0.98rem, 1.7vw, 1.12rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-align: center;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--gray-800);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-dark);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header h2 .highlight {
    color: var(--primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===================== ABOUT SECTION ===================== */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-wrapper {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--gray-800);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 77, 62, 0.08);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===================== PRODUCTS SECTION ===================== */
.products {
    background: var(--white);
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.products .section-header {
    margin: 0;
    max-width: none;
    text-align: left;
}

.products .section-header h2 {
    margin-bottom: 0;
}

.product-filters {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.confectionery-bg {
    background: linear-gradient(135deg, #E8716D 0%, #C75050 100%);
}

.canned-bg {
    background: linear-gradient(135deg, #4ECDC4 0%, #2B8A81 100%);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    background: var(--accent);
    color: var(--gray-800);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.product-link:hover {
    color: var(--accent-dark);
    gap: 10px;
}

.product-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 9px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-add-cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.product-add-cart-btn.added {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.nav-cart-item {
    margin-left: 8px;
}

.nav-cart-link {
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--gray-800);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.nav-cart-link:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-cart-link strong {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-link.has-items {
    background: var(--primary);
}

#header:not(.scrolled) .nav-cart-link {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#header:not(.scrolled) .nav-cart-link:hover,
#header:not(.scrolled) .nav-cart-link.has-items {
    background: rgba(255, 255, 255, 0.32);
}

/* ===================== WHY US SECTION ===================== */
.why-us {
    background: var(--off-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 77, 62, 0.1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.08), rgba(27, 77, 62, 0.04));
    color: var(--primary);
    font-size: 1.6rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: var(--white);
}

.advantage-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===================== FEATURED COMPANIES ===================== */
.featured-companies {
    background: var(--white);
}

.featured-companies .section-header {
    margin-bottom: 36px;
}

/* Remove doubled spacing between Products and Where We Sell */
.products + .featured-companies,
.products + .qv-modal + .featured-companies {
    padding-top: 0;
}

/* Reduce spacing when Where We Sell is followed by Contact */
.featured-companies + .contact {
    padding-top: 0;
}

.featured-companies-carousel {
    width: 100%;
}

.featured-companies-viewport {
    overflow: hidden;
}

.featured-companies-grid {
    --visible-companies: 3;
    --company-gap: 24px;
    display: flex;
    gap: var(--company-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

.featured-companies-grid .company-card {
    flex: 0 0 calc((100% - (var(--company-gap) * (var(--visible-companies) - 1))) / var(--visible-companies));
    min-width: 0;
}

.company-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 34px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 77, 62, 0.2);
}

.company-icon {
    width: min(180px, 100%);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--gray-100);
    padding: 8px 12px;
    transition: var(--transition);
}

.company-card:hover .company-icon {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--gray-800);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* ===================== CONTACT SECTION ===================== */
.contact {
    background: var(--white);
}

.contact .section-header {
    margin-bottom: 32px;
}

.contact-grid {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.info-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card a,
.info-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.info-card a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--off-white);
    padding: 26px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 740px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.required {
    color: var(--error);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 0.85rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 11px 12px 11px 38px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.08);
}

.input-wrapper input:focus + i,
.input-wrapper textarea:focus ~ i,
.input-wrapper:has(input:focus) i,
.input-wrapper:has(textarea:focus) i {
    color: var(--primary);
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper i {
    top: 12px;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 96px;
}

.btn-submit {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inquiry-cart-summary {
    margin-bottom: -4px;
}

.inquiry-cart-box {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 10px;
}

.inquiry-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.inquiry-cart-clear {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.inquiry-cart-list {
    display: grid;
    gap: 6px;
}

.inquiry-cart-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
}

.inquiry-cart-list li div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.inquiry-cart-list li span {
    color: var(--gray-500);
    font-size: 0.82rem;
}

.remove-inquiry-item {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.remove-inquiry-item:hover {
    background: #ffe8e8;
    color: var(--error);
}

.inquiry-cart-empty {
    color: var(--gray-500);
    font-size: 0.88rem;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 36px 16px;
}

.form-success i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-500);
}

.hidden {
    display: none !important;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--gray-800);
    padding: 60px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.footer-contact li i {
    color: var(--accent);
    width: 20px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .hero-intro-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        max-width: 760px;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-filters {
        justify-content: flex-start;
        margin-bottom: 36px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-companies-grid {
        --company-gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--gray-700) !important;
        font-size: 1.1rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(27, 77, 62, 0.06) !important;
        color: var(--primary) !important;
    }

    .nav-link.cta-link {
        background: var(--primary) !important;
        color: var(--white) !important;
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }

    .nav-search-item {
        margin: 16px 0 0;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        box-shadow: none;
        border: none;
        padding: 4px 0 0 14px;
        background: transparent;
    }

    .nav-dropdown-link {
        padding: 10px 14px;
        font-size: 1rem;
        background: transparent;
    }

    .nav-cart-item {
        margin: 10px 0 0;
        width: 100%;
    }

    .nav-cart-link {
        width: 100%;
        justify-content: center;
    }

    .nav-search-form {
        width: 100%;
    }

    .nav-search-input {
        width: 100%;
    }

    .nav-search-submit {
        flex: 0 0 40px;
    }

    /* Mobile overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
    }

    /* Scrolled hamburger */
    .hamburger.active .bar {
        background: var(--gray-700) !important;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        padding: 86px 20px 36px;
    }

    .hero-intro-row {
        text-align: center;
        gap: 12px;
    }

    .experience-badge {
        bottom: -10px;
        right: 10px;
        padding: 14px 18px;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Why Us */
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Featured Companies */
    .featured-companies-grid {
        max-width: none;
        margin: 0;
    }

    /* Contact */
    .contact-grid {
        display: block;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 18px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Hero Stats */
    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .product-grid {
        max-width: 100%;
    }
}

/* ===================== PRODUCT HOVER OVERLAY ===================== */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
    backdrop-filter: blur(2px);
}

.product-card:hover .product-hover-overlay,
.catalog-card:hover .product-hover-overlay {
    opacity: 1;
}

.quick-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transform: translateY(15px);
    transition: all 0.35s ease;
    box-shadow: var(--shadow-md);
}

.product-card:hover .quick-view-btn,
.catalog-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--accent);
    color: var(--gray-800);
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg);
}

/* Products CTA */
.products-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===================== QUICK VIEW MODAL ===================== */
.qv-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 16px;
    transition: all 0.3s ease;
}

.qv-modal.active {
    opacity: 1;
    visibility: visible;
}

.qv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.qv-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 92%;
    height: min(88dvh, 740px);
    max-height: min(88dvh, 740px);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qv-modal.active .qv-modal-content {
    transform: scale(1) translateY(0);
}

.qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.qv-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.qv-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
}

.qv-image {
    padding: 14px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
    background: var(--white);
}

.qv-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.qv-image-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.qv-image-placeholder.has-photo {
    background: var(--white);
}

.qv-product-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: inherit;
}

.qv-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.qv-carousel-btn.prev {
    left: 12px;
}

.qv-carousel-btn.next {
    right: 12px;
}

.qv-carousel-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.qv-carousel-btn span {
    font-size: 1.35rem;
    line-height: 1;
}

.qv-thumbs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    height: 88px;
    max-height: 88px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: var(--radius-md);
}

.qv-thumb-btn {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-thumb-btn:hover {
    border-color: var(--gray-300);
}

.qv-thumb-btn.active {
    border-color: var(--primary);
}

.qv-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.qv-details {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qv-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    padding: 4px 14px;
    background: rgba(27, 77, 62, 0.08);
    border-radius: var(--radius-xl);
    width: fit-content;
}

.qv-details h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gray-800);
    line-height: 1.3;
}

.qv-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.qv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.qv-highlights {
    margin-top: 8px;
}

.qv-highlights h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qv-highlights h4 i {
    color: var(--primary);
}

.qv-highlights ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.qv-highlights li {
    font-size: 0.88rem;
    color: var(--gray-600);
    padding-left: 18px;
    position: relative;
}

.qv-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.qv-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-outline-dark {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline-dark:hover {
    background: var(--gray-800);
    color: var(--white);
    border-color: var(--gray-800);
    transform: translateY(-2px);
}

/* QV Modal Responsive */
@media (max-width: 768px) {
    .qv-modal {
        padding: 10px;
    }

    .qv-modal-content {
        width: min(100%, 430px);
        height: min(92dvh, 92vh);
        max-height: min(92dvh, 92vh);
        overflow: hidden;
    }

    .qv-body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(140px, 32dvh) 1fr;
        height: 100%;
    }

    .qv-image {
        min-height: 0;
        overflow: hidden;
    }

    .qv-image-placeholder {
        min-height: 0;
        height: 100%;
        overflow: hidden;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .qv-product-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .qv-thumbs {
        border-radius: 0;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 6px;
    }

    .qv-thumb-btn {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .qv-details {
        padding: 16px 16px 18px;
        gap: 10px;
        min-height: 0;
        overflow: hidden;
    }

    .qv-details h2 {
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .qv-desc {
        margin-bottom: 0;
        line-height: 1.5;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .qv-highlights {
        margin-top: 0;
        min-height: 0;
    }

    .qv-tags {
        gap: 5px;
    }

    .qv-highlights h4 {
        margin-bottom: 6px;
        font-size: 0.85rem;
    }

    .qv-highlights ul {
        grid-template-columns: 1fr;
        max-height: 88px;
        overflow-y: auto;
        padding-right: 4px;
        gap: 6px;
    }

    .qv-highlights li {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .qv-actions {
        margin-top: auto;
        gap: 8px;
        flex-direction: column;
    }

    .qv-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        white-space: normal;
        text-align: center;
    }

    .qv-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .qv-body {
        grid-template-rows: minmax(110px, 26dvh) 1fr;
    }

    .qv-details {
        padding: 12px 14px 14px;
        gap: 8px;
    }

    .qv-desc {
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .qv-highlights ul {
        max-height: 72px;
    }
}

/* ===================== PRODUCTS PAGE ===================== */

.products-page .catalog-section {
    padding-top: 120px;
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    z-index: 0;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero h1 .highlight {
    color: var(--accent);
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
}

/* Catalog Toolbar */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-700);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.08);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
}

.search-clear:hover {
    color: var(--gray-700);
}

.catalog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.view-size-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.view-size-btn:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.view-size-btn.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.view-size-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.view-icon {
    display: grid;
    gap: 2px;
}

.view-icon span {
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: var(--gray-500);
    transition: var(--transition);
}

.view-size-btn.active .view-icon span {
    background: var(--primary);
}

.view-icon-small {
    grid-template-columns: repeat(4, 4px);
}

.view-icon-medium {
    grid-template-columns: repeat(3, 4px);
}

.view-icon-large {
    grid-template-columns: repeat(2, 4px);
}

.catalog-results {
    margin-bottom: 32px;
}

.catalog-results p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.catalog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    margin-bottom: 18px;
}

.catalog-loading-inner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(27, 77, 62, 0.14);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.catalog-loading p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.catalog-grid.view-small {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.catalog-grid.view-medium {
    grid-template-columns: repeat(4, 1fr);
}

.catalog-grid.view-large {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.catalog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.catalog-card.hidden {
    display: none;
}

.catalog-card-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.catalog-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    /* background: var(--gray-50);
    padding: 12px; */
}

.closeout-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.35);
    pointer-events: none;
}

.catalog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-grid.view-small .catalog-card-body {
    padding: 18px;
}

.catalog-grid.view-large .catalog-card-body {
    padding: 28px;
}

.catalog-card-body .product-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.catalog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.catalog-grid.view-small .catalog-card-body h3 {
    font-size: 1.02rem;
}

.catalog-grid.view-large .catalog-card-body h3 {
    font-size: 1.25rem;
}

.catalog-card-body > p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
}

.catalog-grid.view-small .catalog-card-body > p {
    font-size: 0.85rem;
}

.catalog-grid.view-large .catalog-card-body > p {
    font-size: 0.95rem;
}

.catalog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 70px;
    align-content: flex-start;
    margin-bottom: 16px;
}

.catalog-card-body .product-add-cart-btn {
    margin-top: auto;
}

.tag {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--gray-50);
    color: var(--gray-600);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

/* New category background colors */
.beverages-bg {
    background: linear-gradient(135deg, #6C63FF 0%, #4A43C4 100%);
}

.pantry-bg {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.3rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Catalog Responsive */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-grid.view-small {
        grid-template-columns: repeat(4, 1fr);
    }

    .catalog-grid.view-medium {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-grid.view-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .catalog-filters {
        justify-content: flex-start;
    }

    .catalog-view-switch {
        display: none;
    }

    .catalog-grid,
    .catalog-grid.view-small,
    .catalog-grid.view-medium,
    .catalog-grid.view-large {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .featured-companies + .contact {
        padding-top: 0;
    }

    .page-hero {
        padding: 120px 0 40px;
    }
}

@media (max-width: 480px) {
    .catalog-grid,
    .catalog-grid.view-small,
    .catalog-grid.view-medium,
    .catalog-grid.view-large {
        max-width: 100%;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth transitions for filtered products */
.product-card,
.catalog-card {
    animation: fadeInUp 0.5s ease forwards;
}
