/* ===================== TOKENS ===================== */
:root {
  --blue-deep: #123E73;
  --blue: #1B5FA8;
  --blue-light: #E8F1FC;
  --yellow: #FFC93C;
  --yellow-deep: #C98A00;
  --pink: #E91E63;
  --pink-deep: #A3134A;
  --pink-light: #FDECF2;
  --teal: #159E8A;
  --teal-light: #E6F7F4;
  --coral: #FF6B4A;
  --coral-light: #FFEDE8;
  --purple: #8B5CF6;
  --purple-light: #F1ECFE;
  --amber: #F5A623;
  --amber-light: #FEF3E1;
  --green: #4CAF50;
  --green-light: #EBF7EC;
  --ink: #1E2430;
  --ink-soft: #5B6270;
  --paper: #FFFFFF;
  --bg: #F7F9FC;
  --border: #E4E9F1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(18, 62, 115, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(18, 62, 115, 0.14);
  --font-display: 'Baloo 2', 'Noto Sans Georgian', sans-serif;
  --font-body: 'Noto Sans Georgian', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
.hidden { display: none !important; }
img { max-width: 100%; display: block; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--pink);
  color: white;
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}
.btn-primary:hover { background: var(--pink-deep); box-shadow: 0 8px 20px rgba(233, 30, 99, 0.38); }
.btn-block { width: 100%; }
.btn-large { padding: 16px 28px; font-size: 16px; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--blue); border-bottom-color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--blue-light); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--pink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; }

.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}
.search-bar.open { max-height: 70px; border-top-color: var(--border); }
.search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.search-bar-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--ink);
}
.search-bar-inner button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 340px;
}
.hero-text {
  text-align: center;
  max-width: 640px;
  margin: 28px auto 0;
  padding: 0 16px;
}
.hero-text h1 {
  font-size: 34px;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.hero-text p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* ===================== CATEGORIES ===================== */
.categories {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.category-card {
  border: none;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.cat-icon { font-size: 38px; }
.cat-journal { background: var(--coral-light); color: #B8391A; }
.cat-notebook { background: var(--blue-light); color: var(--blue-deep); }
.cat-resource { background: var(--purple-light); color: #5B3AAE; }

/* ===================== SHOP SECTION ===================== */
.shop-section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.shop-header h2 { font-size: 24px; color: var(--blue-deep); }
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1.5px solid var(--border);
  background: var(--paper);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: white; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-card-hover); }
.product-thumb {
  aspect-ratio: 1 / 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: #6B4900;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.product-short { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.product-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--blue-deep); }
.product-old-price { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.product-add-btn {
  margin-top: 10px;
  border: none;
  background: var(--pink-light);
  color: var(--pink-deep);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 50px;
  transition: background 0.15s, color 0.15s;
}
.product-add-btn:hover { background: var(--pink); color: white; }

.color-coral .product-thumb { background: var(--coral-light); }
.color-blue .product-thumb { background: var(--blue-light); }
.color-teal .product-thumb { background: var(--teal-light); }
.color-amber .product-thumb { background: var(--amber-light); }
.color-pink .product-thumb { background: var(--pink-light); }
.color-purple .product-thumb { background: var(--purple-light); }
.color-green .product-thumb { background: var(--green-light); }

.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon { font-size: 30px; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14.5px; color: var(--blue-deep); margin-bottom: 2px; }
.trust-item p { font-size: 13px; color: var(--ink-soft); }

/* ===================== PRODUCT DETAIL PAGE ===================== */
.product-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 140px;
  overflow: hidden;
}
.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.preview-section h3 {
  font-size: 18px;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.preview-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.preview-thumb {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 0.75;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.preview-thumb:hover { border-color: var(--blue); transform: translateY(-2px); }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== IMAGE PREVIEW LIGHTBOX ===================== */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 62, 115, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 300;
  padding: 20px;
}
.preview-overlay.open { opacity: 1; pointer-events: auto; }
.preview-modal {
  position: relative;
  max-width: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-modal img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.preview-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--blue-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-prev { left: -8px; }
.preview-next { right: -8px; }
@media (max-width: 600px) {
  .preview-prev { left: 4px; }
  .preview-next { right: 4px; }
}
.preview-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 13px;
  font-weight: 500;
}
.product-detail-info h1 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.product-detail-meta { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.meta-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.product-detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.product-detail-price .price { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--blue-deep); }
.product-detail-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-control button { width: 38px; height: 38px; border: none; background: var(--paper); font-size: 18px; color: var(--ink); }
.qty-control button:hover { background: var(--bg); }
.qty-control span { width: 36px; text-align: center; font-weight: 600; }

/* ===================== STATIC PAGES ===================== */
.static-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.static-page h1 { font-size: 30px; color: var(--blue-deep); margin-bottom: 20px; }
.static-page p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.contact-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
  text-align: center;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-icon { font-size: 28px; margin-bottom: 4px; }
.contact-card strong { font-size: 14px; color: var(--ink); }
.contact-card span { font-size: 13px; color: var(--ink-soft); }

/* ===================== CART DRAWER ===================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(18, 62, 115, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: var(--paper);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-size: 18px; }
.cart-drawer-header .icon-btn { font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cart-item-price { font-size: 13px; color: var(--ink-soft); }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item-controls .qty-control button { width: 26px; height: 26px; font-size: 14px; }
.cart-item-controls .qty-control span { width: 24px; font-size: 13px; }
.cart-item-remove { background: none; border: none; color: var(--ink-soft); font-size: 12.5px; text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart-empty span { font-size: 44px; display: block; margin-bottom: 12px; }
.cart-footer { padding: 18px 20px 22px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 14px; color: var(--blue-deep); }

/* ===================== CHECKOUT ===================== */
.checkout-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout-form-col h1 { font-size: 26px; color: var(--blue-deep); margin-bottom: 24px; }
.form-section { margin-bottom: 28px; }
.form-section h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.payment-option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.payment-option input { accent-color: var(--blue); width: 17px; height: 17px; }
.payment-option-inner { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.payment-label { font-size: 14.5px; font-weight: 500; }
.payment-badges { display: flex; gap: 6px; }
.badge-pill { background: var(--paper); border: 1px solid var(--border); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: var(--ink-soft); }
.payment-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }

.summary-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.summary-card h3 { font-size: 16px; margin-bottom: 16px; }
.summary-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.summary-item-thumb { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.summary-item-name { font-size: 13px; flex: 1; }
.summary-item-qty { font-size: 12px; color: var(--ink-soft); }
.summary-item-price { font-size: 13px; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding: 8px 0; border-top: 1px solid var(--border); margin-top: 6px; }
.summary-total { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--blue-deep); }

.checkout-success { text-align: center; padding: 60px 20px; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.checkout-success h2 { font-size: 22px; color: var(--blue-deep); margin-bottom: 10px; }
.checkout-success p { color: var(--ink-soft); margin-bottom: 24px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.85); margin-top: 80px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 10px; }
.footer-col p { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.footer-col h4 { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .categories { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-text h1 { font-size: 26px; }
  .header-inner { padding: 12px 16px; }
}
