/* =========================================================
   CROD Trading — Premium Spirits Theme
   Beer, Wine and Premium Spirits — Importers and Distributors
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --crod-black: #121212;
    --crod-bronze: #B8733C;
    --crod-bronze-light: #D99A5B;
    --crod-bronze-dark: #8A5124;
    --crod-cream: #F6F1E8;
    --crod-cream-soft: #FBF7EF;
    --crod-charcoal: #2B2623;
    --crod-charcoal-light: #3E3733;
    --crod-gold-ribbon: #A06A2A;
    --crod-border: #E4DAC7;
    --crod-success: #2E7D4F;
    --crod-warning: #C9A227;
    --crod-danger: #B3261E;

    /* Override Bootstrap primary */
    --bs-primary: #B8733C;
    --bs-primary-rgb: 184, 115, 60;
    --bs-link-color: #8A5124;
    --bs-link-hover-color: #B8733C;
    --bs-link-color-rgb: 138, 81, 36;
    --bs-link-hover-color-rgb: 184, 115, 60;
}

/* ---------- Base ---------- */
html, body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background-color: var(--crod-cream);
    color: var(--crod-charcoal);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--crod-black);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--crod-bronze-dark); }
a:hover { color: var(--crod-bronze); }

.text-bronze { color: var(--crod-bronze) !important; }
.bg-cream { background-color: var(--crod-cream) !important; }
.bg-cream-soft { background-color: var(--crod-cream-soft) !important; }
.bg-charcoal { background-color: var(--crod-charcoal) !important; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Buttons ---------- */
.btn-crod-primary,
.btn-primary {
    background-color: var(--crod-bronze);
    border-color: var(--crod-bronze);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.btn-crod-primary:hover,
.btn-primary:hover,
.btn-crod-primary:focus,
.btn-primary:focus {
    background-color: var(--crod-bronze-dark);
    border-color: var(--crod-bronze-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 115, 60, 0.35);
}

.btn-crod-outline,
.btn-outline-primary {
    border: 1.5px solid var(--crod-bronze);
    color: var(--crod-bronze);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.55rem 1.35rem;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.btn-crod-outline:hover,
.btn-outline-primary:hover {
    background-color: var(--crod-bronze);
    color: #fff;
    border-color: var(--crod-bronze);
}

.btn-crod-light {
    background: transparent;
    border: 1.5px solid var(--crod-cream);
    color: var(--crod-cream);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.btn-crod-light:hover {
    background: var(--crod-cream);
    color: var(--crod-black);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ---------- Navbar ---------- */
.navbar-crod {
    background-color: var(--crod-black);
    border-bottom: 1px solid rgba(184, 115, 60, 0.3);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.navbar-crod .navbar-brand {
    color: var(--crod-cream);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}
.navbar-crod .navbar-brand img {
    height: 54px;
    width: auto;
}
.navbar-crod .nav-link {
    color: var(--crod-cream) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}
.navbar-crod .nav-link:hover {
    color: var(--crod-bronze-light) !important;
}
.navbar-crod .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.25rem;
    height: 1px;
    background: var(--crod-bronze);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.navbar-crod .nav-link:hover::after {
    transform: scaleX(1);
}
.navbar-crod .navbar-toggler {
    border-color: var(--crod-bronze);
}
.navbar-crod .navbar-toggler-icon {
    filter: invert(1);
}
.navbar-crod .cart-icon {
    color: var(--crod-cream);
    font-size: 1.4rem;
    position: relative;
    padding: 0.5rem 0.75rem;
}
.navbar-crod .cart-icon:hover {
    color: var(--crod-bronze-light);
}
.navbar-crod .cart-icon .badge {
    background-color: var(--crod-bronze) !important;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.navbar-crod-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--crod-bronze-dark), var(--crod-bronze), var(--crod-bronze-light), var(--crod-bronze), var(--crod-bronze-dark));
}

/* ---------- Hero ---------- */
.hero-crod {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1c1612 50%, #2b2218 100%);
    color: var(--crod-cream);
    padding: 6rem 0 6.5rem;
    overflow: hidden;
    margin-bottom: 3rem;
}
.hero-crod::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(184, 115, 60, 0.18), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(217, 154, 91, 0.12), transparent 50%);
    pointer-events: none;
}
.hero-crod .container { position: relative; z-index: 2; }
.hero-crod .eyebrow {
    color: var(--crod-bronze-light);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-crod h1 {
    color: var(--crod-cream);
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.hero-crod h1 .accent {
    color: var(--crod-bronze-light);
    font-style: italic;
}
.hero-crod .lead {
    color: rgba(246, 241, 232, 0.85);
    font-size: 1.2rem;
    max-width: 620px;
    margin-bottom: 2.25rem;
}
.hero-crod .gold-rule {
    width: 80px;
    height: 2px;
    background: var(--crod-bronze);
    margin: 1.5rem 0;
}

/* ---------- Section titles ---------- */
.section-title {
    text-align: center;
    margin: 3.5rem 0 2.5rem;
}
.section-title .eyebrow {
    display: block;
    color: var(--crod-bronze);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--crod-bronze);
    margin: 1rem auto 0;
}

/* ---------- Product card ---------- */
.product-card {
    background: #fff;
    border: 1px solid var(--crod-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(18, 18, 18, 0.12);
    border-color: var(--crod-bronze);
    color: inherit;
}
.product-card .product-image {
    background: var(--crod-cream-soft);
    padding: 1.25rem;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--crod-border);
}
.product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card .product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card .product-sku {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--crod-bronze);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.product-card .product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--crod-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    color: var(--crod-bronze-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0 0.75rem;
}
.product-card .stock-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
    align-self: flex-start;
    margin-top: auto;
}
.stock-in { background: rgba(46, 125, 79, 0.12); color: var(--crod-success); }
.stock-low { background: rgba(201, 162, 39, 0.15); color: #8a6d00; }
.stock-out { background: rgba(179, 38, 30, 0.12); color: var(--crod-danger); }

/* ---------- Category tiles ---------- */
.category-tile {
    position: relative;
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s ease;
    border: 1px solid var(--crod-border);
}
.category-tile.beer { background: linear-gradient(135deg, #3a2410 0%, #8a5a1e 100%); }
.category-tile.wine { background: linear-gradient(135deg, #2a0a0a 0%, #6b1c1c 100%); }
.category-tile.spirits { background: linear-gradient(135deg, #1a1410 0%, #4a3520 100%); }
.category-tile.whisky { background: linear-gradient(135deg, #2a1a0a 0%, #7a4a1c 100%); }
.category-tile.vodka { background: linear-gradient(135deg, #1a2330 0%, #3d5570 100%); }
.category-tile.tequila { background: linear-gradient(135deg, #2b3315 0%, #6b7a30 100%); }
.category-tile.general { background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%); }
.category-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.category-tile:hover {
    transform: translateY(-4px);
    color: #fff;
}
.category-tile .tile-content {
    position: relative;
    z-index: 2;
}
.category-tile h3 {
    color: #fff;
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
}
.category-tile .tile-cta {
    color: var(--crod-bronze-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* ---------- Category pills (catalog sidebar) ---------- */
.category-pill {
    display: block;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px solid var(--crod-border);
    border-radius: 2px;
    color: var(--crod-charcoal);
    text-decoration: none;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.category-pill:hover {
    background: var(--crod-cream-soft);
    color: var(--crod-bronze-dark);
    border-color: var(--crod-bronze);
}
.category-pill.active {
    background: var(--crod-bronze);
    color: #fff;
    border-color: var(--crod-bronze);
}

/* ---------- Value props ---------- */
.value-props {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid var(--crod-border);
    border-bottom: 1px solid var(--crod-border);
    margin: 3rem 0;
}
.value-prop {
    text-align: center;
    padding: 0 1rem;
}
.value-prop i {
    font-size: 2.4rem;
    color: var(--crod-bronze);
    margin-bottom: 0.75rem;
    display: block;
}
.value-prop h5 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.value-prop p {
    font-size: 0.9rem;
    color: var(--crod-charcoal-light);
    margin: 0;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 2px;
    border: 1px solid var(--crod-border);
    padding: 0.65rem 0.85rem;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--crod-bronze);
    box-shadow: 0 0 0 0.18rem rgba(184, 115, 60, 0.18);
}
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--crod-charcoal);
    letter-spacing: 0.02em;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--crod-border);
    border-radius: 4px;
    background: #fff;
}
.card-header {
    background: var(--crod-cream-soft);
    border-bottom: 1px solid var(--crod-border);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ---------- Tables ---------- */
.table-crod thead {
    background: var(--crod-charcoal);
    color: var(--crod-cream);
}
.table-crod thead th {
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 1rem 0.75rem;
    color: var(--crod-cream);
}
.table-crod tbody tr {
    border-bottom: 1px solid var(--crod-border);
}
.table-crod tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

/* ---------- Step Indicator ---------- */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    position: relative;
}
.step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}
.step-indicator .step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--crod-border);
    color: var(--crod-charcoal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
.step-indicator .step.active .step-circle,
.step-indicator .step.completed .step-circle {
    background: var(--crod-bronze);
    border-color: var(--crod-bronze);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 115, 60, 0.35);
}
.step-indicator .step.completed .step-circle::after {
    content: '\2713';
}
.step-indicator .step.completed .step-circle > span { display: none; }
.step-indicator .step-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--crod-charcoal-light);
    text-align: center;
}
.step-indicator .step.active .step-label,
.step-indicator .step.completed .step-label {
    color: var(--crod-bronze-dark);
}
.step-indicator .step-line {
    flex: 1;
    height: 2px;
    background: var(--crod-border);
    margin: 0 -1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.step-indicator .step-line.completed {
    background: var(--crod-bronze);
}

/* ---------- Stat tiles (account dashboard) ---------- */
.stat-tile {
    background: #fff;
    border: 1px solid var(--crod-border);
    border-left: 4px solid var(--crod-bronze);
    border-radius: 4px;
    padding: 1.5rem;
    height: 100%;
}
.stat-tile .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--crod-charcoal-light);
    font-weight: 600;
}
.stat-tile .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--crod-black);
    margin: 0.25rem 0;
    line-height: 1;
}
.stat-tile .stat-sub {
    font-size: 0.85rem;
    color: var(--crod-bronze);
}

/* ---------- Auth card (login/register) ---------- */
.auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
    background:
        linear-gradient(135deg, rgba(18, 18, 18, 0.04), rgba(184, 115, 60, 0.06)),
        var(--crod-cream);
}
.auth-card {
    background: #fff;
    border: 1px solid var(--crod-border);
    border-top: 4px solid var(--crod-bronze);
    border-radius: 4px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(18, 18, 18, 0.08);
}
.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}
.auth-card .auth-logo img {
    max-height: 90px;
    width: auto;
}
.auth-card h1,
.auth-card h2,
.auth-card h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--crod-charcoal-light);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */
.footer-crod {
    background: #0d0d0d;
    color: var(--crod-cream);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--crod-bronze);
}
.footer-crod h6 {
    color: var(--crod-bronze-light);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-crod a {
    color: rgba(246, 241, 232, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.footer-crod a:hover { color: var(--crod-bronze-light); }
.footer-crod .brand-tagline {
    color: rgba(246, 241, 232, 0.65);
    font-size: 0.88rem;
    max-width: 280px;
    line-height: 1.6;
    margin-top: 0.75rem;
}
.footer-crod .footer-logo img { max-height: 64px; margin-bottom: 0.5rem; }
.footer-crod .footer-bottom {
    border-top: 1px solid rgba(184, 115, 60, 0.2);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(246, 241, 232, 0.55);
}
.footer-crod .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(184, 115, 60, 0.4);
    border-radius: 50%;
    margin-right: 0.5rem;
    padding: 0;
    color: var(--crod-cream);
    transition: all 0.25s ease;
}
.footer-crod .social-icons a:hover {
    background: var(--crod-bronze);
    border-color: var(--crod-bronze);
    color: #fff;
}

/* ---------- Misc ---------- */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--crod-bronze-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--crod-bronze); }
.breadcrumb-item.active { color: var(--crod-charcoal-light); }

.alert { border-radius: 2px; border-width: 0 0 0 4px; }
.alert-success { background: rgba(46, 125, 79, 0.08); border-left-color: var(--crod-success); color: var(--crod-success); }
.alert-danger { background: rgba(179, 38, 30, 0.08); border-left-color: var(--crod-danger); color: var(--crod-danger); }

.page-item.active .page-link {
    background: var(--crod-bronze);
    border-color: var(--crod-bronze);
}
.page-link {
    color: var(--crod-bronze-dark);
    border-radius: 2px !important;
    margin: 0 2px;
}
.page-link:hover { color: var(--crod-bronze); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero-crod { padding: 4rem 0; }
    .category-tile { height: 200px; }
    .step-indicator .step-label { font-size: 0.65rem; }
    .navbar-crod .navbar-brand img { height: 42px; }
    .navbar-crod .navbar-brand { font-size: 1.1rem; }
}
