/* NabilRacing — Global CSS */
:root {
  --bg-base: #0f0f0f;
  --bg-surface: #181818;
  --bg-card: #1f1f1f;
  --bg-hover: #272727;
  --accent: #e8390e;
  --accent-dim: rgba(232,57,14,0.12);
  --accent-hover: #ff4d22;
  --gold: #f5a623;
  --text-primary: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #555;
  --border: #2a2a2a;
  --border-light: #333;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-display: 'Barlow', sans-serif;
  --font-body: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-base); color: var(--text-primary); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ── TOPBAR ── */
.topbar { background: var(--accent); text-align: center; padding: 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }

/* ── HEADER ── */
.header { background: var(--bg-surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 64px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; line-height: 1; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo em { font-style: italic; font-size: 10px; font-weight: 400; color: var(--text-secondary); display: block; letter-spacing: 1.5px; font-family: var(--font-body); margin-top: 2px; }
.search-wrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.search-wrap input { width: 100%; height: 40px; background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: 0 48px 0 16px; color: var(--text-primary); font-family: var(--font-body); font-size: 13px; outline: none; transition: border-color 0.2s; }
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus { border-color: var(--accent); }
.search-btn { position: absolute; right: 0; top: 0; height: 40px; width: 44px; background: var(--accent); border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; color: #fff; font-size: 16px; }
.search-btn:hover { background: var(--accent-hover); }
.header-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; font-size: 10px; color: var(--text-secondary); border: none; background: none; }
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon .icon { font-size: 20px; }
.btn-cart { background: var(--accent); color: #fff; border-radius: var(--radius-sm); padding: 8px 16px; font-weight: 600; font-size: 13px; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.2s; font-family: var(--font-body); }
.btn-cart:hover { background: var(--accent-hover); }

/* ── NAV ── */
.nav { background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item { padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
.nav-item:hover, .nav-item.active { color: var(--text-primary); border-bottom-color: var(--accent); }

/* ── WRAPPER ── */
.wrapper { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background 0.2s, transform 0.1s; font-family: var(--font-body); display: inline-block; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-primary); font-weight: 600; font-size: 14px; padding: 11px 24px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-light); cursor: pointer; transition: border-color 0.2s; font-family: var(--font-body); display: inline-block; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-accent { background: transparent; color: var(--accent); font-weight: 600; font-size: 13px; padding: 9px 20px; border-radius: var(--radius-sm); border: 1.5px solid var(--accent); cursor: pointer; transition: all 0.2s; font-family: var(--font-body); display: inline-block; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ── SECTION HEADING ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.sec-title span { color: var(--accent); }
.sec-link { font-size: 12px; color: var(--accent); font-weight: 600; cursor: pointer; }
.sec-link:hover { text-decoration: underline; }

/* ── PRODUCT CARD ── */
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all 0.22s; position: relative; }
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(232,57,14,0.12); }
.product-img { aspect-ratio: 1; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 56px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.badge-discount { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.badge-new { position: absolute; top: 8px; left: 8px; background: #0a7a0a; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.badge-hot { position: absolute; top: 8px; left: 8px; background: var(--gold); color: #000; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.wishlist-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: none; cursor: pointer; transition: background 0.2s; backdrop-filter: blur(4px); }
.wishlist-btn:hover { background: var(--accent); }
.product-info { padding: 12px; }
.product-name { font-size: 12px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.product-original { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 6px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.stars { font-size: 10px; color: var(--gold); letter-spacing: -1px; }
.sold-count { font-size: 10px; color: var(--text-muted); }
.stock-bar { margin-top: 8px; background: var(--bg-hover); border-radius: 4px; height: 4px; overflow: hidden; }
.stock-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; }
.stock-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ── PRODUCTS GRID ── */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* ── TRUST STRIP ── */
.trust-strip { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.trust-item:not(:last-child) { border-right: 1px solid var(--border); }
.trust-icon { font-size: 28px; flex-shrink: 0; }
.trust-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.trust-sub { font-size: 11px; color: var(--text-secondary); }

/* ── PAGE HEADER ── */
.page-header { padding: 28px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.page-header h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.page-header h1 span { color: var(--accent); }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-control { width: 100%; height: 44px; background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: 0 16px; color: var(--text-primary); font-family: var(--font-body); font-size: 13px; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { height: auto; padding: 12px 16px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── CARD GENERIC ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }

/* ── ALERT ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: rgba(10,122,10,0.15); border: 1px solid #0a7a0a; color: #4caf50; }
.alert-error { background: rgba(232,57,14,0.1); border: 1px solid var(--accent); color: var(--accent); }
.alert-warning { background: rgba(245,166,35,0.1); border: 1px solid var(--gold); color: var(--gold); }
.alert-info { background: rgba(30,100,200,0.1); border: 1px solid #1e64c8; color: #7bb8e8; }

/* ── BADGE STATUS ── */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending { background: rgba(245,166,35,0.15); color: var(--gold); }
.status-paid { background: rgba(10,122,10,0.15); color: #4caf50; }
.status-packed { background: rgba(30,100,200,0.15); color: #7bb8e8; }
.status-shipped { background: rgba(100,50,200,0.15); color: #b07ef8; }
.status-done { background: rgba(10,122,10,0.2); color: #4caf50; }
.status-cancelled { background: rgba(232,57,14,0.1); color: var(--accent); }
.status-expired { background: rgba(100,100,100,0.2); color: var(--text-muted); }

/* ── FLASH COUNTDOWN ── */
.flash-header { background: linear-gradient(90deg, #1a0500, var(--bg-card)); border: 1px solid #3a0d00; border-radius: var(--radius-md); padding: 14px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.flash-icon { font-size: 24px; }
.flash-label { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.flash-end { font-size: 12px; color: var(--text-secondary); }
.countdown { display: flex; gap: 6px; margin-left: auto; }
.cd-block { background: var(--accent); color: #fff; border-radius: 6px; padding: 4px 10px; font-family: var(--font-display); font-size: 20px; font-weight: 800; min-width: 44px; text-align: center; line-height: 1.2; }
.cd-block span { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 500; opacity: 0.8; }
.cd-sep { color: var(--accent); font-weight: 800; font-size: 20px; align-self: center; }

/* ── FOOTER ── */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); margin-top: 48px; padding: 40px 0 20px; }
.footer-grid { max-width: 1280px; margin: 0 auto 32px; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-top: 10px; max-width: 280px; }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-btn { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; cursor: pointer; transition: color 0.2s; }
.footer-col li:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 16px 20px 0; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-chip { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 10px; font-weight: 700; color: var(--text-muted); }

/* ── FLOAT WA ── */
.float-wa { position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 200; transition: transform 0.2s; }
.float-wa:hover { transform: scale(1.1); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── SIDEBAR FILTER ── */
.filter-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.filter-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.filter-option input[type=checkbox], .filter-option input[type=radio] { accent-color: var(--accent); }
.filter-option label { font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; height: 36px; background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 0 10px; color: var(--text-primary); font-size: 12px; outline: none; }
.price-range input:focus { border-color: var(--accent); }
.price-range span { color: var(--text-muted); font-size: 12px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── POPUP / MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.modal-close { width: 32px; height: 32px; background: var(--bg-hover); border: none; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text-secondary); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }

/* ── TABS ── */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab-item:hover { color: var(--text-primary); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── OTP INPUT ── */
.otp-group { display: flex; gap: 10px; justify-content: center; }
.otp-input { width: 52px; height: 56px; background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius-sm); text-align: center; font-size: 22px; font-weight: 700; color: var(--text-primary); outline: none; font-family: var(--font-display); }
.otp-input:focus { border-color: var(--accent); }

/* ── STAR RATING ── */
.star-rating { display: flex; gap: 4px; }
.star-rating span { font-size: 24px; cursor: pointer; color: var(--text-muted); transition: color 0.1s; }
.star-rating span:hover, .star-rating span.active { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr; height: auto; padding: 12px 16px; gap: 12px; }
  .header-actions { display: none; }
  .logo { font-size: 19px; }
  .search-wrap { max-width: 100%; }
  .wrapper { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-strip { grid-template-columns: 1fr 1fr; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sec-title { font-size: 16px; }
  .float-wa { bottom: 16px; right: 16px; width: 46px; height: 46px; font-size: 22px; }
}
@media (max-width: 420px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { flex-wrap: wrap; }
}

/* ── KATALOG LIVE (API-SHOP) ── */
a.product-card { display: block; }
.product-img img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.badge-soldout { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.75); color: var(--text-secondary); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--border-light); }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-bottom: 40px; }
.catalog-layout .products-grid { grid-template-columns: repeat(4, 1fr); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-option a { font-size: 13px; color: var(--text-secondary); }
.filter-option a.active, .filter-option a:hover { color: var(--accent); font-weight: 600; }
.filter-option .count { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.pagination a.page-btn { color: inherit; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 40px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.pd-main-img { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 96px; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pd-thumbs button { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); aspect-ratio: 1; overflow: hidden; cursor: pointer; padding: 0; }
.pd-thumbs button.active { border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.chip { padding: 8px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; cursor: pointer; font-family: var(--font-body); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; }
.qty-box button { width: 36px; height: 36px; background: var(--bg-hover); border: none; color: var(--text-primary); font-size: 16px; cursor: pointer; }
.qty-box input { width: 52px; height: 36px; text-align: center; background: var(--bg-card); border: none; color: var(--text-primary); font-size: 14px; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-primary:disabled, .btn-primary.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pd-desc { color: var(--text-secondary); line-height: 1.8; font-size: 14px; white-space: pre-line; }
.cart-row { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 72px; height: 72px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; gap: 10px; }
.sum-row span:first-child { color: var(--text-secondary); }
.sum-total { border-top: 1px solid var(--border); padding-top: 14px; display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.sum-total span:last-child { color: var(--accent); font-family: var(--font-display); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); }
.opt input { accent-color: var(--accent); }
.opt img { width: 44px; height: 22px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-group { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin: 10px 0 2px; }
.area-wrap { position: relative; }
.area-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; display: none; }
.area-list button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text-primary); font-size: 13px; cursor: pointer; font-family: var(--font-body); }
.area-list button:hover { background: var(--bg-hover); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.muted { color: var(--text-muted); font-size: 12px; }
.pay-code { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: 1px; word-break: break-all; }
.qr-box { background: #fff; padding: 12px; border-radius: var(--radius-sm); display: inline-block; }
.qr-box img, .qr-box canvas { display: block; width: 220px; height: 220px; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: flex; gap: 14px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); flex-shrink: 0; margin-top: 4px; }
.tl-item:first-child .tl-dot { background: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--accent); color: var(--text-primary); padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13px; z-index: 600; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
@media (max-width: 1024px) {
  .catalog-layout .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .catalog-layout, .two-col, .pd-grid { grid-template-columns: 1fr; }
  .catalog-layout .products-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cart-row { flex-wrap: wrap; }
}
