@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    /* Warm Bookish Palette — Dark Oak, Sienna, Parchment */
    --primary: #5c3d1e;        /* Dark Oak — was green */
    --primary-light: #7a5230;  /* Medium Oak — was green light */
    --primary-dark: #2c1f14;   /* Deep Ink — was dark green */
    --accent: #a0522d;         /* Sienna — was gold */
    --accent-light: #c4874a;   /* Light Sienna — was light gold */
    --cream: #f5ede0;          /* Page Cream */
    --cream-dark: #ede0ce;     /* Deeper Cream */
    --parchment: #faf3e8;      /* Warm White */
    --dark: #2c1f14;           /* Ink */
    --text-muted: #9c7a5c;     /* Warm Muted */
    --border: #e8d9c4;         /* Parchment Border */
    --white: #fff9f0;          /* Off White */
    --success: #4A7C59;
    --danger: #9B4444;
    --shadow-sm: 0 2px 8px rgba(92,61,30,0.07);
    --shadow-md: 0 6px 24px rgba(92,61,30,0.12);
    --shadow-lg: 0 16px 48px rgba(92,61,30,0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--cream);
    font-family: 'Jost', sans-serif;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
}

/* NAVBAR */
.bh-topbar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.78rem;
    color: rgba(250,247,242,0.7);
    border-bottom: 1px solid rgba(184,134,11,0.2);
    letter-spacing: 0.04em;
}

.bh-topbar a {
    color: var(--accent-light);
    font-weight: 500;
    transition: color 0.2s;
}

.bh-topbar a:hover {
    color: #fff;
}

.navbar {
    background: var(--primary) !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--accent);
    position: relative;
}

/* Decorative corner ornaments */
.navbar::before,
.navbar::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(184,134,11,0.3);
    pointer-events: none;
}

.navbar::before {
    top: 8px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.navbar::after {
    top: 8px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.navbar .container {
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: center;
}

.navbar-brand {
    color: var(--accent) !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
}

.navbar-brand span {
    color: rgba(250,247,242,0.75);
    font-size: 0.68rem;
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 4px;
}

.bh-search-bar {
    flex: 1;
    max-width: 480px;
    min-width: 0;
    margin: 0 20px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(184,134,11,0.4);
    background: rgba(255,255,255,0.08);
}

.bh-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 11px 16px;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Jost', sans-serif;
    background: rgba(255,255,255,0.95);
    color: var(--dark);
}

.bh-search-bar input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.bh-search-bar button {
    background: var(--accent);
    border: none;
    padding: 11px 24px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bh-search-bar button:hover {
    background: var(--accent-light);
}

.nav-link {
    color: rgba(250,247,242,0.85) !important;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--accent-light) !important;
}

.nav-link.cart-link {
    background: rgba(184,134,11,0.15);
    color: var(--accent-light) !important;
    border: 1px solid rgba(184,134,11,0.35);
    font-weight: 500;
}

.nav-link.cart-link:hover {
    background: rgba(184,134,11,0.25);
}

.nav-link.cart-link::after {
    display: none;
}

/* HERO */
.hero-section {
    background: linear-gradient(175deg, var(--primary-dark) 0%, var(--primary) 50%, #2A3D2B 100%);
    padding: 120px 20px 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Elegant radial glow */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(184,134,11,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 70%, rgba(184,134,11,0.04) 0%, transparent 50%);
}

/* Decorative book silhouette wave */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--cream);
    clip-path: polygon(0 60%, 5% 40%, 10% 55%, 15% 35%, 20% 50%, 25% 30%, 30% 45%, 35% 25%, 40% 40%, 45% 20%, 50% 35%, 55% 20%, 60% 40%, 65% 25%, 70% 45%, 75% 30%, 80% 50%, 85% 35%, 90% 55%, 95% 40%, 100% 60%, 100% 100%, 0 100%);
    opacity: 0.97;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(184,134,11,0.12);
    border: 1px solid rgba(184,134,11,0.3);
    color: var(--accent-light);
    padding: 8px 24px;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-family: 'Jost', sans-serif;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.hero-gold {
    color: var(--accent);
    font-style: italic;
    font-weight: 600;
}

.hero-sub {
    color: rgba(250,247,242,0.7);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-main {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 16px 40px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(184,134,11,0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Jost', sans-serif;
}

.hero-btn-main:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(184,134,11,0.45);
}

.hero-btn-ghost {
    background: transparent;
    color: var(--cream);
    padding: 16px 40px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(250,247,242,0.3);
    transition: all 0.35s ease;
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

.hero-btn-ghost:hover {
    background: rgba(250,247,242,0.08);
    color: var(--cream);
    border-color: rgba(250,247,242,0.5);
}

/* TRUST BAR */
.trust-bar {
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 60px;
    box-shadow: inset 0 -1px 0 rgba(184,134,11,0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.trust-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

.trust-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
}

.trust-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* SECTION TITLES */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    position: relative;
    padding-left: 0;
    border-left: none;
    line-height: 1.2;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 55px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

/* CATEGORY PILLS */
.cat-pill {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 2px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* BOOK CARDS */
.card {
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-img-wrap {
    overflow: hidden;
    height: 320px;
    position: relative;
    background: linear-gradient(145deg, var(--cream-dark), var(--parchment));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 16px;
}

.card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-img-overlay-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-new {
    background: var(--primary);
    color: var(--cream);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Jost', sans-serif;
}

.badge-bestseller {
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Jost', sans-serif;
}

.badge-category {
    background: var(--parchment);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    display: inline-block;
    font-family: 'Jost', sans-serif;
}

.card-body {
    padding: 18px 20px 8px;
    border-top: 1px solid var(--border);
}

.card-title-book {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
    font-family: 'Libre Baskerville', serif;
}

.stars {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.price-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.15rem;
    font-family: 'Cormorant Garamond', serif;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
    font-family: 'Jost', sans-serif;
}

.card-footer-actions {
    padding: 12px 20px 18px;
    display: flex;
    gap: 10px;
    background: var(--white);
}

/* BUTTONS */
.btn {
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--cream);
    padding: 11px 24px;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--cream);
    box-shadow: 0 4px 16px rgba(44,62,45,0.25);
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 11px 24px;
}

.btn-warning:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(184,134,11,0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--cream);
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background: var(--parchment);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-dark {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--cream);
}

.btn-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--cream);
}

/* BOOK DETAIL PAGE */
.detail-img-wrap {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 24px;
    background: linear-gradient(145deg, var(--cream-dark), var(--parchment));
    border: 1px solid var(--border);
}

.detail-img-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.detail-meta-table td {
    padding: 8px 0;
    font-size: 0.88rem;
    border: none;
}

.detail-meta-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 130px;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.03em;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 8px 16px;
    font-size: 0.88rem;
}

.in-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f5f1;
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 2px;
    border: 1px solid #d4e5d8;
}

.out-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #faf2f2;
    color: var(--danger);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 2px;
    border: 1px solid #ecd9d9;
}

.buy-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    position: relative;
}

.buy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* CART PAGE */
.cart-item-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.cart-item-img {
    width: 90px;
    height: 115px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    background: var(--parchment);
    border: 1px solid var(--border);
}

.cart-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 28px;
    position: sticky;
    top: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

/* CHECKOUT */
.checkout-section-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.checkout-step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--cream);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
}

.payment-option {
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-option:hover, .payment-option.selected {
    border-color: var(--primary);
    background: var(--parchment);
}

/* FORMS */
.form-control, .form-select {
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: 0.92rem;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,62,45,0.08);
    outline: none;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-family: 'Jost', sans-serif;
}

/* AUTH CARD */
.auth-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 56px 52px;
    max-width: 460px;
    margin: 70px auto;
    border: 1px solid var(--border);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* ADMIN */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 100vh;
    padding: 0;
}

.admin-sidebar .brand {
    padding: 28px 28px 22px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(184,134,11,0.2);
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-sidebar a {
    color: rgba(250,247,242,0.75);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.88rem;
    font-weight: 400;
    border-left: 3px solid transparent;
    letter-spacing: 0.02em;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(184,134,11,0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.stat-card {
    border-radius: 0;
    padding: 28px 30px;
    color: var(--cream);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(184,134,11,0.08);
}

.table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--primary);
    padding: 14px 18px;
    background: var(--parchment);
    font-family: 'Jost', sans-serif;
}

.table td {
    padding: 15px 18px;
    vertical-align: middle;
    border-color: var(--border);
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background: var(--parchment);
}

.status-badge {
    padding: 5px 14px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Jost', sans-serif;
}

.status-pending {
    background: #fdf6e3;
    color: #b8860b;
    border: 1px solid #f0d98c;
}

.status-confirmed {
    background: #f0f5f1;
    color: #4a7c59;
    border: 1px solid #c8dbc8;
}

.status-delivered {
    background: #f0f4f5;
    color: #2c3e2d;
    border: 1px solid #c8d4c8;
}

/* PROMO STRIP */
.promo-strip {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2A3D2B 100%);
    padding: 64px 0;
    margin-top: 70px;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.promo-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(184,134,11,0.06) 0%, transparent 70%);
}

.promo-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(250,247,242,0.8);
    padding: 60px 0 28px;
    margin-top: 0;
    border-top: 3px solid var(--accent);
    position: relative;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: rgba(250,247,242,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 18px;
    font-family: 'Jost', sans-serif;
}

.footer-bottom {
    border-top: 1px solid rgba(184,134,11,0.2);
    padding-top: 24px;
    margin-top: 44px;
    font-size: 0.82rem;
    color: rgba(250,247,242,0.4);
}

/* ALERTS */
.alert {
    border-radius: 0;
    font-size: 0.9rem;
    border: none;
    padding: 15px 20px;
    border-left: 3px solid;
}

.alert-success {
    background: #f0f5f1;
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: #faf2f2;
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: #fdf6e3;
    border-left-color: var(--accent);
    color: #8b6914;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: rgba(44,62,45,0.25);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(44,62,45,0.4);
}

/* UTILITIES */
.text-accent {
    color: var(--accent) !important;
}

.bg-primary-custom {
    background: var(--primary) !important;
}

.rounded-xl {
    border-radius: var(--radius-lg) !important;
}

/* Elegant selection color */
::selection {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(184,134,11,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-img-wrap::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .promo-inner {
        flex-direction: column;
        text-align: center;
    }

    .auth-card {
        padding: 36px 28px;
        margin: 36px auto;
    }

    .bh-search-bar {
        max-width: 100%;
        margin: 12px 0 0;
        order: 3;
    }

    .hero-section {
        padding: 80px 20px 100px;
    }

    .navbar::before,
    .navbar::after {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

.stat-card h2,
.stat-card h3,
.stat-card p,
.stat-card span {
    color: var(--cream) !important;
}
