/*
 * JVG Agro Nusantara - Main Stylesheet
 * Professional, Clean, Modern Design
 * Mobile-First Approach
 */

:root {
    /* Color Palette - Natural/Agricultural Theme */
    --primary-color: #2d5a27;
    --primary-light: #4a7c42;
    --primary-dark: #1e3d1a;
    --secondary-color: #8b6914;
    --secondary-light: #b8942a;
    --accent-color: #e8f5e9;
    --text-color: #374151;
    --text-light: #6b7280;
    --text-dark: #1f2937;
    --white: #ffffff;
    --light-bg: #f8faf8;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

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

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Main Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    display: inline-block;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-dropdown > a i {
    font-size: 10px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu li a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 300;
    width: 160px;
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section - Aurora Effect */
.hero {
    background: linear-gradient(135deg, #0f1a0d 0%, #1a2e17 50%, #0d1f0a 100%);
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 200, 66, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(45, 160, 39, 0.85) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 40% 80%, rgba(220, 180, 50, 0.6) 0%, transparent 50%);
    animation: aurora1 8s ease-in-out infinite;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 70% 60% at 80% 30%, rgba(100, 220, 90, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 30% 70%, rgba(60, 180, 50, 0.75) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 60% 20%, rgba(240, 200, 70, 0.5) 0%, transparent 50%);
    animation: aurora2 6s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes aurora1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5%, 8%) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translate(-3%, 5%) rotate(-2deg) scale(0.95);
    }
    75% {
        transform: translate(4%, -5%) rotate(1deg) scale(1.02);
    }
}

@keyframes aurora2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-6%, 4%) rotate(-3deg) scale(1.08);
    }
    66% {
        transform: translate(5%, -6%) rotate(2deg) scale(0.92);
    }
}

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

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* Hero Button Enhancements */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.hero .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Hero Layout - Two Column */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.hero-layout .hero-content {
    flex: 0 0 45%;
    max-width: 550px;
}

/* Hero Animated Cards */
.hero-cards-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.hero-cards-row {
    overflow: hidden;
}

.hero-cards-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* Animation directions */
.hero-cards-row[data-direction="left"] .hero-cards-track {
    animation: scrollLeft 25s linear infinite;
}

.hero-cards-row[data-direction="right"] .hero-cards-track {
    animation: scrollRight 28s linear infinite;
}

.hero-cards-row[data-direction="left-slow"] .hero-cards-track {
    animation: scrollLeft 35s linear infinite;
}

/* Pause on hover */
.hero-cards-container:hover .hero-cards-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Hero Card Style */
.hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    text-decoration: none;
    color: var(--white);
    min-width: 220px;
    transition: all 0.3s ease;
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.hero-card-icon i {
    font-size: 1.1rem;
}

/* Card Icon Colors */
.hero-card-icon.color-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.hero-card-icon.color-yellow i { color: #78350f; }

.hero-card-icon.color-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.hero-card-icon.color-green i { color: #064e3b; }

.hero-card-icon.color-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
.hero-card-icon.color-blue i { color: #1e3a8a; }

.hero-card-icon.color-pink {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}
.hero-card-icon.color-pink i { color: #831843; }

.hero-card-icon.color-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}
.hero-card-icon.color-purple i { color: #4c1d95; }

.hero-card-icon.color-orange {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}
.hero-card-icon.color-orange i { color: #7c2d12; }

/* Card Content */
.hero-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    min-width: 0;
}

.hero-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-desc {
    font-size: 0.8rem;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
}

.category-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-card-content {
    padding: 25px;
}

.category-card-content h3 {
    margin-bottom: 10px;
}

.category-card-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

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

.product-card:hover {
    border-color: var(--primary-color);
}

.product-card-image {
    height: 200px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.product-card-image .placeholder-icon {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 11px;
    padding: 4px 12px;
    font-weight: 400;
}

.product-card-content {
    padding: 20px;
}

.product-card-content h4 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.product-card-content p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-manufacturer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-manufacturer img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.feature-card h4 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0f1a0d 0%, #1a2e17 50%, #0d1f0a 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(74, 200, 66, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(45, 160, 39, 0.85) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 40% 80%, rgba(220, 180, 50, 0.6) 0%, transparent 50%);
    animation: aurora1 8s ease-in-out infinite;
    filter: blur(40px);
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 70% 60% at 80% 30%, rgba(100, 220, 90, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 30% 70%, rgba(60, 180, 50, 0.75) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 60% 20%, rgba(240, 200, 70, 0.5) 0%, transparent 50%);
    animation: aurora2 6s ease-in-out infinite;
    filter: blur(50px);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image i {
    font-size: 6rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-image {
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-detail-image .placeholder-icon {
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.4;
}

.product-detail-info h1 {
    font-size: 1.875rem;
    margin-bottom: 15px;
}

.product-detail-info .manufacturer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-info .manufacturer img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.product-tabs {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    margin-bottom: 15px;
}

.tab-content p,
.tab-content ul {
    color: var(--text-color);
    font-size: 14px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.tab-content ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Search Results */
.search-section {
    padding: 30px 0;
}

.search-box-large {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box-large form {
    display: flex;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.search-box-large input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 300;
}

.search-box-large input:focus {
    outline: none;
}

.search-box-large button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.search-box-large button:hover {
    background: var(--primary-light);
}

.search-results-info {
    margin-bottom: 30px;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-item h5 {
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 300;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Filter Sidebar */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 25px;
}

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

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: var(--transition);
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mobile Search Bar - hidden on desktop */
.mobile-search-bar {
    display: none;
    margin-bottom: 20px;
}

.mobile-search-bar form {
    display: flex;
    border: 1px solid var(--border-color);
}

.mobile-search-bar input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 16px;
}

.mobile-search-bar input:focus {
    outline: none;
}

.mobile-search-bar button {
    padding: 14px 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.filter-option span {
    font-size: 14px;
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-col p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-contact i {
    margin-top: 4px;
    width: 16px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination span.current {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu Close Button - hidden on desktop */
.mobile-menu-close {
    display: none !important;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter-toggle i {
    color: var(--primary-color);
}

/* Tablet Breakpoint (1024px) */
@media (max-width: 1024px) {
    /* Header - tighter spacing */
    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .about-grid,
    .product-detail,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 30px;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .product-detail {
        gap: 30px;
    }

    .product-detail-image {
        height: 350px;
    }

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

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

@media (max-width: 900px) {
    /* Header - even tighter for tablets */
    .nav-menu {
        gap: 15px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .search-form {
        width: 140px;
    }

    .search-input {
        padding: 8px 12px;
    }
}

/* Mobile Breakpoint (768px) */
@media (max-width: 768px) {
    /* Typography - slightly larger for readability */
    body {
        font-size: 15px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }

    /* Header & Navigation */
    .navbar {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        padding: 10px;
        margin: -10px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 70px 0 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-close {
        display: flex !important;
    }

    .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        font-size: 15px;
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .has-dropdown > a i {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active > a i {
        transform: rotate(180deg);
    }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--light-bg);
    }

    .has-dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        padding: 14px 20px 14px 35px;
        font-size: 14px;
    }

    .nav-search {
        padding: 20px;
        border-bottom: none;
        background: var(--light-bg);
    }

    .search-form {
        width: 100%;
        background: var(--white);
    }

    .search-input {
        width: 100%;
        padding: 12px 15px;
    }

    .search-btn {
        padding: 12px 18px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero::before,
    .hero::after {
        filter: blur(30px);
        opacity: 0.8;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
        justify-content: flex-start;
    }

    .hero-stat {
        flex: 1;
        min-width: 90px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* Hero Layout Mobile */
    .hero-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-layout .hero-content {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .hero-cards-container {
        order: -1;
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .hero-cards-track {
        gap: 12px;
    }

    .hero-card {
        min-width: 200px;
        padding: 10px 14px;
        gap: 10px;
    }

    .hero-card-icon {
        width: 36px;
        height: 36px;
    }

    .hero-card-title {
        font-size: 0.85rem;
    }

    .hero-card-desc {
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 14px;
        min-height: 48px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .section-title p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card-image {
        height: 180px;
    }

    .category-card-image i {
        font-size: 3.5rem;
    }

    .category-card-content {
        padding: 24px;
    }

    .category-card-content h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .category-card-content p {
        line-height: 1.6;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card-image {
        height: 180px;
    }

    .product-badge {
        font-size: 11px;
        padding: 4px 12px;
        top: 12px;
        left: 12px;
    }

    .product-card-content {
        padding: 18px;
    }

    .product-card-content h4 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .product-card-content p {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .product-manufacturer {
        padding-top: 14px;
        font-size: 12px;
    }

    .product-manufacturer img {
        width: 22px;
        height: 22px;
    }

    /* Features Grid - 2x2 on mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 14px;
    }

    .feature-icon i {
        font-size: 1.125rem;
    }

    .feature-card h4 {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header::before,
    .page-header::after {
        filter: blur(30px);
        opacity: 0.8;
    }

    .page-header h1 {
        font-size: 1.625rem;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 15px;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 13px;
        gap: 8px;
    }

    /* About Page */
    .about-image {
        height: 220px;
    }

    .about-image i {
        font-size: 4rem;
    }

    .about-content h2 {
        font-size: 1.375rem;
    }

    /* Product Detail */
    .product-detail-image {
        height: 280px;
    }

    .product-detail-info h1 {
        font-size: 1.375rem;
    }

    .product-detail-info .manufacturer {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .product-tabs {
        margin-top: 25px;
    }

    .tab-buttons {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -15px;
        padding: 0 15px;
        gap: 0;
    }

    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Catalog & Filter */
    .mobile-search-bar {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .filter-sidebar {
        display: none;
        margin-bottom: 20px;
    }

    .filter-sidebar.active {
        display: block;
    }

    /* Hide search in filter sidebar on mobile (already have mobile search bar) */
    .filter-search-section {
        display: none;
    }

    .filter-section h4 {
        font-size: 0.9375rem;
    }

    .filter-option {
        padding: 8px 0;
    }

    .filter-option input {
        width: 20px;
        height: 20px;
    }

    /* Search Page */
    .search-section {
        padding: 20px 0;
    }

    .search-box-large {
        margin-bottom: 30px;
    }

    .search-box-large form {
        flex-direction: column;
    }

    .search-box-large input {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .search-box-large button {
        padding: 15px;
    }

    .no-results {
        padding: 40px 20px;
    }

    .no-results i {
        font-size: 3rem;
    }

    /* Contact Page */
    .contact-grid {
        gap: 25px;
    }

    .contact-info-card,
    .contact-form {
        padding: 28px 24px;
    }

    .contact-info-item {
        gap: 14px;
    }

    .contact-info-item i {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

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

    .footer-col h4 {
        font-size: 1.0625rem;
        margin-bottom: 18px;
    }

    .footer-col p,
    .footer-col li {
        line-height: 1.6;
    }

    .footer-social {
        margin-top: 18px;
    }

    .footer-social a {
        width: 46px;
        height: 46px;
    }

    .footer-bottom {
        padding: 18px 0;
        margin-top: 35px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.625rem;
    }

    /* Pagination */
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }

    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Small Mobile Breakpoint (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    /* Product Grid - Keep 2 columns with compact cards */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-image {
        height: 130px;
    }

    .product-card-content {
        padding: 12px;
    }

    .product-card-content h4 {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .product-card-content p {
        font-size: 11px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .product-manufacturer {
        padding-top: 8px;
        font-size: 10px;
    }

    .product-manufacturer img {
        width: 16px;
        height: 16px;
    }

    .product-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    /* Hero Buttons */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column;
        gap: 12px !important;
    }

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

    .hero-stats {
        justify-content: space-between;
    }

    .hero-stat {
        min-width: 80px;
    }

    /* Category Grid */
    .category-card-content .btn {
        width: 100%;
    }

    /* Tab Buttons */
    .tab-buttons {
        margin: 0 -20px;
        padding: 0 20px;
    }

    /* Contact Info - keep horizontal layout, left aligned */
    .contact-info-item {
        text-align: left;
        gap: 14px;
    }

    .contact-info-item i {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    /* Contact Form */
    .contact-info-card,
    .contact-form {
        padding: 28px 24px;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.375rem;
    }

    .hero-stat {
        min-width: 70px;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .product-card-image {
        width: 100px;
        height: 100px;
    }
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .nav-menu {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }

    .footer-bottom {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .category-card:hover,
    .feature-card:hover {
        border-color: var(--border-color);
    }

    .nav-menu > li > a:active {
        background: var(--light-bg);
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        margin-top: 20px;
        padding-top: 15px;
    }

    .nav-menu {
        padding-top: 50px;
    }

    .nav-menu > li > a {
        padding: 12px 20px;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .footer,
    .whatsapp-float,
    .mobile-menu-toggle,
    .search-form,
    .filter-sidebar,
    .btn {
        display: none !important;
    }

    .section {
        padding: 20px 0;
    }
}
