/* =========================================================
   THEME
========================================================= */
:root{
  --brand:#e6007a; --brand-600:#cc006c;
  --text:#222; --muted:#777;
  --bg:#fff; --bg-soft:#fafafa; --line:#e5e5e5;
  --shadow:0 4px 12px rgba(0,0,0,.08);
  --maxw:1200px; --radius:12px; --pad:16px;
}

/* =========================================================
   BASE
========================================================= */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:Inter,Roboto,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  background:var(--bg); color:var(--text); line-height:1.6;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{cursor:pointer}

.section{max-width:var(--maxw);margin:0 auto;padding:40px 20px}
.section h1,.section h2{
  font-family:'Playfair Display',serif;font-weight:700;font-size:1.8rem;margin-bottom:18px
}
.center{text-align:center}
.muted{color:var(--muted)}
.pad{padding:8px 6px 2px}

/* =========================================================
   NAVBAR (slide-in from RIGHT on mobile; with ✖ close)
========================================================= */
header{position:sticky;top:0;z-index:10000;background:#fff;border-bottom:1px solid var(--line)}
.navbar{
  max-width:var(--maxw);margin:0 auto;padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;
  position:relative;z-index:10
}
.logo a{font-family:'Playfair Display',serif;font-size:1.4rem;color:#111}
.logo-mark{color:var(--brand)}

.nav-links{display:flex;gap:18px;align-items:center}
.nav-links a{font-weight:500;color:#333;padding:8px 10px;border-radius:10px}
.nav-links a:hover,.nav-links a.active{color:#fff;background:var(--brand)}

.hamburger{display:none;font-size:1.6rem;user-select:none}

/* ✖ close button (inside the panel, mobile only) */
.nav-close{
  display:none;
  font-size:1.8rem;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  color:#333;
  margin-left:auto;
  margin-bottom:20px;
  padding:6px 8px;
  border-radius:8px;
}
.nav-close:hover{background:#f3f4f6}

/* Mobile: slide panel from RIGHT */
@media (max-width:1023px){
  .hamburger{display:block}
  .nav-links{
    position:fixed;top:0;right:0;height:100vh;width:min(84vw,320px);
    background:#fff;border-left:1px solid var(--line);box-shadow:var(--shadow);
    flex-direction:column;align-items:flex-start;gap:0;padding:18px 18px 18px;
    transform:translateX(100%);transition:transform .28s ease;z-index:9999;
    overflow:auto;
  }
  .nav-links.show{transform:translateX(0)}
  .nav-links li{width:100%}
  .nav-links a{display:block;width:100%;padding:12px 14px;border-radius:10px}
  .nav-close{display:block}
}

/* =========================================================
   HERO
========================================================= */
.hero{position:relative}
.hero-img{width:100%;max-height:480px;object-fit:cover;border-radius:12px}
.hero-overlay{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  flex-direction:column;text-align:center;color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.6);padding:0 20px;
}
.hero-overlay h1{font-family:'Playfair Display',serif;font-size:2rem}
.hero-overlay p{margin-top:6px;font-size:1.1rem}

/* =========================================================
   BENEFITS STRIP
========================================================= */
.benefits-grid{
  display:grid;gap:16px;grid-template-columns:repeat(3,1fr);
  max-width:var(--maxw);margin:0 auto;padding:20px;
}
.benefit{
  display:flex;gap:12px;align-items:center;padding:14px;
  border:1px solid var(--line);border-radius:var(--radius);
  background:#fff;box-shadow:var(--shadow)
}
.benefit-emoji{font-size:28px;line-height:1}
@media (max-width:900px){.benefits-grid{grid-template-columns:1fr}}

/* =========================================================
   SHOP BY CATEGORY
========================================================= */
.category-grid{display:grid;gap:16px;grid-template-columns:repeat(6,1fr)}
@media (max-width:1200px){.category-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:820px){.category-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.category-grid{grid-template-columns:repeat(2,1fr)}}

.category-card{
  display:block;position:relative;overflow:hidden;
  border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);
  aspect-ratio:1/1
}
.category-card img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.category-card:hover img{transform:scale(1.03)}
.category-card span{
  position:absolute;left:10px;bottom:10px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(6px);
  padding:6px 10px;border-radius:999px;border:1px solid var(--line);
  font-weight:600;color:#0f172a
}

/* =========================================================
   CARDS / TABLES / FORMS / BUTTONS
========================================================= */
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:var(--pad);box-shadow:0 1px 0 rgba(0,0,0,.02)
}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left}
th{background:#fafafa;font-weight:600}

input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="tel"],select,textarea{
  width:100%;padding:10px 12px;border:1px solid #ccc;border-radius:8px;background:#fff;font:inherit;color:inherit
}
textarea{resize:vertical}

.btn{
  background:#fff;color:#111;border:1px solid var(--line);
  padding:10px 14px;border-radius:10px;font-weight:600
}
.btn:hover{box-shadow:var(--shadow)}
.btn-primary{background:var(--brand);color:#fff;border:1px solid var(--brand)}
.btn-primary:hover{background:var(--brand-600)}
.btn.danger{background:#ef4444;color:#fff;border:1px solid #ef4444}
.btn.danger:hover{background:#dc2626}
.btn.muted{color:#444}

/* =========================================================
   GRID FOR CATEGORY PRODUCT CARDS
========================================================= */
.product-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px
}
.product{
  display:flex;flex-direction:column;justify-content:space-between;text-align:center;
  background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;transition:box-shadow .2s
}
.product:hover{box-shadow:var(--shadow)}
.product img{width:100%;height:250px;object-fit:contain;background:#fafafa;border-radius:6px;padding:6px}
.product h3{font-size:1rem;margin-top:8px}
.product .muted{font-size:.9rem;color:#666}
.product .price{margin-top:6px;font-weight:700;color:var(--brand)}

/* Brand group display for categories-by-brand */
.brand-section{margin:28px 0}
.brand-title{
  font-family:'Playfair Display',serif;font-size:1.4rem;margin:6px 0 14px;
  border-left:4px solid var(--brand);padding-left:10px
}
.brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}

/* =========================================================
   PRODUCT PAGE STYLES (kept as you liked)
========================================================= */
.product-detail{
  display:grid;grid-template-columns:1.1fr .9fr;gap:24px;max-width:1200px;margin:0 auto;padding:0 16px
}
@media (max-width:920px){.product-detail{grid-template-columns:1fr}}
.product-media{display:flex;flex-direction:column;gap:12px}
.product-media img#product-image{
  width:100%;aspect-ratio:1/1;object-fit:contain;background:#f8fafc;border:1px solid var(--line);border-radius:12px
}
.thumbs{display:flex;gap:10px;flex-wrap:wrap}
.thumbs img{
  width:80px;height:80px;object-fit:cover;border:1px solid var(--line);border-radius:10px;cursor:pointer;
  transition:box-shadow .15s ease, transform .08s ease
}
.thumbs img:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.thumbs img.active{outline:2px solid var(--brand)}
.product-info .price-qty{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 14px}
.product-info .price{font:700 22px/1.2 "Roboto", sans-serif}
.qty{display:flex;align-items:center;gap:8px}
.qty button{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:18px;cursor:pointer}
.qty input{width:68px;text-align:center}
@media (max-width:920px){
  #add-to-cart{
    position:sticky;bottom:12px;width:100%;
    box-shadow:0 10px 20px rgba(230,0,122,.18);
    background:linear-gradient(90deg, var(--brand), var(--brand-600));
    color:#fff
  }
}

/* =========================================================
   SEARCH (global/autocomplete)
========================================================= */
.search-container{max-width:1100px;margin:0 auto;position:relative;padding:0 20px}
#search-bar{width:100%;padding:10px 12px;border:1px solid #ccc;border-radius:10px;background:#fff;color:#111}
#search-suggestions{
  position:absolute;top:110%;left:20px;right:20px;background:#fff;border:1px solid var(--line);
  border-radius:10px;box-shadow:var(--shadow);max-height:320px;overflow:auto;z-index:3000
}
#search-suggestions li{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer}
#search-suggestions li:hover{background:#f7f7f7}
#search-suggestions img{width:34px;height:34px;object-fit:contain;border-radius:6px;border:1px solid var(--line)}

/* =========================================================
   CART / CHECKOUT
========================================================= */
.cart-list{display:flex;flex-direction:column;gap:10px}
.cart-row{
  display:grid;grid-template-columns:56px 1fr auto auto;gap:12px;align-items:center;
  padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff
}
.cart-thumb{width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.cart-title{font-weight:600}
.cart-meta{font-size:.9rem;color:#777}
.cart-actions{display:flex;gap:8px;align-items:center}
.qty-val{min-width:24px;text-align:center;font-weight:700}
.cart-line{font-weight:700;white-space:nowrap}
.totals{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.totals-row{display:flex;justify-content:space-between}
.totals strong{font-size:1.05rem}

/* =========================================================
   ADMIN
========================================================= */
.admin-wrap{max-width:var(--maxw);margin:0 auto;padding:30px 20px}
.admin-wrap h1{font-family:'Playfair Display',serif;margin-bottom:16px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:980px){.admin-grid{grid-template-columns:1fr}}
.preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.preview img{width:86px;height:86px;object-fit:cover;border:1px solid var(--line);border-radius:8px}

/* =========================================================
   FOOTER / HELPERS
========================================================= */
.site-footer{
  text-align:center;padding:20px;background:var(--bg-soft);
  font-size:.95rem;color:#666;border-top:1px solid var(--line)
}
.hidden{display:none !important}
.badge{
  display:inline-block;padding:4px 8px;background:#f1f5f9;
  border:1px solid var(--line);border-radius:999px;font-size:.85rem
}
