/* ============================================
   FARMFRESH POULTRY — PREMIUM CSS
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #52b788;
    --accent: #e9c46a;
    --accent-dark: #f4a261;
    --danger: #e63946;
    --text: #1a1a2e;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --bg: #f8fffe;
    --bg-card: #ffffff;
    --border: #e8f4f0;
    --shadow-sm: 0 2px 8px rgba(45, 106, 79, .10);
    --shadow: 0 8px 30px rgba(45, 106, 79, .15);
    --shadow-lg: 0 20px 60px rgba(45, 106, 79, .18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

/* --- Container --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(45, 106, 79, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 106, 79, .45);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(244, 162, 97, .35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244, 162, 97, .45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-sm {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-outline-sm:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.logo-text i {
    font-size: 26px;
    color: var(--accent-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-link {
    font-family: var(--font);
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--primary);
    background: rgba(45, 106, 79, .08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45, 106, 79, .07);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    border: 2px solid #fff;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    background: rgba(45, 106, 79, .07);
    border: none;
    cursor: pointer;
    padding: 9px 16px;
    border-radius: 12px;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--primary);
    color: #fff;
}

.user-btn i:first-child {
    font-size: 18px;
    color: var(--primary);
}

.user-btn:hover i:first-child {
    color: #fff;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}

.user-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.user-menu a:hover {
    background: var(--border);
    color: var(--primary);
}

.user-menu .logout-link:hover {
    background: #fef2f2;
    color: var(--danger);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile right cluster (cart icon + hamburger) — hidden on desktop */
.mobile-right {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Mobile dropdown menu — hidden by default */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease, padding .25s ease;
    padding: 0 20px;
}

.mobile-menu.open {
    display: flex;
    max-height: 500px;
    padding: 16px 20px 24px;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 16px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-nav-links li a:hover {
    color: var(--primary);
    padding-left: 14px;
}

.mobile-nav-links li a i {
    width: 20px;
    color: var(--primary);
    font-size: 15px;
}

.mobile-auth {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.mobile-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    max-width: 400px;
    box-shadow: var(--shadow);
    animation: slideIn .4s ease;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    margin-left: auto;
    opacity: .6;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.swiper-slide-hero {
    position: relative;
    height: 650px;
}

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-media img,
.slide-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 40, 25, .75) 0%, rgba(15, 40, 25, .35) 60%, transparent 100%);
}

.slide-overlay-default {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #52b788 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 60px;
    z-index: 5;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.slide-title {
    font-family: var(--font);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 20px;
}

.slide-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.slide-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .6) !important;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    width: 30px !important;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: linear-gradient(180deg, #f0faf5 0%, var(--bg) 100%);
}

.section-tag {
    display: inline-block;
    background: rgba(45, 106, 79, .1);
    color: var(--primary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
}

.section-header {
    text-align: center;
}

.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-left .section-subheading {
    margin-left: 0;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f0faf5;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.07);
}

.product-card-img .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-light);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--danger);
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.product-badge.featured-badge {
    background: var(--accent-dark);
}

.product-card-body {
    padding: 20px;
}

.product-category {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-short-desc {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    background: var(--border);
    padding: 3px 10px;
    border-radius: 50px;
}

.product-card-footer {
    padding: 0 20px 20px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, .35);
}

.view-detail-link {
    display: block;
    text-align: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
    transition: var(--transition);
}

.view-detail-link:hover {
    color: var(--primary);
}

/* ============================================
   FEATURES / USPs SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(45, 106, 79, .12), rgba(82, 183, 136, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

.feature-card h3 {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    font-family: var(--font);
}

.about-img-badge .number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.about-img-badge .label {
    font-size: 13px;
    opacity: .85;
}

.about-content {
    padding-left: 20px;
}

.about-content h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
}

.stat {
    text-align: center;
}

.stat .num {
    font-family: var(--font);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat .lbl {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    font-family: var(--font);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
    margin-bottom: 36px;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0faf5;
    box-shadow: var(--shadow);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 8px;
}

.product-info .category-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 24px 0;
}

.price-main {
    font-family: var(--font);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-save {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--danger);
    background: #fee2e2;
    padding: 4px 12px;
    border-radius: 50px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.meta-label {
    font-weight: 600;
    color: var(--text);
    min-width: 90px;
}

.meta-value {
    color: var(--text-muted);
}

.stock-in {
    color: #065f46;
    font-weight: 700;
}

.stock-out {
    color: var(--danger);
    font-weight: 700;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font);
}

.qty-btn:first-child {
    border-radius: 12px 0 0 12px;
}

.qty-btn:last-child {
    border-radius: 0 12px 12px 0;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: 2px solid var(--border);
    border-left: none;
    border-right: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    outline: none;
    background: #fff;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-description {
    margin-top: 40px;
}

.product-description h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.product-description p,
.product-description ul {
    color: var(--text-muted);
    font-size: 15px;
}

.product-description ul {
    padding-left: 20px;
    margin-top: 10px;
}

.product-description li {
    margin-bottom: 6px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0faf5;
    flex-shrink: 0;
}

.cart-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-name {
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
}

.cart-product-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.cart-remove:hover {
    color: var(--danger);
}

.order-summary-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.order-summary-card h3 {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-cart i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ============================================
   FORMS / AUTH PAGES
   ============================================ */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0faf5 50%, #fff 100%);
    padding: 40px 20px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    background: #f8fffe;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, .08);
}

.form-input.error {
    border-color: var(--danger);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 13px;
    color: var(--danger);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.checkout-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.checkout-form-card h2 {
    font-size: 22px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-card h2 i {
    color: var(--primary);
}

/* ============================================
   ORDER DETAIL
   ============================================ */
.order-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.order-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 28px 36px;
    color: #fff;
}

.order-header h2 {
    font-size: 22px;
    font-family: var(--font);
    margin-bottom: 4px;
}

.order-header p {
    opacity: .85;
    font-size: 14px;
}

.order-body {
    padding: 36px;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.order-items-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.order-items-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.order-totals {
    background: #f0faf5;
    border-radius: var(--radius-sm);
    padding: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.totals-final {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    border-top: 2px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
}

/* ============================================
   ORDER LIST (MY ORDERS)
   ============================================ */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.orders-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.orders-table tr:hover td {
    background: #f8fffe;
}

/* ============================================
   PRODUCTS LISTING PAGE
   ============================================ */
.products-page {
    padding: 60px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cat-filter-list {
    list-style: none;
}

.cat-filter-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.cat-filter-list li a:hover,
.cat-filter-list li a.active {
    background: rgba(45, 106, 79, .1);
    color: var(--primary);
}

.cat-filter-list .count {
    font-size: 12px;
    background: var(--border);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 50px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-nav {
    margin-top: 48px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li.active a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.pagination li a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination li.active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-top: 12px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .sep {
    color: rgba(255, 255, 255, .4);
}

/* ============================================
   ABOUT / CONTACT / POLICY PAGES
   ============================================ */
.text-page {
    padding: 72px 0;
}

.text-page-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(45, 106, 79, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
    font-size: 22px;
    margin-bottom: 28px;
}

.policy-content h2 {
    font-size: 26px;
    margin: 36px 0 14px;
    color: var(--text);
}

.policy-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: var(--text);
}

.policy-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.policy-content ul {
    color: var(--text-muted);
    padding-left: 24px;
    margin-bottom: 16px;
}

.policy-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .85);
    margin-top: auto;
}

.footer-top {
    padding: 72px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--accent);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 12px;
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
}

/* ============================================
   ADMIN COMMON AREAS (used in checkout card, order card etc)
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-left: 0;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Hide desktop nav elements */
    .nav-links,
    .nav-actions {
        display: none !important;
    }

    /* Show mobile right (cart + hamburger) */
    .mobile-right {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Show mobile menu drawer */
    .mobile-menu {
        display: none;
    }

    /* shown via JS .open class */
    .mobile-menu.open {
        display: flex;
    }

    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }

    .hero-slider {
        height: 500px;
    }

    .swiper-slide-hero {
        height: 500px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .about-img-badge {
        right: 10px;
        bottom: 10px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .flash-message {
        left: 16px;
        right: 16px;
        top: 80px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 420px;
    }

    .swiper-slide-hero {
        height: 420px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .slide-btns {
        flex-direction: column;
    }
}