/* Pak Best Deals — styles (original design) */
:root{
  --teal:#0b5563;
  --teal-dark:#08424e;
  --orange:#f97316;
  --orange-dark:#ea6a0a;
  --bg:#f6f8f8;
  --card:#ffffff;
  --text:#1d2b2e;
  --muted:#5b6b6f;
  --line:#e3e9ea;
  --green:#15803d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.55}
img{max-width:100%;display:block}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1140px;margin:0 auto;padding:0 16px}

/* Header */
header.site{background:var(--teal);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.header-in{display:flex;align-items:center;gap:14px;padding:10px 16px;max-width:1140px;margin:0 auto;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:#fff;flex:0 0 auto}
.brand:hover{text-decoration:none}
.brand img{height:46px;width:auto;background:#fff;border-radius:10px;padding:3px}
.brand b{font-size:22px;letter-spacing:.2px;line-height:1.1}
.brand small{display:block;font-size:12px;color:#cde8ec;font-weight:400}
.search-box{flex:1 1 220px;display:flex}
.search-box input{flex:1;padding:11px 14px;border:0;border-radius:8px 0 0 8px;font-size:15px;outline:none;min-width:0}
.search-box button{border:0;background:var(--orange);color:#fff;font-weight:700;padding:0 18px;border-radius:0 8px 8px 0;cursor:pointer;font-size:15px}
.search-box button:hover{background:var(--orange-dark)}
nav.cats{background:var(--teal-dark)}
nav.cats .wrap{display:flex;gap:4px;overflow-x:auto;padding:0 8px;scrollbar-width:none}
nav.cats button{background:none;border:0;color:#d7ecef;font-size:15px;font-weight:600;padding:11px 14px;cursor:pointer;white-space:nowrap;border-bottom:3px solid transparent}
nav.cats button:hover{color:#fff}
nav.cats button.active{color:#fff;border-bottom-color:var(--orange)}

/* Hero */
.hero{position:relative;background:#123}
.hero img{width:100%;height:340px;object-fit:cover;object-position:center 30%}
.hero-text{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:1140px;margin:0 auto;padding:0 16px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.hero-text h1{margin:0 0 6px;font-size:40px;line-height:1.15}
.hero-text p{margin:0 0 16px;font-size:18px;max-width:560px}
.btn{display:inline-block;background:var(--orange);color:#fff;font-weight:700;padding:12px 26px;border-radius:8px;font-size:16px;border:0;cursor:pointer}
.btn:hover{background:var(--orange-dark);text-decoration:none}
.btn.buy{width:100%;text-align:center;padding:12px 10px}

/* Sections */
section{padding:28px 0 8px}
h2{font-size:26px;margin:0 0 4px;color:var(--teal-dark)}
.sub{color:var(--muted);margin:0 0 18px}
.price-note{font-size:13px;color:var(--muted);margin:14px 0 0}

/* Product grid */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;cursor:pointer;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.12)}
.card .thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:#eee}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:10px;left:10px;background:#dc2626;color:#fff;font-weight:700;font-size:13px;padding:4px 9px;border-radius:20px}
.card-body{padding:14px;display:flex;flex-direction:column;gap:7px;flex:1}
.cat{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--orange-dark)}
.card h3{margin:0;font-size:16.5px;line-height:1.35}
.stars{color:#f59e0b;font-weight:700;font-size:14px}
.stars span{color:var(--muted);font-weight:400}
.desc{font-size:14px;color:var(--muted);margin:0;flex:1}
.price-row{display:flex;align-items:baseline;gap:8px}
.price{font-size:21px;font-weight:800;color:var(--teal-dark)}
.old{color:var(--muted);text-decoration:line-through;font-size:14px}
.card .btn{margin-top:4px}
.empty{display:none;background:#fff;border:1px dashed var(--line);border-radius:12px;padding:26px;text-align:center;color:var(--muted)}

/* Why shop */
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.why-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.why-box .ic{font-size:30px}
.why-box h3{margin:8px 0 4px;font-size:17px;color:var(--teal-dark)}
.why-box p{margin:0;font-size:14px;color:var(--muted)}

/* Footer */
footer.site{background:var(--teal-dark);color:#cfe6ea;margin-top:36px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;padding:30px 16px}
footer.site h4{color:#fff;margin:0 0 10px;font-size:16px}
footer.site a{color:#cfe6ea;display:block;padding:3px 0}
footer.site p{font-size:14px;margin:0 0 10px}
.copy{border-top:1px solid rgba(255,255,255,.15);padding:14px 16px;text-align:center;font-size:13px;color:#9dc4cb}
.disclosure{background:#fff8e6;border:1px solid #f5d67b;color:#6b4e00;border-radius:10px;padding:12px 14px;font-size:13.5px;margin:18px 0 0}

/* Modal */
.modal-back{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:100;padding:16px}
.modal-back.open{display:flex}
.modal{background:#fff;border-radius:16px;max-width:760px;width:100%;max-height:92vh;overflow:auto;position:relative}
.modal img.hero-img{width:100%;aspect-ratio:16/9;object-fit:cover}
.modal-body{padding:20px}
.modal-body h3{margin:0 0 6px;font-size:22px}
.modal-body .desc{font-size:15px}
.close{position:absolute;top:10px;right:12px;background:#fff;border:0;border-radius:50%;width:36px;height:36px;font-size:20px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.modal .btn{margin-top:14px}

/* Inner pages */
.page{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin:26px 0}
.page h1{color:var(--teal-dark);margin-top:0}
.page h2{font-size:20px;margin-top:22px}
.contact-box{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:16px;margin:14px 0}

/* Responsive */
@media (max-width:960px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .why{grid-template-columns:repeat(2,1fr)}
  .hero-text h1{font-size:32px}
}
@media (max-width:640px){
  .grid{grid-template-columns:1fr}
  .why{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .hero img{height:230px}
  .hero-text h1{font-size:25px}
  .hero-text p{font-size:15px}
  .brand b{font-size:19px}
  .brand img{height:40px}
  .thumbs{gap:8px;padding:10px 12px 0}
  .thumb-btn{height:56px}
  .modal img.hero-img{aspect-ratio:4/3}
  .search-box{flex-basis:100%;order:3}
  .header-in{gap:10px}
  section{padding:20px 0 4px}
}

/* Product photo gallery (modal) */
.gallery-main{position:relative}
.photo-count{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.65);color:#fff;font-size:13px;font-weight:700;padding:4px 10px;border-radius:20px}
.thumbs{display:flex;gap:10px;padding:12px 16px 0}
.thumb-btn{flex:1;min-width:0;border:2px solid transparent;border-radius:10px;padding:0;overflow:hidden;cursor:pointer;background:#eee;height:64px}
.thumb-btn img{width:100%;height:100%;object-fit:cover}
.thumb-btn.active{border-color:var(--orange)}
.photo-badge{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;font-weight:700;padding:4px 9px;border-radius:20px}
