/* CSS Reset & Variables */
:root {
    /* Light Theme */
    --bg-color: #ffffff;
    --bg-secondary: #fafafa;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --accent-color: #111111;
    --accent-hover: #333333;
    --error-color: #e53935;
    --success-color: #43a047;
    --font-family: 'Inter', sans-serif;
    
    /* Animation Tokens */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #f0f0f0;
    --text-secondary: #9a9a9a;
    --border-color: #2e2e2e;
    --accent-color: #f0f0f0;
    --accent-hover: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
}

/* Animations */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   NAVBAR
===================== */
.navbar {
    background: var(--bg-color);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-medium), padding var(--transition-medium), box-shadow var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.25rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 1.15rem;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    margin: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.55;
}

/* Account Dropdown */
.account-dropdown-wrapper {
    position: relative;
    display: none; /* Shown via JS if logged in */
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0.5rem;
}

[data-theme="dark"] .account-dropdown {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.account-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item.admin-link {
    color: #84cc16; /* accent dark */
}
.dropdown-item.admin-link:hover {
    background: rgba(163,230,53,0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: 6px;
}

.icon-btn:hover {
    opacity: 0.6;
}

/* Language select */
.lang-switcher select {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    padding: 0.3rem 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color var(--transition-fast);
}

.lang-switcher select:hover {
    border-color: var(--accent-color);
}

/* Mobile Hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.25rem;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) { width: 22px; }
.hamburger-btn span:nth-child(2) { width: 16px; }
.hamburger-btn span:nth-child(3) { width: 22px; }

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: translateX(-5px); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-color);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeIn 0.25s ease;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 0.5; }

.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
    padding: 0.25rem;
}

/* =====================
   PRODUCT CARDS
===================== */
.product-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

.add-to-cart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
    display: flex;
    align-items: flex-end;
}

.product-card:hover .add-to-cart-overlay {
    transform: translateY(0);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.95);
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.add-to-cart-btn:hover {
    background: #fff;
}

.product-info {
    padding: 1rem 1rem 1.25rem;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* New Modern Badges */
.impact-badge {
    font-size: 10px;
    background: rgba(67, 160, 71, 0.08);
    color: var(--success-color);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lens Zoom effect */
.product-img {
    position: relative;
    cursor: crosshair;
}

.zoom-lens {
    position: absolute;
    border: 1px solid var(--border-color);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    display: none;
    pointer-events: none;
    z-index: 20;
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -105%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    background-color: var(--bg-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 1100px) {
    .zoom-result { display: none !important; }
}

/* =====================
   CHECKOUT / LAYOUT
===================== */
.checkout-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Left Column: Summary */
.item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bg-placeholder {
    width: 64px;
    height: 64px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    flex-shrink: 0;
}

.item-details h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.item-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.item-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-primary);
}

/* Discount */
.discount-section {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.discount-section input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.discount-section input:focus {
    border-color: var(--accent-color);
}

/* =====================
   BUTTONS
===================== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    text-align: center;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

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

/* Totals */
.tot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.grand-total {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Payment Section */
.payment-section {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-card {
    flex: 1;
    border: 1.5px solid var(--border-color);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    color: var(--text-primary);
}

.method-card.active {
    border-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.method-card input {
    accent-color: var(--accent-color);
}

.payment-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-form.active {
    display: block;
}

/* Form Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1;
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* Warning Banner */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(229, 153, 0, 0.1);
    color: #b26500;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

/* IBAN info */
.iban-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.iban-label {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.iban-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.btn-icon:hover { color: var(--accent-color); }

.iban-inst {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.causal-code {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* =====================
   CHAT WIDGET
===================== */
.chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#chat-widget {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 320px;
    height: 420px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
}

#chat-widget.chat-closed {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--bg-color);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-header button:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-secondary);
}

.msg {
    max-width: 82%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.msg.admin {
    background: var(--bg-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.msg.user {
    background: var(--accent-color);
    color: var(--bg-color);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.chat-input-area input {
    flex: 1;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
}

.chat-input-area button {
    background: var(--accent-color);
    border: none;
    color: var(--bg-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.chat-input-area button:hover { opacity: 0.8; }

/* =====================
   CART SIDEBAR
===================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(4px);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

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

.cart-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    padding: 0.1rem;
}

.close-cart:hover {
    transform: rotate(90deg);
    opacity: 0.6;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item-anim {
    opacity: 0;
    animation: slideInRight 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* =====================
   ACCOUNT PANEL
===================== */
.account-panel {
    position: fixed;
    top: 0; right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.account-panel.open { right: 0; }

.account-panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1;
}

.account-panel-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.account-panel-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.account-panel-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.account-panel-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.account-field {
    margin-bottom: 1rem;
}

.account-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-field input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.account-field input:focus {
    border-color: var(--accent-color);
}

.account-save-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.account-save-btn:hover { opacity: 0.85; }
.account-save-btn:active { transform: scale(0.98); }

.account-logout-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--error-color);
    border: 1.5px solid rgba(229, 57, 53, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.account-logout-btn:hover {
    background: rgba(229, 57, 53, 0.06);
    border-color: var(--error-color);
}

.account-msg {
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    display: none;
}

.account-msg.success {
    background: rgba(67,160,71,0.1);
    color: var(--success-color);
    border: 1px solid rgba(67,160,71,0.2);
}

.account-msg.error {
    background: rgba(229,57,53,0.08);
    color: var(--error-color);
    border: 1px solid rgba(229,57,53,0.2);
}

/* Account button in nav */
.btn-account {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-account:hover { opacity: 0.6; }

/* =====================
   TOAST NOTIFICATIONS
===================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-color);
    color: var(--text-primary);
    border-left: 3px solid var(--success-color);
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    animation: slideInRight 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 240px;
    max-width: 340px;
}

/* =====================
   FOOTER
===================== */
.site-footer {
    background: var(--bg-color);
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* =====================
   SHOP SIDEBAR
===================== */
.shop-sidebar {
    width: 230px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.shop-sidebar h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-container { margin: 1.5rem auto; }
    .payment-section { padding: 1.5rem; }

    #chat-widget {
        right: 1rem;
        bottom: 5.5rem;
        width: calc(100% - 2rem);
    }

    .cart-sidebar { max-width: 100vw; }
    .account-panel { max-width: 100vw; }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links { display: none; }
    .hamburger-btn { display: flex; }
    
    h1 { font-size: 2rem; }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }

    /* Shop layout */
    .shop-layout {
        flex-direction: column !important;
    }

    .shop-sidebar {
        width: 100% !important;
        position: static;
    }

    .filter-toggle-btn { display: flex; }
    .filter-content { display: none; }
    .filter-content.open { display: block; }

    /* Chat bubble position */
    .chat-bubble { bottom: 1.5rem; right: 1.5rem; }
    .toast-container { left: 1rem; bottom: 1rem; right: 1rem; }
    .toast { min-width: unset; max-width: unset; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .navbar-content { padding: 0.85rem 1rem; }
}
