/* Rabtika Premium Design System */

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

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-soft: #eef2ff;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px -10px rgba(0,0,0,0.12);
}

.dark {
  --bg: #0a0a0a;
  --bg-card: #171717;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #818cf8;
  --accent-dark: #6366f1;
  --accent-soft: #1e1b4b;
  --border: #27272a;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px -10px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.text-muted { color: var(--text-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.dark .site-header { background: rgba(10,10,10,0.85); }

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

.logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* Product Grid */
.section { padding: 80px 0; }
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card img, .product-card .img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.dark .product-card .img-placeholder { background: linear-gradient(135deg, #27272a, #18181b); }
.product-info { padding: 20px; }
.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-whatsapp { background: #25d366; color: #fff; width: 100%; margin-top: 12px; }
.btn-whatsapp:hover { background: #128c7e; }

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.trust-item span { color: var(--success); font-size: 18px; }

/* Authenticity Banner */
.auth-banner {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 { font-size: 14px; margin-bottom: 16px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Mobile Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px;
}
.mobile-nav a.active { color: var(--accent); }

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  body { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 48px 0; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
@media (min-width: 769px) { .wa-float { bottom: 24px; } }

/* WooCommerce overrides */
.woocommerce .button, .woocommerce button.button,
.single_add_to_cart_button {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  border: none !important;
}
.woocommerce .button:hover { background: var(--accent-dark) !important; }

.quantity { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.quantity input { border: none !important; width: 50px; text-align: center; background: transparent !important; }
.quantity .minus, .quantity .plus { background: var(--bg); border: none; width: 36px; cursor: pointer; font-size: 18px; }
