:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-dim: #9aa2af;
  --accent: #33c9a4;
  --accent-dark: #26a988;
  --danger: #e2545a;
  --warn: #f0b429;
  --whatsapp: #25d366;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 420px;
  width: 100%;
}

.age-modal h2 { margin-top: 0; }
.age-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.fine-print { font-size: 12px; color: var(--text-dim); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: #06231c; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #262b35; }
.full-width { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo-icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:2px solid var(--accent);
    box-shadow:0 0 15px rgba(51,201,164,.25);
    flex-shrink:0;
}

.logo-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.logo-text{
    display:flex;
    flex-direction:column;
    line-height:1;
}

.logo-text h2{
    margin:0;
    color:#fff;
    font-size:26px;
    font-weight:800;
    letter-spacing:.5px;
}

.logo-text span{
    margin-top:4px;
    color:var(--accent);
    font-size:14px;
    font-weight:700;
    letter-spacing:4px;
    text-transform:uppercase;
}

/* Hover Effect */

.logo:hover .logo-icon{
    transform:rotate(-5deg) scale(1.05);
    transition:.3s;
}

.logo:hover .logo-text h2{
    color:var(--accent);
    transition:.3s;
}

.cart-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  position: relative;
}
.cart-count {
  background: var(--accent);
  color: #06231c;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 700;
}

/* ---------- Hero (with offer tag + price box) ---------- */
.banner{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:15px;
    margin:30px auto;
}

.hero {
  padding: 60px 0;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(51,201,164,0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(240,180,41,0.10), transparent 40%);
  border-bottom: 1px solid var(--border);
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.offer-tag {
  display: inline-block;
  background: rgba(240,180,41,0.15);
  color: var(--warn);
  border: 1px solid rgba(240,180,41,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.hero h1 { font-size: 32px; margin: 0 0 14px; line-height: 1.25; }
.hero p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }

.price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.old-price {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 16px;
}
.new-price {
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.shop-btn, .whatsapp-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.shop-btn {
  background: var(--accent);
  color: #06231c;
}
.shop-btn:hover { background: var(--accent-dark); }
.whatsapp-btn {
  background: var(--whatsapp);
  color: #06231c;
}
.whatsapp-btn:hover { filter: brightness(1.08); }

/* ---------- Sale info / features ---------- */
.sale-info {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.sale-info h2 { font-size: 24px; margin-bottom: 8px; }
.sale-info > p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.sale-info strong { color: var(--accent); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  padding: 30px 0 60px;
}
.loading-text, .empty-text { color: var(--text-dim); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 700; font-size: 16px; }
.product-category { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.product-desc { font-size: 13px; color: var(--text-dim); flex: 1; }
.product-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.product-stock { font-size: 12px; color: var(--text-dim); }
.add-to-cart-btn { margin-top: 8px; }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: 40px 20px 60px;
  border-top: 1px solid var(--border);
}
.contact h2 { font-size: 20px; margin-bottom: 10px; }
.contact p { color: var(--text-dim); font-size: 14px; margin: 4px 0; }

/* ---------- Cart Drawer ---------- */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 900;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 950;
  display: flex;
  flex-direction: column;
}
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 1px solid var(--border);
}
.close-btn { background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 8px; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 12px; color: var(--text-dim); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.remove-item { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 13px; }
.cart-footer { padding: 18px; border-top: 1px solid var(--border); }
.cart-total { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

/* ---------- Forms ---------- */
form label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-dim);
}
form input, form textarea, form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
form textarea { min-height: 70px; resize: vertical; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; margin: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.error-text { color: var(--danger); font-size: 13px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer a { color: var(--accent); }

/* ---------- Admin ---------- */
.admin-wrapper { max-width: 1100px; margin: 0 auto; padding: 20px; }
.admin-login-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  padding: 10px 16px; border-radius: var(--radius); cursor: pointer; font-weight: 600;
}
.tab-btn.active { color: var(--text); border-color: var(--accent); background: var(--surface-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.badge-pending { background: #4d3b16; color: #f0b429; }
.badge-confirmed { background: #17324d; color: #4ea6f0; }
.badge-shipped { background: #2f1f4d; color: #a97bf0; }
.badge-completed { background: #16401f; color: #4dd06a; }
.badge-cancelled { background: #401616; color: #e2545a; }

.status-select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px; font-size: 13px;
}
.action-btn { background: none; border: none; cursor: pointer; font-size: 13px; }
.action-btn.delete { color: var(--danger); }
.action-btn.edit { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--surface-2);
  border: 1px solid var(--border); padding: 12px 18px; border-radius: var(--radius);
  z-index: 2000;
}
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .new-price { font-size: 22px; }
  .cart-drawer { width: 100%; max-width: 100vw; }
  .banner img {
    width: 100%;
    height: auto;
    display: block;
}
.logo-icon{
        width:46px;
        height:46px;
    }

    .logo-text h2{
        font-size:22px;
    }

    .logo-text span{
        font-size:12px;
        letter-spacing:2px;
    }

}