@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    /* Warm Earth & Biltong Palette */
    --bg-main: #14110f;          /* Deep espresso wood */
    --bg-surface: #1b1614;       /* Warm smoked oak */
    --bg-card: #231d1a;          /* Rich biltong pod */
    --bg-card-hover: #2c2420;
    
    --gold: #d89f38;             /* Toasted coriander gold */
    --gold-hover: #e8b04c;
    --gold-glow: rgba(216, 159, 56, 0.25);
    
    --rust: #b54e38;             /* Chilli flake ember */
    
    --text-primary: #f5efe6;     /* Warm bone / rock salt */
    --text-muted: #b0a59a;       /* Soft pecan sand */
    --text-dim: #7d7268;
    
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.accent-gold {
    color: var(--gold);
}

/* ─────────── Navigation (Border-free) ─────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 17, 15, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

/* ─────────── Buttons ─────────── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s ease;
}

.button-primary {
    background: linear-gradient(135deg, var(--gold), #be872b);
    color: #14110f;
    box-shadow: 0 6px 20px var(--gold-glow);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(216, 159, 56, 0.4);
}

.button-ghost {
    background: rgba(245, 239, 230, 0.06);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
}

.button-ghost:hover {
    background: rgba(216, 159, 56, 0.15);
    color: var(--gold);
}

.btn-block {
    width: 100%;
}

/* ─────────── Seamless Parallax Hero ─────────── */
.hero-stage {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('/assets/DSC_4892.webp') center center / cover no-repeat fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.96) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 60px 0;
}

.hero-logo-wrapper {
    margin-bottom: 22px;
}

.hero-logo {
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(216, 159, 56, 0.12);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-stage h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-perks {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.perk-item {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.perk-item span {
    color: var(--gold);
    margin-right: 4px;
}

/* ─────────── Flowing Teaser (No Box Outlines) ─────────── */
.flow-section {
    position: relative;
    z-index: 3;
    background: var(--bg-main);
    padding: 110px 0 100px;
}

.section-lead {
    max-width: 600px;
    margin: 12px auto 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.curved-cuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
}

.cut-item {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cut-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.cut-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.cut-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cut-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.flow-cta {
    margin-top: 50px;
}

/* ─────────── Centered Story Parallax ─────────── */
.story-stage {
    position: relative;
    padding: 140px 0;
    background: url('/assets/DSC_4931.webp') center center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20, 17, 15, 0.85) 0%, rgba(20, 17, 15, 0.98) 100%);
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

.story-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    line-height: 1.2;
    margin: 14px 0 22px;
}

.story-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.story-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.story-pill-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pillar-chip {
    background: rgba(29, 24, 21, 0.7);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pillar-chip strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.pillar-chip span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─────────── Footer ─────────── */
.footer {
    background: #0d0b0a;
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 45px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    background: #080706;
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-credit a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ─────────── Cart Drawer ─────────── */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 28px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
}

.cart-backdrop.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.empty-cart-msg {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-top: 40px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-total-row span:last-child {
    color: var(--gold);
}

.muted-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* ─────────── Shopify Collection Header ─────────── */
.shopify-collection-header {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.collection-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shopify-collection-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.shopify-collection-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 580px;
    margin: 0 auto;
}

/* ─────────── Filter Pills ─────────── */
.shopify-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.filter-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--gold);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #14110f;
    font-weight: 700;
}

/* ─────────── Shopify Product Grid ─────────── */
.shopify-catalog-wrap {
    padding-top: 48px;
    padding-bottom: 80px;
}

.shopify-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ─────────── Shopify Card System ─────────── */
.shopify-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Clean, subtle border */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.shopify-card:hover {
    border-color: rgba(216, 159, 56, 0.5); /* Subtle gold boundary on hover */
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.shopify-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rust);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 2;
}

/* ─────────── Image Stage ─────────── */
.shopify-img-stage {
    width: 100%;
    height: 180px;
    background: #0f0d0b; /* Slightly darker recessed backing for the product */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.shopify-img-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.shopify-card:hover .shopify-img-stage img {
    transform: scale(1.06);
}

/* ─────────── Card Details ─────────── */
.shopify-card-details {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shopify-subcat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 6px;
}

.shopify-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.shopify-desc {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* ─────────── Action Bar & Add-to-Cart ─────────── */
.shopify-card-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    gap: 12px;
}

.shopify-price-block {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.shopify-price-block .currency-symbol {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

.shopify-price-block .amount {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.shopify-price-block .currency-code {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 3px;
    font-weight: 600;
}

.shopify-atc-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--gold);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.shopify-atc-btn:hover {
    background: var(--gold);
    color: #14110f;
    box-shadow: 0 4px 12px var(--gold-glow);
}

/* ─────────── Responsive Grid ─────────── */
@media (max-width: 640px) {
    .shopify-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }

    .shopify-img-stage {
        height: 140px;
        padding: 10px;
    }

    .shopify-card-details {
        padding: 14px 14px 16px;
    }

    .shopify-card-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .shopify-atc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ─────────── Cart & Checkout Page ─────────── */
.cart-page-wrap {
    padding-top: 40px;
    padding-bottom: 80px;
}

.cart-layout-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 36px;
    align-items: flex-start;
}

.cart-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
}

.cart-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.cart-panel-head h2 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.back-to-shop-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.back-to-shop-link:hover {
    text-decoration: underline;
}

.panel-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ─────────── Cart Line Items ─────────── */
.cart-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.line-item-info h4 {
    font-size: 1rem;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.unit-price {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.line-item-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: #14110f;
}

.quantity-stepper button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-stepper button:hover {
    color: var(--gold);
}

.quantity-stepper span {
    padding: 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.line-total {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    min-width: 75px;
    text-align: right;
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
}

.remove-btn:hover {
    color: var(--rust);
}

/* ─────────── Shipping Form Grid ─────────── */
.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    background: #14110f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--gold);
}

/* ─────────── Summary & Square Box ─────────── */
.cart-summary-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
}

.cart-summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.summary-total-line {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.summary-total-line span:last-child {
    color: var(--gold);
}

.square-payment-block {
    background: #14110f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 14px;
}

#card-container {
    min-height: 90px;
    margin-bottom: 16px;
}

.error-msg {
    color: var(--rust);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

.security-guarantee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}

@media (max-width: 860px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* ─────────── Mobile Touch Optimization ─────────── */
@media (max-width: 860px) {
    .hero-stage, .story-stage {
        background-attachment: scroll; /* Smooth fallback on touch screens */
        min-height: auto;
        padding: 90px 0 70px;
    }
    .footer-content, .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .footer-links {
        justify-content: center;
    }
}