/* ============================================
   AQUATERRA AGRI — PREMIUM BRANDING V2
   High-density, professional, cinematic
   ============================================ */

/* --- Design Tokens --- */
:root {
    --primary: #1a3c34;
    /* Darker, richer green */
    --primary-light: #2d5a4e;
    --accent: #d4a373;
    /* Gold/Earth tone instead of bright lime */
    --accent-hover: #b08d55;
    --light: #f8f9fa;
    --off-white: #fcfcfc;
    --dark: #121212;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --success: #2e7d32;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);

    --container-width: 1280px;
    --section-spacing: 120px;
    --section-spacing-mobile: 60px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-dark);
    line-height: 1.7;
    background: var(--off-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-sm {
    padding: 60px 0;
}

.bg-white {
    background: var(--white);
}

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

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

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

.text-white {
    color: white;
}

.grid {
    display: grid;
    gap: 40px;
}

/* Increased gap for breathing room within density */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gap-20 {
    gap: 20px;
}

.relative {
    position: relative;
}

/* --- Section Headers (More Pro) --- */
.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Loader --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

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

.loader-circle {
    width: 45px;
    height: 45px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-text {
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

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

/* --- Header / Nav (Brand Focused) --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav {
    height: 50px;
}

/* Fixed height container */
.logo {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo ion-icon {
    color: var(--accent);
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 24px;
    border-radius: 50px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary);
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-drawer {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 20px;
    border-top: 1px solid #eee;
}

.mobile-drawer.open {
    display: flex;
}

.drawer-link {
    padding: 14px 0;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

/* --- Buttons --- */
.btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s var(--ease), background 0.3s, box-shadow 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 20px rgba(42, 77, 68, 0.2);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

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

.btn-icon {
    background: transparent;
    padding: 8px;
    position: relative;
    border: none;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.3s;
}

/* Ripple */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Hero V2 --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--primary);
    /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-container {
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

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

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

/* --- Feature Cards (Pro) --- */
.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card.active {
    border-bottom: 4px solid var(--accent);
}

section {
    overflow: hidden;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: 0.3s;
}

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

.check-list {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--gray-light);
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.check-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: 800;
}

/* --- Brand Logos --- */
.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.7;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

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

.about-content {
    padding-right: 40px;
}

.about-tagline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-box {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.value-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.value-box p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.about-image-stack {
    position: relative;
    padding: 20px;
}

.about-img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: 0.5s;
    width: 100%;
}

.about-img-sub {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    border: 8px solid var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

/* --- Modal (Product Details) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
}

.modal-img {
    background: #f0f0f0;
    height: 100%;
    min-height: 400px;
}

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

.modal-body {
    padding: 40px;
}

.modal-body .cat-tag {
    margin-bottom: 10px;
    display: block;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.modal-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    margin-top: 30px;
}

.modal-tab {
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
}

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

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--gray);
    display: none;
}

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

/* --- Stats Bar (Bottom of Section) --- */
.stats-bar {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    transform: translateY(50%);
    z-index: 5;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.sb-item {
    text-align: center;
}

.sb-num {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--accent);
}

.sb-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 40px;
}

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

.section-desc {
    color: var(--gray);
    font-size: 1.05rem;
}

/* --- Service Cards --- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: 0.5s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.service-card:hover .service-img img {
    transform: scale(1.06);
}

.service-body {
    padding: 24px;
}

.service-body h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.service-body p {
    color: var(--gray);
    font-size: 0.92rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--primary);
}

/* ============================================
   CATALOGUE SECTION
   ============================================ */
.catalog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

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

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

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

.catalog-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: 0.4s var(--ease);
}

.catalog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

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

.catalog-item-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.catalog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.catalog-item:hover .catalog-item-img img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.new {
    background: #e65100;
}

.catalog-item-body {
    padding: 18px;
}

.cat-tag {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-item-body h3 {
    font-size: 1.05rem;
    margin: 6px 0 8px;
}

.catalog-item-body p {
    color: var(--gray);
    font-size: 0.88rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.cat-price small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--gray);
}

/* --- About --- */
.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.agri-checklist {
    margin-top: 20px;
}

.agri-checklist li {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s var(--ease);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stars {
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
}

/* --- Contact Form --- */
.contact-form {
    padding: 35px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 2px solid #e8e8e8;
    background: transparent;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 14px;
    pointer-events: none;
    transition: 0.3s ease;
    color: var(--gray);
    font-size: 0.95rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    font-size: 0.78rem;
    color: var(--primary);
    transform: translateY(-24px);
}

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

.success-message {
    display: none;
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    text-align: center;
    font-weight: 600;
}

/* --- Contact Details --- */
.contact-details {
    margin-top: 25px;
}

.contact-item {
    margin-bottom: 18px;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 3px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    background: #f0f2f0;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary);
}

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

.footer ul a {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-top {
    border-bottom: 1px solid #ddd;
    padding-bottom: 35px;
}

.footer-bottom {
    padding-top: 25px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #f0f0f0;
    padding: 10px 0 25px;
    /* Extra padding for iOS swipe bar */
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
    width: 25%;
    text-align: center;
}

.mobile-nav-item .icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active .icon {
    transform: translateY(-2px);
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE — Mobile First Adjustments
   ============================================ */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .header {
        top: -70px;
        /* Hide top header on scroll down if needed, or keep sticky */
    }

    /* Let's keep specific mobile header style simple */
    .header .nav-actions {
        display: none;
    }

    /* Hide desktop cart/cta */
    .mobile-menu-btn {
        margin-left: auto;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-links {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        padding-right: 0;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-image-stack {
        order: -1;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
        transform: none;
        margin-top: 40px;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-img {
        height: 250px;
        min-height: auto;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 80vh;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Better Mobile Buttons */
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1.1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .catalog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        margin: 0 -24px 20px;
        padding: 0 24px;
        scrollbar-width: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .stat-divider {
        display: none;
    }

    .about-img-sub {
        right: 0;
        bottom: -20px;
        width: 50%;
    }

    /* Overall alignment fix */
    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header-row {
        text-align: center;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .container {
        overflow: hidden;
        /* Prevent bleed scroll */
    }

    .catalog-item-img {
        height: 220px;
    }

    /* Mobile Product Card */
    .catalog-item {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .catalog-item-body {
        padding: 20px;
    }

    .catalog-item-body h3 {
        font-size: 1.2rem;
    }

    .cat-price {
        font-size: 1.2rem;
    }

    .btn-sm {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .testi-grid {
        gap: 15px;
    }

    .testimonial-card {
        padding: 22px;
    }

    .footer-top.grid {
        gap: 30px;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 90px;
        /* Above nav bar */
        text-align: center;
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .catalog-item-body h3 { font-size: 0.95rem; }
    .container { padding: 0 16px; }
    .hero { text-align: center; }
}
