/* ==========================================================================
   1. VARIABLES & BASE SETUP
   ========================================================================== */
:root {
    color-scheme: light;
    
    /* Colors */
    --bg: #f5efe8;
    --surface: #ffffff;
    --surface-soft: #fcf9f5;
    --text: #2c2723;
    --muted: #6b625a;
    --border: #e6dbcf;
    --primary: #8b606d;
    --primary-dark: #694653;
    --primary-light: #f0e6e6;
    --gold: #b18b54;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(69, 48, 36, 0.05);
    --shadow-float: 0 18px 55px rgba(69, 48, 36, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: 
        radial-gradient(circle at 10% 0%, rgba(177, 139, 84, 0.08), transparent 40rem),
        radial-gradient(circle at 90% 80%, rgba(139, 96, 109, 0.08), transparent 40rem),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.cart-open { overflow: hidden; }

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    transition: var(--transition-fast);
}

.hidden { display: none !important; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Base button and utilities */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: fit-content;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 0;
    transition: var(--transition-smooth);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(105, 70, 83, 0.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(105, 70, 83, 0.3);
}

.text-link {
    display: inline-block;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.text-link:hover { color: var(--primary); }

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(230, 219, 207, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-size: 1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.main-nav a:hover { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher,
.widget-language-switcher {
    display: inline-flex;
    padding: 4px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.language-switcher button,
.widget-language-switcher button {
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 40px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.language-switcher button.active,
.widget-language-switcher button.active {
    background: white;
    color: var(--text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
}

.cart-button:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 96, 109, 0.1);
}

.cart-button b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
}

/* ==========================================================================
   13. AUTHENTICATION PAGES (STOREFRONT PROMO STYLE)
   ========================================================================== */
.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 60px 20px;
    background: #f2f8fd; /* Light retail blue background */
}

.auth-promo-layout {
    display: grid;
    grid-template-columns: 1.1fr 440px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1000px;
}

/* --- Promo Side --- */
.auth-promo {
    background: var(--surface-soft);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #e3e4e5;
}

.promo-eyebrow {
    color: #0071dc;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth-promo h2 {
    font-size: 2rem;
    color: #2e2f32;
    margin: 0 0 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.auth-promo p {
    color: #4a4c53;
    font-size: 1.05rem;
    margin: 0 0 32px;
    line-height: 1.6;
}

.promo-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.promo-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* --- Form Side --- */
.auth-card {
    padding: 48px 40px;
    text-align: left;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card h2 {
    color: #2e2f32;
    font-size: 1.5rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.auth-subtitle {
    color: #4a4c53;
    font-size: 0.95rem;
    margin: 0 0 32px;
    line-height: 1.5;
}

.auth-card .flash-msg {
    margin-bottom: 24px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    display: block;
    font-weight: 600;
    color: #2e2f32;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.auth-card .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #767676; /* Accessible high-contrast border */
    border-radius: 4px;
    font-size: 1rem;
    color: #2e2f32;
    transition: box-shadow 0.1s ease, border-color 0.1s ease;
}

.auth-card .form-group input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px #000000;
    outline: none;
}

/* Buttons */
.auth-submit {
    width: 100%;
    margin-top: 12px;
    font-size: 1rem;
    padding: 14px;
    border-radius: 60px; /* E-commerce pill shape */
    background-color: #0071dc;
    color: #ffffff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.auth-submit:hover {
    background-color: #004f9a;
}

.auth-submit-secondary {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    border-radius: 60px;
    background-color: transparent;
    color: #2e2f32;
    font-weight: 700;
    border: 1px solid #2e2f32;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.auth-submit-secondary:hover {
    background-color: #f2f8fd;
}

/* "New to Store?" Divider */
.auth-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e3e4e5;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 16px;
    color: #4a4c53;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Mobile Adjustments --- */
@media (max-width: 900px) {
    .auth-promo-layout {
        grid-template-columns: 1fr;
    }
    
    .auth-promo {
        border-right: none;
        border-bottom: 1px solid #e3e4e5;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .auth-page-container {
        padding: 0;
        background: #ffffff;
        align-items: flex-start;
    }
    
    .auth-promo-layout {
        border-radius: 0;
        box-shadow: none;
    }
    
    .auth-card {
        padding: 32px 20px;
    }
    
    .auth-promo h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    padding: 40px 0;
    background: var(--surface-soft);
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-pill {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 550px;
}

.hero-photo {
    flex: 1 1 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    max-width: 100%;
}

.hero-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 1400 / 933;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. TRUST BAR SECTION
   ========================================================================== */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto;
    text-align: center;
}

.trust-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.trust-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.trust-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text);
}

.trust-card span {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ==========================================================================
   5. BRAND STORY SECTION
   ========================================================================== */
.brand-story-section {
    width: min(1180px, calc(100% - 32px));
    margin: 60px auto;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.brand-story-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: start;
}

.brand-story-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 400px;
    min-width: 0;
}

.brand-story-section h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
}

.brand-story-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.brand-story-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.brand-story-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 400px;
}

.brand-story-content p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. SHOP & PRODUCT CARDS
   ========================================================================== */
.shop-section,
.story-section,
.process-section {
    width: min(1180px, calc(100% - 32px));
    margin: 80px auto 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.section-heading h2,
.story-copy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-pill {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: white;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.category-pill.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 24px;
    flex-wrap: wrap;
}

.shop-search {
    position: relative;
    width: min(520px, 100%);
}

.shop-search > span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: var(--muted);
    pointer-events: none;
}

.shop-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 48px 15px 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.shop-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 50%;
}

.shop-search button:hover {
    background: var(--border);
}

.search-results-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.no-products-container {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.no-products-container p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.suggest-button {
    padding: 12px 24px;
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: var(--transition-smooth);
}

.product-card.category-hidden {
    display: none;
}

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

.product-link-wrapper {
    display: contents;
}

.product-image-wrapper {
    cursor: pointer;
}

.product-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-type {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.2s;
}

.product-info h3:hover {
    color: var(--primary);
}

.product-info p:not(.product-type) {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-bottom strong {
    font-size: 1.1rem;
}

.add-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--text);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.add-button:hover { background: var(--primary); }

.empty-grid-msg {
    grid-column: 1 / -1;
    color: var(--muted);
}

/* ==========================================================================
   7. SINGLE PRODUCT PAGE STYLES
   ========================================================================== */
.single-product-main {
    width: min(1180px, calc(100% - 32px));
    margin: 60px auto;
}

.back-to-shop-link {
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 600;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.single-product-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-product-gallery {
    position: relative;
    width: 100%;
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.single-product-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.large-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.8rem;
}

.large-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
}

.product-description-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.description-title {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 10px;
}

.description-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    white-space: pre-wrap;
    margin: 0;
}

.single-product-right {
    display: flex;
    flex-direction: column;
}

.large-type {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.product-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 800;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-price-large {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.product-original-price {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.product-size-badge {
    background: var(--surface-soft);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--muted);
}

.product-specs-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.9rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    gap: 15px;
}

.spec-row strong { white-space: nowrap; }
.spec-row span { color: var(--muted); text-align: right; }

.spec-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.spec-column span { color: var(--muted); }
.spec-column.no-border { border-bottom: none; padding-bottom: 0; }
.spec-warning { color: #b33939; }

.product-customization { margin-bottom: 24px; }
.product-customization label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-customization input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-family: inherit;
    color: var(--text);
}

.add-button-large {
    width: 100%;
    font-size: 1.1rem;
    padding: 18px;
}

.product-guarantees {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.guarantee-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   8. ORDER / CHECKOUT PAGE STYLES
   ========================================================================== */
.order-page {
    width: min(1180px, calc(100% - 32px));
    margin: 60px auto 100px;
}

.order-header {
    max-width: 760px;
    margin-bottom: 45px;
}

.order-header h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin: 10px 0 18px;
    letter-spacing: -0.04em;
}

.order-header > p:last-child {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 30px;
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.order-card-header h2 { margin: 6px 0 0; }

.order-items {
    display: flex;
    flex-direction: column;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.order-item:first-child { border-top: 1px solid var(--border); }

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-item-info span {
    color: var(--muted);
    font-size: 0.9rem;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
}

.order-item-controls button:hover { background: var(--border); }

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 2px solid var(--border);
}

.order-total strong {
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.empty-order {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.empty-order span {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-order strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-order p { margin-bottom: 25px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 10px);
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.order-notice {
    margin: 25px 0;
    padding: 18px;
    border-radius: var(--radius-sm, 10px);
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.order-notice strong {
    display: block;
    margin-bottom: 7px;
}

.order-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.order-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.order-message {
    margin-bottom: 30px;
    padding: 18px 20px;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid var(--border);
}

.order-message.success { background: rgba(80, 150, 80, 0.1); }
.order-message.error { background: rgba(180, 60, 60, 0.1); }

/* ==========================================================================
   9. HOW IT WORKS & ABOUT
   ========================================================================== */
.centered-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.centered-heading > p {
    text-align: center;
    max-width: 600px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.process-card {
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.process-card span {
    display: inline-block;
    color: var(--gold);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    margin-bottom: 80px;
}

.story-photo { min-height: 540px; }

.story-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-copy {
    padding: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-points {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.story-points div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.story-points strong {
    color: var(--gold);
    font-weight: 800;
}

/* ==========================================================================
   10. FLOATING EARTHQUAKE WIDGET
   ========================================================================== */
.earthquake-widget-section {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    z-index: 90;
    margin: 0;
    contain: layout paint;
}

.earthquake-widget {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.widget-toggle {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.widget-icon {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
}

.seismic-ring {
    position: absolute;
    border: 2px solid #d9363e;
    border-radius: 50%;
    opacity: 0.5;
}

.ring-one { width: 26px; height: 26px; }
.ring-two { width: 40px; height: 40px; opacity: 0.2; }
.seismic-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9363e; }

.widget-heading { display: flex; flex-direction: column; }
.widget-heading strong { font-size: 1rem; }
.widget-heading small { color: var(--muted); font-size: 0.8rem; }
.widget-chevron { margin-left: auto; font-size: 1.5rem; color: var(--muted); }

.widget-content {
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.widget-language-switcher { margin: 20px 0; }
.widget-content h2 { margin: 0 0 12px; font-size: 1.5rem; }
.widget-subtitle { margin: 0; color: var(--muted); font-size: 0.95rem; }

.widget-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.widget-action {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.widget-primary { background: #d9363e; color: white; border: 0; }
.widget-primary:hover { background: #c02d34; }
.widget-secondary { background: var(--surface-soft); color: var(--text); border: 1px solid var(--border); }
.widget-secondary:hover { background: #eef1f5; }

.widget-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}
.widget-info p { margin: 8px 0 0; }

.widget-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: #9aa2b1;
    font-size: 0.8rem;
}

/* ==========================================================================
   11. SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
}

.cart-drawer.open {
    pointer-events: auto;
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 23, 20, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(450px, 100%);
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 { margin: 0; font-size: 1.8rem; }

.close-cart {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 1.5rem;
}
.close-cart:hover { background: var(--surface-soft); }

.cart-items {
    overflow-y: auto;
    padding: 16px 0;
    flex: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    cursor: pointer;
}

.empty-cart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}
.menu-toggle {
    display: none;
}
.empty-cart span { font-size: 3rem; margin-bottom: 16px; }

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

.checkout-button { width: 100%; }
.checkout-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* ==========================================================================
   12. MEDIA QUERIES (Enhanced Mobile Optimization)
   ========================================================================== */
@media (max-width: 980px) {
    .hero-photo { order: -1; }
}

@media (max-width: 900px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: flex;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        width: 44px;
        height: 44px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
    }

    .hamburger-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: none !important; 
        box-shadow: var(--shadow-soft);
        margin-left: 0;
        padding: 0;
    }

    .main-nav.open {
        display: flex !important;
        padding: 16px 24px 24px;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(230, 219, 207, 0.4);
    }

    .main-nav a:last-child { border-bottom: none; }
    .header-inner {
        width: calc(100% - 24px);
        min-height: 64px;
        gap: 12px;
    }
    
    .brand {
        font-size: 1rem;
        gap: 8px;
    }
    
    .header-actions {
        gap: 8px;
    }

    .cart-button {
        padding: 6px 10px;
        min-height: 38px;
        font-size: 0.85rem;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 800px) {
    .order-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .order-card { padding: 22px; }
    .order-page { margin-top: 35px; }
}

@media (max-width: 768px) {
    .story-section { grid-template-columns: 1fr; }
    .story-photo { min-height: 400px; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
    
    .earthquake-widget-section {
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .cart-button span:nth-child(2) { display: none; }
    .product-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
    .add-button { width: 100%; }
    
    .shop-section,
    .story-section,
    .process-section,
    .brand-story-section {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-heading h2,
    .story-copy h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        word-break: break-word;
    }
    
    .cart-panel { padding: 20px; }
}

/* ==========================================================================
   ADMIN LAYOUT & MOBILE FIXES
   ========================================================================== */

.admin-body {
    margin: 0;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

/* Hidden by default on desktop */
.admin-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle-btn, 
.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.sidebar-close-btn {
    display: none;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.admin-sidebar nav a {
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.admin-sidebar nav a.active, 
.admin-sidebar nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Form Layout Grids */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--surface);
    color: var(--text);
}

.split-group {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 8px;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
}

.section-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Tables & Containers */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.admin-table th, 
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.table-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--surface-soft);
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-btn {
    padding: 8px 12px;
    min-height: auto;
    font-size: 0.8rem;
}

.back-btn {
    padding: 8px 16px;
    min-height: auto;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

/* --- MOBILE BREAKPOINT (<= 768px) --- */
@media (max-width: 768px) {
    .admin-mobile-header {
        display: flex;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .sidebar-close-btn {
        display: block;
    }

    .desktop-title {
        display: none;
    }

    .admin-content {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .split-group {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   ADDITIONAL RESPONSIVE STYLES FOR ORDERS & ADMIN VIEWS
   ========================================================================== */

/* Orders Summary Grid */
.orders-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.order-stat {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-stat span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.order-stat strong {
    font-size: 1.5rem;
    color: var(--text);
}

/* Orders Header Flex */
.orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Order Card & Layout Reflow */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.order-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.status-completed,
.order-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.order-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.order-customer,
.order-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.order-customer p,
.order-products p {
    margin: 0;
    color: var(--muted);
}

.order-notes {
    margin-top: 10px;
    padding: 12px;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 10px;
}

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    color: var(--muted);
}

/* Responsive Overrides for Mobile Screens */
@media (max-width: 768px) {
    .order-card-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .orders-header button {
        width: 100%;
    }
}

/* --- ADMIN PANEL RESPONSIVE FIXES --- */
.admin-body {
    margin: 0;
    font-family: inherit;
    background: var(--bg, #f5efe8);
    color: var(--text, #2c2723);
}

.admin-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--surface, #ffffff);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border, #e6dbcf);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle-btn, 
.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text, #2c2723);
}

.sidebar-close-btn {
    display: none;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--surface, #ffffff);
    border-right: 1px solid var(--border, #e6dbcf);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.admin-sidebar nav a {
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}

.admin-sidebar nav a.active, 
.admin-sidebar nav a:hover {
    background: var(--primary-light, #f0e6e6);
    color: var(--primary, #8b606d);
}

.admin-content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border, #e6dbcf);
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--surface, #ffffff);
    color: var(--text, #2c2723);
}

.split-group {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 8px;
}

.section-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border, #e6dbcf);
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--surface, #ffffff);
    border-radius: 8px;
    border: 1px solid var(--border, #e6dbcf);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.admin-table th, 
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #e6dbcf);
}

/* Orders specific styles */
.orders-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.order-stat {
    background: var(--surface, #ffffff);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border, #e6dbcf);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e6dbcf);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border, #e6dbcf);
    padding-bottom: 16px;
}

.order-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border, #e6dbcf);
    font-size: 0.85rem;
    color: var(--muted, #6b625a);
}

@media (max-width: 768px) {
    .admin-mobile-header {
        display: flex;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    .admin-sidebar.open {
        left: 0;
    }
    .sidebar-close-btn {
        display: block;
    }
    .desktop-title {
        display: none;
    }
    .admin-content {
        padding: 15px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .order-card-body {
        grid-template-columns: 1fr;
    }
}

/* --- USER TABLE LAYOUT FIXES --- */
.admin-table.user-table td {
    white-space: normal; /* Allows fields inside cells to wrap instead of forcing horizontal blowout */
    vertical-align: middle;
}

.table-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.table-inline-form select,
.table-inline-form input[type="text"] {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    height: 36px;
}

.table-inline-form select {
    min-width: 100px;
}

.table-inline-form input[type="text"] {
    width: 110px;
}

.table-inline-form .password-input {
    width: 110px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    height: 36px;
}

.table-btn {
    padding: 6px 12px !important;
    min-height: 36px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.save-btn {
    padding: 6px 12px !important;
    min-height: 36px !important;
    font-size: 0.8rem !important;
    background: var(--muted, #6b625a) !important;
    color: white !important;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.save-btn:hover {
    opacity: 0.9;
}
/* --- BRAND STORY HERITAGE BOX --- */
.brand-story-badge-box {
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-badge-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.story-badge-icon {
    font-size: 2.2rem;
    background: var(--primary-light);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.story-badge-header strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.story-badge-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.story-badge-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.story-badge-footer .tag {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}