/* ============================================================
   SMS DAIRY — PREMIUM DESIGN SYSTEM
   Complete CSS for ecommerce storefront & admin panel
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Brand colours */
    --navy:        #1B3A6B;
    --navy-light:  #2a5298;
    --green:       #2E8B3E;
    --green-light: #4CAF50;
    --green-dark:  #1B5E20;
    --gold:        #D4A843;
    --cream:       #FDF8F0;
    --cream-dark:  #f5edd6;
    --dark:        #1a1a2e;
    --gray:        #6B7280;
    --gray-light:  #f0f2f5;
    --white:       #ffffff;
    --danger:      #EF4444;
    --success:     #10B981;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 3rem;

    /* Radii */
    --radius-sm:   8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.12);
    --shadow-xl:  0 20px 50px rgba(0,0,0,.15);

    /* Transitions */
    --ease: cubic-bezier(.4,0,.2,1);

    /* Layout */
    --navbar-h: 72px;
    --sidebar-w: 260px;
    --container:  1200px;
}

/* ============================================================
   2. MODERN CSS RESET
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s var(--ease);
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

::selection {
    background: var(--green);
    color: var(--white);
}

/* ============================================================
   3. LAYOUT — CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: var(--navbar-h);
    min-height: calc(100vh - var(--navbar-h));
}

/* ============================================================
   4. PAGE LOADER
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: opacity .5s var(--ease), visibility .5s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--cream-dark);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 58, 107, .06);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(27, 58, 107, .10);
    background: rgba(255, 255, 255, .97);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

/* Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    font-weight: 500;
    font-size: .925rem;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: color .25s var(--ease), background .25s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--green);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Search */
.nav-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.search-form:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 139, 62, .12);
}

.search-input {
    width: 180px;
    padding: 8px 14px;
    font-size: .875rem;
    background: transparent;
}

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

.search-btn {
    padding: 8px 12px;
    color: var(--gray);
    transition: color .2s;
}

.search-btn:hover { color: var(--green); }

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background .2s;
    font-size: .9rem;
}

.search-item:hover { background: var(--gray-light); }

.search-item img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

/* Cart icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    color: var(--dark);
    background: var(--gray-light);
    border-radius: 50%;
    transition: background .25s var(--ease), color .25s var(--ease);
}

.cart-icon:hover {
    background: var(--green);
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
    color: var(--white);
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--white);
    line-height: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--dark);
    border-radius: 3px;
    transition: transform .3s var(--ease), opacity .2s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s var(--ease);
    background-size: cover;
    background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 58, 107, .80) 0%, rgba(26, 26, 46, .65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 168, 67, .25);
    animation: fadeInUp .8s var(--ease) both;
}

.hero h1 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp .8s .15s var(--ease) both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--gold), #f0d078);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    animation: fadeInUp .8s .3s var(--ease) both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp .8s .45s var(--ease) both;
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(46, 139, 62, .40);
}

.btn-glow:hover {
    box-shadow: 0 6px 28px rgba(46, 139, 62, .55);
}

/* Hero dots / indicators */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background .3s, transform .3s;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.25);
}

/* ============================================================
   7. TRUST BADGES
   ============================================================ */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 48px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    flex: 1 1 220px;
    max-width: 300px;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-badge-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust-badge h5 {
    font-size: .95rem;
    margin-bottom: 2px;
}

.trust-badge p {
    font-size: .8rem;
    color: var(--gray);
    margin: 0;
}

/* ============================================================
   8. SECTION STYLES
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-alt { background: var(--white); }

.section-title {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-title {
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3.5px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ============================================================
   9. PRODUCT CARD & GRID
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-light);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: var(--white);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .03em;
    transform: rotate(2deg);
    box-shadow: 0 2px 8px rgba(239, 68, 68, .35);
}

.product-card-body {
    padding: 18px 20px 22px;
}

.product-category {
    font-size: .78rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.product-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body h3 a {
    color: var(--dark);
    transition: color .25s;
}

.product-card-body h3 a:hover { color: var(--green); }

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-current {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}

.price-original {
    font-size: .88rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-card .btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: var(--green);
    color: var(--white);
    font-weight: 500;
    font-size: .9rem;
    border-radius: var(--radius-sm);
    transition: background .25s var(--ease), transform .2s var(--ease);
}

.product-card .btn-add-cart:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.product-card .btn-add-cart:active { transform: scale(.97); }

/* ============================================================
   10. FEATURES / WHY CHOOSE US
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 1.35rem;
    transition: transform .4s var(--ease), background .3s;
}

.feature-card:hover .feature-icon {
    transform: rotate(15deg) scale(1.05);
    background: var(--green);
}

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

.feature-card p {
    font-size: .9rem;
    color: var(--gray);
    margin: 0;
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials-carousel {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform .5s var(--ease);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--green);
    opacity: .15;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: .9rem;
}

.testimonial-text {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-light);
}

.testimonial-author strong {
    display: block;
    font-size: .9rem;
}

.testimonial-author span {
    font-size: .78rem;
    color: var(--gray);
}

/* ============================================================
   12. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-weight: 500;
    font-size: .925rem;
    border-radius: var(--radius-full);
    transition: all .3s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(46, 139, 62, .35);
}

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

.btn-secondary:hover {
    background: var(--navy-light);
    box-shadow: 0 6px 20px rgba(27, 58, 107, .30);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(46, 139, 62, .25);
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: transparent;
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, .40);
    background: #20bd5a;
}

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

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, .35);
}

.btn-sm { padding: 8px 20px; font-size: .84rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ============================================================
   13. CART STYLES
   ============================================================ */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table th {
    background: var(--gray-light);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray);
}

.cart-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-product-name {
    font-weight: 500;
    font-size: .95rem;
}

.cart-product-meta {
    font-size: .8rem;
    color: var(--gray);
}

/* Quantity controls */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    font-size: 1rem;
    transition: background .2s;
}

.qty-btn:hover { background: var(--cream-dark); }

.qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    font-weight: 500;
    border-left: 1.5px solid var(--gray-light);
    border-right: 1.5px solid var(--gray-light);
}

.cart-remove {
    color: var(--danger);
    font-size: .85rem;
    font-weight: 500;
    transition: opacity .2s;
}

.cart-remove:hover { opacity: .7; }

/* Cart summary */
.cart-summary {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.05);
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .95rem;
}

.cart-summary-row.total {
    border-top: 2px solid var(--dark);
    margin-top: 10px;
    padding-top: 16px;
    font-weight: 700;
    font-size: 1.15rem;
}

/* ============================================================
   14. CHECKOUT
   ============================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.checkout-form-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   15. FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: .9rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: .925rem;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 139, 62, .10);
}

.form-control::placeholder { color: #b0b0b0; }

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-error {
    color: var(--danger);
    font-size: .8rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Floating label */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding-top: 22px;
    padding-bottom: 6px;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: .9rem;
    color: #b0b0b0;
    pointer-events: none;
    transition: all .2s var(--ease);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: 10px;
    transform: translateY(0);
    font-size: .72rem;
    color: var(--green);
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
    background: #0f1f3d;
    color: rgba(255,255,255,.75);
    padding: 60px 0 0;
}

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

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

.footer-description {
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-size: .95rem;
    transition: background .3s, color .3s, transform .3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a:hover:nth-child(1) { background: #1877F2; color: #fff; }
.footer-social a:hover:nth-child(2) { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.footer-social a:hover:nth-child(3) { background: #000; color: #fff; }

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2.5px;
    background: var(--green);
    border-radius: 2px;
}

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

.footer-col ul a {
    font-size: .9rem;
    transition: color .2s, padding-left .2s;
}

.footer-col ul a:hover {
    color: var(--green-light);
    padding-left: 6px;
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
}

.contact-list i {
    margin-top: 4px;
    color: var(--green-light);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .84rem;
    color: rgba(255,255,255,.45);
}

/* ============================================================
   17. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    font-size: 1.7rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
    z-index: 999;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .6);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, .45); }
    50%      { box-shadow: 0 4px 24px rgba(37, 211, 102, .7), 0 0 0 10px rgba(37, 211, 102, .08); }
}

/* ============================================================
   18. TOAST / FLASH MESSAGES
   ============================================================ */
.toast {
    position: fixed;
    top: calc(var(--navbar-h) + 16px);
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 500;
    color: var(--white);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: slideInRight .4s var(--ease) both;
    max-width: 400px;
}

.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--navy-light); }

.toast-close {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: .7;
    cursor: pointer;
    background: none;
    color: inherit;
    padding: 0 4px;
    transition: opacity .2s;
}

.toast-close:hover { opacity: 1; }

.toast.fade-out {
    animation: slideOutRight .3s var(--ease) forwards;
}

/* ============================================================
   19. ABOUT PAGE
   ============================================================ */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-story-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-quote {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.6;
    color: var(--navy);
    border-left: 4px solid var(--green);
    padding-left: 24px;
    margin: 24px 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 24px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--green);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) { padding-right: calc(50% + 30px); }
.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
    flex-direction: row-reverse;
    text-align: left;
}
.timeline-item:nth-child(odd) { text-align: right; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--green);
    border: 3px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--green);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

/* Value cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

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

.value-card i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 16px;
}

/* ============================================================
   20. CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .3s var(--ease);
}

.contact-info-card:hover { transform: translateY(-3px); }

.contact-info-card i {
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 10px;
}

.contact-info-card h5 {
    font-size: .88rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: .84rem;
    color: var(--gray);
    margin: 0;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   21. AUTH / LOGIN
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #0f1f3d 100%);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp .6s var(--ease) both;
}

.auth-logo {
    display: block;
    height: 56px;
    margin: 0 auto 12px;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: .9rem;
    margin-bottom: 32px;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .88rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--green);
    font-weight: 500;
}

.auth-alert {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .2);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: 20px;
}

.auth-alert ul { margin-top: 4px; }
.auth-alert li { margin-bottom: 2px; padding-left: 12px; position: relative; }
.auth-alert li::before { content: '•'; position: absolute; left: 0; }

/* ============================================================
   22. ADMIN LAYOUT
   ============================================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy) 0%, #0f1f3d 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform .3s var(--ease);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar-header img {
    height: 38px;
}

.admin-sidebar-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-nav {
    padding: 16px 12px;
    flex: 1;
}

.admin-nav-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    padding: 12px 12px 6px;
    font-weight: 600;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    transition: all .25s var(--ease);
    margin-bottom: 2px;
}

.admin-nav a i {
    width: 20px;
    text-align: center;
    font-size: .95rem;
}

.admin-nav a:hover {
    background: rgba(255,255,255,.08);
    color: var(--white);
}

.admin-nav a.active {
    background: rgba(46, 139, 62, .2);
    color: var(--green-light);
}

.admin-nav a.active i { color: var(--green-light); }

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* Main content */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    background: var(--gray-light);
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 28px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 800;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-topbar h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

.admin-sidebar-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--dark);
    padding: 4px;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 500;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
}

.admin-logout {
    color: var(--gray);
    font-size: .85rem;
    transition: color .2s;
}

.admin-logout:hover { color: var(--danger); }

.admin-content {
    padding: 28px;
}

/* Stats cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease);
}

.admin-stat-card:hover { transform: translateY(-3px); }

.admin-stat-card:nth-child(2) { border-left-color: var(--navy); }
.admin-stat-card:nth-child(3) { border-left-color: var(--gold); }
.admin-stat-card:nth-child(4) { border-left-color: var(--danger); }

.admin-stat-card h4 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-stat-card .stat-change {
    font-size: .78rem;
    margin-top: 4px;
    color: var(--success);
}

.admin-stat-card .stat-change.negative { color: var(--danger); }

/* Admin card/panel */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-light);
}

.admin-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.admin-card-body {
    padding: 24px;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray);
    background: var(--gray-light);
    border-bottom: 1px solid #e5e5e5;
}

.admin-table td {
    padding: 14px 16px;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.admin-table tr:nth-child(even) td {
    background: rgba(240,242,245,.4);
}

.admin-table tr:hover td {
    background: rgba(46, 139, 62, .03);
}

.admin-table img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.badge-success { background: rgba(16, 185, 129, .1); color: var(--success); }
.badge-danger  { background: rgba(239, 68, 68, .1);  color: var(--danger); }
.badge-warning { background: rgba(212, 168, 67, .15); color: #b8860b; }
.badge-info    { background: rgba(42, 82, 152, .1);  color: var(--navy-light); }

/* Action buttons */
.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    transition: background .2s, color .2s;
}

.admin-action-btn:hover { background: var(--gray-light); }

.admin-action-btn.edit { color: var(--navy); }
.admin-action-btn.delete { color: var(--danger); }
.admin-action-btn.view { color: var(--green); }

/* ============================================================
   23. PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
}

.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.product-gallery-thumbs img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active { border-color: var(--green); }

.product-info h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.product-info .product-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-info .product-price .price-current { font-size: 1.6rem; }

.product-info .product-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-info .btn-add-cart {
    padding: 14px 40px;
}

/* ============================================================
   24. CATEGORY FILTER BAR
   ============================================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.category-filter a {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: .88rem;
    font-weight: 500;
    border: 1.5px solid #e0e0e0;
    transition: all .25s var(--ease);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* ============================================================
   25. BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: .85rem;
    color: var(--gray);
}

.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { color: var(--dark); font-weight: 500; }

.breadcrumb-sep { color: #ccc; }

/* ============================================================
   26. PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    border: 1.5px solid #e0e0e0;
    transition: all .25s var(--ease);
}

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

.pagination .active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.pagination .disabled {
    opacity: .4;
    pointer-events: none;
}

/* ============================================================
   27. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

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

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.animate-fadeInUp  { animation: fadeInUp .6s var(--ease) both; }
.animate-fadeIn    { animation: fadeIn .6s var(--ease) both; }

/* Intersection-observer reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--gray-light) 25%, #e8eaed 37%, var(--gray-light) 63%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

/* ============================================================
   28. UTILITY CLASSES
   ============================================================ */
/* Text */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-green   { color: var(--green); }
.text-navy    { color: var(--navy); }
.text-gray    { color: var(--gray); }
.text-gold    { color: var(--gold); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-white   { color: var(--white); }
.text-sm      { font-size: .85rem; }
.text-lg      { font-size: 1.15rem; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

/* Display */
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-none   { display: none; }
.d-block  { display: block; }
.d-inline { display: inline; }

.flex-wrap     { flex-wrap: wrap; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.justify-end      { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Margin */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* Padding */
.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Border & Radius */
.rounded    { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow    { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Backgrounds */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-green  { background: var(--green); }
.bg-navy   { background: var(--navy); }
.bg-gray   { background: var(--gray-light); }

/* Width & Height */
.w-full  { width: 100%; }
.h-full  { height: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }

/* ============================================================
   29. RESPONSIVE — TABLET (max-width: 992px)
   ============================================================ */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }

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

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

    .checkout-grid {
        grid-template-columns: 1fr;
    }

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

    .product-gallery {
        position: static;
    }

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

    /* Admin */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-sidebar-toggle {
        display: block;
    }

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

    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 899;
    }

    .admin-sidebar-overlay.active {
        display: block;
    }
}

/* ============================================================
   30. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --navbar-h: 64px;
    }

    .section { padding: 56px 0; }

    /* Navbar mobile */
    .hamburger { display: flex; }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 20px;
        box-shadow: -10px 0 40px rgba(0,0,0,.12);
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links a {
        padding: 14px 8px;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links a::after { display: none; }

    .nav-search {
        order: -1;
    }

    .search-input { width: 100%; }

    .cart-icon {
        align-self: flex-start;
    }

    /* Hero */
    .hero { min-height: 85vh; }

    .hero-content {
        padding: 24px 0;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .product-card-body { padding: 12px 14px 16px; }
    .product-card-body h3 { font-size: .9rem; }
    .price-current { font-size: 1rem; }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 100%;
    }

    /* Trust badges */
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .trust-badge { max-width: 100%; }

    /* Cart table → cards */
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
    }

    .cart-table thead { display: none; }

    .cart-table tr {
        margin-bottom: 16px;
        background: var(--white);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-sm);
    }

    .cart-table td {
        padding: 6px 0;
        border: none;
        text-align: right;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        font-size: .82rem;
        text-transform: uppercase;
        color: var(--gray);
    }

    .cart-product {
        justify-content: flex-end;
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    /* Form row */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Timeline mobile */
    .timeline::before { left: 16px; }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 48px;
        padding-right: 0;
        text-align: left;
        flex-direction: row;
    }

    .timeline-dot {
        left: 16px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Admin */
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-table {
        font-size: .82rem;
    }

    /* Auth */
    .auth-card {
        padding: 32px 24px;
    }

    /* Breadcrumb */
    .breadcrumb {
        flex-wrap: wrap;
    }

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

/* ============================================================
   31. RESPONSIVE — SMALL MOBILE (max-width: 576px)
   ============================================================ */
@media (max-width: 576px) {
    .container { padding: 0 14px; }

    .section { padding: 40px 0; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

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

    .product-card-body {
        padding: 10px 10px 14px;
    }

    .product-card .btn-add-cart {
        padding: 9px 10px;
        font-size: .8rem;
    }

    .price-original { display: none; }

    .btn { padding: 10px 24px; font-size: .875rem; }

    .hero { min-height: 75vh; }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        bottom: 16px;
        right: 16px;
    }

    .toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .page-loader,
    .toast { display: none !important; }

    .main-content { padding-top: 0; }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .product-card { break-inside: avoid; }
}

/* ============================================================
   33. DARK MODE SUPPORT (optional — system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* SMS Dairy is a light-first brand, so dark-mode is opt-in.
       Uncomment the block below to enable automatic dark mode.

    :root {
        --cream: #141824;
        --cream-dark: #1c2030;
        --white: #1e2235;
        --dark: #e8eaf0;
        --gray-light: #262a3a;
    }
    */
}
