/*
 * ╔══════════════════════════════════════════════════════════════╗
 * ║          TORVALI THEME STARTER TEMPLATE                      ║
 * ║  Override CSS variables and component styles to create       ║
 * ║  a fully custom look for any Torvali storefront.             ║
 * ║                                                              ║
 * ║  HOW IT WORKS                                                ║
 * ║  • This file is loaded AFTER the base storefront styles      ║
 * ║  • Override any variable or class below                      ║
 * ║  • The merchant's chosen accent color is applied via JS      ║
 * ║    and will override --accent at runtime                     ║
 * ║  • See /theme-spec for full documentation                    ║
 * ╚══════════════════════════════════════════════════════════════╝
 */


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   These variables cascade everywhere — change these first.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand color (merchant's accent color overrides this at runtime) */
  --accent:       #4F46E5;   /* primary brand / CTA color          */
  --accent-dark:  #3730A3;   /* hover / active state of --accent    */

  /* Typography */
  --text:         #111827;   /* body text                           */
  --text-muted:   #6B7280;   /* secondary / caption text            */

  /* Surfaces */
  --surface:      #F9FAFB;   /* card backgrounds, input fill        */
  --white:        #FFFFFF;   /* page background                     */

  /* Borders */
  --border:       #E5E7EB;   /* all dividers and outlines           */

  /* Shape */
  --radius:       10px;      /* base border-radius for cards/inputs */

  /* Elevation */
  --shadow:       0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);

  /* Font — must be a Google Font loaded in your CSS @import below */
  /* --font is applied to body via: font-family: var(--font, 'Inter', ...) */
}

/* ─── Example: load a custom Google Font ──────────────────────────────────── */
/* @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Lato:wght@400;500;600&display=swap'); */
/* :root { --font: 'Lato', sans-serif; }                                       */
/* h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }                  */


/* ═══════════════════════════════════════════════════════════════
   2. NAVIGATION
   .sf-nav          — sticky top bar wrapper
   .sf-nav-inner    — centered inner container
   .sf-logo         — store name / logo
   ═══════════════════════════════════════════════════════════════ */

.sf-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  /* Example dark nav:
  background: #111827;
  border-bottom: none; */
}

.sf-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  /* Example: white logo text on dark nav
  color: #ffffff; */
}


/* ═══════════════════════════════════════════════════════════════
   3. ANNOUNCEMENT BAR
   .sf-announcement — full-width banner above nav
   ═══════════════════════════════════════════════════════════════ */

.sf-announcement {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   4. HERO SECTION
   .sf-hero           — full-width hero wrapper
   .sf-hero-bg        — gradient overlay (or dark overlay if image set)
   .sf-hero h1        — main headline
   .sf-hero-desc      — subtitle paragraph
   .sf-hero-btn       — primary CTA button
   ═══════════════════════════════════════════════════════════════ */

.sf-hero-bg {
  /* Default: gradient from accent to dark purple */
  background: linear-gradient(135deg, var(--accent) 0%, #1E1B4B 100%);

  /* Example solid color:
  background: #111827; */

  /* Example light/minimal:
  background: #F0FDF4; */
}

.sf-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.sf-hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.7;
}

.sf-hero-btn {
  background: #ffffff;
  color: var(--accent);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
}

.sf-hero-btn:hover {
  background: #F3F4F6;
}


/* ═══════════════════════════════════════════════════════════════
   5. CATEGORY BAR
   .sf-cats        — scrollable tab row
   .sf-cat-btn     — individual category button
   .sf-cat-btn.active — currently selected category
   ═══════════════════════════════════════════════════════════════ */

.sf-cats {
  border-bottom: 2px solid var(--border);
  background: #ffffff;
}

.sf-cat-btn {
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  padding: 14px 16px;
}

.sf-cat-btn:hover {
  color: var(--text);
}

.sf-cat-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════
   6. PRODUCT CARDS
   .sf-product-card      — card wrapper
   .sf-product-img       — square image area
   .sf-product-info      — text block below image
   .sf-product-name      — product title
   .sf-price             — price text
   .sf-discount-badge    — sale/discount label
   ═══════════════════════════════════════════════════════════════ */

.sf-product-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

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

.sf-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.sf-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.sf-discount-badge {
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   7. CART BUTTON & SIDEBAR
   .sf-cart-btn          — cart icon in nav
   .sf-cart-count        — item count badge
   .sf-cart-checkout-btn — checkout CTA inside cart
   ═══════════════════════════════════════════════════════════════ */

.sf-cart-count {
  background: var(--accent);
  color: #ffffff;
}

.sf-cart-checkout-btn {
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 700;
}

.sf-cart-checkout-btn:hover {
  filter: brightness(1.1);
}


/* ═══════════════════════════════════════════════════════════════
   8. FOOTER
   .sf-footer        — footer wrapper
   .sf-footer-brand  — store name + tagline column
   .sf-footer-col    — link column
   ═══════════════════════════════════════════════════════════════ */

.sf-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 24px 32px;
}

.sf-footer-brand .sf-footer-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.sf-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sf-footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
}

.sf-footer-col ul li a:hover {
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════
   9. BUTTONS & FORM INPUTS (shared across modals/checkout)
   ═══════════════════════════════════════════════════════════════ */

.btn-primary,
.cart-checkout-btn,
.checkout-submit {
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}


/* ═══════════════════════════════════════════════════════════════
   10. RATINGS & REVIEWS
   .sf-stars    — star icons
   ═══════════════════════════════════════════════════════════════ */

.sf-stars {
  color: #F59E0B; /* amber — customise if needed */
}


/*
 * ─── TIPS ──────────────────────────────────────────────────────
 *
 *  • Keep file size under 1 MB
 *  • Avoid JavaScript or <script> tags — CSS only
 *  • Test by uploading to your own merchant store first
 *  • Prefix any extra utility classes to avoid conflicts
 *  • Use browser DevTools on a live storefront to inspect
 *    class names before overriding them
 *
 * ─── SUBMIT ────────────────────────────────────────────────────
 *
 *  Ready? Head to /designer → Submit New → Theme
 *  Submitted themes are reviewed before appearing in the
 *  marketplace. Typical review time: 1–3 business days.
 *
 * ───────────────────────────────────────────────────────────── */
