/* ===========================================
   Saran Electronics — Currys-стиль загвар
   =========================================== */

:root {
  --brand: #4C12A1;          /* үндсэн ягаан */
  --brand-dark: #3A0E7A;
  --brand-light: #6B2CC9;
  --accent: #00D4C7;         /* turquoise өргөлт */
  --warn: #FFD200;           /* шар (хямдрал) */
  --danger: #E2231A;
  --success: #00a86b;
  --text: #1B1B1B;
  --muted: #5C5C5C;
  --border: #E0E0E0;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F7;
  --bg-dark: #0A0A0A;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans Mongolian', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--bg-dark);
  color: #fff;
  font-size: 13px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.top-bar a { color: #fff; opacity: .85; margin-left: 18px; }
.top-bar a:hover { opacity: 1; text-decoration: none; }
.top-bar .left { display: flex; align-items: center; gap: 8px; }
.top-bar .badge {
  background: var(--accent);
  color: #001;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.logo:hover { opacity: .88; text-decoration: none; }

.search-form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  height: 44px;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 14px;
  color: var(--text);
}
.search-form button {
  background: var(--bg-dark);
  color: #fff;
  padding: 0 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-form button:hover { background: #222; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  text-decoration: none;
  position: relative;
}
.header-action:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.header-action .ico { font-size: 20px; line-height: 1; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--warn);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ============ MAIN NAV ============ */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 72px;
  z-index: 90;
}
.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 46px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted, #555);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: rgba(76,18,161,.04);
  text-decoration: none;
}
.nav-link.sale {
  color: #e2231a;
  font-weight: 700;
}
.nav-link.sale:hover { border-bottom-color: #e2231a; background: rgba(226,35,26,.04); }

/* ============ HERO CAROUSEL ============ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero h1 .accent { color: var(--warn); }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 24px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn);
  color: #000;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.hero-cta:hover { background: #FFE14D; text-decoration: none; }
.hero-visual {
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  font-size: 120px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* ============ SECTION TITLES ============ */
.section {
  padding: 32px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
}
.section-title small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.see-all {
  font-weight: 600;
  color: var(--brand);
}

/* ============ CATEGORY TILES ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-tile {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 12px;
  background-size: cover !important;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-tile .ico { font-size: 38px; margin-bottom: 8px; }
.cat-tile .name { font-weight: 600; font-size: 14px; }
.cat-tile[style*="background:linear"] { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  border-color: var(--brand);
}
.product-card .badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--warn);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}
.product-img {
  height: 180px;
  display: grid;
  place-items: center;
  font-size: 80px;
  background: var(--bg-soft);
  border-radius: 6px;
  margin-bottom: 12px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-decoration: none;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--brand); text-decoration: none; }
.product-rating {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.product-rating .stars { color: #FFA800; }
.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.product-price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 8px;
}
.product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-warn {
  background: var(--warn);
  color: #000;
}
.btn-warn:hover { background: #FFE14D; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============ PROMO BANNERS ============ */
.promo-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.promo-card {
  border-radius: var(--radius);
  padding: 28px;
  background-size: cover !important;
  background-position: center !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo-card.big { background: linear-gradient(135deg, #FF6B35, #F75590); min-height: 220px; }
.promo-card.alt-1 { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.promo-card.alt-2 { background: linear-gradient(135deg, #00B4DB, #0083B0); }
.promo-card h3 { font-size: 24px; margin-bottom: 8px; font-weight: 800; }
.promo-card p { opacity: .9; margin-bottom: 16px; }
.promo-card a {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}
.promo-card a:hover { text-decoration: none; }

/* ============ FILTERS (Products page) ============ */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.filters {
  background: var(--bg-soft);
  padding: 20px;
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 130px;
}
.filter-block { margin-bottom: 22px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 6px; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.filter-list input[type=checkbox] { accent-color: var(--brand); }
.filter-list input[type=radio] { accent-color: var(--brand); }
.price-range { width: 100%; accent-color: var(--brand); }
.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.products-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ============ SINGLE PRODUCT ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.product-gallery {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  place-items: center;
  font-size: 220px;
  min-height: 420px;
}
.product-info h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.product-info .brand-tag {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.detail-price {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0;
}
.detail-price .old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 400;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.qty-label { font-weight: 600; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  background: #fff;
}
.qty-control button:hover { background: var(--bg-soft); }
.qty-control input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
}

.specs {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.specs h3 { margin-bottom: 12px; font-size: 16px; }
.specs dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 8px;
  font-size: 14px;
}
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }

.benefits {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.benefit .ico { font-size: 22px; }

/* ============ CART ============ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 32px;
}
.cart-items {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 100px;
  height: 100px;
  background: var(--bg-soft);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 50px;
}
.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-info .meta { font-size: 13px; color: var(--muted); }
.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  min-width: 130px;
}
.cart-item-remove {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-summary {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 130px;
}
.cart-summary h3 { margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 2px solid var(--text);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 800;
}
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-cart .big { font-size: 80px; margin-bottom: 16px; }

.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--accent);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #ccc; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}
.payment-icons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  font-size: 24px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1B1B1B;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .25s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { background: #1A8754; }
.toast.error { background: var(--danger); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-row { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .search-form { grid-column: 1 / -1; order: 3; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-img { width: 60px; height: 60px; font-size: 30px; }
  .cart-item-price { grid-column: 2; text-align: left; }
}

/* ===== Wishlist heart button ===== */
.product-card { position: relative; }
.wish-btn {
  position: absolute; top: 10px; right: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; color: #ccc;
  transition: color .2s, border-color .2s, transform .15s;
  z-index: 2; line-height: 1;
}
.wish-btn:hover { color: #e53935; border-color: #e53935; transform: scale(1.12); }
.wish-btn.wishlisted { color: #e53935; border-color: #e53935; }

/* ===== Badge variants ===== */
.badge.brand   { background: rgba(76,18,161,.12);  color: var(--brand); }
.badge.success { background: rgba(0,168,107,.12);  color: #00a86b; }
.badge.info    { background: rgba(0,120,212,.12);  color: #0078d4; }
.badge.warn    { background: rgba(255,210,0,.2);   color: #b07d00; }
.badge.danger  { background: rgba(220,53,69,.12);  color: #dc3545; }
.badge.muted   { background: var(--bg-soft);       color: var(--muted); }

/* ===== Account page tabs ===== */
.acc-tab { display: block; padding: 14px 20px; font-size: 14px; font-weight: 600; cursor: pointer; border-left: 3px solid transparent; color: var(--text); transition: all .15s; user-select: none; }
.acc-tab:hover { background: var(--bg-soft); }
.acc-tab.active { border-left-color: var(--brand); color: var(--brand); background: rgba(76,18,161,.05); }

/* ===== Active nav link ===== */
.nav-link.active-nav {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: rgba(76,18,161,.06);
}

/* ===== Out-of-stock product card ===== */
.product-card.oos .product-img { opacity: 0.45; }
.product-card.oos .product-name { color: var(--muted); }

/* ===== Summary row flex display ===== */
.summary-row { display: flex; justify-content: space-between; }

/* ===== btn-sm ===== */
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ===== Gift badge on product card ===== */
.badge-gift {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #e91e63, #ff5722);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; z-index: 2;
  pointer-events: none;
}
/* Push down if discount badge already at top-left */
.product-card .badge-sale ~ .badge-gift { top: 34px; }

/* ===== Gift section on product detail page ===== */
.gift-section {
  background: linear-gradient(135deg, #fce4ec, #fff3e0);
  border: 1.5px dashed #e91e63;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
}
.gift-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #c2185b;
  display: flex; align-items: center; gap: 6px;
}
.gift-group { margin-bottom: 14px; }
.gift-group:last-child { margin-bottom: 0; }
.gift-group-label {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.gift-group-label .required-tag {
  background: #e91e63; color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
}
.gift-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.gift-option {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  user-select: none;
  position: relative;
}
.gift-option:hover { border-color: #e91e63; background: #fce4ec30; }
.gift-option.selected {
  border-color: #e91e63;
  background: linear-gradient(135deg, #fce4ec, #fff);
  box-shadow: 0 2px 8px #e91e6340;
  transform: scale(1.03);
}
.gift-option.selected::after {
  content: "✓";
  position: absolute; top: 4px; right: 6px;
  font-size: 12px; font-weight: 800; color: #e91e63;
}
.gift-option .gift-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.gift-option .gift-name { font-size: 11px; line-height: 1.3; color: var(--text); font-weight: 600; }
.gift-option .gift-price { font-size: 11px; color: var(--success); font-weight: 700; margin-top: 2px; }

/* ===== Gift items in cart ===== */
.cart-gift-list { margin-top: 6px; }
.cart-gift-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #c2185b;
  background: #fce4ec40; border-radius: 4px;
  padding: 3px 8px; margin-top: 3px;
}
.cart-gift-item .g-ico { font-size: 16px; }

/* ===== Admin gift editor ===== */
.gift-group-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  position: relative;
}
.gift-group-card .gift-group-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.gift-group-card .gift-group-head input[type=text] {
  flex: 1; font-size: 14px;
}
.gift-products-picker {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
  margin-top: 8px;
}
.gift-products-picker label {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px; font-size: 13px; cursor: pointer;
  border-radius: 4px; transition: background .1s;
}
.gift-products-picker label:hover { background: var(--bg-soft); }
.gift-group-options { display: flex; gap: 14px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.gift-group-options label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
