/*
Theme Name: BOBO
Theme URI: https://boboshop.online
Description: BOBO — ბავშვთა ტანსაცმლის ბოუტიკის custom თემა. ხელით აწყობილი დიზაინი WooCommerce-ის სრული მხარდაჭერით.
Author: Levan / BOBO
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
WC requires at least: 7.0
Text Domain: bobo
*/

/* ─── LAYOUT: sticky nav, 3-col category hero, sidebar-filter product grid, cart drawer ─── */
:root {
  --bg: #FFFFFF;
  --bg2: #F8F9FA;
  --fg: #1A1A2E;
  --fg2: #5C6A7A;
  --accent: #3B82F6;
  --accent2: #93C5FD;
  --sage: #60A5FA;
  --navy: #1E3A5F;
  --border: #DBEAFE;
  --card: #FFFFFF;
  --shadow: 0 2px 12px rgba(28,28,28,.08);
  --r: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --bg2: #1E293B; --fg: #E2E8F0; --fg2: #94A3B8;
    --border: #1E40AF; --card: #1E293B; --shadow: 0 2px 12px rgba(0,0,0,.4);
    --accent: #60A5FA; --accent2: #93C5FD; --navy: #BFDBFE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --bg2: #1E293B; --fg: #E2E8F0; --fg2: #94A3B8;
  --border: #1E40AF; --card: #1E293B; --shadow: 0 2px 12px rgba(0,0,0,.4);
  --accent: #60A5FA; --accent2: #93C5FD; --navy: #BFDBFE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--navy);
}
:root[data-theme="dark"] .nav-logo,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-logo { color: var(--fg); } }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* ─── REGISTER / USER ─── */
.reg-btn {
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent); border-radius: 50px; padding: 6px 16px;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  display: flex; align-items: center; gap: 6px; transition: all .2s;
  white-space: nowrap;
}
.reg-btn:hover { background: var(--accent); color: #fff; }
.user-pill {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 14px 5px 10px; font-size: .78rem;
  transition: background .2s;
}
.user-pill:hover { background: var(--border); }
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
/* ─── REGISTRATION MODAL ─── */
.reg-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.reg-overlay.hidden { display: none; }
.reg-box {
  background: var(--bg); border-radius: 16px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.reg-header {
  padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: center;
}
.reg-header h2 { font-family: var(--font-display); font-size: 1.5rem; }
.reg-close { font-size: 1.4rem; color: var(--fg2); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s; }
.reg-close:hover { background: var(--bg2); }
.reg-body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.reg-field { display: flex; flex-direction: column; gap: 5px; }
.reg-field label { font-size: .78rem; font-weight: 600; color: var(--fg2); }
.reg-field input, .reg-field select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: .9rem; background: var(--bg);
  color: var(--fg); transition: border-color .2s; width: 100%;
}
.reg-field input:focus, .reg-field select:focus {
  outline: none; border-color: var(--accent);
}
.reg-submit {
  background: var(--accent); color: #fff; border-radius: 10px;
  padding: 13px; font-size: .9rem; font-weight: 600; width: 100%;
  letter-spacing: .04em; margin-top: 6px; transition: opacity .2s;
}
.reg-submit:hover { opacity: .88; }
.reg-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 0 28px; }
.reg-tab {
  padding: 10px 20px; font-size: .85rem; font-weight: 600; color: var(--fg2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; transition: all .15s;
}
.reg-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.reg-panel { display: none; }
.reg-panel.active { display: flex; flex-direction: column; gap: 14px; }
.reg-note { font-size: .75rem; color: var(--fg2); text-align: center; }
.reg-link { color: var(--accent); cursor: pointer; text-decoration: underline; }
/* user dropdown */
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); min-width: 180px;
  overflow: hidden; z-index: 250;
}
.user-menu-item {
  padding: 11px 18px; font-size: .85rem; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; gap: 8px;
}
.user-menu-item:hover { background: var(--bg2); }
.user-menu-item.danger { color: #EF4444; }
.user-wrap { position: relative; }

.cart-btn {
  position: relative; background: var(--navy); color: #fff;
  border-radius: 50px; padding: 7px 18px; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.cart-btn:hover { background: var(--accent); }
.cart-count {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: .3s; }

/* ─── ANNOUNCEMENT ─── */
.announce {
  background: var(--navy); color: #fff; text-align: center;
  padding: 9px 16px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}

/* ─── HERO CATEGORIES ─── */
.hero-cats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 520px;
}
.hero-cat {
  position: relative; overflow: hidden; cursor: pointer;
  transition: flex .4s ease;
}
.hero-cat:hover { flex: 1.2; }
.hero-cat-bg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; will-change: transform;
}
.hero-cat:hover .hero-cat-bg { transform: scale(1.05); }
.hero-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,45,64,.72) 0%, rgba(30,45,64,.15) 60%, transparent 100%);
}
.hero-cat-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px;
}
.hero-cat-label small {
  display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 6px;
}
.hero-cat-label h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: #fff; text-wrap: balance; line-height: 1.2;
}
.hero-cat-label .arrow {
  display: inline-block; margin-top: 10px; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
}

/* ─── SECTIONS ─── */
.section { padding: 60px 24px; }
.section-header { margin-bottom: 36px; }
.section-header .eyebrow {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 8px;
}
.section-header h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  text-wrap: balance; line-height: 1.25;
}
.section-header p { color: var(--fg2); margin-top: 8px; max-width: 480px; }

/* ─── SHOP PAGE ─── */
.shop-page { display: none; }
.shop-page.active { display: block; }

.shop-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  padding: 32px 24px; max-width: 1280px; margin: 0 auto;
  align-items: start;
}

/* ─── FILTERS ─── */
.filter-panel {
  position: sticky; top: calc(60px + env(safe-area-inset-top,0px) + 16px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  box-shadow: var(--shadow);
}
.filter-title {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg2); font-weight: 600; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-clear { font-size: .72rem; color: var(--accent); cursor: pointer; text-transform: none; letter-spacing: 0; }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.filter-opts { display: flex; flex-direction: column; gap: 6px; }
.filter-chip {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .8rem; color: var(--fg2); padding: 5px 8px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.filter-chip:hover { background: var(--bg2); color: var(--fg); }
.filter-chip.selected { background: var(--accent); color: #fff; }
.filter-chip .dot {
  width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.filter-chip.selected .dot { background: rgba(255,255,255,.3); border-color: transparent; }
.filter-chip.selected .dot::after { content: '✓'; font-size: .6rem; color: #fff; }

.sort-row {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.sort-btn {
  font-size: .75rem; font-weight: 500; padding: 6px 14px;
  border-radius: 50px; border: 1.5px solid var(--border);
  color: var(--fg2); transition: .2s; white-space: nowrap;
}
.sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.product-card {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(28,28,28,.12); }
.product-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 50px;
}
.product-badge.new { background: var(--sage); }
.product-info { padding: 14px; }
.product-name { font-weight: 600; font-size: .88rem; line-height: 1.3; margin-bottom: 4px; }
.product-meta { font-size: .75rem; color: var(--fg2); margin-bottom: 8px; }
.product-price { font-size: .95rem; font-weight: 700; color: var(--fg); }
.product-price .old { text-decoration: line-through; color: var(--fg2); font-weight: 400; font-size: .8rem; margin-right: 6px; }
.product-price .sale { color: var(--accent); }

/* ─── PRODUCT DETAIL ─── */
.product-detail { display: none; }
.product-detail.active { display: block; padding: 32px 24px; max-width: 1100px; margin: 0 auto; }
.pd-back { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--fg2); margin-bottom: 24px; cursor: pointer; }
.pd-back:hover { color: var(--accent); }
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: 80px; }
.pd-main-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: var(--bg2); }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumb {
  width: 64px; aspect-ratio: 1; border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color .2s;
  background: var(--bg2);
}
.pd-thumb.active { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { display: flex; flex-direction: column; gap: 20px; }
.pd-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.pd-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; }
.pd-price { font-size: 1.5rem; font-weight: 700; }
.pd-old { text-decoration: line-through; color: var(--fg2); font-size: 1rem; }
.pd-sale-badge { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }

.pd-section-title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-bottom: 10px; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  padding: 7px 16px; border-radius: 7px; border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--fg2); transition: .2s;
}
.size-btn:hover { border-color: var(--navy); color: var(--fg); }
.size-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.size-btn.oos { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 38px; height: 38px; font-size: 1.1rem; color: var(--fg); transition: background .15s; }
.qty-btn:hover { background: var(--bg2); }
.qty-num { width: 44px; text-align: center; font-weight: 600; font-size: .9rem; }

.add-btn {
  flex: 1; background: var(--navy); color: #fff; border-radius: 10px;
  padding: 14px; font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; transition: background .2s;
}
.add-btn:hover { background: var(--accent); }
.buy-btn {
  width: 100%; background: var(--accent); color: #fff; border-radius: 10px;
  padding: 14px; font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; transition: opacity .2s;
}
.buy-btn:hover { opacity: .88; }

.pd-desc { font-size: .88rem; color: var(--fg2); line-height: 1.7; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag {
  font-size: .72rem; padding: 4px 12px; border-radius: 50px;
  background: var(--bg2); color: var(--fg2); border: 1px solid var(--border);
}

/* ─── CART DRAWER ─── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--bg); z-index: 201; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h3 { font-family: var(--font-display); font-size: 1.2rem; }
.cart-close { font-size: 1.4rem; color: var(--fg2); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s; }
.cart-close:hover { background: var(--bg2); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.cart-item-img { width: 68px; aspect-ratio: 3/4; border-radius: 7px; overflow: hidden; background: var(--bg2); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .85rem; line-height: 1.3; }
.cart-item-meta { font-size: .75rem; color: var(--fg2); margin-top: 4px; }
.cart-item-price { font-weight: 700; margin-top: 6px; font-size: .9rem; }
.cart-item-remove { font-size: .75rem; color: var(--fg2); margin-top: 4px; cursor: pointer; }
.cart-item-remove:hover { color: var(--accent); }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.checkout-btn {
  width: 100%; background: var(--accent); color: #fff; border-radius: 10px;
  padding: 14px; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; transition: opacity .2s;
}
.checkout-btn:hover { opacity: .88; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--fg2); }
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ─── CHECKOUT ─── */
.checkout-page { display: none; }
.checkout-page.active { display: block; padding: 32px 24px; max-width: 960px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.checkout-form { display: flex; flex-direction: column; gap: 24px; }
.form-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.form-section h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--fg); font-family: inherit; font-size: .88rem;
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }

.delivery-opts { display: flex; flex-direction: column; gap: 10px; }
.delivery-opt {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: .2s;
}
.delivery-opt:hover { border-color: var(--navy); }
.delivery-opt.selected { border-color: var(--navy); background: var(--bg2); }
.delivery-opt input[type=radio] { accent-color: var(--navy); width: 16px; height: 16px; }
.delivery-opt-info { flex: 1; }
.delivery-opt-name { font-weight: 600; font-size: .88rem; }
.delivery-opt-desc { font-size: .78rem; color: var(--fg2); margin-top: 2px; }
.delivery-price { font-weight: 700; font-size: .9rem; }

.order-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; position: sticky; top: 80px; }
.order-summary h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 18px; }
.order-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.order-item { display: flex; gap: 12px; }
.order-item-img { width: 54px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--bg2); flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { font-size: .82rem; font-weight: 600; }
.order-item-meta { font-size: .72rem; color: var(--fg2); margin-top: 3px; }
.order-item-price { font-size: .82rem; font-weight: 700; margin-top: 3px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 8px; }
.summary-row.total { font-weight: 700; font-size: 1rem; margin-top: 8px; }
.place-order-btn {
  width: 100%; background: var(--accent); color: #fff; border-radius: 10px;
  padding: 15px; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; transition: opacity .2s; margin-top: 16px;
}
.place-order-btn:hover { opacity: .88; }
.secure-note { text-align: center; font-size: .72rem; color: var(--fg2); margin-top: 10px; }

/* ─── SUCCESS ─── */
.success-page { display: none; }
.success-page.active {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; padding: 48px 24px; text-align: center;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-page h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.success-page p { color: var(--fg2); max-width: 400px; margin-bottom: 28px; }
.back-home-btn {
  display: inline-block; background: var(--navy); color: #fff;
  border-radius: 50px; padding: 12px 32px; font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ─── HOME PAGE ─── */
.home-page { display: block; }
.home-page.hidden { display: none; }

.new-arrivals { background: var(--bg); padding: 60px 24px; }
.products-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; max-width: 1280px; margin: 0 auto; }

.promo-banner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 360px; margin: 0;
}
.promo-side { display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; position: relative; overflow: hidden; }
.promo-side .promo-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.promo-side .promo-overlay { position: absolute; inset: 0; background: rgba(30,45,64,.55); }
.promo-side .promo-content { position: relative; color: #fff; }
.promo-side .promo-content h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.promo-side .promo-content p { font-size: .85rem; opacity: .8; margin-bottom: 16px; }
.promo-link { display: inline-block; border: 1.5px solid rgba(255,255,255,.7); color: #fff; border-radius: 50px; padding: 8px 22px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background .2s; }
.promo-link:hover { background: rgba(255,255,255,.2); }

/* ─── RESULTS INFO ─── */
.results-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.results-count { font-size: .82rem; color: var(--fg2); }
.no-results { grid-column: 1/-1; text-align: center; padding: 48px 0; color: var(--fg2); }
.no-results .icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; z-index: 300; transition: transform .3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── GENDER BADGE COLORS ─── */
.gender-boys .product-badge { background: #3B82F6; }
.gender-boys .product-badge.new { background: #60A5FA; }
.gender-girls .product-badge { background: #EC4899; }
.gender-girls .product-badge.new { background: #F472B6; }

/* ─── PROMO SINGLE ─── */
.promo-single { position: relative; min-height: 420px; overflow: hidden; display: flex; align-items: center; }
.promo-single-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.promo-single-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,95,.88) 0%, rgba(59,130,246,.45) 100%); }
.promo-single-content { position: relative; color: #fff; padding: 60px 80px; max-width: 640px; }
.promo-eyebrow-tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; }
.promo-single-content h2 { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; margin-bottom: 14px; }
.promo-discount-pill { display: inline-block; background: #FBBF24; color: #1A1A2E; font-size: 1.5rem; font-weight: 900; padding: 6px 22px; border-radius: 50px; margin-bottom: 16px; letter-spacing: .02em; }
.promo-single-content p { font-size: .95rem; opacity: .85; margin-bottom: 28px; line-height: 1.6; }
.promo-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.promo-cta { display: inline-block; border: 1.5px solid rgba(255,255,255,.7); color: #fff; border-radius: 50px; padding: 10px 28px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.promo-cta:hover { background: rgba(255,255,255,.18); }
.promo-cta.primary { background: #fff; color: #1E3A5F; border-color: #fff; }
.promo-cta.primary:hover { background: #e8f0fe; }

/* ─── BRANDS SECTION ─── */
.brands-section { padding: 80px 24px; background: var(--bg); }
.brands-inner { max-width: 1100px; margin: 0 auto; }
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.brands-text h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 18px; line-height: 1.3; }
.brands-text p { color: var(--fg2); font-size: .93rem; line-height: 1.85; margin-bottom: 14px; }
.brands-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.brand-stat { text-align: center; padding: 20px 12px; background: #EFF6FF; border-radius: 12px; }
:root[data-theme="dark"] .brand-stat { background: #1E293B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-stat { background: #1E293B; } }
.brand-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #3B82F6; margin-bottom: 4px; }
.brand-stat-label { font-size: .75rem; color: var(--fg2); }
.brands-features { display: flex; flex-direction: column; gap: 14px; }
.brand-feat { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #F8FAFF; border-radius: 12px; border-left: 4px solid #3B82F6; }
:root[data-theme="dark"] .brand-feat { background: #1E293B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-feat { background: #1E293B; } }
.brand-feat-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.brand-feat h4 { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.brand-feat p { font-size: .8rem; color: var(--fg2); line-height: 1.6; }

/* ─── FOOTER ─── */
.site-footer { background: #0F172A; color: #E2E8F0; padding: 60px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand-desc { font-size: .85rem; color: #94A3B8; line-height: 1.75; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,.08); border-radius: 50%; font-size: 1rem; transition: background .2s; text-decoration: none; color: #fff; }
.social-btn:hover { background: #3B82F6; }
.footer-col h4 { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64748B; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a, .footer-links li span { font-size: .85rem; color: #94A3B8; cursor: pointer; transition: color .2s; }
.footer-links li a:hover, .footer-links li span:hover { color: #60A5FA; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-contact-icon { font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-text { font-size: .85rem; color: #94A3B8; line-height: 1.5; }
.footer-contact-text a { color: #94A3B8; }
.footer-contact-text a:hover { color: #60A5FA; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: #475569; flex-wrap: wrap; gap: 12px; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 600; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.hidden { display: none; }
.modal-box { background: var(--bg); border-radius: 16px; max-width: 700px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 40px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 1.3rem; cursor: pointer; color: var(--fg2); background: var(--bg2); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--fg); }
.modal-box h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 24px; }
.modal-box h3 { font-size: .95rem; font-weight: 700; margin-top: 24px; margin-bottom: 8px; color: var(--accent); }
.modal-box p { font-size: .88rem; color: var(--fg2); line-height: 1.8; margin-bottom: 12px; }
.modal-box ul { padding-left: 20px; margin-bottom: 12px; }
.modal-box ul li { font-size: .88rem; color: var(--fg2); line-height: 1.8; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-cats { grid-template-columns: 1fr; height: auto; }
  .hero-cat { height: 200px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .promo-single-content { padding: 40px 24px; }
  .promo-single-content h2 { font-size: 2.2rem; }
  .brands-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .hero-cat { height: 160px; }
  .hero-cat-label h2 { font-size: 1.3rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brands-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-single-content h2 { font-size: 1.8rem; }
  .promo-discount-pill { font-size: 1.2rem; }
  .modal-box { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   WooCommerce ინტეგრაცია + mobile მენიუ (BOBO)
   ═══════════════════════════════════════════════════════════ */

/* ── mobile menu toggle ── */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 8px 24px 16px; z-index: 99;
  }
  .nav-links.mobile-open li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links.mobile-open li:last-child { border-bottom: none; }
}

/* ── container for all WooCommerce pages ── */
.wc-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; }

/* ── buttons → brand ── */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--accent); color: #fff; border-radius: 50px;
  padding: 12px 26px; font-weight: 600; font-family: var(--font-body);
  letter-spacing: .02em; border: none; transition: background .2s, transform .2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
.woocommerce .button.alt:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* ── prices ── */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--navy); font-weight: 700; }
.woocommerce .price del { color: var(--fg2); font-weight: 400; opacity: .7; }
.woocommerce .price ins { color: var(--accent); text-decoration: none; font-weight: 700; }

/* ── product grid (shop / category) ── */
.woocommerce ul.products {
  display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin: 0 0 40px; padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: transform .2s, box-shadow .2s; padding-bottom: 14px;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { margin: 0 0 12px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: 0 14px 4px; color: var(--fg);
}
.woocommerce ul.products li.product .price { display: block; padding: 0 14px 10px; font-size: 1rem; }
.woocommerce ul.products li.product .button { margin: 0 14px; display: inline-block; }

/* ── sale badge ── */
.woocommerce span.onsale {
  background: var(--accent); color: #fff; border-radius: 50px;
  padding: 4px 14px; min-height: auto; min-width: auto; line-height: 1.5;
  font-weight: 600; font-size: .72rem; top: 10px; left: 10px; margin: 0;
}

/* ── breadcrumb & titles ── */
.woocommerce .woocommerce-breadcrumb { color: var(--fg2); font-size: .82rem; margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--accent); }
.woocommerce-products-header__title,
.wc-container h1.entry-title,
.woocommerce div.product .product_title {
  font-family: var(--font-display); color: var(--navy); font-size: 2rem; margin-bottom: 10px;
}

/* ── single product layout ── */
.woocommerce div.product div.images { border-radius: var(--r); overflow: hidden; }
.woocommerce div.product form.cart { margin-top: 16px; }

/* ── cart & checkout tables ── */
.woocommerce table.shop_table { border-radius: var(--r); border-color: var(--border); }
.woocommerce table.shop_table th { background: var(--bg2); color: var(--fg); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}

/* ── notices ── */
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }

/* ── responsive grids ── */
@media (max-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
