:root {
  --jjs-black: #070707;
  --jjs-panel: #121212;
  --jjs-panel-2: #191919;
  --jjs-line: #2b2b2b;
  --jjs-gold: #d4a72c;
  --jjs-gold-light: #f4d777;
  --jjs-text: #f6f2e8;
  --jjs-muted: #a9a39a;
  --jjs-danger: #e55757;
  --jjs-success: #46b879;
  --jjs-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--jjs-black);
  color: var(--jjs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.jjs-app {
  min-height: 100vh;
  padding-bottom: 84px;
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 167, 44, 0.12), transparent 26rem),
    var(--jjs-black);
}

.jjs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(212, 167, 44, 0.18);
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(14px);
}

.jjs-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jjs-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,167,44,.65); }
.jjs-brand-copy { min-width: 0; }
.jjs-brand-title { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.jjs-brand-subtitle { display: block; margin-top: 2px; color: var(--jjs-muted); font-size: 10px; letter-spacing: .16em; }

.jjs-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jjs-line);
  border-radius: 50%;
  color: var(--jjs-text);
  background: var(--jjs-panel);
}

.jjs-bag-image { width: 27px; height: 27px; object-fit: contain; }
.jjs-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--jjs-black);
  border-radius: 999px;
  background: var(--jjs-gold);
  color: #090909;
  font-size: 10px;
  font-weight: 900;
}

.jjs-container { width: min(1180px, 100%); margin: 0 auto; padding: 0 14px 28px; }

.jjs-search-wrap { position: relative; margin-top: 14px; }
.jjs-search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--jjs-muted); }
.jjs-search {
  width: 100%;
  min-height: 46px;
  padding: 0 46px 0 42px;
  border: 1px solid var(--jjs-line);
  border-radius: 15px;
  outline: none;
  background: var(--jjs-panel);
  color: var(--jjs-text);
}
.jjs-search:focus { border-color: var(--jjs-gold); box-shadow: 0 0 0 3px rgba(212,167,44,.12); }
.jjs-clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--jjs-muted); width: 36px; height: 36px; }

.jjs-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(130px, .75fr);
  align-items: center;
  min-height: 210px;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid rgba(212,167,44,.42);
  border-radius: 22px;
  background: radial-gradient(circle at 82% 18%, rgba(244,215,119,.20), transparent 30%), linear-gradient(135deg, #1c1609 0%, #0d0d0d 62%);
}
.jjs-hero::after { content:""; position:absolute; inset:auto -50px -120px auto; width:260px; height:260px; border:1px solid rgba(212,167,44,.28); border-radius:50%; }
.jjs-hero-content { position: relative; z-index: 2; }
.jjs-eyebrow { margin: 0 0 8px; color: var(--jjs-gold-light); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.jjs-hero h1 { max-width: 620px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 7vw, 52px); line-height: 1.02; font-weight: 500; }
.jjs-hero p { max-width: 520px; margin: 12px 0 18px; color: #c9c2b5; font-size: 14px; line-height: 1.55; }
.jjs-hero-logo { position: relative; z-index: 2; justify-self: end; width: min(180px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,167,44,.5); box-shadow: var(--jjs-shadow); }

.jjs-primary, .jjs-secondary, .jjs-danger-button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
}
.jjs-primary { background: linear-gradient(135deg, var(--jjs-gold-light), var(--jjs-gold)); color: #080808; }
.jjs-secondary { background: transparent; border-color: var(--jjs-gold); color: var(--jjs-gold-light); }
.jjs-danger-button { background: transparent; border-color: rgba(229,87,87,.65); color: #ff8c8c; }
.jjs-primary:disabled, .jjs-secondary:disabled, .jjs-danger-button:disabled { opacity: .55; cursor: not-allowed; }

.jjs-promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.jjs-promo-item { padding: 12px 8px; text-align: center; border: 1px solid var(--jjs-line); border-radius: 14px; background: var(--jjs-panel); }
.jjs-promo-item i { color: var(--jjs-gold-light); margin-bottom: 6px; }
.jjs-promo-item strong { display: block; font-size: 11px; }
.jjs-promo-item span { display: block; margin-top: 3px; color: var(--jjs-muted); font-size: 9px; }

.jjs-categories { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 3px; scrollbar-width: none; }
.jjs-categories::-webkit-scrollbar { display: none; }
.jjs-chip { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--jjs-line); border-radius: 999px; background: var(--jjs-panel); color: var(--jjs-text); font-size: 12px; }
.jjs-chip.is-active { border-color: var(--jjs-gold); background: rgba(212,167,44,.12); color: var(--jjs-gold-light); }

.jjs-section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 21px 0 11px; }
.jjs-section-title h2 { margin: 0; font-size: 19px; }
.jjs-section-title p, .jjs-section-title span { margin: 0; color: var(--jjs-muted); font-size: 11px; }

.jjs-view { display: none; }
.jjs-view.is-active { display: block; }

.jjs-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jjs-product-card { overflow: hidden; border: 1px solid var(--jjs-line); border-radius: 16px; background: var(--jjs-panel); }
.jjs-product-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(145deg, #282828, #101010); }
.jjs-product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.jjs-product-card:hover .jjs-product-image { transform: scale(1.025); }
.jjs-product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--jjs-gold-light); font-size: 42px; }
.jjs-discount-badge { position: absolute; left: 7px; top: 7px; padding: 5px 7px; border-radius: 999px; background: var(--jjs-gold); color: #080808; font-size: 9px; font-weight: 900; }
.jjs-favorite-button { position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(7,7,7,.72); color: white; }
.jjs-favorite-button.is-active { border-color: var(--jjs-gold); color: var(--jjs-gold-light); }
.jjs-product-body { padding: 10px; }
.jjs-product-name { margin: 0; min-height: 34px; font-size: 12px; line-height: 1.35; font-weight: 650; }
.jjs-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin-top: 7px; }
.jjs-price { color: var(--jjs-gold-light); font-size: 15px; font-weight: 900; }
.jjs-old-price { color: var(--jjs-muted); font-size: 10px; text-decoration: line-through; }
.jjs-card-button { width: 100%; min-height: 36px; margin-top: 9px; border: 1px solid var(--jjs-gold); border-radius: 10px; background: transparent; color: var(--jjs-gold-light); font-size: 11px; font-weight: 850; }

.jjs-empty { padding: 34px 18px; text-align: center; border: 1px dashed var(--jjs-line); border-radius: 17px; color: var(--jjs-muted); background: rgba(18,18,18,.72); }
.jjs-empty i { display: block; margin-bottom: 12px; color: var(--jjs-gold-light); font-size: 30px; }
.jjs-loading { display: grid; place-items: center; min-height: 180px; color: var(--jjs-muted); }
.jjs-spinner { width: 34px; height: 34px; margin-bottom: 10px; border: 3px solid var(--jjs-line); border-top-color: var(--jjs-gold); border-radius: 50%; animation: jjs-spin .8s linear infinite; }
@keyframes jjs-spin { to { transform: rotate(360deg); } }

.jjs-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.jjs-category-card { min-height: 110px; padding: 16px; text-align: left; border: 1px solid var(--jjs-line); border-radius: 17px; background: radial-gradient(circle at 90% 15%, rgba(212,167,44,.2), transparent 42%), var(--jjs-panel); color: var(--jjs-text); }
.jjs-category-card i { color: var(--jjs-gold-light); font-size: 24px; }
.jjs-category-card strong { display: block; margin-top: 15px; }
.jjs-category-card span { display: block; margin-top: 4px; color: var(--jjs-muted); font-size: 11px; }

.jjs-cart-list { display: grid; gap: 10px; }
.jjs-cart-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 11px; padding: 10px; border: 1px solid var(--jjs-line); border-radius: 16px; background: var(--jjs-panel); }
.jjs-cart-thumb { width: 78px; height: 96px; object-fit: cover; border-radius: 11px; background: #202020; }
.jjs-cart-info { min-width: 0; }
.jjs-cart-info h3 { margin: 0; font-size: 13px; }
.jjs-cart-meta { margin: 4px 0 8px; color: var(--jjs-muted); font-size: 10px; }
.jjs-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jjs-quantity { display: inline-grid; grid-template-columns: 30px 34px 30px; align-items: center; text-align: center; border: 1px solid var(--jjs-line); border-radius: 9px; overflow: hidden; }
.jjs-quantity button { height: 30px; border: 0; background: #202020; color: var(--jjs-text); }
.jjs-remove { border: 0; background: transparent; color: #f28383; font-size: 12px; }
.jjs-cart-summary { margin-top: 14px; padding: 15px; border: 1px solid rgba(212,167,44,.42); border-radius: 16px; background: #151107; }
.jjs-summary-line { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; color: var(--jjs-muted); font-size: 12px; }
.jjs-summary-total { color: var(--jjs-gold-light); font-size: 17px; font-weight: 900; }
.jjs-checkout { width: 100%; margin-top: 12px; }

.jjs-account-card { padding: 18px; border: 1px solid var(--jjs-line); border-radius: 17px; background: var(--jjs-panel); }
.jjs-account-card h3 { margin: 0 0 8px; }
.jjs-account-card p { color: var(--jjs-muted); font-size: 13px; line-height: 1.5; }
.jjs-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.jjs-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  border-top: 1px solid var(--jjs-line);
  background: rgba(7,7,7,.97);
  backdrop-filter: blur(14px);
}
.jjs-nav-button { min-width: 0; min-height: 54px; display: grid; place-items: center; gap: 3px; padding: 5px 2px; border: 0; border-radius: 11px; background: transparent; color: var(--jjs-muted); font-size: 9px; }
.jjs-nav-button i { font-size: 18px; }
.jjs-nav-button .jjs-bag-image { width: 23px; height: 23px; opacity: .72; }
.jjs-nav-button.is-active { background: rgba(212,167,44,.09); color: var(--jjs-gold-light); }
.jjs-nav-button.is-active .jjs-bag-image { opacity: 1; }

.jjs-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.72); }
.jjs-modal.is-open { display: flex; }
.jjs-modal-panel { width: min(760px, 100%); max-height: 92vh; overflow-y: auto; border: 1px solid var(--jjs-line); border-radius: 22px 22px 0 0; background: #0f0f0f; box-shadow: var(--jjs-shadow); }
.jjs-modal-close { position: sticky; top: 9px; z-index: 5; float: right; margin: 9px 9px -48px 0; width: 38px; height: 38px; border: 1px solid var(--jjs-line); border-radius: 50%; background: rgba(7,7,7,.86); color: white; }
.jjs-detail-grid { display: grid; }
.jjs-detail-image { width: 100%; max-height: 500px; aspect-ratio: 4/5; object-fit: cover; background: #202020; }
.jjs-detail-body { padding: 18px; }
.jjs-detail-body h2 { margin: 0; font-size: 23px; }
.jjs-detail-description { color: var(--jjs-muted); line-height: 1.55; font-size: 13px; }
.jjs-option-group { margin-top: 16px; }
.jjs-option-group strong { display: block; margin-bottom: 8px; font-size: 12px; }
.jjs-options { display: flex; flex-wrap: wrap; gap: 7px; }
.jjs-option { min-width: 44px; padding: 9px 11px; border: 1px solid var(--jjs-line); border-radius: 9px; background: var(--jjs-panel); color: var(--jjs-text); font-size: 11px; }
.jjs-option.is-selected { border-color: var(--jjs-gold); background: rgba(212,167,44,.14); color: var(--jjs-gold-light); }
.jjs-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 19px; }

.jjs-toast { position: fixed; left: 50%; bottom: 90px; z-index: 120; transform: translate(-50%, 18px); max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 999px; background: #f2dfab; color: #080808; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s ease; }
.jjs-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.jjs-toast.is-error { background: #f6b0b0; }

.jjs-footer { margin-top: 30px; padding: 18px 0 10px; text-align: center; color: var(--jjs-muted); font-size: 10px; }
.jjs-footer a { color: var(--jjs-gold-light); }

@media (min-width: 700px) {
  .jjs-container { padding-left: 22px; padding-right: 22px; }
  .jjs-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .jjs-category-grid { grid-template-columns: repeat(4, 1fr); }
  .jjs-detail-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .jjs-modal { align-items: center; padding: 24px; }
  .jjs-modal-panel { border-radius: 22px; }
  .jjs-bottom-nav { left: 50%; right: auto; width: min(620px, calc(100% - 28px)); transform: translateX(-50%); bottom: 10px; border: 1px solid var(--jjs-line); border-radius: 18px; }
  .jjs-app { padding-bottom: 102px; }
}

@media (min-width: 980px) {
  .jjs-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jjs-topbar { padding-left: max(22px, calc((100vw - 1180px) / 2)); padding-right: max(22px, calc((100vw - 1180px) / 2)); }
}

@media (max-width: 430px) {
  .jjs-hero { grid-template-columns: minmax(0,1fr) 105px; min-height: 190px; padding: 18px 15px; }
  .jjs-hero-logo { width: 105px; }
  .jjs-hero p { font-size: 12px; }
  .jjs-brand-title { font-size: 12px; }
  .jjs-brand-subtitle { font-size: 9px; }
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.jjs-logo-mark, .jjs-hero-mark { display:grid; place-items:center; color:var(--jjs-gold-light); font-family:Georgia,serif; font-weight:600; letter-spacing:-.12em; padding-right:.12em; background:radial-gradient(circle,rgba(212,167,44,.12),transparent 60%),#070707; }
.jjs-logo-mark { font-size:20px; }
.jjs-hero-mark { font-size:clamp(38px,8vw,70px); }
.jjs-bag-image { overflow:visible; }
