:root {
  --primary: #0c0805;
  --accent: #4e54c8;
  --brand-red: #fe696a;
  --hero-red: #ed5050;
  --sale: #f34770;
  --flash: #f34770;
  --flash-text: #ffffff;
  --star: #fea569;
  --heading: #373f50;
  --text: #4b566b;
  --muted: #7d879c;
  --border: #e3e9ef;
  --page: #f6f9fc;
  --white: #fff;
  --dark: #373f50;
  --darker: #2b3445;
  --header-bg: var(--white);
  --header-text: var(--text);
  --header-active: var(--primary);
  --header-icon: var(--heading);
  --header-tool-bg: #f3f5f9;
  --badge-bg: var(--primary);
  --badge-text: var(--white);
  --radius: 7px;
  --shadow: 0 2px 5px -1px rgba(0, 0, 0, .03), 0 4px 12px -1px rgba(0, 0, 0, .06);
  --shadow-lg: 0 .3rem 1.525rem -.375rem rgba(0, 0, 0, .15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.5 Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: 15px; }
.wide { width: 100%; max-width: 1181px; margin-inline: auto; padding-inline: 15px; }
.page-body { min-height: 45vh; padding-bottom: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: relative; z-index: 40; background: var(--header-bg); box-shadow: var(--shadow); }
.header-row { display: flex; align-items: center; height: 80px; gap: 24px; }
.logo { flex: none; width: 141px; }
.logo img { width: 100%; height: auto; max-height: 56px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.main-nav > li { position: relative; }
.nav-link { display: block; padding: 12px 14px; font-size: 16px; color: var(--header-text); white-space: nowrap; transition: color .2s; }
.nav-link:hover, .nav-link.active, .has-sub:hover > .nav-link { color: var(--header-active); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px 0;
  background: var(--header-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 7px 20px; font-size: 14px; color: var(--header-text); }
.sub-menu a:hover { color: var(--header-active); }
.sub-menu > li { position: relative; }
.sub-menu .sub-menu { top: -9px; left: 100%; transform: translateX(6px); }
.sub-menu > .has-sub > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-menu > .has-sub > a::after { content: "›"; font-size: 16px; line-height: 1; }

.tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tool { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--header-icon); }
.tool svg { width: 22px; height: 22px; }
.tool:hover { color: var(--header-active); }
.tool-cart { background: var(--header-tool-bg); }
.tool-count {
  position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--badge-bg); color: var(--badge-text); font-size: 12px; font-weight: 500;
}
.menu-toggle { display: none; }
.cart-wrap { position: relative; }
.mini-cart {
  position: absolute; top: calc(100% + 4px); right: 0; width: 320px; padding: 20px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .15s;
}
.cart-wrap:hover .mini-cart, .cart-wrap:focus-within .mini-cart { opacity: 1; visibility: visible; }
.mini-row { display: flex; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.mini-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.mini-row a { color: var(--heading); font-weight: 500; }
.mini-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.mini-empty { padding: 12px 0; text-align: center; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 400; line-height: 1.5;
  white-space: nowrap; transition: .2s;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-primary:hover { background: #2c2520; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: #3d43ad; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 3px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { position: relative; margin-bottom: 68px; }
.hero-track { position: relative; min-height: 330px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 96px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .6s;
}
.slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 330px; }
.slide-red { background: var(--hero-red); color: var(--white); }
.slide-red h2 { color: var(--slide-heading, var(--white)); }
.slide-light { background: rgba(255, 255, 255, .1); color: #2b3445; }
.slide-light h2 { color: var(--slide-heading, #2b3445); }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding-bottom: 4px; transform: translateY(-50%);
  background: rgba(0, 0, 0, .22); border-radius: 50%; color: var(--white); font-size: 28px; line-height: 1;
  transition: background .2s;
}
.hero-arrow:hover, .hero-arrow:focus-visible { background: rgba(0, 0, 0, .45); }
.hero-arrow.is-prev { left: 20px; }
.hero-arrow.is-next { right: 20px; }
.slide-copy { max-width: 400px; padding: 48px 0; }
.slide-copy h2 { font-size: 40px; margin-bottom: 12px; }
.slide-copy p { margin-bottom: 24px; font-size: 16px; }
.slide-cta { font-size: 18px; font-weight: 500; }
.slide-cta:hover { text-decoration: underline; }
.slide img { flex: none; width: auto; max-width: 494px; max-height: 330px; object-fit: contain; }
.slide-light img { margin-right: 60px; }

.app-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; min-width: 145px;
  background: var(--dark); color: var(--white); border-radius: 5px; line-height: 1.15;
}
.app-badge svg { width: 24px; height: 24px; flex: none; }
.app-badge small { display: block; font-size: 10px; color: rgba(255, 255, 255, .65); }
.app-badge strong { font-size: 14px; font-weight: 500; }
.app-badge:hover { background: var(--darker); }

/* Home sections */
.section-title { font-size: 28px; text-align: center; margin-bottom: 40px; }
.howto { display: grid; grid-template-columns: repeat(var(--howto-columns, 3), 1fr); background: var(--white); border-radius: var(--radius); margin-bottom: 96px; }
.howto-item { display: flex; align-items: center; gap: 24px; padding: 40px 28px 40px 28px; min-height: 240px; }
.howto-item + .howto-item { border-left: 1px solid var(--border); }
.howto-num { font-size: 64px; font-weight: 300; line-height: 1; color: var(--border); }
.howto-item img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.howto-item p { color: var(--heading); font-size: 16px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px 20px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 28px; }

.carousel-wrap { position: relative; margin-bottom: 48px; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 5); gap: 14px;
  padding: 24px 0 104px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: -72px; position: relative; }
.dots button { width: 7px; height: 7px; border-radius: 4px; background: #c5cbd3; transition: .2s; }
.dots button.is-active { width: 26px; background: var(--primary); }

/* Product card */
.product-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); transition: box-shadow .2s; }
.product-card:hover, .product-card:focus-within { z-index: 5; box-shadow: var(--shadow-lg); }
.product-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #eef1f5; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-stack { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge-sale, .badge-out, .badge-label { padding: 3px 9px; border-radius: 3px; font-size: 12px; background: var(--sale); color: var(--white); box-shadow: 0 2px 6px rgba(243, 71, 112, .4); }
.badge-label { background: var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-chip { display: inline-block; padding: 4px 12px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-size: 13px; }
.tag-chip:hover, .tag-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.badge-out { background: var(--muted); box-shadow: none; }
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12); opacity: 0; transition: .2s;
}
.wish-btn svg { width: 16px; height: 16px; }
.product-card:hover .wish-btn, .wish-btn:focus-visible, .wish-btn.is-on { opacity: 1; }
.wish-btn.is-on { color: var(--sale); }
.wish-btn.is-on svg { fill: currentColor; }
.product-body { padding: 14px 24px 16px; flex: 1; }
.product-cats { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.product-cats a:hover { color: var(--brand-red); }
.product-title { margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.product-title a:hover { color: var(--brand-red); }
.price { font-size: 16px; color: var(--primary); }
.price del { margin-left: 2px; font-size: 14px; color: var(--muted); }
.card-hover {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: -6px; padding: 8px 20px 14px; text-align: center;
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 16px -8px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.product-card:hover .card-hover, .product-card:focus-within .card-hover { opacity: 1; visibility: visible; }
.quick-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; }
.quick-link svg { width: 14px; height: 14px; }
.quick-link:hover { color: var(--brand-red); }
.plus-btn {
  position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--white); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: .2s;
}
.product-card:hover .plus-btn, .plus-btn:focus-visible { opacity: 1; }
@media (hover: none) {
  .card-hover { position: static; opacity: 1; visibility: visible; box-shadow: none; margin: 0; background: none; }
  .wish-btn, .plus-btn { opacity: 1; }
  .carousel { padding-bottom: 72px; }
}

/* Reviews */
.reviews { padding: 48px 24px 56px; background: var(--white); border-radius: var(--radius); text-align: center; }
.reviews .section-title { margin-bottom: 8px; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: 25%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 40px 0 72px; }
.review-track::-webkit-scrollbar { display: none; }
.review { padding: 0 24px; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; margin-bottom: 8px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }
.review p { flex: 1; margin-bottom: 26px; }
.author { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; }
.author img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; font-weight: 500; color: var(--heading); }
.author small { font-size: 14px; color: var(--muted); }
.reviews .dots { margin-top: -32px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); }
.footer-main { display: grid; grid-template-columns: 52% 25.6% 1fr; padding-block: 48px 40px; font-size: 14px; }
.footer-logo { width: 144px; max-height: 80px; margin-bottom: 14px; object-fit: contain; object-position: left center; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--white); }
.socials a:hover { background: rgba(255, 255, 255, .2); }
.socials svg { width: 16px; height: 16px; }
.footer-col h3 { margin-bottom: 14px; font-size: 16px; color: var(--white); }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-bottom { background: var(--darker); font-size: 12px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 34px; }
.footer-bottom nav { display: flex; gap: 24px; color: rgba(255, 255, 255, .8); }

/* Store notice */
.store-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: stretch; justify-content: space-between; background: var(--brand-red); color: var(--white); font-size: 16px; }
.store-notice p { padding: 12px 22px; }
.notice-dismiss { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 22px; background: rgba(0, 0, 0, .1); color: var(--white); text-decoration: underline; }
.notice-dismiss svg { width: 15px; height: 15px; }
body.has-notice .footer-bottom { padding-bottom: 50px; }

/* Breadcrumb / page head */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 8px 24px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--heading); }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb svg { width: 11px; height: 11px; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 32px; }

/* Shop */
.sort { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.sort a { padding: 8px 12px; color: var(--text); border-bottom: 2px solid transparent; }
.sort a.is-active { color: var(--primary); border-color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; font-size: 14px; }
.pagination a { min-width: 36px; padding: 6px 10px; border-radius: 4px; text-align: center; }
.pagination a:hover { background: var(--white); }
.pagination a.is-active { background: var(--primary); color: var(--white); }
.empty-state { padding: 64px 16px; text-align: center; background: var(--white); border-radius: var(--radius); }
.empty-state p { margin-bottom: 20px; }

/* Product */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 32px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-main { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: #eef1f5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; }
.thumbs button.is-active { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.summary h1 { margin-bottom: 12px; font-size: 28px; }
.summary .price { display: block; margin-bottom: 16px; font-size: 26px; }
.summary .price del { font-size: 18px; }
.summary-short { margin-bottom: 20px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.summary-meta { padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.summary-meta div { margin-bottom: 4px; }
.summary-meta a:hover { color: var(--brand-red); }
.stock-out { color: var(--sale); margin-bottom: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; color: var(--heading); }
.field em { color: var(--sale); font-style: normal; }
.input, select.input {
  width: 100%; padding: 10px 14px; background: var(--white); border: 1px solid #dae1e7; border-radius: 5px; font-size: 15px;
}
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 84, 200, .12); }
.qty { width: 84px; }
.tab-card { margin-top: 32px; padding: 32px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.tab-card h2 { margin-bottom: 16px; font-size: 20px; }
.pre-line { white-space: pre-line; }
.related { margin-top: 48px; }
.related h2 { margin-bottom: 24px; font-size: 24px; }

/* Cart & checkout */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.panel { padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 20px; font-size: 20px; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto auto; align-items: center; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 5px; }
.cart-row h3 { margin-bottom: 4px; font-size: 15px; }
.cart-row small { display: block; color: var(--muted); }
.link-danger { color: var(--sale); font-size: 13px; }
.link-danger:hover { text-decoration: underline; }
.total-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.total-row.grand { padding-top: 14px; margin: 14px 0 20px; border-top: 1px solid var(--border); font-size: 20px; color: var(--heading); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; cursor: pointer; }
.hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.success-mark { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e6f8f1; color: #1d9d6c; }
.success-mark svg { width: 32px; height: 32px; }
.order-card { padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; }
.order-card strong { color: var(--heading); font-weight: 500; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 28px; margin-bottom: 64px; align-items: start; }
.contact-card { padding: 28px 22px; background: var(--white); border: 1px solid #eef1f5; border-radius: var(--radius); text-align: center; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.contact-card > svg { width: 28px; height: 28px; margin: 0 auto 16px; display: block; color: var(--heading); }
.contact-card h3 { margin-bottom: 10px; font-size: 16px; }
.contact-card p { margin-bottom: 6px; }
.contact-card b { font-weight: 400; color: var(--heading); }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--heading); }
.map-link svg { width: 12px; height: 12px; }
.outlets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.outlet { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.outlet img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.outlet-body { padding: 22px; font-size: 14px; }
.outlet-body h3 { margin-bottom: 14px; font-size: 18px; }
.outlet-body h4 { margin-bottom: 2px; font-size: 14px; }
.outlet-body p { margin-bottom: 12px; color: var(--muted); }

/* About */
.about-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.about-img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.about-copy { align-self: center; padding: 48px; }
.about-copy h2 { margin-bottom: 24px; font-size: 28px; }
.about-copy p { white-space: pre-line; margin-bottom: 24px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.about-row.is-reversed .about-img { order: 2; }
.team-head { padding-top: 64px; text-align: center; }
.team-head h2 { margin-bottom: 8px; font-size: 28px; }
.team-head p { margin-bottom: 40px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.member { display: flex; align-items: center; gap: 20px; }
.member img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.member h3 { font-size: 16px; }
.member p { margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.member a { font-size: 13px; overflow-wrap: anywhere; }
.member a:hover { color: var(--brand-red); }

/* Account */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.remember { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.remember label { display: flex; align-items: center; gap: 8px; }
.pwd { position: relative; }
.pwd .input { padding-right: 44px; }
.pwd button { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); display: flex; }
.pwd svg { width: 18px; height: 18px; }

.coupon-row { display: flex; gap: 8px; margin: 0 !important; }
.coupon-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.checkout-sub { margin: 18px 0 10px; font-size: 15px; }

/* Blok Columns, Custom HTML, dan Shortcode */
.block-columns { display: grid; grid-template-columns: repeat(var(--block-columns, 2), minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.block-column { min-width: 0; }
.block-column .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.block-html, .block-shortcode { margin-bottom: 24px; overflow-wrap: anywhere; }
.block-html img { height: auto; max-height: 640px; object-fit: contain; }
.quick-grid img { max-height: 70vh; object-fit: contain; }
.block-html h1, .block-html h2, .block-html h3, .block-html h4 { margin-bottom: 12px; }
.block-html p, .block-html ul, .block-html ol, .block-html blockquote, .block-html pre { margin-bottom: 14px; }
.block-html ul { padding-left: 22px; list-style: disc; }
.block-html ol { padding-left: 22px; list-style: decimal; }
.block-html a:not(.btn) { color: var(--accent); text-decoration: underline; }
.block-html table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.block-html th, .block-html td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.block-html pre { padding: 12px; overflow-x: auto; background: #eef1f5; border-radius: 4px; white-space: pre-wrap; }
.product-grid.is-single { grid-template-columns: minmax(0, 280px); }
@media (max-width: 767px) {
  .block-columns { grid-template-columns: 1fr; }
}

/* Blok dasar */
.block-heading { margin-bottom: 20px; }
.block-h1 { font-size: 36px; }
.block-h2 { font-size: 28px; }
.block-h3 { font-size: 22px; }
.block-h4 { font-size: 18px; }
.block-paragraph, .block-button { margin-bottom: 24px; }
.block-image { display: block; max-height: 640px; object-fit: contain; border-radius: var(--radius); }
.block-space { margin-bottom: 48px; }
.block-placeholder { padding: 48px 16px; margin-bottom: 24px; text-align: center; background: #eef1f5; color: var(--muted); border-radius: var(--radius); }
/* Coming soon */
.coming-soon { padding: 96px 16px; text-align: center; }
.coming-soon h1 { margin-bottom: 24px; font: 400 40px/1.2 Georgia, 'Times New Roman', serif; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; background: rgba(0, 0, 0, .5); }
.modal-box { position: relative; width: 100%; max-width: 500px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-box.is-wide { max-width: 880px; padding: 32px; }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 26px; line-height: 1; color: var(--muted); }
.tabs { display: flex; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.tabs button { display: flex; align-items: center; gap: 8px; padding: 18px 2px 12px; border-bottom: 2px solid transparent; font-size: 15px; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button.is-active { border-color: var(--primary); color: var(--primary); }
.tab-pane { padding: 24px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quick-grid h2 { margin-bottom: 12px; font-size: 24px; padding-right: 24px; }
.quick-grid .price { display: block; margin-bottom: 14px; font-size: 22px; }

/* Search */
.search-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 20px 0; background: var(--white); box-shadow: var(--shadow-lg); }
.search-bar form { display: flex; gap: 12px; }

/* Mobile drawer */
.drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: min(320px, 86vw); overflow-y: auto; background: var(--white); }
.drawer ul { padding: 10px 0; }
.drawer a { display: block; padding: 11px 24px; border-bottom: 1px solid #f1f3f6; }
.drawer a.drawer-sub { padding-left: 44px; font-size: 14px; }

/* Versi footer */
.footer-center .footer-main { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 28px; }
.footer-center .footer-brand { grid-column: 1 / -1; }
.footer-center .footer-logo { margin-inline: auto; object-position: center; }
.footer-center .socials { justify-content: center; }
.footer-center .footer-bottom .container { justify-content: center; text-align: center; }

/* Versi header V2 (kiri) dan V3 (kanan, bisa disembunyikan) */
.panel-toggle { display: none; }
@media (min-width: 992px) {
  :root { --panel-width: 260px; }
  .header-v2 #header, .header-v3 #header { position: fixed; top: 0; bottom: 0; z-index: 40; width: var(--panel-width); }
  .header-v2 #header { left: 0; }
  .header-v3 #header { right: 0; }
  .header-v2 .site-header, .header-v3 .site-header { transition: transform .25s; }
  .header-v2 #page, .header-v2 #footer { transition: margin .25s; }
  .header-v2 #page, .header-v2 #footer { margin-left: var(--panel-width); }
  .header-v3 #page, .header-v3 #footer { margin-right: var(--panel-width); transition: margin .25s; }
  .header-v2 .site-header, .header-v3 .site-header { height: 100%; overflow-y: auto; overflow-x: hidden; }
  .header-v2 .header-row, .header-v3 .header-row { flex-direction: column; align-items: stretch; height: 100%; min-height: 480px; padding: 24px 16px 72px; }
  .header-v2 .logo, .header-v3 .logo { width: 170px; margin-bottom: 8px; }
  .header-v2 .logo img, .header-v3 .logo img { max-height: 110px; }
  .header-v2 .site-header nav, .header-v3 .site-header nav { flex: 1; }
  .header-v2 .main-nav, .header-v3 .main-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .header-v2 .nav-link, .header-v3 .nav-link { padding: 10px 12px; border-radius: 5px; }
  .header-v2 .nav-link:hover, .header-v3 .nav-link:hover, .header-v2 .nav-link.active, .header-v3 .nav-link.active { background: rgba(127, 127, 127, .12); }
  .header-v2 .sub-menu, .header-v3 .sub-menu { position: static; display: none; min-width: 0; padding: 2px 0 6px 12px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .header-v2 .has-sub:hover > .sub-menu, .header-v2 .has-sub:focus-within > .sub-menu, .header-v3 .has-sub:hover > .sub-menu, .header-v3 .has-sub:focus-within > .sub-menu { display: block; }
  .header-v2 .tools, .header-v3 .tools { justify-content: space-between; margin-left: 0; }
  .header-v2 .site-header, .header-v3 .site-header { overflow: visible; }
  .header-v2 .mini-cart, .header-v3 .mini-cart, .header-v2 .account-menu, .header-v3 .account-menu { top: auto; bottom: 100%; }
  .header-v2 .account-menu { right: auto; left: 0; }
  .header-v2 .mini-cart { right: auto; left: -180px; }
  .header-v2 .panel-toggle { left: calc(var(--panel-width) + 12px); transition: left .25s; }
  .header-v2.panel-hidden .site-header { transform: translateX(-100%); }
  .header-v2.panel-hidden #page, .header-v2.panel-hidden #footer { margin-left: 0; }
  .header-v2.panel-hidden .panel-toggle { left: 12px; }
  .header-v2 #header { pointer-events: none; }
  .header-v2 #header > * { pointer-events: auto; }
  .header-v3 .panel-toggle { right: calc(var(--panel-width) + 12px); }
  .header-v2 .panel-toggle, .header-v3 .panel-toggle { position: fixed; top: 14px; z-index: 41; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; color: var(--heading); box-shadow: var(--shadow); transition: right .25s; }
  .header-v2 .panel-toggle svg, .header-v3 .panel-toggle svg { width: 20px; height: 20px; }
  .header-v3.panel-hidden .site-header { transform: translateX(100%); }
  .header-v3.panel-hidden #page, .header-v3.panel-hidden #footer { margin-right: 0; }
  .header-v3.panel-hidden .panel-toggle { right: 12px; }
  .header-v3 #header { pointer-events: none; }
  .header-v3 #header > * { pointer-events: auto; }
}
/* Menu akun */
.account-wrap { position: relative; }
.account-menu {
  position: absolute; top: 100%; right: 0; z-index: 45; display: none; width: 200px; padding: 8px 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px;
}
.account-wrap.is-open .account-menu { display: block; }
@media (hover: hover) {
  .account-wrap.has-menu:hover .account-menu, .account-wrap.has-menu:focus-within .account-menu { display: block; }
}
.account-name { padding: 6px 16px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.account-name small { display: block; color: var(--muted); font-weight: 400; }
.account-menu a, .account-menu button { display: block; width: 100%; padding: 8px 16px; color: var(--text); text-align: left; }
.account-menu a:hover, .account-menu button:hover { background: var(--page); color: var(--primary); }


/* Login dan kelola akun */
.auth-panel { max-width: 520px; margin-inline: auto; }
.form-error { margin-bottom: 14px; padding: 10px 12px; background: #fdecf0; border-radius: 5px; color: #b81f43; font-size: 14px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.data-table th { color: var(--heading); font-weight: 500; white-space: nowrap; }
.data-table strong { color: var(--heading); font-weight: 500; }
.data-table small { color: var(--muted); }
.site-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.site-list strong { color: var(--heading); font-weight: 500; }
.site-list small { color: var(--muted); }
/* Toast */
.toast { position: fixed; top: 96px; right: 20px; z-index: 70; max-width: 340px; padding: 14px 18px; background: var(--darker); color: var(--white); border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .2s; }
.toast a { display: block; margin-top: 4px; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1199px) {
  .carousel { grid-auto-columns: calc((100% - 42px) / 4); }
  .slide { padding: 0 48px; }
  .slide img { max-width: 400px; }
  .slide-light img { margin-right: 20px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .review-track { grid-auto-columns: 33.333%; }
}
@media (max-width: 991px) {
  .header-row { height: 68px; gap: 12px; }
  .main-nav, .tool-search { display: none; }
  .menu-toggle { display: flex; }
  .slide.is-active { flex-direction: column; text-align: center; padding: 16px 52px 32px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 24px; }
  .hero-arrow.is-prev { left: 8px; }
  .hero-arrow.is-next { right: 8px; }
  .slide { justify-content: center; }
  .slide-copy { padding: 24px 0 8px; }
  .slide .app-badges { justify-content: center; }
  .slide img, .slide-light img { max-width: 100%; max-height: 300px; margin: 0; }
  .carousel { grid-auto-columns: calc((100% - 28px) / 3); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .howto { grid-template-columns: 1fr; }
  .howto-item { min-height: 0; }
  .howto-item + .howto-item { border-left: 0; border-top: 1px solid var(--border); }
  .howto { margin-bottom: 64px; }
  .product-layout, .two-col, .auth-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .about-row { grid-template-columns: 1fr; }
  .about-row.is-reversed .about-img { order: 0; }
  .team, .outlets { grid-template-columns: repeat(2, 1fr); }
  .review-track { grid-auto-columns: 50%; }
}
@media (max-width: 575px) {
  .logo { width: 112px; }
  .logo img { max-height: 48px; }
  .tools { gap: 2px; }
  .tool-wish { display: none; }
  .mini-cart { display: none; }
  .slide-copy h2 { font-size: 30px; }
  .section-title, .section-head h2 { font-size: 22px; }
  .section-head { padding-inline: 0; }
  .carousel { grid-auto-columns: calc((100% - 14px) / 2); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px 14px 14px; }
  .price { font-size: 15px; }
  .price del { display: block; margin: 0; font-size: 12px; }
  .card-hover { padding-inline: 12px; }
  .contact-grid, .team, .outlets, .quick-grid, .form-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 16px; }
  .review-track { grid-auto-columns: 100%; }
  .cart-row { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .cart-row img { width: 64px; height: 64px; }
  .cart-row .row-total { display: none; }
  .product-layout, .panel, .tab-card { padding: 18px; }
  .about-copy { padding: 28px 16px; }
  .store-notice { font-size: 13px; }
  .store-notice p { padding: 10px 14px; }
  .notice-dismiss { padding: 0 12px; }
  body.has-notice .footer-bottom { padding-bottom: 76px; }
  .toast { left: 16px; right: 16px; top: 80px; max-width: none; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .modal-box.is-wide { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Flash sale ---------- */
.badge-flash { font-weight: 500; }
.flash-left { display: block; margin-top: 4px; font-size: 13px; color: var(--text); font-weight: 500; }
.badge-flash { background: var(--flash); color: var(--flash-text); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.flash-clock { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.flash-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius); background: var(--flash); color: var(--flash-text); font-size: 14px; }
.flash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 18px; margin-bottom: 18px; border-radius: var(--radius); background: var(--flash); color: var(--flash-text); }
.flash-head h2 { margin: 0; font-size: 24px; color: inherit; }
.flash-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.flash-timer .flash-clock { padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .9); color: #111; font-size: 17px; }
/* Cara Belanja punya jarak bawah yang besar, jadi jaraknya disamakan dengan jarak di bawah Flash Sale. */
.block-type-icon-steps + .block-type-flash-sale .flash-block { margin-top: -48px; }
@media (max-width: 991px) { .block-type-icon-steps + .block-type-flash-sale .flash-block { margin-top: -16px; } }
/* Kartu Flash Sale selalu lebih kecil dari kartu carousel: tiap ukuran layar punya satu kolom lebih banyak. */
.flash-block .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.flash-block .product-body { padding: 10px 12px 12px; }
.flash-block .product-cats { font-size: 11px; }
.flash-block .product-title { margin-bottom: 6px; font-size: 13px; }
.flash-block .price { font-size: 14px; }
.flash-block .price del { display: block; margin-left: 0; font-size: 12px; }
.flash-block .flash-left { font-size: 12px; }
.flash-block .badge-stack { top: 8px; left: 8px; gap: 4px; }
.flash-block .badge-sale, .flash-block .badge-label { padding: 2px 7px; font-size: 11px; }
.block-column .flash-block .product-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 1199px) { .flash-block .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991px) { .flash-block .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .flash-block .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  /* Kartu HP sempit: tombol pindah ke baris bawah supaya tidak menimpa label dan harga. */
  .flash-block .product-body { padding: 8px 8px 42px; }
  .flash-block .product-cats, .flash-block .badge-label { display: none; }
  .flash-block .product-title { font-size: 12px; }
  .flash-block .price { font-size: 13px; }
  .flash-block .wish-btn, .flash-block .plus-btn { top: auto; bottom: 6px; transform: scale(.8); }
  .flash-block .wish-btn { left: 6px; right: auto; }
  .flash-block .plus-btn { right: 6px; left: auto; }
}