



:root{
  --ink:#171513;
  --brown:#8b4f22;
  --gold:#b77a3d;
  --cream:#f7f4ef;
  --soft:#f0ece6;
  --line:#e6dfd6;
  --muted:#77716b;
  --white:#fff;
  --green:#1a9b55;
  --danger:#c54848;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:Tahoma,Arial,sans-serif;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:0}
img{max-width:100%}

/* =========================================================
   STORE FRONT — HEADER
   ========================================================= */

.topbar{
  height:76px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:0 clamp(16px,5vw,72px);
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:190px;
}
.brand img{
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:9px;
}
.brand b{display:block;font-size:18px;line-height:1.1}
.brand small{
  display:block;
  margin-top:4px;
  color:#999;
  font-size:7px;
  letter-spacing:1.8px;
}

.topbar nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  font-size:12px;
  color:#4d4945;
}
.topbar nav a{transition:.2s}
.topbar nav a:hover{color:var(--brown)}

.actions{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:190px;
  justify-content:flex-end;
}
.icon-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#f2eee9;
  color:#222;
  font-size:20px;
}
.cart-btn{
  min-height:42px;
  background:var(--ink);
  color:#fff;
  border-radius:12px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
}
.cart-btn b{
  min-width:22px;
  padding:3px 6px;
  border-radius:99px;
  background:#fff;
  color:#171513;
  text-align:center;
  font-size:10px;
}

/* =========================================================
   STORE FRONT — HERO
   ========================================================= */

.hero{
  min-height:570px;
  display:grid;
  grid-template-columns:1fr 1.05fr;
  align-items:center;
  gap:40px;
  padding:60px clamp(20px,7vw,110px);
  background:
    radial-gradient(circle at 75% 30%,rgba(183,122,61,.12),transparent 28%),
    linear-gradient(120deg,#ece7e0 0%,#fbfaf8 55%,#e8e0d7 100%);
}
.hero > div:first-child{position:relative;z-index:2}
.eyebrow{
  color:var(--brown);
  font-size:9px;
  font-weight:800;
  letter-spacing:2.8px;
}
.hero h1{
  font-size:clamp(42px,5.3vw,72px);
  line-height:1.02;
  letter-spacing:-2px;
  margin:15px 0;
}
.hero h1 em{
  color:var(--brown);
  font-style:normal;
}
.hero p{
  max-width:520px;
  color:#706b65;
  font-size:13px;
  line-height:2;
  margin:0;
}
.hero-actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:25px;
}
.primary{
  background:var(--ink);
  color:#fff;
  border-radius:12px;
  padding:13px 21px;
  font-weight:700;
}
.hero-actions span{font-size:11px;color:#777}

.hero-image{
  height:450px;
  display:grid;
  place-items:center;
  position:relative;
}
.hero-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 28px 25px rgba(0,0,0,.12));
}
.hero-empty{
  width:min(500px,100%);
  height:100%;
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 35%,#fff 0%,rgba(255,255,255,.35) 42%,transparent 70%),
    #eee8e0;
  display:grid;
  place-items:center;
  text-align:center;
  color:#9b9187;
  font-size:11px;
  line-height:1.8;
  border:1px solid rgba(139,79,34,.08);
}

/* =========================================================
   STORE FRONT — TRUST / PRODUCTS
   ========================================================= */

.trust{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#fff;
  border-bottom:1px solid var(--line);
}
.trust div{
  min-height:58px;
  padding:16px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:10px;
  border-left:1px solid var(--line);
}
.trust div:last-child{border-left:0}
.trust b{color:var(--brown)}

main#products{
  padding:78px clamp(16px,7vw,105px);
}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
}
.section-head h2{
  margin:9px 0 7px;
  font-size:40px;
  letter-spacing:-1px;
}
.section-head p{
  margin:0;
  color:#888;
  font-size:11px;
}
.tools{
  display:flex;
  gap:8px;
}
.tools input,
.tools select,
input,select,textarea{
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  padding:11px 13px;
  color:var(--ink);
  outline:none;
}
.tools input{min-width:250px}
input:focus,select:focus,textarea:focus{
  border-color:#bd8651;
  box-shadow:0 0 0 3px rgba(183,122,61,.09);
}

.cats{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin:25px 0 22px;
  padding:2px 1px 7px;
  scrollbar-width:none;
}
.cats::-webkit-scrollbar{display:none}
.cats button{
  flex:0 0 auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:99px;
  padding:9px 17px;
  font-size:10px;
  white-space:nowrap;
}
.cats button.active{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.product{
  background:#fff;
  border:1px solid var(--line);
  border-radius:17px;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
  cursor:pointer;
}
.product:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(0,0,0,.07);
}
.pic{
  aspect-ratio:1/1.05;
  background:#f1eee9;
  overflow:hidden;
}
.pic img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s;
}
.product:hover .pic img{transform:scale(1.025)}
.body{padding:14px 14px 15px}
.body h3{
  margin:0 0 4px;
  font-size:13px;
  line-height:1.5;
}
.muted{
  color:var(--muted);
  font-size:11px;
  line-height:1.8;
}
.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:11px;
}
.price{
  font-size:16px;
  font-weight:800;
  white-space:nowrap;
}
.add{
  background:#eee7df;
  color:#2a2521;
  border-radius:9px;
  padding:8px 10px;
  font-size:10px;
}

/* =========================================================
   STORE FRONT — EDITORIAL / ABOUT / FOOTER
   ========================================================= */

.banner{
  background:#171717;
  color:#fff;
  padding:72px clamp(20px,9vw,135px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
}
.banner h2{
  font-size:43px;
  line-height:1.05;
  margin:12px 0;
}
.banner em{
  color:#d2a16b;
  font-style:normal;
}
.banner p{
  color:#bdbdbd;
  font-size:11px;
  line-height:1.9;
}
.about{
  padding:75px clamp(20px,9vw,135px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  background:#f8f6f3;
}
.about h2{
  font-size:44px;
  line-height:1.05;
  margin:12px 0 0;
}
.about p{
  color:#68635e;
  line-height:2;
  font-size:12px;
}
footer{
  background:#111;
  color:#999;
  padding:24px clamp(16px,7vw,105px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
}
footer a{color:#d1a16d}

/* =========================================================
   CART / MODALS / CHECKOUT / INVOICE
   ========================================================= */

.overlay,.modal-wrap{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:100;
}
.drawer{
  width:min(470px,100%);
  height:100%;
  position:absolute;
  right:0;
  top:0;
  background:#fff;
  padding:27px;
  display:flex;
  flex-direction:column;
  box-shadow:-12px 0 40px rgba(0,0,0,.12);
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.drawer-head h3{margin:0;font-size:20px}
.drawer-head button,.x{
  background:none;
  color:#777;
  font-size:28px;
}
.cart-list{overflow:auto;flex:1}
.cart-item{
  display:grid;
  grid-template-columns:62px 1fr auto;
  gap:11px;
  align-items:start;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.cart-item img{
  width:62px;
  height:62px;
  object-fit:cover;
  border-radius:10px;
  background:#f0ece6;
}
.cart-item small{display:block;color:#888;font-size:9px;margin-top:3px}
.qty{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:8px;
}
.qty button{
  width:26px;
  height:26px;
  border-radius:7px;
  background:#eee9e3;
}
.summary{
  border-top:1px solid var(--line);
  padding-top:15px;
}
.summary div{
  display:flex;
  justify-content:space-between;
  margin:8px 0;
  font-size:11px;
}
.summary .grand{
  font-size:18px;
  font-weight:800;
  padding-top:5px;
}
.wide{width:100%;margin-top:12px}
.whatsapp{
  background:var(--green);
  color:#fff;
  border-radius:11px;
  padding:13px 17px;
  font-weight:700;
}

.modal-wrap{
  display:grid;
  place-items:center;
  padding:18px;
}
.modal{
  width:min(780px,100%);
  max-height:92vh;
  overflow:auto;
  position:relative;
  background:#fff;
  border-radius:22px;
  padding:30px;
}
.x{
  position:absolute;
  top:10px;
  left:12px;
  width:38px;
  height:38px;
}
.product-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.detail-image{
  overflow:hidden;
  background:#f1eee9;
  border-radius:16px;
}
.detail-image img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  display:block;
}
.detail h2{font-size:31px;margin:8px 0}
.detail .price{font-size:20px;margin-bottom:8px}
.choices{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:7px 0 15px;
}
.choices button{
  background:#fff;
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:9px;
}
.choices button.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.checkout-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
}
.checkout-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:11px;
  font-weight:700;
}
.checkout-grid input,.checkout-grid select,.checkout-grid textarea{width:100%}
.checkout-grid .full{grid-column:1/-1}
.order-bar{
  background:#f6f0e9;
  border-radius:12px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  margin-top:18px;
  font-weight:700;
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:18px;
}
.secondary{
  background:#eee8e0;
  color:#222;
  border-radius:11px;
  padding:12px 17px;
}
.invoice table{
  width:100%;
  border-collapse:collapse;
  margin-top:18px;
}
.invoice th,.invoice td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:right;
}
.invoice-total{
  display:flex;
  justify-content:space-between;
  margin-top:18px;
  font-size:20px;
  font-weight:800;
}

/* =========================================================
   GENERIC / LOGIN / INSTALL
   ========================================================= */

.center{
  min-height:100vh;
  display:grid;
  place-items:center;
}
.install-card,.login-box{
  width:min(520px,94%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:30px;
}
.install-card h1{font-size:34px}
.install-card label,.login-box label{
  display:block;
  margin:13px 0;
  font-size:12px;
  font-weight:700;
}
.install-card input,.login-box input{width:100%;margin-top:6px}
.success,.error,.alert{
  padding:13px;
  border-radius:10px;
  margin:15px 0;
}
.success{background:#eaf8ef;color:#176b37}
.error,.alert{background:#fff0f0;color:#a21c1c}

/* =========================================================
   ADMIN — PRESERVED
   ========================================================= */

.admin-layout{
  display:flex;
  flex-direction:row;
  min-height:100vh;
  width:100%;
  background:var(--cream);
}
.admin-layout .sidebar{
  width:250px;
  min-width:250px;
  height:100vh;
  position:sticky;
  top:0;
  right:0;
  background:#151515;
  color:#fff;
  padding:22px 16px;
  z-index:1000;
  overflow-y:auto;
  flex-shrink:0;
}
.admin-layout .sidebar .brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 4px 24px;
  margin-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.admin-layout .sidebar .brand img{
  width:55px;height:55px;object-fit:contain;border-radius:10px;background:#fff;padding:4px;
}
.admin-layout .sidebar .brand span{
  display:flex;flex-direction:column;align-items:flex-end;gap:2px;
}
.admin-layout .sidebar .brand b{color:#fff;font-size:18px;font-weight:800}
.admin-layout .sidebar .brand small{color:#999;font-size:9px;letter-spacing:2px}

.admin-layout .sidebar nav{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.admin-layout .sidebar nav a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:48px;
  padding:0 15px!important;
  margin:0!important;
  border-radius:12px;
  color:#d6d6d6!important;
  background:transparent!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.admin-layout .sidebar nav a:hover{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}
.admin-layout .sidebar nav a.active{
  background:#fff!important;
  color:#171717!important;
}

.admin-main{
  flex:1;
  min-width:0;
  padding:36px 42px;
}
.admin-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}
.admin-top h1{margin:4px 0;font-size:34px;font-weight:800}
.admin-top .secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  border-radius:12px;
  background:#f3eee7;
  font-weight:700;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin:20px 0;
}
.stat{
  background:#fff;
  border:1px solid var(--line);
  border-radius:17px;
  padding:20px;
}
.stat small{color:#888}
.stat strong{display:block;font-size:26px;margin-top:8px}

.panel,.form-card{
  background:#fff;
  border:1px solid #e9e1d8;
  border-radius:20px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.03);
  margin-bottom:24px;
}
.panel h3{margin:0 0 22px;font-size:22px;font-weight:800}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.table th{
  background:#faf8f5;
  color:#777;
  font-size:13px;
  font-weight:800;
  padding:14px 12px;
  border-top:1px solid #eee7df;
  border-bottom:1px solid #eee7df;
}
.table td{
  padding:14px 12px;
  border-bottom:1px solid #f0ebe5;
  vertical-align:middle;
  font-size:14px;
}
.table tr:last-child td{border-bottom:0}
.table .thumb{
  width:62px;height:62px;object-fit:cover;border-radius:12px;border:1px solid #eee5dc;
}
.table td:nth-child(2){font-weight:800}
.table td:nth-child(3){font-weight:800;white-space:nowrap}
.table a{color:#a36321;font-weight:800;margin-left:12px}
.danger{
  border:0;
  background:#fff0f0;
  color:var(--danger);
  border-radius:9px;
  padding:7px 12px;
  font-weight:800;
}
.table td:nth-child(5)::before{
  content:"";
  display:inline-block;
  width:7px;height:7px;
  border-radius:50%;
  background:#3b9b65;
  margin-left:7px;
}

.form-grid-admin{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 24px;
}
.form-grid-admin label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#242424;
  font-size:14px;
  font-weight:700;
}
.form-grid-admin input,
.form-grid-admin select,
.form-grid-admin textarea{
  width:100%;
  border:1px solid #e5ded5;
  background:#fff;
  color:#171717;
  border-radius:12px;
  padding:13px 15px;
  outline:none;
}
.form-grid-admin input,.form-grid-admin select{height:46px}
.form-grid-admin textarea{min-height:110px;resize:vertical}
.form-grid-admin .full{grid-column:1/-1}
.form-grid-admin .check{
  flex-direction:row;
  align-items:center;
  gap:9px;
}
.form-grid-admin .check input{
  width:18px!important;
  height:18px;
  accent-color:#b87528;
}
.form-grid-admin input[type=file]{
  padding:10px 12px;
  cursor:pointer;
  background:#faf8f5;
}
.actions-row{
  display:flex;
  justify-content:flex-start;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #eee7df;
}
.actions-row .primary{
  min-width:150px;
  min-height:46px;
  border-radius:12px;
  background:#171717;
  color:#fff;
  font-weight:800;
}

/* =========================================================
   RESPONSIVE — STORE
   ========================================================= */

@media(max-width:1100px){
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
    text-align:center;
    padding:52px 30px;
  }
  .hero p{margin:0 auto}
  .hero-actions{justify-content:center}
  .hero-image{height:360px}
  .about,.banner{grid-template-columns:1fr}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-main{padding:28px 24px}
  .form-grid-admin{grid-template-columns:1fr}
  .form-grid-admin .full{grid-column:auto}
}

@media(max-width:800px){
  .admin-layout{display:block}
  .admin-layout .sidebar{
    width:100%;
    min-width:0;
    height:auto;
    position:relative;
    padding:15px;
  }
  .admin-layout .sidebar .brand{justify-content:flex-start}
  .admin-layout .sidebar nav{
    display:grid!important;
    grid-template-columns:repeat(2,1fr);
    gap:7px!important;
  }
  .admin-layout .sidebar nav a{justify-content:center!important}
  .admin-main{width:100%;padding:20px 14px}
  .admin-top{align-items:flex-start;flex-direction:column}
  .admin-top .secondary{width:100%}
  .panel,.form-card{padding:18px;border-radius:15px}
  .panel{overflow-x:auto}
  .table{min-width:700px}
  .stats{grid-template-columns:1fr}

  .topbar{height:68px;padding:0 14px}
  .topbar nav{display:none}
  .brand{min-width:0}
  .brand img{width:43px;height:43px}
  .brand b{font-size:15px}
  .brand small{font-size:6px}
  .actions{min-width:auto}
  .icon-btn{width:38px;height:38px}
  .cart-btn{min-height:38px;padding:0 10px;font-size:10px}

  .hero{
    min-height:auto;
    padding:45px 20px 28px;
  }
  .hero h1{font-size:42px}
  .hero p{font-size:11px;max-width:340px}
  .hero-actions{flex-direction:column;gap:9px;margin-top:18px}
  .hero-actions .primary{padding:11px 20px}
  .hero-image{height:230px;margin-top:10px}
  .trust{grid-template-columns:1fr 1fr}
  .trust div{min-height:52px;font-size:9px}
  .trust div:nth-child(3),.trust div:nth-child(4){border-top:1px solid var(--line)}

  main#products{padding:48px 14px}
  .section-head{display:block}
  .section-head>div:first-child{margin-bottom:18px}
  .section-head h2{font-size:30px}
  .tools{
    display:grid;
    grid-template-columns:1fr 100px;
    width:100%;
  }
  .tools input{min-width:0;width:100%}
  .tools input,.tools select{height:42px;padding:0 10px;font-size:11px}
  .cats{margin:18px 0 20px}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .product{border-radius:14px}
  .pic{aspect-ratio:1/1.08}
  .body{padding:10px}
  .body h3{
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .body .muted{font-size:8px}
  .price{font-size:12px}
  .add{font-size:8px;padding:7px 8px}
  .banner{padding:55px 22px;gap:24px}
  .banner h2{font-size:34px}
  .about{padding:55px 22px;gap:18px}
  .about h2{font-size:34px}
  footer{padding:20px 16px;font-size:9px}

  .drawer{
    width:100%;
    top:auto;
    bottom:0;
    height:min(88vh,720px);
    max-height:88vh;
    padding:19px 15px;
    border-radius:20px 20px 0 0;
  }
  .modal-wrap{padding:0;align-items:end}
  .modal{
    width:100%;
    max-height:94vh;
    border-radius:22px 22px 0 0;
    padding:20px 15px 22px;
  }
  .product-detail{grid-template-columns:1fr;gap:17px}
  .detail-image{max-height:290px}
  .detail-image img{max-height:290px;object-fit:cover}
  .detail h2{font-size:25px}
  .checkout-grid{grid-template-columns:1fr;gap:10px}
  .checkout-grid .full{grid-column:auto}
  .modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .modal-actions button{min-height:44px;font-size:10px}
  .invoice table{display:block;overflow-x:auto;white-space:nowrap}
}

@media(max-width:420px){
  .brand img{width:39px;height:39px}
  .brand b{font-size:14px}
  .brand small{font-size:5px}
  .cart-btn{padding:0 8px}
  .hero{padding:38px 15px 25px}
  .hero h1{font-size:35px}
  .hero-image{height:195px}
  main#products{padding-left:10px;padding-right:10px}
  .products-grid{gap:8px}
  .body{padding:9px 8px 10px}
  .price{font-size:11px}
  .add{font-size:7px;padding:6px 7px}
}

/* =========================================================
   PRINT
   ========================================================= */

@media print{
  body>*{display:none!important}
  .invoice-modal,.invoice-modal *{display:block!important}
  .invoice-modal{position:static!important;background:#fff!important}
  .no-print{display:none!important}
}