/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #fff; color: #1a1a1a; line-height: 1.6; }

/* ===== VARIABLES ===== */
:root {
  --primary: #FF6B2C;
  --primary-dark: #e85a1f;
  --accent: #00C37B;
  --dark: #0F0F0F;
  --text: #333;
  --muted: #777;
  --border: #e8e8e8;
  --bg-light: #F8F8F8;
  --wa-green: #25D366;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  letter-spacing: 0.5px;
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 20px;
}
.logo { text-decoration: none; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--dark); }
.logo-text span { color: var(--primary); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.header-right { display: flex; gap: 12px; align-items: center; }
.cart-btn {
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 14px;
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--primary-dark); }
.admin-btn {
  background: var(--bg-light); color: var(--text); text-decoration: none;
  padding: 8px 16px; border-radius: 50px; font-size: 13px; border: 1px solid var(--border);
  transition: all 0.2s;
}
.admin-btn:hover { background: var(--border); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0F0F0F 0%, #1a1a2e 60%, #16213e 100%);
  min-height: 520px;
  display: flex; align-items: center;
  padding: 60px 20px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,44,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 580px; position: relative; z-index: 1; }
.hero-eyebrow { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-title .accent { color: var(--primary); }
.hero-sub { color: rgba(255,255,255,0.65); font-size: 17px; margin-bottom: 36px; }
.hero-badge {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  width: 140px; height: 140px;
}
.badge-ring {
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px dashed var(--primary);
  display: flex; align-items: center; justify-content: center;
  animation: spin 12s linear infinite;
  color: #fff; font-size: 16px; font-weight: 700; text-align: center;
  line-height: 1.4;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--text);
  padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 2px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa-green); color: #fff;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1eb554; transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 36px; }
.section-title::after {
  content: ''; display: block; width: 48px; height: 4px;
  background: var(--primary); border-radius: 2px; margin-top: 10px;
}
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.product-img-wrap {
  position: relative; background: var(--bg-light);
  aspect-ratio: 1; overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.badge-sale {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase;
}
.badge-featured {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px;
}
.product-info { padding: 16px; }
.product-category { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.product-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-sale { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-original { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.btn-add-cart {
  flex: 1; background: var(--dark); color: #fff;
  border: none; padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: #333; }
.btn-wa-order {
  background: var(--wa-green); color: #fff;
  border: none; padding: 10px 14px; border-radius: 8px;
  font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.btn-wa-order:hover { background: #1eb554; }

/* ===== FEATURES STRIP ===== */
.features-strip { background: var(--bg-light); padding: 40px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.feature { display: flex; align-items: center; gap: 16px; }
.feature-icon { font-size: 32px; }
.feature strong { display: block; font-weight: 700; font-size: 15px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ===== CONTACT SECTION ===== */
.contact-section { background: linear-gradient(135deg, #0F0F0F, #1a1a2e); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact-text h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.contact-text p { color: rgba(255,255,255,0.65); margin-bottom: 24px; font-size: 16px; }
.contact-img { font-size: 100px; }

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, #0F0F0F, #1a1a2e);
  padding: 60px 20px;
  text-align: center;
}
.page-banner h1 { font-size: 40px; font-weight: 800; color: #fff; }
.page-banner p { color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.search-input {
  padding: 10px 16px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: 'Poppins', sans-serif;
  outline: none; transition: border 0.2s; width: 100%;
}
.search-input:focus { border-color: var(--primary); }
.filter-bar .search-input { flex: 1; min-width: 200px; }
.category-select {
  padding: 10px 16px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: 'Poppins', sans-serif; background: #fff;
  cursor: pointer; outline: none; min-width: 160px;
}
.category-select:focus { border-color: var(--primary); }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff;
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--bg-light); }
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 15px; }
.cart-item-info p { color: var(--primary); font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 12px; }
.cart-qty button {
  width: 32px; height: 32px; border: 2px solid var(--border); background: #fff;
  border-radius: 50%; font-size: 18px; cursor: pointer; font-weight: 700; transition: all 0.2s;
}
.cart-qty button:hover { border-color: var(--primary); color: var(--primary); }
.cart-qty span { font-weight: 700; font-size: 16px; min-width: 24px; text-align: center; }
.cart-item-total { font-weight: 700; font-size: 16px; min-width: 80px; text-align: right; color: var(--primary); }
.cart-remove { background: none; border: none; font-size: 18px; cursor: pointer; color: #ccc; transition: color 0.2s; }
.cart-remove:hover { color: #e74c3c; }
.cart-summary {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 80px;
}
.cart-summary h3 { font-size: 20px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.summary-row.total { border-bottom: none; font-weight: 800; font-size: 18px; color: var(--primary); }
.empty-cart { text-align: center; padding: 80px 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }

/* ===== WA FLOAT ===== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--wa-green); width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s;
  animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 50px 20px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand .logo-text { color: #fff; font-size: 20px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); }

/* ===== ADMIN ===== */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0F0F0F, #1a1a2e);
}
.login-box {
  background: #fff; padding: 48px; border-radius: 20px; text-align: center;
  width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-box h2 { font-size: 26px; margin-bottom: 6px; }
.login-box p { color: var(--muted); margin-bottom: 4px; }
.admin-body { background: var(--bg-light); }
.admin-layout { display: flex; min-height: calc(100vh - 44px); }
.admin-sidebar {
  width: 240px; min-height: 100%; background: var(--dark);
  padding: 28px 20px; display: flex; flex-direction: column;
  position: sticky; top: 44px; height: calc(100vh - 44px);
}
.admin-sidebar h3 { color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-link {
  color: rgba(255,255,255,0.65); text-decoration: none;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.admin-link:hover, .admin-link.active { background: rgba(255,107,44,0.15); color: var(--primary); }
.admin-main { flex: 1; padding: 36px; overflow-y: auto; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-form-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group textarea { font-family: 'Poppins', sans-serif; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-align: center;
}
.stat-card.green { border-color: var(--accent); }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); }
.image-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; background: var(--bg-light);
  cursor: pointer; transition: border-color 0.2s; margin-bottom: 8px;
}
.image-upload-area:hover { border-color: var(--primary); }
.manage-item {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 16px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px;
}
.manage-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-light); }
.manage-item-info { flex: 1; }
.manage-item-info strong { display: block; font-size: 15px; }
.manage-item-info span { font-size: 13px; color: var(--muted); }
.manage-item-actions { display: flex; gap: 8px; }
.btn-edit { background: #f0f4ff; color: #3366ff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
.btn-delete { background: #fff0f0; color: #e74c3c; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
.recent-products h3 { margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero { padding: 48px 20px; }
  .hero-badge { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .section-title { font-size: 24px; }
}
