/* ==============================================================================
   GUA LIVING - DESIGN SYSTEM & STYLESHEET
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500&display=swap');

:root {
    /* Color Palette */
    --color-primary: #1c2321;        /* Very dark forest black */
    --color-secondary: #7d6b58;      /* Antique gold / bronze */
    --color-accent: #a08c75;         /* Warm sand */
    --color-bg-cream: #fbfaf8;       /* Luxurious off-white */
    --color-bg-white: #ffffff;
    --color-header-bg: #fbfaf8;
    --color-footer-bg: #1c2321;
    --color-text-dark: #2f3e3a;      /* Charcoal dark slate text */
    --color-text-light: #6e7e7a;     /* Muted gray-teal */
    --color-border: #e8e4de;
    --color-success: #3c7a6b;
    --color-warning: #d97706;
    --color-danger: #b91c1c;

    /* Admin Dashboard Palette (Sleek Dark Mode) */
    --admin-bg-dark: #0e1211;
    --admin-card-bg: #19201e;
    --admin-border: #2c3835;
    --admin-text-main: #e2e8f0;
    --admin-text-muted: #94a3b8;
    --admin-accent: #c5a880;

    /* Typography */
    --font-luxury: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 10px 30px -10px rgba(28, 35, 33, 0.08);
    --shadow-dropdown: 0 20px 40px -15px rgba(28, 35, 33, 0.15);
    --border-radius: 4px;
}

/* Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-cream);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* ------------------------------------------------------------------------------
   STOREFRONT SECTION
   ------------------------------------------------------------------------------ */

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.storefront-header {
    background-color: var(--color-header-bg, rgba(251, 250, 248, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.market-select {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    background: none;
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--color-text-dark);
    outline: none;
}

.brand-logo {
    font-family: var(--font-luxury);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.nav-link:hover {
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
}

.admin-toggle-btn {
    background-color: var(--color-primary);
    color: var(--color-bg-cream) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: 600;
}

.admin-toggle-btn:hover {
    background-color: var(--color-secondary);
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 35, 33, 0.7) 30%, rgba(28, 35, 33, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-bg-cream);
    max-width: 550px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-luxury);
    font-size: 48px;
    font-weight: 200;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 15px;
    margin-bottom: 35px;
    color: #e3ded8;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    padding: 16px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Collections & Products Section */
.shop-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-luxury);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 30px;
}

.product-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-premium);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f0ec;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    z-index: 10;
}

.product-stock-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--color-text-dark);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--color-border);
    z-index: 10;
}

.product-stock-status.low-stock {
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--color-warning);
    border-color: rgba(217, 119, 6, 0.3);
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.product-category {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.product-title {
    font-family: var(--font-luxury);
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-meta-row {
    font-size: 12px;
    background-color: #f7f5f2;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px dashed var(--color-border);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-luxury);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

.btn-add-cart {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    padding: 10px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background-color: var(--color-secondary);
}

.btn-add-cart:disabled {
    background-color: var(--color-border);
    color: var(--color-text-light);
    cursor: not-allowed;
}

/* Instagram Feed Section */
.instagram-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    background-color: #f7f5f2;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.instagram-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 35, 33, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

.instagram-card:hover .instagram-overlay {
    opacity: 1;
}

.instagram-tag-popup {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: var(--shadow-dropdown);
    text-align: center;
}

.instagram-tag-title {
    font-family: var(--font-luxury);
    font-weight: 500;
}

.instagram-tag-price {
    font-size: 11px;
    color: var(--color-secondary);
}

/* Cart Drawer Panel */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

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

.cart-title {
    font-family: var(--font-luxury);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.cart-close {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-dark);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f7f5f2;
    padding-bottom: 20px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background-color: #f7f5f2;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-family: var(--font-luxury);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.cart-qty-btn {
    border: 1px solid var(--color-border);
    background: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove {
    font-size: 11px;
    color: var(--color-danger);
    cursor: pointer;
    margin-left: auto;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-cream);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-luxury);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 16px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-checkout:hover {
    background-color: var(--color-secondary);
}

/* Modal Checkout */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 35, 33, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.checkout-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.checkout-content {
    background-color: var(--color-bg-white);
    width: 550px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-dropdown);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 40px;
}

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

.checkout-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkout-input, .checkout-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.payment-method-card {
    border: 1px solid var(--color-border);
    padding: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    background-color: #faf9f6;
    font-family: var(--font-luxury);
    font-size: 14px;
    font-weight: 500;
}

.payment-method-card.selected {
    border-color: var(--color-secondary);
    background-color: rgba(125, 107, 88, 0.06);
    color: var(--color-secondary);
}

.payment-method-card svg {
    margin-bottom: 8px;
}

.checkout-loading {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.checkout-spinner {
    border: 3px solid rgba(125, 107, 88, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--color-secondary);
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkout-success-view {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.checkout-success-icon {
    font-size: 48px;
    color: var(--color-success);
    margin-bottom: 20px;
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 380px;
    background-color: var(--color-primary);
    color: var(--color-bg-cream);
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 2000;
    transition: var(--transition-smooth);
    transform: translateY(150%);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-title {
    font-family: var(--font-luxury);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cookie-text {
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;
}

.btn-cookie-deny {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* ------------------------------------------------------------------------------
   ADMIN DASHBOARD SECTION (Sleek Dark Mode)
   ------------------------------------------------------------------------------ */
.admin-wrapper {
    background-color: var(--admin-bg-dark);
    color: var(--admin-text-main);
    min-height: 100vh;
    padding-bottom: 80px;
    display: none; /* Toggled via JavaScript */
}

.admin-header {
    background-color: var(--admin-card-bg);
    border-bottom: 1px solid var(--admin-border);
    padding: 20px 0;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-brand h2 {
    font-family: var(--font-luxury);
    font-weight: 300;
    color: var(--admin-text-main);
    letter-spacing: 0.1em;
}

.admin-status-badge {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--admin-accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* KPI Panel */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    padding: 20px;
}

.kpi-label {
    font-size: 11px;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: var(--font-luxury);
    font-size: 24px;
    font-weight: 500;
    color: var(--admin-accent);
}

.kpi-trend {
    font-size: 11px;
    color: var(--color-success);
    margin-top: 5px;
}

/* Orders Dashboard */
.admin-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-card-title {
    font-family: var(--font-luxury);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 10px;
    color: var(--admin-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Orders Table */
.orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.orders-table th {
    padding: 12px;
    color: var(--admin-text-muted);
    border-bottom: 2px solid var(--admin-border);
    font-weight: 500;
}

.orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--admin-border);
}

.status-indicator {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-indicator.ready {
    background-color: rgba(60, 122, 107, 0.2);
    color: #8cd6c4;
}

.status-indicator.pending {
    background-color: rgba(217, 119, 6, 0.2);
    color: #f5b041;
}

.status-indicator.unfulfilled {
    background-color: rgba(185, 28, 28, 0.2);
    color: #f1948a;
}

.btn-pack-order {
    background-color: var(--admin-accent);
    color: var(--admin-bg-dark);
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
}

/* Packing Checklist Panel */
.packer-checklist-container {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.packer-checklist-title {
    font-family: var(--font-luxury);
    font-size: 18px;
    font-weight: 400;
    color: var(--admin-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--admin-border);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pack-step-item.checked {
    border-color: var(--color-success);
    background-color: rgba(60, 122, 107, 0.08);
}

.pack-step-item input {
    cursor: pointer;
}

.pack-step-label {
    font-size: 13px;
}

.btn-complete-pack {
    width: 100%;
    background-color: var(--color-success);
    color: white;
    padding: 12px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition-smooth);
}

.btn-complete-pack:disabled {
    background-color: #2c3835;
    color: var(--admin-text-muted);
    cursor: not-allowed;
}

/* Bundle Configurator */
.bundle-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
}

.btn-save-bundle {
    background-color: var(--admin-accent);
    color: var(--admin-bg-dark);
    padding: 12px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
}

/* Stock Control Center */
.stock-badge-critical {
    background-color: var(--color-danger);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.stock-badge-low {
    background-color: var(--color-warning);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .kpi-row {
        grid-template-columns: 1fr 1fr;
    }
    .instagram-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .storefront-header {
        padding: 15px 0;
    }
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    .nav-left {
        width: 100%;
        justify-content: center;
    }
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .brand-logo {
        font-size: 22px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-section {
        height: auto;
        padding: 60px 0;
        min-height: 400px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .legal-modal-content {
        padding: 30px 20px;
    }
    .checkout-content {
        padding: 30px 20px;
    }
    .admin-card {
        padding: 20px 15px;
    }
    .admin-header-inner {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cookie-banner {
        left: 15px;
        right: 15px;
        width: auto;
        bottom: 15px;
        padding: 20px;
    }
}


/* ==============================================================================
   SEO-OPTIMIZED FOOTER & LEGAL MODAL STYLES
   ============================================================================== */
.storefront-footer {
    background-color: var(--color-footer-bg, var(--color-primary));
    color: #ffffff;
    padding: 80px 0 30px 0;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-luxury);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
}

.footer-col-title {
    font-family: var(--font-luxury);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 300;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
}

.footer-address a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-address a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 12px;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-trust-badges {
    display: flex;
    gap: 20px;
}

.footer-trust-badges span {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 2px;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Legal Modal */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 35, 33, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.legal-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-content {
    background-color: var(--color-bg-cream);
    width: 800px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-dropdown);
    position: relative;
    padding: 50px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.legal-modal-close:hover {
    color: var(--color-secondary);
}

.legal-content-rich-text h1 {
    font-family: var(--font-luxury);
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.legal-content-rich-text p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.legal-content-rich-text strong {
    color: var(--color-primary);
}

.legal-content-rich-text a {
    color: var(--color-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-secondary);
}

.legal-content-rich-text a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}


/* WYSIWYG Editor Styles */
.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    background: #1e2523;
    padding: 10px;
    border: 1px solid var(--admin-border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.wysiwyg-btn {
    background: #2c3835;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-main);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.wysiwyg-btn:hover {
    background: var(--admin-accent);
    color: var(--admin-bg-dark);
    border-color: var(--admin-accent);
}

.wysiwyg-editor-area {
    background: #222a27;
    border: 1px solid var(--admin-border);
    color: white;
    min-height: 260px;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    overflow-y: auto;
    outline: none;
    line-height: 1.7;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
}

.wysiwyg-editor-area h1, .wysiwyg-editor-area h2 {
    font-family: var(--font-luxury);
    color: var(--admin-accent);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 300;
}

.wysiwyg-editor-area p {
    margin-bottom: 15px;
    color: var(--admin-text-main);
}

.wysiwyg-editor-area a {
    color: var(--admin-accent);
    text-decoration: underline;
}

/* ==============================================================================
   MAINTENANCE MODE & SWITCH TOGGLE STYLES
   ============================================================================== */

/* Switch Toggle Container */
.switch-container {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c3835;
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--admin-border);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--admin-text-muted);
    transition: .3s;
    border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
    background-color: var(--admin-accent);
    border-color: var(--admin-accent);
}

.switch-container input:checked + .switch-slider:before {
    transform: translateX(22px);
    background-color: var(--admin-bg-dark);
}

/* Maintenance Overlay */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-cream);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.maintenance-overlay.active {
    display: flex;
}

.maintenance-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-premium);
    width: 450px;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bulletproof mobile/desktop scroll blocker & content hider when under construction */
body.maintenance-active {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100vw !important;
}

body.maintenance-active #storefront-wrapper > *:not(.maintenance-overlay) {
    display: none !important;
}

/* Responsive Mobile Cart Modal styling to prevent offscreen elements & horizontal scrolling */
@media (max-width: 768px) {
    .cart-drawer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        background-color: rgba(28, 35, 33, 0.6) !important;
        backdrop-filter: blur(8px) !important;
        z-index: 2000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px !important;
        
        /* Disable slide-out offscreen translation */
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .cart-drawer.open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .cart-content {
        background-color: var(--color-bg-white) !important;
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        max-height: 80vh !important;
        border-radius: 8px !important;
        box-shadow: var(--shadow-premium) !important;
        border: 1px solid var(--color-border) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        
        /* Smooth pop animation when cart opens */
        transform: scale(0.9) !important;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
    
    .cart-drawer.open .cart-content {
        transform: scale(1) !important;
    }
    
    .cart-header {
        padding: 20px !important;
    }
    
    .cart-items-list {
        padding: 20px !important;
        max-height: 50vh !important;
    }
    
    .cart-footer {
        padding: 20px !important;
    }
}
