/* MICROMANS — Frontend stylesheet (no framework, pro look) */
:root {
  --brand: #0066cc;
  --brand-dark: #004f9c;
  --brand-soft: #e8f1fb;
  --ink: #1a1a1a;
  --muted: #5f6b7a;
  --line: #e6e9ee;
  --bg: #fff;
  --bg-soft: #f6f8fb;
  --success: #1f9d55;
  --danger: #c0392b;
  --warn: #b8860b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 4px 18px rgba(15, 23, 42, .08);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; color: var(--ink); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Language switcher */
.lang-switch { margin-left: 8px; }
.lang-switch > a { font-size: 13px; opacity: .75; }
.lang-switch > a:hover { opacity: 1; }

/* ----- Header (keytive-inspired clean minimal) ----- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}
.logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.logo img { height: 52px; width: auto; display: block; }
.logo strong { font-size: 24px; color: var(--ink); letter-spacing: -.5px; font-weight: 800; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav > ul > li { position: relative; }
.primary-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .1px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.primary-nav a.active { color: var(--brand); font-weight: 600; }
.primary-nav .caret { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Dropdown for "Category" item */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  padding: 10px 14px; border-radius: 6px; color: var(--ink);
  font-size: 14px; font-weight: 500; text-align: left;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); }
.dropdown a.active { color: var(--brand); background: var(--brand-soft); }

.header-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--ink); cursor: pointer;
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 4px; right: 2px;
  background: var(--brand); color: #fff;
  border-radius: 10px;
  min-width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.menu-toggle { display: none; }
.menu-toggle .ic-close { display: none; }
body.nav-open .menu-toggle .ic-open { display: none; }
body.nav-open .menu-toggle .ic-close { display: block; }

/* ----- Search drawer ----- */
.search-drawer {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
body.search-open .search-drawer { display: block; }
.search-form-big { display: flex; gap: 0; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.search-form-big input {
  flex: 1; padding: 13px 18px;
  border: 1px solid var(--line); border-right: 0;
  border-radius: 8px 0 0 8px; font-size: 15px; outline: none;
}
.search-form-big input:focus { border-color: var(--ink); }
.search-form-big button {
  padding: 13px 26px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 0 8px 8px 0;
  cursor: pointer; font-weight: 600; font-size: 14px;
  letter-spacing: .3px;
}

/* ----- Mobile overlay for nav ----- */
.nav-overlay {
  position: fixed; inset: 0;
  background: transparent;
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility .15s;
  z-index: 80;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* ----- Flash ----- */
.flash { padding: 12px 0; background: #e6f4ea; color: #0c5232; border-bottom: 1px solid #c8e6cf; }
.flash-error { background: #fde8e8; color: #7a1818; border-color: #fac8c8; }

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  padding: 16px 20px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.breadcrumbs span { margin: 0 6px; color: #c5cdd6; }

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(255,255,255,.15), transparent),
    linear-gradient(135deg, #0a1929 0%, var(--brand-dark) 50%, var(--brand) 100%);
  color: #fff;
  padding: 70px 0;
}
.hero-wrap {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center;
}
.hero-tag {
  display: inline-block; padding: 5px 12px; background: rgba(255,255,255,.15);
  border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 14px;
}
.hero h1 { font-size: 46px; margin: 0 0 14px; letter-spacing: -.5px; font-weight: 700; }
.hero .lead { font-size: 18px; opacity: .92; margin-bottom: 26px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { border-color: #fff; color: #fff; background: transparent; }
.hero .btn:hover { background: rgba(255,255,255,.12); }
.hero .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn-primary:hover { background: #f1f4f7; color: var(--brand-dark); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hs-item {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 18px 14px; border-radius: var(--radius); text-align: center;
  backdrop-filter: blur(6px);
}
.hs-item strong { display: block; font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.hs-item span { font-size: 13px; opacity: .9; }

/* ----- Trust bar ----- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 32px 20px;
}
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.trust-item .ti-svg {
  width: 28px; height: 28px; color: var(--brand);
  flex-shrink: 0;
}
.trust-item strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; letter-spacing: -.1px; }
.trust-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ----- Sections ----- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: 26px; margin-bottom: 8px; font-weight: 700; letter-spacing: -.3px; }
.section-sub { color: var(--muted); margin: 0 0 28px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head > div:first-child { flex: 1; min-width: 200px; }
.section-head .section-title { margin-bottom: 6px; }
.section-head .section-sub { margin: 0; font-size: 14px; }
.section-link { font-weight: 600; white-space: nowrap; }
.section-link:hover { text-decoration: none; color: var(--brand-dark); }
.page-title { font-size: 30px; margin: 0 0 8px; font-weight: 700; }
.page-sub { color: var(--muted); margin: 0 0 24px; }

/* ----- Buttons ----- */
.btn {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--brand);
  background: #fff; color: var(--brand); border-radius: 6px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .15s ease; font-size: 15px;
}
.btn:hover { background: var(--brand-soft); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ----- Pro Category grid (homepage) ----- */
.cat-grid-pro {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.cat-card-pro {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; color: var(--ink);
  transition: all .2s ease; display: flex; flex-direction: column; gap: 6px;
  align-items: center;
}
.cat-card-pro:hover {
  border-color: var(--brand); box-shadow: var(--shadow);
  transform: translateY(-3px); text-decoration: none;
}
.cc-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); border-radius: 50%;
  font-size: 26px; margin-bottom: 8px;
}
.cat-card-pro h3 { font-size: 17px; margin: 0; }
.cc-count { color: var(--muted); font-size: 14px; }
.cc-arrow { color: var(--brand); font-weight: 600; font-size: 14px; margin-top: 6px; }

/* ----- Product grid + card ----- */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: all .18s ease; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #d1dae6; transform: translateY(-2px); }
.pc-img-link { position: relative; display: block; margin-bottom: 12px; }
.pc-img-link img { height: 180px; object-fit: contain; margin: 0 auto; }
.pc-badge {
  position: absolute; top: 8px; padding: 3px 8px;
  font-size: 11px; font-weight: 700; border-radius: 4px; z-index: 2;
}
.pc-badge-sale { left: 8px; background: var(--danger); color: #fff; }
.pc-badge-featured { right: 8px; background: var(--warn); color: #fff; }
.pc-badge-oos { left: 8px; background: #5f6b7a; color: #fff; padding: 4px 10px; }
.product-card { position: relative; }
.product-card.is-oos { opacity: .75; }
.wish-btn-form { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.wish-btn { background: #fff; border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #9aa3ad; cursor: pointer; transition: all .15s ease; }
.wish-btn:hover { color: var(--danger); border-color: var(--danger); }
.wish-btn.wished { color: var(--danger); border-color: var(--danger); }
.wish-btn svg { width: 16px; height: 16px; }
.product-card.is-oos .pc-img-link img { filter: grayscale(.7); }
.oos-notice { margin: 18px 0; }
.oos-notice button { background: #eef2f7; color: #5f6b7a; border-color: #d3d8de; cursor: not-allowed; }
.oos-notice p { color: #5f6b7a; font-size: 14px; margin-top: 8px; }
.img-placeholder, .img-placeholder-lg {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: #aab2bd; border-radius: 6px;
}
.img-placeholder-lg { height: 360px; font-size: 18px; }
.product-card h3 { font-size: 14px; line-height: 1.4; min-height: 40px; margin: 0 0 10px; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--brand); }
.product-card .price { font-size: 18px; color: var(--brand); font-weight: 700; margin-bottom: 12px; margin-top: auto; }
.product-card del { color: #9aa3ad; font-size: 14px; margin-right: 6px; font-weight: 500; }
.add-to-cart-form { margin: 0; }
.add-to-cart-form button { width: 100%; }

/* ----- Shop layout (sidebar + content) ----- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.shop-content { min-width: 0; }
.shop-head { margin-bottom: 18px; }

.shop-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.sb-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.sb-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 12px; }
.sb-list { list-style: none; padding: 0; margin: 0; }
.sb-list li { margin-bottom: 2px; }
.sb-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; color: var(--ink); border-radius: 6px; font-size: 14px;
}
.sb-list a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.sb-list a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sb-count { background: #eef2f7; color: var(--muted); border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.sb-list a.active .sb-count { background: var(--brand); color: #fff; }
.sb-promo p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* ----- Shop toolbar ----- */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.shop-toolbar > span { color: var(--muted); font-size: 14px; }
.sort-form label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ----- Empty state ----- */
.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 50px 20px; text-align: center;
}
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 16px; }

/* ----- Pagination ----- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination .current {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); font-weight: 500;
}
.pagination a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ----- Product detail ----- */
.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.product-images { background: #fff; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.img-wrap { position: relative; }
.badge-sale, .badge-featured {
  position: absolute; top: 10px; padding: 4px 10px; font-weight: 700; font-size: 12px;
  border-radius: 4px; z-index: 2;
}
.badge-sale { left: 10px; background: var(--danger); color: #fff; }
.badge-featured { right: 10px; background: var(--warn); color: #fff; }
.product-detail .main-img { max-height: 420px; object-fit: contain; margin: 0 auto; }
.product-detail .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product-detail .thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.product-info .pi-cat {
  display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  background: var(--brand-soft); color: var(--brand); padding: 4px 10px; border-radius: 12px;
  margin-bottom: 12px; font-weight: 600;
}
.product-info h1 { font-size: 28px; margin: 0 0 14px; line-height: 1.3; }
.price-block { font-size: 30px; color: var(--brand); margin: 14px 0; font-weight: 700; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-block del { color: #9aa3ad; font-size: 20px; font-weight: 500; }
.save-tag { background: var(--danger); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 12px; font-weight: 700; }

.stock-line { margin: 8px 0 16px; }
.stock { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.stock.in { background: #e6f4ea; color: var(--success); }
.stock.out { background: #fde8e8; color: var(--danger); }
.stock.back { background: #fff3cd; color: var(--warn); }
.stock-dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; display: inline-block; }
.short { color: var(--muted); margin: 12px 0 18px; }

.add-to-cart-form-large { display: flex; gap: 10px; margin: 18px 0; align-items: center; }
.add-to-cart-form-large input[type=number] {
  width: 80px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px;
}

.product-trust { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.product-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.product-trust svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }

.tabs-card { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.description { font-size: 15px; line-height: 1.7; color: #333; }
.description img { border-radius: 6px; margin: 10px 0; }
.meta { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.tag-pill { display: inline-block; background: var(--bg-soft); padding: 3px 10px; border-radius: 12px; margin-right: 4px; font-size: 13px; color: var(--ink); }
.tag-pill:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* ----- Review form ----- */
.review-write { margin-top: 18px; }
.review-write summary { cursor: pointer; list-style: none; }
.review-write summary::-webkit-details-marker { display: none; }
.review-form { background: var(--bg-soft); padding: 22px; border-radius: var(--radius); margin-top: 14px; border: 1px solid var(--line); }
.review-form label { display: block; font-weight: 500; margin-bottom: 12px; }
.review-form input, .review-form textarea, .review-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-top: 5px; font-family: inherit; font-size: 15px; outline: none; }
.review-form input:focus, .review-form textarea:focus { border-color: var(--brand); }
.review-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .review-form .row { grid-template-columns: 1fr; } }

/* ----- Coupon form ----- */
.coupon-form { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.coupon-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; outline: none; }
.coupon-row input:focus { border-color: var(--brand); }

/* ----- Customer account ----- */
.account-wrap { max-width: 460px; margin: 0 auto; }
.account-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.account-form label { display: block; margin-bottom: 14px; font-weight: 500; }
.account-form input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; font-size: 15px; outline: none; }
.account-form input:focus { border-color: var(--brand); }
.account-form button { width: 100%; margin-top: 6px; }
.account-alt { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.account-dash { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 110px; text-align: center; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; margin: 0 auto 12px; }
.account-side strong { display: block; }
.account-side small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.account-nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.account-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.account-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.account-main h1 { font-size: 26px; margin: 0 0 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .account-dash { grid-template-columns: 1fr; } .account-side { position: static; } }

/* ----- Track order ----- */
.track-wrap { max-width: 760px; margin: 0 auto; }
.track-form { display: grid; grid-template-columns: 2fr 2fr auto; gap: 10px; }
.track-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; outline: none; }
.track-form input:focus { border-color: var(--brand); }
@media (max-width: 720px) { .track-form { grid-template-columns: 1fr; } }

/* ----- FAQ page ----- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 36px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.faq-item summary { padding: 18px 22px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 22px; color: var(--ink); line-height: 1.7; }
.faq-cta { background: var(--bg-soft); padding: 30px; border-radius: var(--radius); text-align: center; }
.faq-cta h3 { margin: 0 0 8px; }
.faq-cta p { color: var(--muted); margin: 0 0 16px; }

/* ----- Reviews ----- */
.reviews-summary { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.reviews-summary .stars { color: #f5a623; font-size: 18px; letter-spacing: 1px; }
.reviews-summary strong { color: var(--ink); font-size: 18px; }
.reviews-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-stars { color: #f5a623; font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.review-stars .star-off { color: #e6e9ee; }
.review-text { color: var(--ink); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.review-meta { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.review-meta strong { display: block; font-size: 14px; color: var(--ink); }
.review-meta small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.review-product { font-style: italic; }

/* ----- Blog ----- */
.blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 16px; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.blog-card h3 { font-size: 18px; margin: 0 0 6px; }
.blog-card .meta { font-size: 12px; color: var(--muted); border: 0; padding: 0; margin: 0; }

.post-detail .post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 16px 0; }
.post-content { font-size: 17px; line-height: 1.75; }
.post-content img { border-radius: 6px; margin: 14px 0; }
.post-tags a { background: var(--bg-soft); padding: 4px 12px; border-radius: 14px; margin-right: 6px; font-size: 14px; }

/* ----- Static page ----- */
.static-page .content { background: #fff; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ----- Thank-you page ----- */
.ty-wrap { max-width: 700px; text-align: center; }
.ty-icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: #e6f4ea; color: var(--success); display: flex; align-items: center; justify-content: center; }
.ty-icon svg { width: 36px; height: 36px; }
.ty-wrap h1 { font-size: 32px; margin: 0 0 10px; }
.ty-sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.ty-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; text-align: left; }
.ty-card h3 { margin: 0 0 12px; font-size: 18px; }
.status-pill { background: #fff3cd; color: #664d03; padding: 2px 10px; border-radius: 12px; font-size: 13px; }
.ty-keys { border-color: var(--success); background: #fafffb; }
.keys-list { list-style: none; padding: 0; margin: 14px 0 0; }
.keys-list li { background: #fff; padding: 18px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--line); text-align: left; }
.keys-list li > strong { display: block; font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.ty-block-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: 12px; margin-bottom: 4px; }
.ty-payload { margin: 0; padding: 10px 12px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; white-space: pre-wrap; color: var(--ink); }
.ty-download { display: inline-block; padding: 8px 14px; background: var(--brand-soft); color: var(--brand); border-radius: 6px; font-size: 14px; text-decoration: none; word-break: break-all; }
.ty-download:hover { background: var(--brand); color: #fff; text-decoration: none; }
.ty-instructions { color: var(--ink); font-size: 14px; line-height: 1.6; padding: 4px 0; }

/* ----- Cart ----- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-table thead { background: var(--bg-soft); }
.cart-table img { display: inline-block; vertical-align: middle; margin-right: 10px; border-radius: 4px; }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ----- Checkout ----- */
.checkout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.checkout-head .page-title { margin: 0; }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; background: #e6f4ea; color: var(--success); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }

.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; }
.block-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 18px; }
.block-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: 50%; font-size: 14px; font-weight: 700; }
.checkout-grid label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 14px; color: var(--ink); }
.checkout-grid input, .checkout-grid textarea {
  display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 6px; margin-top: 6px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
}
.checkout-grid input:focus, .checkout-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.checkout-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Payment method cards in checkout */
.pm-card-checkout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s ease;
  background: #fff;
}
.pm-card-checkout:hover { border-color: #b7c1cc; }
.pm-card-checkout:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pm-card-checkout input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pm-radio {
  width: 22px; height: 22px;
  border: 2px solid #c5cdd6;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.pm-card-checkout:has(input:checked) .pm-radio { border-color: var(--brand); }
.pm-card-checkout:has(input:checked) .pm-radio::after {
  content: '';
  width: 11px; height: 11px;
  background: var(--brand);
  border-radius: 50%;
}
.pm-card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: 8px;
  flex-shrink: 0;
}
.pm-card-icon svg { width: 24px; height: 24px; }
.pm-card-text { flex: 1; min-width: 0; }
.pm-card-text strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.pm-card-text small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pm-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.pm-badge-fast { background: #d4edda; color: #155724; }
.pm-badge-instant { background: #cfe2ff; color: #084298; }
@media (max-width: 540px) {
  .pm-card-checkout { gap: 12px; padding: 14px; }
  .pm-card-icon { width: 38px; height: 38px; }
}

/* Trust block */
.trust-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.trust-cell { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.trust-cell svg { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; }
.trust-cell strong { display: block; font-size: 14px; }
.trust-cell small { display: block; font-size: 12px; color: var(--muted); }
.accept-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; font-size: 13px; color: var(--muted); }
.accept-chip { background: #f6f8fb; color: var(--ink); padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }

.order-summary { background: #fff; padding: 26px; border-radius: var(--radius); position: sticky; top: 100px; border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(15,23,42,.04); }
.order-summary h3 { margin: 0 0 16px; font-size: 18px; }
.order-summary table { width: 100%; }
.order-summary td { padding: 7px 0; font-size: 14px; }
.order-summary td:last-child { text-align: right; }
.order-summary .total td { padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; }
.os-secure { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.os-secure a { color: var(--muted); text-decoration: underline; }

@media (max-width: 760px) {
  .checkout-grid .row2 { grid-template-columns: 1fr; }
  .pm-card-checkout { grid-template-columns: auto 36px 1fr; }
  .pm-card-checkout .pm-badge { grid-column: 2 / -1; justify-self: start; }
  .trust-row { grid-template-columns: 1fr; }
}

/* ----- Contact ----- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.contact-info .page-sub { margin-bottom: 24px; }
.info-card { background: #fff; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.info-card strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.info-card a { font-size: 15px; color: var(--ink); font-weight: 500; }
.info-card a:hover { color: var(--brand); }
.contact-form { background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form label { display: block; margin-bottom: 16px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; font-family: inherit; font-size: 15px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-error { background: #fde8e8; color: #7a1818; border: 1px solid #fac8c8; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 22px; }
.search-form input { flex: 1; padding: 11px; border: 1px solid var(--line); border-radius: 6px; }

/* ----- Newsletter band ----- */
.newsletter-band { background: linear-gradient(135deg, var(--bg-soft), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.newsletter-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.nl-text { flex: 1; min-width: 260px; }
.nl-text h3 { font-size: 22px; margin: 0 0 6px; }
.nl-text p { color: var(--muted); margin: 0; }
.newsletter-form { display: flex; gap: 0; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; outline: none; font-size: 14px; }
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form button { border-radius: 0 6px 6px 0; padding: 13px 24px; }
.nl-flash { width: 100%; background: #e6f4ea; color: #0c5232; padding: 10px 14px; border-radius: 6px; font-size: 14px; }

/* ----- Footer ----- */
.site-footer { background: #0a1929; color: #cdd5e0; margin-top: 60px; padding-top: 50px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.site-footer a { color: #cdd5e0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .fb-mark {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 102, 204, .35);
}
.footer-brand .fb-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.4px;
}
.footer-bottom { background: #050d16; padding: 18px 0; margin-top: 20px; border-top: 1px solid #1a2840; text-align: center; }
.footer-bottom small { color: #7e8a99; display: block; }
.socials a { display: inline-block; margin-right: 8px; padding: 6px 12px; background: #1a2840; border-radius: 6px; font-size: 13px; }
.socials a:hover { background: var(--brand); }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .hero-wrap { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sb-card { flex: 1; min-width: 240px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav: slide-in drawer from LEFT (hamburger on left) */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .header-row { gap: 8px; }
  .logo { flex: 1; }
  .primary-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 86%; max-width: 340px;
    background: #fff;
    padding: 72px 16px 24px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 90;
    box-shadow: 8px 0 30px rgba(0,0,0,.1);
    overflow-y: auto;
    justify-content: flex-start;
    flex: none;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; width: 100%; gap: 4px; align-items: stretch; }
  .primary-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .primary-nav .caret { display: none; }
  /* Inline expand "Category" dropdown on mobile */
  .has-dropdown .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 16px;
    background: transparent;
    margin-top: 4px;
  }
  .has-dropdown .dropdown a {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--muted);
  }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .product-trust { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-row { gap: 8px; padding: 14px 16px; }
  .logo strong { font-size: 20px; }
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .nl-text { min-width: auto; }
}
