/* =====================================================================
   JUAL HELM ONLINE — Stylesheet
   ===================================================================== */
:root{
  --red:#e30613;
  --red-dark:#b90410;
  --yellow:#ffd400;
  --dark:#2b3743;
  --darker:#222c33;
  --footer:#37464f;
  --footer-2:#2a353d;
  --blue:#1e2a78;
  --ink:#1a1a1a;
  --muted:#7a828a;
  --line:#e5e7eb;
  --bg:#f4f5f6;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif;
  color:#20262c;background:#fff;line-height:1.5;font-size:14px;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* ---------- TOP BAR ---------- */
.topbar{background:var(--dark);color:#cdd4da;font-size:12px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;height:40px;flex-wrap:wrap}
.topbar a{color:#cdd4da;margin-right:16px;display:inline-flex;align-items:center;gap:6px}
.topbar a:hover{color:#fff}
.topbar .right a{margin-right:0;margin-left:16px}
.badge-count{background:var(--red);color:#fff;border-radius:10px;padding:0 6px;font-size:10px;margin-left:4px}

/* ---------- HEADER / SEARCH ---------- */
.header{background:#f7f8f9;border-bottom:1px solid var(--line)}
.header .container{display:flex;align-items:center;gap:20px;padding:14px 16px}
.search{flex:1;display:flex;max-width:560px}
.search select{border:2px solid var(--red);border-right:0;border-radius:6px 0 0 6px;padding:0 10px;background:#fff;font-weight:600;color:#333}
.search input{flex:1;border:2px solid var(--red);border-left:0;border-right:0;padding:10px 12px;outline:none}
.search button{border:0;background:var(--red);color:#fff;padding:0 18px;border-radius:0 6px 6px 0;cursor:pointer;font-size:16px}
.logo img{height:56px}
.cart-btn{margin-left:auto;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:24px;padding:8px 16px;background:#fff;cursor:pointer;font-weight:600}
.cart-btn .ci{position:relative;font-size:18px}
.cart-btn .ci .n{position:absolute;top:-8px;right:-10px;background:var(--red);color:#fff;font-size:10px;border-radius:10px;padding:0 5px}

/* ---------- NAV ---------- */
.nav{background:var(--red)}
.nav .container{display:flex;flex-wrap:wrap}
.nav a{color:#fff;font-weight:700;text-transform:uppercase;font-size:13px;padding:16px 18px;display:inline-flex;align-items:center;gap:7px;position:relative;letter-spacing:.3px}
.nav a:hover,.nav a.active{background:var(--red-dark)}
.nav a.reg{color:var(--yellow)}
.nav .tag{position:absolute;top:5px;right:2px;font-size:8px;font-weight:800;padding:1px 4px;border-radius:3px}
.nav .tag.new{background:var(--yellow);color:#000}
.nav .tag.diskon{background:#000;color:var(--yellow)}

/* ---------- HERO ---------- */
.hero{position:relative;overflow:hidden;background:#1a2129}
.hero .slides{display:flex;transition:transform .6s ease}
.hero .slide{min-width:100%;height:420px;position:relative;display:flex;align-items:center;justify-content:space-between;
  background-size:cover;background-position:center;color:#fff}
.hero .slide .prod{height:78%;max-height:330px;aspect-ratio:4/3;object-fit:contain;background:#fff;
  border-radius:16px;padding:14px;margin-left:48px;box-shadow:0 14px 42px rgba(0,0,0,.5)}
.hero .slide .cap{margin-left:auto;text-align:right;padding:0 60px;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.hero .slide .cap small{font-size:20px;letter-spacing:2px}
.hero .slide .cap h2{font-size:54px;font-family:Georgia,"Times New Roman",serif;line-height:1}
.hero .slide .cap .btn{margin-top:18px}
.hero .dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.hero .dots span{width:22px;height:5px;background:rgba(255,255,255,.5);border-radius:3px;cursor:pointer}
.hero .dots span.active{background:var(--red)}
.hero .arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(227,6,19,.85);color:#fff;border:0;width:42px;height:42px;font-size:20px;cursor:pointer;border-radius:4px}
.hero .arrow.prev{left:14px}.hero .arrow.next{right:14px}

/* ---------- BUTTONS ---------- */
.btn{display:inline-block;background:var(--red);color:#fff;border:0;padding:11px 22px;border-radius:6px;
  font-weight:700;cursor:pointer;text-transform:uppercase;font-size:13px;transition:.2s}
.btn:hover{background:var(--red-dark)}
.btn.yellow{background:var(--yellow);color:#000}
.btn.outline{background:#fff;color:var(--red);border:2px solid var(--red)}
.btn.dark{background:var(--dark)}
.btn.block{width:100%;text-align:center}
.btn.sm{padding:7px 14px;font-size:12px}

/* ---------- LAYOUT WITH SIDEBAR ---------- */
.shop{display:grid;grid-template-columns:250px 1fr;gap:24px;padding:28px 0}
.sidebar .box{border:1px solid var(--line);border-radius:8px;margin-bottom:22px;overflow:hidden}
.sidebar h3{background:#fff;padding:14px 16px;font-size:15px;border-bottom:2px solid var(--red);color:var(--dark);text-transform:uppercase}
.cat-list a{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);font-weight:600;color:#333}
.cat-list a:hover{background:#fafafa;color:var(--red)}
.cat-list a:last-child{border-bottom:0}
.subscribe{padding:16px}
.subscribe p{color:var(--muted);margin-bottom:12px}
.subscribe .row{display:flex}
.subscribe input{flex:1;border:1px solid var(--line);border-radius:6px 0 0 6px;padding:10px;outline:none}
.subscribe button{border:0;background:var(--yellow);padding:0 14px;border-radius:0 6px 6px 0;cursor:pointer;font-weight:800}

/* ---------- SECTION TITLE ---------- */
.sec-head{display:flex;align-items:center;background:linear-gradient(90deg,var(--yellow),#fff 60%);border-radius:8px 8px 0 0;overflow:hidden;margin-bottom:0}
.sec-head .lbl{background:var(--red);color:#fff;padding:14px 26px;font-weight:800;text-transform:uppercase;clip-path:polygon(0 0,100% 0,88% 100%,0 100%);display:flex;align-items:center;gap:8px}
.sec-wrap{border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;padding:20px;margin-bottom:28px}

/* ---------- PRODUCT GRID ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:.2s;position:relative}
.card:hover{box-shadow:0 8px 24px rgba(0,0,0,.10);transform:translateY(-3px)}
.card .thumb{position:relative;background:#f4f4f4;padding:6px}
.card .thumb img{width:100%;height:190px;object-fit:contain}
.card .flags{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:5px}
.flag{font-size:10px;font-weight:800;padding:3px 8px;border-radius:4px;color:#fff}
.flag.promo{background:var(--red)}
.flag.new{background:var(--yellow);color:#000}
.card .body{padding:12px;display:flex;flex-direction:column;flex:1}
.card .brand{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.card .name{font-weight:700;font-size:14px;margin:3px 0 8px;min-height:38px;color:#1c2126}
.card .name:hover{color:var(--red)}
.card .price{color:var(--red);font-weight:800;font-size:16px;margin-top:auto}
.card .price .old{color:var(--muted);font-weight:500;font-size:12px;text-decoration:line-through;margin-left:6px}
.card .acts{display:flex;gap:8px;margin-top:10px}
.card .acts .btn{flex:1;padding:9px 0;font-size:12px}

/* ---------- PRODUCT DETAIL ---------- */
.pd{display:grid;grid-template-columns:1fr 1fr;gap:34px;padding:28px 0}
.pd .gallery{border:1px solid var(--line);border-radius:8px;background:#f7f7f7;padding:20px}
.pd .gallery img{width:100%;height:420px;object-fit:contain}
.pd .info h1{font-size:26px;margin-bottom:6px}
.pd .info .brand{color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:14px}
.pd .info .price{color:var(--red);font-size:30px;font-weight:800;margin:10px 0}
.pd .info .price .old{font-size:16px;color:var(--muted);text-decoration:line-through;margin-left:10px;font-weight:500}
.pd .info .desc{color:#454c53;margin:14px 0;line-height:1.7}
.pd .sizes{margin:16px 0}
.pd .sizes b{display:block;margin-bottom:8px}
.pd .sizes label{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:8px 16px;margin:0 8px 8px 0;cursor:pointer;font-weight:600}
.pd .sizes input{display:none}
.pd .sizes input:checked+span{color:#fff}
.pd .sizes label:has(input:checked){background:var(--red);border-color:var(--red);color:#fff}
.pd .qty{display:flex;align-items:center;gap:0;margin:16px 0}
.pd .qty button{width:40px;height:44px;border:1px solid var(--line);background:#f7f7f7;font-size:18px;cursor:pointer}
.pd .qty input{width:60px;height:44px;text-align:center;border:1px solid var(--line);border-left:0;border-right:0;font-size:16px}
.pd .buy{display:flex;gap:12px;margin-top:8px}
.meta-row{border-top:1px solid var(--line);margin-top:20px;padding-top:14px;color:#555;font-size:13px}
.meta-row span{display:inline-block;margin-right:20px}
.stock-ok{color:#1a8f3c;font-weight:700}
.stock-low{color:#c9820a;font-weight:700}

/* ---------- BREADCRUMB / TOOLBAR ---------- */
.crumb{background:#f7f8f9;border-bottom:1px solid var(--line);padding:12px 0;color:var(--muted);font-size:13px}
.crumb a:hover{color:var(--red)}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;flex-wrap:wrap;gap:10px}
.toolbar h1{font-size:22px}
.toolbar select{border:1px solid var(--line);border-radius:6px;padding:8px 12px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:7px 16px;cursor:pointer;font-weight:600;font-size:13px}
.chip.active{background:var(--red);color:#fff;border-color:var(--red)}

/* ---------- CART ---------- */
.cart-page{padding:28px 0}
.cart-table{width:100%;border-collapse:collapse;margin-bottom:20px}
.cart-table th{text-align:left;background:var(--dark);color:#fff;padding:12px;font-size:13px}
.cart-table td{border-bottom:1px solid var(--line);padding:12px;vertical-align:middle}
.cart-table .pimg{width:70px;background:#f4f4f4;border-radius:6px}
.cart-table .rm{color:var(--red);cursor:pointer;font-weight:700;border:0;background:none;font-size:18px}
.cart-qty{display:inline-flex;align-items:center}
.cart-qty button{width:30px;height:32px;border:1px solid var(--line);background:#f7f7f7;cursor:pointer}
.cart-qty input{width:44px;height:32px;text-align:center;border:1px solid var(--line);border-left:0;border-right:0}
.summary{max-width:360px;margin-left:auto;border:1px solid var(--line);border-radius:8px;padding:20px}
.summary .line{display:flex;justify-content:space-between;padding:8px 0}
.summary .total{border-top:2px solid var(--line);margin-top:8px;padding-top:12px;font-size:20px;font-weight:800;color:var(--red)}
.empty{text-align:center;padding:60px 20px;color:var(--muted)}
.empty .ico{font-size:60px;margin-bottom:14px}

/* ---------- FORMS ---------- */
.formcard{max-width:560px;margin:34px auto;border:1px solid var(--line);border-radius:10px;padding:30px}
.formcard h1{margin-bottom:6px}
.formcard p.sub{color:var(--muted);margin-bottom:20px}
.field{margin-bottom:16px}
.field label{display:block;font-weight:600;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:6px;padding:11px;outline:none;font-family:inherit}
.field input:focus,.field textarea:focus{border-color:var(--red)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.note{background:#fff8e1;border:1px solid #ffe08a;border-radius:8px;padding:14px;color:#7a5b00;margin:16px 0}
.alert-ok{background:#e7f7ec;border:1px solid #9fe0b4;color:#1a7d3c;border-radius:8px;padding:14px;margin:16px 0}

/* ---------- PROMO / ABOUT ---------- */
.page{padding:34px 0}
.page h1{font-size:28px;margin-bottom:8px}
.page .lead{color:var(--muted);margin-bottom:24px;max-width:760px}
.promo-banner{background:linear-gradient(120deg,var(--red),#7a0009);color:#fff;border-radius:12px;padding:40px;margin-bottom:28px;text-align:center}
.promo-banner h2{font-size:34px}
.promo-banner p{opacity:.9;margin-top:8px}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:20px}
.info-card{border:1px solid var(--line);border-radius:10px;padding:24px}
.info-card .ico{font-size:32px;color:var(--red);margin-bottom:10px}
.info-card h3{margin-bottom:8px}
.store-info{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.store-info .map{background:#e6eaee;border-radius:10px;min-height:300px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:40px}

/* ---------- FOOTER ---------- */
.footer{background:var(--footer);color:#c7ced4;padding-top:40px;margin-top:40px}
.footer .social{display:flex;justify-content:center;gap:12px;margin-bottom:26px}
.footer .social a{width:38px;height:38px;border-radius:50%;background:#4a90e2;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px}
.footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding-bottom:34px}
.footer h4{color:#fff;text-transform:uppercase;font-size:14px;margin-bottom:14px;border-bottom:2px solid var(--red);display:inline-block;padding-bottom:6px}
.footer .cols a{display:block;padding:5px 0;color:#c7ced4}
.footer .cols a:hover{color:#fff}
.footer .addr p{margin-bottom:10px;color:#c7ced4}
.footer .market{display:flex;flex-direction:column;gap:12px}
.footer .market .mk{border-radius:8px;padding:14px;font-weight:800;color:#fff;text-align:center}
.footer .market .tokopedia{background:#42b549}
.footer .market .shopee{background:#ee4d2d}
.footer-lower{background:var(--footer-2);padding:30px 0;margin-top:10px}
.footer-lower .cols{grid-template-columns:1fr 1fr 1fr;padding-bottom:0}
.footer-lower h4{border-color:var(--red)}
.badges{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.badges .b{background:#fff;border-radius:6px;padding:8px 12px;font-size:11px;font-weight:800;color:#333}
.copyright{background:#1c252b;color:#8b949b;text-align:center;padding:16px;font-size:12px}

/* ---------- TOAST ---------- */
.toast{position:fixed;bottom:24px;right:24px;background:var(--dark);color:#fff;padding:14px 20px;border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,.3);transform:translateY(120px);opacity:0;transition:.35s;z-index:999;display:flex;gap:10px;align-items:center}
.toast.show{transform:translateY(0);opacity:1}
.toast .ok{color:var(--yellow);font-size:18px}

/* back to top */
.totop{position:fixed;bottom:24px;left:24px;width:44px;height:44px;background:var(--red);color:#fff;border:0;border-radius:6px;font-size:20px;cursor:pointer;display:none;z-index:998}
.totop.show{display:block}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .shop{grid-template-columns:1fr}
  .sidebar{order:2}
  .pd{grid-template-columns:1fr}
  .footer .cols{grid-template-columns:1fr 1fr}
  .footer-lower .cols{grid-template-columns:1fr}
  .store-info{grid-template-columns:1fr}
  .hero .slide .cap h2{font-size:38px}
}
@media(max-width:640px){
  .topbar .left a span{display:none}
  .header .container{flex-wrap:wrap}
  .search{order:3;width:100%;max-width:none}
  .cart-btn{margin-left:0}
  .nav a{padding:12px 12px;font-size:12px}
  .hero .slide{height:300px}
  .hero .slide .prod{display:none}
  .hero .slide .cap{padding:0 24px;margin:0 auto;text-align:center}
  .hero .slide .cap h2{font-size:28px}
  .grid2{grid-template-columns:1fr}
  .footer .cols{grid-template-columns:1fr}
}
