      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
      :root {
        --hue: 25;
        --bg: hsl(30, 20%, 97%);
        --surface: hsl(30, 15%, 100%);
        --card-bg: var(--surface);
        --text: hsl(30, 10%, 15%);
        --text-muted: hsl(30, 8%, 45%);
        --muted: var(--text-muted);
        --primary: hsl(var(--hue), 70%, 50%);
        --primary-hover: hsl(var(--hue), 75%, 42%);
        --accent: hsl(350, 65%, 55%);
        --border: hsl(30, 15%, 88%);
        --input-bg: var(--bg);
        --danger: hsl(0, 65%, 50%);
        --success: hsl(150, 60%, 45%);
        --warning: hsl(40, 90%, 50%);
        --star: #f59e0b;
        --btn-bg: hsl(30, 10%, 15%);
        --btn-text: white;
        --footer-bg: hsl(30, 10%, 15%);
        --footer-text: hsl(30, 15%, 85%);
        --footer-heading: white;
        --footer-border: hsl(30, 10%, 25%);
        --hero-bg: linear-gradient(135deg, hsl(25, 70%, 92%) 0%, hsl(350, 60%, 94%) 100%);
        --placeholder-bg: linear-gradient(135deg, hsl(25, 30%, 90%), hsl(350, 30%, 92%));
        --thumb-bg: hsl(25, 20%, 92%);
        --tag-bg: hsl(25, 15%, 92%);
        --payment-bg: hsl(25, 15%, 95%);
        --avatar-bg: linear-gradient(135deg, hsl(25, 40%, 85%), hsl(350, 40%, 88%));
        --cart-image-bg: hsl(25, 20%, 90%);
        --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
        --radius: 12px;
        --shadow: 0 1px 3px hsl(30, 10%, 80%, 0.2);
        --shadow-lg: 0 4px 16px hsl(30, 10%, 70%, 0.15);
        --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        --font-display: 'Playfair Display', Georgia, serif;
      }

      [data-theme="dark"] {
        --bg: hsl(240, 12%, 10%);
        --surface: hsl(240, 8%, 16%);
        --card-bg: hsl(240, 8%, 16%);
        --text: hsl(30, 15%, 92%);
        --text-muted: hsl(30, 8%, 62%);
        --muted: hsl(30, 8%, 62%);
        --primary: hsl(25, 65%, 55%);
        --primary-hover: hsl(25, 70%, 48%);
        --accent: hsl(350, 55%, 60%);
        --border: hsl(240, 6%, 26%);
        --input-bg: hsl(240, 8%, 14%);
        --danger: hsl(0, 60%, 55%);
        --success: hsl(150, 55%, 50%);
        --warning: hsl(40, 85%, 55%);
        --star: #f59e0b;
        --btn-bg: hsl(25, 65%, 55%);
        --btn-text: white;
        --footer-bg: hsl(240, 10%, 14%);
        --footer-text: hsl(30, 15%, 75%);
        --footer-heading: hsl(30, 15%, 95%);
        --footer-border: hsl(240, 6%, 22%);
        --hero-bg: linear-gradient(135deg, hsl(240, 10%, 18%) 0%, hsl(350, 10%, 20%) 100%);
        --placeholder-bg: linear-gradient(135deg, hsl(240, 8%, 20%), hsl(350, 8%, 22%));
        --thumb-bg: hsl(240, 8%, 22%);
        --tag-bg: hsl(240, 6%, 22%);
        --payment-bg: hsl(240, 8%, 18%);
        --avatar-bg: linear-gradient(135deg, hsl(240, 10%, 22%), hsl(350, 10%, 24%));
        --cart-image-bg: hsl(240, 8%, 20%);
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
      }
      body {
        font-family: var(--font);
        background: var(--bg);
        color: var(--text);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
      }
      main { flex: 1; }
      a { color: var(--primary); text-decoration: none; }
      a:hover { color: var(--primary-hover); }
      img { max-width: 100%; display: block; }
      button { cursor: pointer; font-family: inherit; }
      .text-muted { color: var(--text-muted); }
      .text-primary { color: var(--primary); }
      .text-accent { color: var(--accent); }
      code { background: var(--tag-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }

      /* NavBar */
      .navbar {
        position: sticky; top: 0; z-index: 100;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0 24px; height: 64px;
        display: flex; align-items: center; justify-content: space-between;
        box-shadow: var(--shadow);
      }
      .logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
      .logo-primary { color: var(--primary); }
      .search-container { flex: 1; max-width: 480px; margin: 0 32px; }
      .search-input {
        width: 100%; padding: 10px 18px;
        border: 1px solid var(--border); border-radius: 24px;
        background: var(--bg); font-size: 0.9rem;
        outline: none; transition: border-color 0.2s;
      }
      .search-input:focus { border-color: var(--primary); }
      .nav-actions { display: flex; gap: 16px; align-items: center; }
      .icon-btn { padding: 8px; color: var(--text); background: none; border: none; }
      .icon-btn:hover { color: var(--primary); }
      .btn-primary-sm { padding: 8px 20px; border-radius: 20px; background: var(--primary); color: white !important; font-size: 0.85rem; font-weight: 500; border: none; }
      .btn-primary-sm:hover { background: var(--primary-hover); }
      .btn-primary-sm:disabled { opacity: 0.6; cursor: not-allowed; }
      .btn-outline-sm { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; color: var(--text); background: none; }
      .btn-outline-sm:hover { border-color: var(--primary); color: var(--primary) !important; }

      /* Buttons */
      .btn-primary-lg {
        padding: 14px 36px; border-radius: 30px;
        background: var(--btn-bg); color: var(--btn-text);
        font-weight: 600; font-size: 1rem; display: inline-block;
        transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
        border: none;
      }
      .btn-primary-lg:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: var(--btn-bg); color: var(--btn-text); }
      .btn-primary-lg:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
      .btn-outline-lg {
        padding: 14px 36px; border-radius: 30px;
        border: 2px solid var(--border);
        font-weight: 600; font-size: 1rem; color: var(--text); display: inline-block;
        background: none; transition: border-color 0.2s;
      }
      .btn-outline-lg:hover { border-color: var(--primary); color: var(--primary) !important; }
      .btn-block { display: block; width: 100%; text-align: center; }
      .btn-remove { margin-left: auto; padding: 6px 12px; border: none; background: none; color: var(--accent); font-size: 0.85rem; cursor: pointer; }
      .btn-remove:hover { text-decoration: underline; }

      /* Footer */
      .site-footer {
        background: var(--footer-bg); color: var(--footer-text);
        padding: 48px 24px 24px; margin-top: 80px;
      }
      .footer-grid {
        max-width: 1200px; margin: 0 auto;
        display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
      }
      .footer-heading { font-family: var(--font-display); color: var(--footer-heading); margin-bottom: 16px; }
      .footer-heading-sm { color: var(--footer-heading); margin-bottom: 12px; font-size: 0.9rem; }
      .footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
      .footer-links a { color: var(--footer-text); }
      .footer-text { font-size: 0.85rem; line-height: 1.7; }
      .footer-bottom {
        max-width: 1200px; margin: 32px auto 0;
        padding-top: 24px; border-top: 1px solid var(--footer-border);
        text-align: center; font-size: 0.8rem;
      }

      /* Hero */
      .hero {
        background: var(--hero-bg);
        padding: 80px 24px; text-align: center;
      }
      .hero-content { max-width: 720px; margin: 0 auto; }
      .hero-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
      .hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
      .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

      /* Section */
      .section { padding: 48px 24px; max-width: 1200px; margin: 0 auto; }
      .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
      .section-heading { font-family: var(--font-display); font-size: 1.6rem; }
      .view-all-link { font-size: 0.9rem; font-weight: 500; }

      /* Categories */
      .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
      .category-card {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 24px 16px;
        text-align: center; transition: transform 0.2s, box-shadow 0.2s; display: block;
      }
      .category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
      .category-icon { font-size: 2rem; margin-bottom: 8px; }
      .category-name { font-weight: 500; font-size: 0.9rem; color: var(--text); }

      /* Listings */
      .listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
      .listing-card {
        background: var(--surface); border-radius: var(--radius);
        overflow: hidden; box-shadow: var(--shadow); display: block;
        transition: transform 0.2s, box-shadow 0.2s;
      }
      .listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
      .listing-image-placeholder {
        aspect-ratio: 1;
        background: var(--placeholder-bg);
        display: flex; align-items: center; justify-content: center;
        color: var(--text-muted); font-size: 0.85rem;
      }
      .listing-info { padding: 16px; }
      .listing-shop { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
      .listing-title { font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .listing-price { font-weight: 600; color: var(--primary); }

      /* Skeleton */
      .skeleton-card { pointer-events: none; }
      .skeleton-image { aspect-ratio: 1; background: var(--placeholder-bg); animation: shimmer 1.5s infinite; }
      .skeleton-text-short { height: 14px; width: 60%; margin: 12px 16px 8px; background: var(--placeholder-bg); border-radius: 4px; animation: shimmer 1.5s infinite; }
      .skeleton-text-long { height: 14px; width: 80%; margin: 0 16px 16px; background: var(--placeholder-bg); border-radius: 4px; animation: shimmer 1.5s infinite; }

      @keyframes shimmer {
        0% { opacity: 0.6; }
        50% { opacity: 1; }
        100% { opacity: 0.6; }
      }

      /* Why Section */
      .why-section { padding: 64px 24px; background: var(--surface); margin-top: 48px; }
      .why-inner { max-width: 1200px; margin: 0 auto; }
      .features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
      .feature-card { text-align: center; }
      .feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
      .feature-title { font-weight: 600; margin-bottom: 8px; }
      .feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

      /* Not Found */
      .not-found { text-align: center; padding: 120px 24px; }
      .not-found-code { font-size: 4rem; font-family: var(--font-display); margin-bottom: 16px; }
      .not-found-title { font-size: 1.5rem; margin-bottom: 12px; }
      .not-found-text { color: var(--text-muted); margin-bottom: 32px; }

      /* Page Title */
      .page-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 32px; }

      /* Product Page */
      .product-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
      .product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
      .product-image-main {
        aspect-ratio: 1; border-radius: var(--radius);
        background: var(--placeholder-bg);
        display: flex; align-items: center; justify-content: center;
        color: var(--text-muted);
      }
      .product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
      .product-thumb { width: 72px; height: 72px; border-radius: 8px; background: var(--thumb-bg); border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
      .product-thumb:hover { border-color: var(--primary); }
      .product-shop-link { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
      .product-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
      .product-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
      .stars { color: var(--star); }
      .review-count { font-size: 0.85rem; color: var(--text-muted); }
      .product-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
      .product-description { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
      .product-materials { margin-bottom: 24px; }
      .materials-label, .qty-label { font-weight: 500; margin-bottom: 8px; }
      .materials-tags { display: flex; gap: 8px; flex-wrap: wrap; }
      .material-tag { padding: 4px 12px; border-radius: 16px; background: var(--tag-bg); font-size: 0.8rem; }
      .product-quantity { margin-bottom: 24px; }
      .qty-controls { display: flex; align-items: center; gap: 12px; }
      .qty-btn {
        width: 36px; height: 36px; border-radius: 50%;
        border: 1px solid var(--border); background: var(--surface);
        font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
      }
      .qty-btn:hover { border-color: var(--primary); }
      .qty-value { font-weight: 500; }
      .product-actions { display: flex; gap: 12px; }
      .btn-add-cart { flex: 1; }
      .btn-favorite {
        padding: 14px; border-radius: 50%;
        border: 1px solid var(--border); background: var(--surface);
        display: flex; align-items: center; justify-content: center;
      }
      .btn-favorite:hover { border-color: var(--accent); color: var(--accent); }
      .payment-methods-info { margin-top: 32px; padding: 20px; background: var(--payment-bg); border-radius: var(--radius); }
      .payment-methods-info h3 { font-weight: 600; margin-bottom: 8px; }
      .payment-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
      .payment-tags span { padding: 2px 8px; background: var(--surface); border-radius: 4px; }

      /* Reviews */
      .reviews-section { margin-top: 48px; }
      .reviews-list { display: flex; flex-direction: column; gap: 20px; }
      .review-card { padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
      .review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
      .reviewer-name { font-weight: 500; }
      .review-date { color: var(--text-muted); font-size: 0.85rem; }
      .review-stars { color: var(--star); margin-bottom: 8px; }
      .review-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

      /* Shop Page */
      .shop-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
      .shop-header {
        padding: 40px; background: var(--surface);
        border-radius: var(--radius); border: 1px solid var(--border);
        margin-bottom: 32px;
      }
      .shop-header-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
      .shop-avatar {
        width: 100px; height: 100px; border-radius: 50%;
        background: var(--avatar-bg);
        flex-shrink: 0;
      }
      .shop-info { flex: 1; }
      .shop-name { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 4px; }
      .shop-location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
      .shop-stats { display: flex; gap: 16px; font-size: 0.9rem; flex-wrap: wrap; }
      .shop-description { margin-top: 20px; color: var(--text-muted); line-height: 1.7; }

      /* Cart Page */
      .cart-page { max-width: 1000px; margin: 0 auto; padding: 32px 24px; }
      .cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
      .cart-items { display: flex; flex-direction: column; gap: 16px; }
      .cart-item {
        display: flex; gap: 20px; padding: 20px;
        background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
      }
      .cart-item-image { width: 120px; height: 120px; border-radius: 8px; background: var(--cart-image-bg); flex-shrink: 0; }
      .cart-item-info { flex: 1; }
      .cart-item-shop { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
      .cart-item-title { font-weight: 500; margin-bottom: 8px; }
      .cart-item-price { font-weight: 600; color: var(--primary); font-size: 1.1rem; margin-bottom: 12px; }
      .cart-item-actions { display: flex; gap: 8px; align-items: center; }
      .cart-item-actions .qty-btn { width: 32px; height: 32px; font-size: 1rem; }
      .cart-empty { text-align: center; padding: 40px 0; }
      .cart-empty .empty-state { margin-bottom: 24px; }

      /* Cart Summary */
      .cart-summary {
        padding: 24px; background: var(--surface);
        border-radius: var(--radius); border: 1px solid var(--border);
        position: sticky; top: 88px; height: fit-content;
      }
      .summary-title { font-weight: 600; margin-bottom: 20px; }
      .summary-rows { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
      .summary-row { display: flex; justify-content: space-between; }
      .divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
      .summary-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 24px; }

      /* Checkout */
      .checkout-page { max-width: 1000px; margin: 0 auto; padding: 32px 24px; }
      .checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
      .checkout-main { display: flex; flex-direction: column; gap: 24px; }
      .card { padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
      .card-title { font-weight: 600; margin-bottom: 16px; }
      .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .form-stack { display: flex; flex-direction: column; gap: 16px; }
      .form-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
      .input {
        width: 100%; padding: 12px; border: 1px solid var(--border);
        border-radius: 8px; font-size: 0.9rem; font-family: inherit;
        background: var(--bg); color: var(--text);
      }
      .input:focus { outline: none; border-color: var(--primary); }
      .input-full { grid-column: 1/-1; }
      select.input { appearance: auto; }
      textarea.input { resize: vertical; font-family: inherit; }
      select { padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: inherit; background: var(--bg); color: var(--text); }
      .payment-options { display: flex; flex-direction: column; gap: 12px; }
      .payment-option {
        display: flex; align-items: center; gap: 12px;
        padding: 12px; border: 1px solid var(--border);
        border-radius: 8px; cursor: pointer; transition: border-color 0.2s;
      }
      .payment-option:hover { border-color: var(--primary); }
      .radio-primary { accent-color: var(--primary); }
      .payment-name { font-weight: 500; }
      .payment-desc { font-size: 0.85rem; color: var(--text-muted); }
      .checkout-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

      /* Auth */
      .auth-page { max-width: 400px; margin: 80px auto; padding: 0 24px; }
      .auth-header { text-align: center; margin-bottom: 32px; }
      .auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

      /* Account */
      .account-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
      .account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
      .account-sidebar { }
      .account-nav { display: flex; flex-direction: column; gap: 4px; }
      .account-nav-item {
        padding: 10px 16px; border-radius: 8px; color: var(--text); font-size: 0.9rem; display: block;
      }
      .account-nav-item:hover { background: var(--surface); color: var(--text); }
      .account-nav-item.active { background: var(--surface); color: var(--primary); font-weight: 500; }
      .card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
      .card-header-row .card-title { margin-bottom: 0; }

      /* Admin */
      .admin-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
      .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
      .stat-card { padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
      .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
      .stat-value { font-size: 2rem; font-weight: 700; color: var(--text); }
      .admin-section { margin-top: 32px; }
      .admin-form-card { margin-bottom: 24px; }
      .admin-form-grid { grid-template-columns: 1fr 1fr; }
      .seed-actions { margin-top: 16px; }
      .featured-add-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
      .featured-add-row .input { flex: 1; max-width: 320px; }

      /* Admin Tabs */
      .admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
      .admin-tab {
        padding: 10px 24px; border: none; background: none; color: var(--text-muted);
        font-weight: 500; font-size: 0.95rem; border-bottom: 2px solid transparent;
        cursor: pointer; transition: color 0.2s, border-color 0.2s;
      }
      .admin-tab:hover { color: var(--text); }
      .admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
      .admin-tab-content { min-height: 300px; }

      /* Table */
      .table-wrap { overflow-x: auto; }
      .admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
      .admin-table th, .admin-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
      .admin-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
      .admin-table tbody tr:hover { background: var(--bg); }

      /* Alerts */
      .alert-error { padding: 12px 16px; background: hsl(0, 60%, 95%); color: var(--danger); border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
      [data-theme="dark"] .alert-error { background: hsl(0, 20%, 15%); }
      .alert-success { padding: 12px 16px; background: hsl(150, 40%, 93%); color: var(--success); border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
      [data-theme="dark"] .alert-success { background: hsl(150, 20%, 12%); }

      /* Badge */
      .badge { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--tag-bg); font-size: 0.8rem; font-weight: 500; }

      /* Toast */
      .toast { position: fixed; top: 80px; right: 24px; z-index: 1000; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 400px; display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; }
      .toast-error { background: var(--danger); color: white; }
      .toast-text { flex: 1; font-size: 0.9rem; }
      .toast-close { background: none; border: none; color: inherit; font-size: 1.1rem; cursor: pointer; opacity: 0.8; padding: 0; }
      .toast-close:hover { opacity: 1; }

      @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
      }

      /* Empty State */
      .empty-state { text-align: center; padding: 48px 24px; }
      .empty-icon { font-size: 3rem; margin-bottom: 16px; }
      .empty-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
      .empty-desc { color: var(--text-muted); font-size: 0.9rem; }

      /* Pagination */
      .pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 32px; padding: 16px 0; }
      .page-btn {
        padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
        background: var(--surface); color: var(--text); font-size: 0.85rem;
        cursor: pointer; transition: border-color 0.2s, background 0.2s;
      }
      .page-btn:hover { border-color: var(--primary); color: var(--primary); }
      .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
      .page-btn:disabled:hover { border-color: var(--border); color: var(--text); }
      .page-current { background: var(--primary); color: white !important; border-color: var(--primary); }
      .page-current:hover { background: var(--primary-hover); color: white !important; }
      .page-ellipsis { padding: 8px 4px; color: var(--text-muted); }

      /* Modal */
      .modal-overlay {
        position: fixed; inset: 0; z-index: 1000;
        background: rgba(0, 0, 0, 0.5);
        display: flex; align-items: center; justify-content: center;
        padding: 24px;
      }
      .modal-content {
        background: var(--surface); border-radius: var(--radius);
        padding: 32px; max-width: 480px; width: 100%;
        box-shadow: var(--shadow-hover);
      }
      .modal-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
      .modal-message { color: var(--text-muted); margin-bottom: 24px; }
      .modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

      /* Spinner */
      .spinner-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; gap: 16px; }
      .spinner {
        width: 36px; height: 36px; border: 3px solid var(--border);
        border-top-color: var(--primary); border-radius: 50%;
        animation: spin 0.8s linear infinite;
      }
      .spinner-text { color: var(--text-muted); font-size: 0.9rem; }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      /* Locale Switcher */
      .locale-switcher { display: flex; gap: 4px; }
      .locale-btn {
        padding: 4px 8px; border: none; background: none;
        font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
        border-radius: 4px; transition: background 0.2s;
      }
      .locale-btn:hover { background: var(--border); }
      .locale-active { background: var(--tag-bg); color: var(--text); font-weight: 500; }

      /* Messages */
      .messages-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; min-height: 400px; }
      .conversation-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
      .conv-item { padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
      .conv-item:hover { background: var(--bg); }
      .conv-item.active { background: var(--bg); }
      .conv-subject { font-weight: 500; margin-bottom: 4px; }
      .conv-preview { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .conv-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
      .conv-time { font-size: 0.75rem; color: var(--text-muted); }
      .conv-empty { padding: 24px; }
      .message-thread { display: flex; flex-direction: column; }
      .thread-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
      .thread-header { padding: 16px; border-bottom: 1px solid var(--border); }
      .thread-messages { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
      .msg-bubble { padding: 12px 16px; border-radius: 16px; max-width: 70%; }
      .msg-bubble p { font-size: 0.9rem; }
      .msg-own { align-self: flex-end; background: var(--primary); color: white; }
      .msg-their { align-self: flex-start; background: var(--tag-bg); }
      .msg-time { font-size: 0.75rem; opacity: 0.7; margin-top: 4px; display: block; }
      .message-input-row { display: flex; gap: 12px; padding: 16px; border-top: 1px solid var(--border); }
      .message-input-row .input { flex: 1; }

      /* Orders */
      .order-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
      .order-row:hover { background: var(--bg); }
      .order-row:last-child { border-bottom: none; }
      .order-tracking { display: flex; gap: 8px; flex-wrap: wrap; }
      .tracking-step { padding: 6px 14px; border-radius: 20px; background: var(--tag-bg); font-size: 0.85rem; }
      .tracking-step.active { background: var(--primary); color: white; }

      /* Search Filters */
      .search-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
      .search-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
      .search-filters { }
      .filter-group { margin-bottom: 24px; }
      .filter-title { font-weight: 600; margin-bottom: 12px; font-size: 0.95rem; }
      .filter-options { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
      .filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
      .filter-checkbox input { accent-color: var(--primary); }
      .price-inputs { display: flex; gap: 8px; align-items: center; }
      .input-sm { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; width: 80px; font-family: inherit; background: var(--bg); }

      /* Form extras */
      .field-full { grid-column: 1 / -1; }
      .form-actions { display: flex; gap: 12px; padding-top: 8px; }
      .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }

      /* Legal Pages */
      .legal-page { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
      .legal-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
      .legal-section { margin-bottom: 36px; }
      .legal-section h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; color: var(--text); }
      .legal-section h3 { font-weight: 600; font-size: 1.05rem; margin: 16px 0 8px; }
      .legal-section p { color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
      .legal-section ul { padding-left: 24px; margin-bottom: 12px; }
      .legal-section li { color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
      .legal-section li strong { color: var(--text); }

      /* Error Boundary */
      .error-boundary { display: flex; align-items: center; justify-content: center; padding: 80px 24px; min-height: 400px; }
      .error-boundary-card { text-align: center; max-width: 480px; }
      .error-boundary-icon { font-size: 4rem; margin-bottom: 20px; }
      .error-boundary-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
      .error-boundary-text { color: var(--text-muted); margin-bottom: 24px; }
      .error-details { margin-top: 16px; text-align: left; }
      .error-details summary { cursor: pointer; color: var(--text-muted); font-size: 0.85rem; }
      .error-details pre { margin-top: 8px; padding: 12px; background: var(--tag-bg); border-radius: 8px; font-size: 0.8rem; overflow-x: auto; }

      /* Cookie Consent */
      .cookie-consent {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
        background: var(--surface); border-top: 1px solid var(--border);
        padding: 16px 24px; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
      }
      .cookie-consent-content {
        max-width: 1200px; margin: 0 auto;
        display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
      }
      .cookie-consent-content p { font-size: 0.9rem; color: var(--text-muted); flex: 1; min-width: 240px; }
      .cookie-consent-actions { display: flex; gap: 12px; flex-shrink: 0; }

      /* Loading page placeholder */
      .loading-page { text-align: center; padding: 80px 24px; color: var(--text-muted); }

      /* Transition for content appearing */
      .listing-grid, .category-grid, .features-grid {
        animation: fadeUp 0.4s ease;
      }
      @keyframes fadeUp {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
      }

      /* Responsive */
      @media (max-width: 768px) {
        .search-container { display: none; }
        .cart-grid, .checkout-grid, .product-grid, .account-grid, .search-layout, .messages-layout { grid-template-columns: 1fr; }
        .cart-summary { position: static; }
        .cookie-consent-content { flex-direction: column; text-align: center; }
        .admin-tabs { overflow-x: auto; }
        .admin-form-grid { grid-template-columns: 1fr; }
      }
