/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --maroon-900: #3d0b1b;
    --maroon-800: #4a0d1f;
    --maroon-700: #631227;
    --maroon-600: #7a1730;
    --maroon-500: #8f1c39;
    --gold: #f5a623;
    --gold-dark: #d6890f;
    --cream: #fdf7f0;
    --cream-2: #fbeee2;
    --ink: #2a1620;
    --muted: #8a7580;
    --border: #eee0e2;
    --pink-tint: #fbe6ea;
    --success: #1f8a4c;

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(74, 13, 31, 0.06);
    --shadow-md: 0 10px 28px rgba(74, 13, 31, 0.12);
}

* { box-sizing: border-box; }

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, .display-font {
    font-family: "Fraunces", "Georgia", serif;
    font-weight: 700;
    color: var(--maroon-800);
}

a { color: var(--maroon-700); }
a:hover { color: var(--maroon-600); }

/* ==========================================================================
   Top navbar
   ========================================================================== */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-word {
    font-family: "Fraunces", serif;
    font-weight: 800;
    color: var(--maroon-800);
    line-height: 1.05;
    font-size: 1.15rem;
}

.brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--pink-tint);
    color: var(--maroon-700);
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon-800);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.15s ease;
}

.icon-btn:hover { background: var(--pink-tint); color: var(--maroon-700); }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--gold);
    color: var(--maroon-900);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.btn-maroon {
    background: var(--maroon-700);
    color: #fff !important;
    border: 1px solid var(--maroon-700);
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
}
.btn-maroon:hover { background: var(--maroon-800); border-color: var(--maroon-800); color: #fff; }

.btn-maroon-outline {
    background: transparent;
    color: var(--maroon-700) !important;
    border: 1.5px solid var(--maroon-700);
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
}
.btn-maroon-outline:hover { background: var(--pink-tint); color: var(--maroon-800) !important; }

.btn-gold {
    background: var(--gold);
    color: var(--maroon-900) !important;
    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--maroon-900) !important; }

/* Search bar row under the navbar */
.search-row {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.search-row .form-control {
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--cream);
    padding: 10px 18px;
}

.search-row .form-control:focus {
    box-shadow: 0 0 0 3px var(--pink-tint);
    border-color: var(--maroon-500);
}

/* ==========================================================================
   Hero banner (catalog landing)
   ========================================================================== */
.hero-banner {
    background: radial-gradient(120% 160% at 100% 0%, var(--maroon-600), var(--maroon-900) 70%);
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hero-banner h1, .hero-banner h2, .hero-banner h3 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-banner p {
    color: rgba(253, 247, 240, 0.85);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

/* Feature strip (Die-Cut Vinyl / Classroom Delivery / Safe & Secure / Custom Designs) */
.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border);
    height: 100%;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pink-tint);
    color: var(--maroon-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card h6 { font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 0.85rem; margin-bottom: 0; }

/* ==========================================================================
   Cards / product grid
   ========================================================================== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sticker-card-img { height: 160px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--cream-2); }

/* Bigger "frontline" cards used on the dedicated Catalog browse page —
   matches the reference design's tall product photography instead of
   the small thumbnail grid used elsewhere (home page trending row etc.) */
.catalog-card-img {
    height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--cream-2);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .catalog-card-img { height: 220px; }
}

.sticker-card-body .price { color: var(--maroon-700); font-weight: 700; }

.badge-category {
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.badge-lowstock {
    background: var(--gold);
    color: var(--maroon-900);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Section headers */
.section-eyebrow {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Category filter pills */
.category-pill {
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
}

.category-pill.active,
.category-pill:hover {
    background: var(--maroon-700);
    border-color: var(--maroon-700);
    color: #fff;
}

/* ==========================================================================
   Product detail page
   ========================================================================== */
.pdp-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--maroon-900);
}

.pdp-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.pdp-price { color: var(--maroon-700); font-weight: 800; font-size: 2rem; }

.size-pill, .qty-btn {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 600;
    color: var(--ink);
}

.size-pill.active {
    border-color: var(--maroon-700);
    color: var(--maroon-700);
    background: var(--pink-tint);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-stepper button {
    background: var(--cream);
    border: none;
    width: 40px;
    height: 40px;
    font-weight: 700;
    color: var(--maroon-700);
}

.qty-stepper button:disabled { color: var(--muted); opacity: 0.5; }

.qty-stepper input {
    width: 48px;
    border: none;
    text-align: center;
    font-weight: 700;
    background: #fff;
}

.tag-chip {
    background: var(--cream-2);
    color: var(--maroon-700);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pink-tint); color: var(--maroon-700);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-line {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.cart-line img {
    width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm);
    background: var(--cream-2);
}

.cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    position: sticky;
    top: 90px;
}

/* ==========================================================================
   Custom sticker upload page
   ========================================================================== */
.upload-dropzone {
    border: 2px dashed #e3b9c2;
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

.upload-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--pink-tint); color: var(--maroon-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 14px;
}

.safety-note {
    background: var(--pink-tint);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.85rem;
    color: var(--maroon-800);
}

/* ==========================================================================
   Auth pages (login/register)
   ========================================================================== */
.auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.auth-card .form-control, .auth-card .form-select {
    border-radius: var(--radius-sm);
}

.auth-card .form-control:focus, .auth-card .form-select:focus {
    border-color: var(--maroon-500);
    box-shadow: 0 0 0 3px var(--pink-tint);
}

/* ==========================================================================
   Mobile offcanvas menu
   ========================================================================== */
.offcanvas.menu-panel {
    background: var(--maroon-900);
    width: 78vw;
    max-width: 320px;
}

.menu-link {
    color: rgba(253, 247, 240, 0.85) !important;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.menu-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff !important; }
.menu-link.active { background: var(--gold); color: var(--maroon-900) !important; font-weight: 700; }

/* ==========================================================================
   Misc / mobile tuning
   ========================================================================== */
.status-badge {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge.paid { background: #fde7c8; color: #8a5a08; }
.status-badge.delivered { background: #d7f0e0; color: var(--success); }
.status-badge.cancelled { background: #f1e3e6; color: var(--muted); }

@media (max-width: 767.98px) {
    .hero-banner { padding: 28px 18px; border-radius: var(--radius-md); }
    .pdp-price { font-size: 1.6rem; }
    .cart-summary { position: static; }
}
