/* ===== SHARED STYLES — WokUp ===== */

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

/* =============================================
   CSS VARIABLES — DARK (default)
   ============================================= */
:root {
  /* Brand — never change between themes */
  --yellow: #ffcc00;
  --orange: #ff4d00;
  --green:  #25D366;

  /* Surfaces */
  --bg:          #0f0f0f;
  --bg-alt:      #111111;
  --card:        #1a1a1a;
  --card-hover:  #1e1e1e;

  /* Text */
  --body-color:  #ffffff;
  --nav-link:    #dddddd;
  --text-muted:  #bbbbbb;
  --text-dim:    #888888;
  --text-faint:  #666666;

  /* Chrome */
  --nav-bg:         rgba(15,15,15,0.95);
  --mobile-nav-bg:  rgba(15,15,15,0.98);
  --footer-bg:      #080808;
  --hamburger:      #ffffff;

  /* Borders */
  --border-card:   rgba(255,255,255,0.04);
  --border-nav-item: rgba(255,255,255,0.05);
  --border-footer: rgba(255,255,255,0.06);
}

/* =============================================
   CSS VARIABLES — LIGHT (OS default)
   ============================================= */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #f5f5f0;
    --bg-alt:      #eaeae5;
    --card:        #ffffff;
    --card-hover:  #f8f8f5;

    --body-color:  #111111;
    --nav-link:    #333333;
    --text-muted:  #555555;
    --text-dim:    #777777;
    --text-faint:  #999999;

    --nav-bg:         rgba(245,245,240,0.96);
    --mobile-nav-bg:  rgba(245,245,240,0.99);
    --footer-bg:      #ddddd8;
    --hamburger:      #222222;

    --border-card:     rgba(0,0,0,0.07);
    --border-nav-item: rgba(0,0,0,0.06);
    --border-footer:   rgba(0,0,0,0.08);
  }
}

/* Manual overrides — data-theme always wins over media query */
[data-theme="light"] {
  --bg:          #f5f5f0;
  --bg-alt:      #eaeae5;
  --card:        #ffffff;
  --card-hover:  #f8f8f5;

  --body-color:  #111111;
  --nav-link:    #333333;
  --text-muted:  #555555;
  --text-dim:    #777777;
  --text-faint:  #999999;

  --nav-bg:         rgba(245,245,240,0.96);
  --mobile-nav-bg:  rgba(245,245,240,0.99);
  --footer-bg:      #ddddd8;
  --hamburger:      #222222;

  --border-card:     rgba(0,0,0,0.07);
  --border-nav-item: rgba(0,0,0,0.06);
  --border-footer:   rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg:          #0f0f0f;
  --bg-alt:      #111111;
  --card:        #1a1a1a;
  --card-hover:  #1e1e1e;

  --body-color:  #ffffff;
  --nav-link:    #dddddd;
  --text-muted:  #bbbbbb;
  --text-dim:    #888888;
  --text-faint:  #666666;

  --nav-bg:         rgba(15,15,15,0.95);
  --mobile-nav-bg:  rgba(15,15,15,0.98);
  --footer-bg:      #080808;
  --hamburger:      #ffffff;

  --border-card:     rgba(255,255,255,0.04);
  --border-nav-item: rgba(255,255,255,0.05);
  --border-footer:   rgba(255,255,255,0.06);
}

/* =============================================
   BASE
   ============================================= */
body {
  background: var(--bg);
  color: var(--body-color);
  font-family: Arial, sans-serif;
  transition: background 0.25s, color 0.25s;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,204,0,0.15);
  transition: background 0.25s;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-logo span { font-size: 1.4rem; font-weight: bold; color: var(--yellow); letter-spacing: 1px; }

.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a {
  color: var(--nav-link); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.5px;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--yellow); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-order-btn {
  background: var(--green); color: white;
  padding: 10px 22px; border-radius: 50px;
  text-decoration: none; font-weight: bold; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.nav-order-btn:hover { transform: scale(1.05); }

/* Theme toggle button */
.theme-toggle {
  background: none; border: none;
  color: var(--nav-link); font-size: 1.05rem;
  cursor: pointer; padding: 6px 10px;
  border-radius: 8px; transition: color 0.3s, background 0.3s;
  display: flex; align-items: center;
}
.theme-toggle:hover { color: var(--yellow); background: var(--border-card); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--hamburger); transition: 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--mobile-nav-bg);
  padding: 20px 6%; z-index: 999;
  flex-direction: column; gap: 0;
  border-bottom: 1px solid rgba(255,204,0,0.15);
  transition: background 0.25s;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--nav-link); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border-nav-item);
  font-size: 1rem; transition: color 0.3s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--yellow); }
.mobile-nav .mobile-order {
  margin-top: 15px; background: var(--green); color: white;
  padding: 13px; border-radius: 50px; text-align: center;
  font-weight: bold; border-bottom: none;
}

/* =============================================
   SHARED SECTIONS
   ============================================= */
.section { padding: 80px 8%; }
.section-title { font-size: 2.5rem; color: var(--yellow); margin-bottom: 50px; text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-orange {
  display: inline-block; padding: 14px 32px;
  background: var(--orange); color: white;
  text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s;
}
.btn-orange:hover { transform: scale(1.05); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: white;
  padding: 12px 22px; border-radius: 50px;
  text-decoration: none; font-weight: bold; transition: 0.3s;
}
.btn-whatsapp:hover { transform: scale(1.05); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,204,0,0.1);
  padding: 60px 8% 30px;
  transition: background 0.25s;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px; margin-bottom: 50px;
}
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 45px; }
.footer-brand .brand-name { font-size: 1.5rem; font-weight: bold; color: var(--yellow); }
.footer-brand p { color: var(--text-muted); line-height: 1.7; font-size: 0.9rem; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s;
}
.footer-social a:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }

.footer-col h4 { font-size: 1rem; color: var(--yellow); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--yellow); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--text-muted); font-size: 0.9rem; }
.footer-contact-item i { color: var(--yellow); margin-top: 2px; width: 16px; flex-shrink: 0; }
.footer-contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border-footer);
  padding-top: 25px; display: flex; justify-content: space-between;
  align-items: center; color: var(--text-dim); font-size: 0.82rem;
}
.footer-bottom a { color: var(--yellow); text-decoration: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; } }

@media (max-width: 768px) {
  .nav-links, .nav-order-btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 5%; }
  .section-title { font-size: 2rem; margin-bottom: 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* =============================================
   CART — icon, badge, drawer, overlay
   ============================================= */
.cart-btn {
  position: relative;
  background: none; border: none;
  color: var(--nav-link); font-size: 1.05rem;
  cursor: pointer; padding: 6px 10px; border-radius: 8px;
  transition: color 0.3s, background 0.3s;
  display: flex; align-items: center;
}
.cart-btn:hover { color: var(--yellow); background: var(--border-card); }

.cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--orange); color: white;
  font-size: 0.65rem; font-weight: bold;
  min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.cart-badge.hidden { display: none; }

@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-btn.bump { animation: cartBump 0.45s ease; }

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500; display: none;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 92vw; height: 100vh;
  background: var(--card); z-index: 1600;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.35);
  transition: right 0.35s ease;
  border-left: 1px solid var(--border-card);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}
.cart-drawer-header h3 { color: var(--yellow); font-size: 1.15rem; display: flex; align-items: center; }
.cart-close-btn { background: none; border: none; color: var(--text-dim); font-size: 1.2rem; cursor: pointer; padding: 4px; }
.cart-close-btn:hover { color: var(--yellow); }

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

.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--border-card);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
  font-size: 0.92rem; color: var(--body-color); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-variant { font-size: 0.75rem; color: var(--text-faint); }

.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-item-controls button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-card); background: transparent;
  color: var(--body-color); cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-item-controls button:hover { border-color: var(--yellow); color: var(--yellow); }
.cart-item-controls span { min-width: 16px; text-align: center; font-size: 0.88rem; }

.cart-item-price { font-size: 0.88rem; color: var(--yellow); font-weight: bold; min-width: 62px; text-align: right; flex-shrink: 0; }

.cart-item-remove { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 0.85rem; padding: 4px; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--orange); }

.cart-empty { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.cart-empty i { font-size: 3rem; color: var(--border-card); display: block; margin-bottom: 16px; }
.cart-empty p { margin-bottom: 14px; }
.cart-empty a { color: var(--yellow); text-decoration: none; font-weight: bold; }
.cart-empty a:hover { text-decoration: underline; }

.cart-drawer-footer { padding: 18px 22px 22px; border-top: 1px solid var(--border-card); flex-shrink: 0; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 1.05rem; color: var(--body-color);
}
.cart-total-row span:last-child { color: var(--yellow); font-weight: bold; font-size: 1.3rem; }

.cart-place-order-btn {
  width: 100%; background: var(--green); color: white; border: none;
  padding: 15px; border-radius: 50px; font-weight: bold; font-size: 0.95rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.3s;
}
.cart-place-order-btn:hover { transform: scale(1.02); }

.cart-clear-btn {
  width: 100%; background: none; border: none;
  color: var(--text-faint); font-size: 0.82rem;
  padding: 12px 0 0; cursor: pointer; text-align: center;
  transition: color 0.3s;
}
.cart-clear-btn:hover { color: var(--orange); text-decoration: underline; }

@media (max-width: 480px) {
  .cart-drawer { width: 100vw; max-width: 100vw; right: -100vw; }
}
