/* =============================================
   GUZA.UZ — Полный CSS (конвертирован из Tailwind)
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --brand:        #ec4899; /* pink-500 */
  --brand-dark:   #db2777; /* pink-600 */
  --brand-darker: #be185d; /* pink-700 */
  --brand-light:  #fbcfe8; /* pink-200 */
  --brand-pale:   #fce7f3; /* pink-100 */
  --brand-50:     #fdf2f8;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --radius-sm:  0.5rem;   /* 8px  */
  --radius-md:  0.75rem;  /* 12px */
  --radius-lg:  1rem;     /* 16px */
  --radius-xl:  1.25rem;  /* 20px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-pink: 0 4px 14px 0 rgb(236 72 153 / 0.25);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background-color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Scrollbar ---------- */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem;   padding-right: 2rem;   } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.75rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 1rem; } }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px */
  gap: 0.5rem;
}
@media (min-width: 1024px) { .header-row { height: 5rem; } }

/* Logo */
.header-logo img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}
.header-logo:hover img { transform: scale(1.05); }
@media (min-width: 1024px) { .header-logo img { height: 2.5rem; } }

/* Center area */
.header-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
}

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}
@media (min-width: 1024px) { .header-nav { display: flex; } }

.header-nav a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}
.header-nav a:hover,
.header-nav a.active { color: var(--brand); }
.header-nav a svg { transition: transform var(--transition); }
.header-nav a:hover svg { transform: scale(1.1); }

/* Search */
.header-search-wrap {
  display: none;
  justify-content: flex-end;
  width: 100%;
}
@media (min-width: 768px) { .header-search-wrap { display: flex; } }

.header-search-box {
  width: 100%;
  max-width: 520px;
}
@media (min-width: 1024px) { .header-search-box { max-width: 560px; } }
@media (min-width: 1280px) { .header-search-box { max-width: 640px; } }

.search-form { position: relative; width: 100%; }
.search-form input {
  height: 2.75rem;
  width: 100%;
  padding: 0 3rem 0 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  background: rgba(249,250,251,0.5);
  font-size: 0.875rem;
  color: var(--gray-800);
  transition: all var(--transition);
}
.search-form input::placeholder { color: var(--gray-400); }
.search-form input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(236,72,153,0.3);
  outline: none;
}
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-decoration { display: none; }

.search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  transition: color var(--transition);
  background: none;
  border: none;
  display: flex;
  align-items: center;
}
.search-btn:hover { color: var(--brand); }

.search-clear {
  position: absolute;
  right: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.search-clear:hover { color: var(--gray-600); background: var(--gray-100); }

/* Header icon buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
@media (min-width: 640px) { .header-actions { gap: 0.5rem; } }

.header-icon-btn {
  position: relative;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.header-icon-btn:hover  { color: var(--brand); background: var(--brand-pale); }
.header-icon-btn.active { color: var(--brand); }

/* Badge */
.count-badge {
  position: absolute;
  top: -0.375rem; right: -0.375rem;
}
.count-badge span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 600;
  border-radius: var(--radius-full);
  height: 1.125rem;
  min-width: 1.125rem;
  padding: 0 0.25rem;
  box-shadow: var(--shadow-sm);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.menu-toggle:hover { color: var(--brand); background: var(--brand-pale); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile search toggle */
.search-toggle {
  display: flex;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.search-toggle:hover { color: var(--brand); background: var(--brand-pale); }
@media (min-width: 768px) { .search-toggle { display: none; } }

/* Mobile search panel */
.mobile-search-panel {
  display: none;
  padding: 0 0.5rem 0.5rem;
}
.mobile-search-panel.open { display: block; }
@media (min-width: 768px) { .mobile-search-panel { display: none !important; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 0.5rem 0 1rem;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--brand); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  padding: 2.5rem 1rem;
}
@media (min-width: 768px) { .footer-inner { padding: 3.5rem 1rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4,1fr); gap: 2.5rem; } }

.footer-brand p {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 18rem;
  margin-top: 1rem;
}

.footer-brand img { height: 2rem; width: auto; }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--brand); color: #fff; }

.footer-col h3 {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  color: var(--gray-600);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--brand); }

.footer-contacts { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-contact-row svg { color: var(--brand); flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-row a,
.footer-contact-row span {
  color: var(--gray-600);
  font-size: 0.875rem;
  transition: color var(--transition);
  line-height: 1.5;
}
.footer-contact-row a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.875rem;
}
.footer-bottom a:hover { color: var(--brand); }

/* =============================================
   HERO BANNER / SLIDER
   ============================================= */
.banner-section { position: relative; width: 100%; }

.banner-slider {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--gray-900);
  user-select: none;
}
@media (min-width: 640px)  { .banner-slider { height: 400px; } }
@media (min-width: 768px)  { .banner-slider { height: 500px; } }
@media (min-width: 1024px) { .banner-slider { height: 600px; } }

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.banner-slide.active { opacity: 1; z-index: 10; }

.banner-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.banner-text {
  padding: 0 1.5rem;
  max-width: 42rem;
}
@media (min-width: 640px)  { .banner-text { padding: 0 2rem; } }
@media (min-width: 768px)  { .banner-text { padding: 0 3rem; } }
@media (min-width: 1024px) { .banner-text { padding: 0 5rem; } }

.banner-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (min-width: 640px)  { .banner-text h2 { font-size: 1.875rem; } }
@media (min-width: 768px)  { .banner-text h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .banner-text h2 { font-size: 3.75rem; } }

.banner-text p {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 32rem;
}
@media (min-width: 768px) { .banner-text p { font-size: 1.125rem; margin-bottom: 2rem; } }

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.banner-btn:hover { background: var(--brand-dark); box-shadow: 0 10px 20px rgba(236,72,153,0.4); }
.banner-btn:active { transform: scale(0.97); }
@media (min-width: 640px) { .banner-btn { padding: 0.75rem 1.5rem; font-size: 1rem; } }

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}
.banner-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.5);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.banner-dot.active { width: 2.5rem; background: #fff; box-shadow: var(--shadow); }
.banner-dot:hover:not(.active) { background: rgba(255,255,255,0.8); }

/* Progress bar */
.banner-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  z-index: 10;
}
.banner-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #f472b6, #a855f7);
  transition: width 0.3s ease-out;
}

/* Nav arrows */
.banner-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--transition);
  z-index: 20;
}
.banner-arrow:hover { background: rgba(0,0,0,0.5); }
@media (min-width: 768px) { .banner-arrow { display: flex; align-items: center; } }
.banner-arrow-prev { left: 1rem; }
.banner-arrow-next { right: 1rem; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}
@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.section-link:hover { color: var(--brand-dark); }

/* =============================================
   PRODUCT GRID
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
  height: 100%;
}

.product-card-inner {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(243,244,246,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease;
}
.product-card:hover .product-card-inner { box-shadow: var(--shadow-lg); }

/* Image area */
.product-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-50);
}

.product-card-img a { display: block; width: 100%; height: 100%; }

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

/* Badges */
.product-badges {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
@media (min-width: 640px) { .badge { font-size: 0.75rem; } }
.badge-new,
.badge-popular { background: var(--brand); }
.badge-discount { background: #ef4444; }

/* Favorite btn on card */
.card-favorite-btn {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 2;
  background: rgba(255,255,255,0.9);
  color: var(--gray-500);
}
.card-favorite-btn:hover { background: #fff; color: var(--brand); }
.card-favorite-btn.active {
  background: var(--brand);
  color: #fff;
  transform: scale(1.1);
}

/* Out of stock overlay */
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.out-of-stock-overlay span {
  background: #fff;
  color: var(--gray-800);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .out-of-stock-overlay span { font-size: 0.875rem; } }

/* Card content */
.product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  flex-grow: 1;
}
@media (min-width: 640px) { .product-card-body { padding: 1rem; } }

.product-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 0.375rem;
  min-height: 2.5rem;
}
@media (min-width: 640px) { .product-card-name { font-size: 0.9375rem; } }
.product-card-name a:hover { color: #db2777; }

.product-card-category {
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .product-card-category { font-size: 0.75rem; } }

.product-card-price {
  margin-bottom: 0.75rem;
}
.price-current {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}
@media (min-width: 640px) { .price-current { font-size: 1.25rem; } }
.price-old {
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
@media (min-width: 640px) { .price-old { font-size: 0.875rem; } }

.product-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.625rem 0;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  background: var(--brand);
  transition: all var(--transition);
}
.product-card-btn:hover { background: var(--brand-dark); }
.product-card-btn:active { transform: scale(0.98); }
@media (min-width: 640px) { .product-card-btn { font-size: 0.875rem; } }

/* =============================================
   CATEGORY GRID
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

/* Category card */
.category-card a { display: block; }
.category-card-inner {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(243,244,246,0.6);
  overflow: hidden;
  transition: all 0.3s ease;
}
.category-card:hover .category-card-inner { box-shadow: var(--shadow-lg); }

.category-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.category-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.05); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1), transparent);
}

.category-card-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem;
}
@media (min-width: 640px) { .category-card-text { padding: 1rem; } }

.category-card-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  transition: color var(--transition);
}
@media (min-width: 640px) { .category-card-text h3 { font-size: 1.125rem; } }
.category-card:hover .category-card-text h3 { color: #fbcfe8; }

.category-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}
@media (min-width: 640px) { .category-card-count { font-size: 0.875rem; } }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumbs a { transition: color var(--transition); max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .current { color: var(--gray-800); font-weight: 500; max-width: 12.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs .sep { color: var(--gray-400); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  background: #fff;
  transition: all var(--transition);
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: #f9a8d4;
  color: var(--brand);
  background: var(--brand-50);
}
.page-btn:active:not(:disabled) { transform: scale(0.95); }
.page-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(236,72,153,0.3);
}
.page-btn:disabled { color: var(--gray-300); cursor: not-allowed; }
.page-dots {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  color: var(--gray-400); font-size: 0.875rem;
}

/* =============================================
   PRODUCT PAGE (detail)
   ============================================= */
.product-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .product-page-layout { grid-template-columns: 1fr 1fr; } }

/* Product info */
.product-info { width: 100%; }
@media (min-width: 1280px) { .product-info { width: 90%; } }
@media (min-width: 1536px) { .product-info { width: 85%; } }

.product-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.product-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.product-category-link {
  color: var(--brand);
  font-size: 0.875rem;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
}
.product-category-link:hover { text-decoration: underline; }

.product-fav-btn {
  padding: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-fav-btn.active { background: var(--brand); color: #fff; }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.product-price-main { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.product-price-old  { font-size: 1rem; color: var(--gray-500); text-decoration: line-through; }

/* Status badges */
.product-status-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.badge-new-lg    { background: var(--brand);   color: #fff; font-size: 0.875rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); }
.badge-pop-lg    { background: #a855f7;         color: #fff; font-size: 0.875rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); }
.badge-stock     { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--gray-600); }
.badge-stock svg { color: #22c55e; }

.product-description {
  color: var(--gray-600);
  white-space: pre-line;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Share */
.product-share { margin-bottom: 1.5rem; }
.product-share-label { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.product-share-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.share-copy-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.875rem;
  background: #fff;
  transition: background var(--transition);
}
.share-copy-btn:hover { background: var(--gray-100); }

/* Sizes */
.product-sizes { margin-bottom: 1.5rem; }
.product-sizes h3 { font-weight: 500; color: var(--gray-800); margin-bottom: 0.5rem; }
.size-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--gray-700);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.size-btn:hover { background: var(--gray-100); }
.size-btn.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.size-btn.in-cart  { background: var(--brand-pale); color: var(--brand-dark); border-color: #f9a8d4; }
.size-btn.in-cart:hover { background: #f9a8d4; }

/* Add to cart buttons */
.btn-add-cart {
  width: 100%;
  padding: 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--brand-dark); }
.btn-add-cart:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }

.btn-remove-cart {
  flex: 1; padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition);
}
.btn-remove-cart:hover { background: var(--gray-200); }

.btn-go-cart {
  flex: 1; padding: 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition);
}
.btn-go-cart:hover { background: var(--brand-dark); }

.cart-action-row { display: flex; gap: 0.75rem; }

/* =============================================
   CART PAGE
   ============================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 380px; } }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 5rem; height: 5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 640px) { .cart-item-img { width: 6rem; height: 6rem; } }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name { font-weight: 500; color: var(--gray-900); margin-bottom: 0.25rem; }
.cart-item-size { font-size: 0.875rem; color: var(--gray-500); }
.cart-item-price { font-weight: 700; color: var(--gray-900); margin-top: auto; }

.cart-summary {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 5.5rem;
}

.cart-summary h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

.btn-checkout {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.875rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--brand-dark); }

/* =============================================
   CONTACTS PAGE
   ============================================= */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .contacts-layout { grid-template-columns: 1fr 1fr; } }

.contact-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.contact-card h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); margin-bottom: 1.5rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 3rem; height: 3rem;
  background: var(--brand-pale);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.contact-row h3 { font-weight: 500; color: var(--gray-800); margin-bottom: 0.125rem; }
.contact-row a, .contact-row p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.5; }
.contact-row a:hover { color: var(--brand); }

/* Contact form */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--gray-800);
  font-family: inherit;
  background: #fff;
  transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.15);
}
.form-textarea { resize: vertical; min-height: 7rem; }

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-submit:hover { background: var(--brand-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* =============================================
   ORDER MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; } }

.modal-box {
  background: #fff;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .modal-box {
    border-radius: var(--radius-2xl);
    max-width: 32rem;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in 0.3s ease;
  max-width: 20rem;
}
.toast-success { background: #fff; color: var(--gray-800); border: 1px solid #d1fae5; }
.toast-success svg { color: #22c55e; }
.toast-error { background: #fff; color: var(--gray-800); border: 1px solid #fee2e2; }
.toast-error svg { color: #ef4444; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}
.spinner-ring {
  width: 2.5rem; height: 2.5rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   EMPTY STATES
   ============================================= */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-500);
}
.empty-state svg { margin: 0 auto 1rem; color: var(--gray-300); }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.875rem; margin-bottom: 1.5rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--brand-dark); }

/* =============================================
   MAIN LAYOUT
   ============================================= */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main {
  flex: 1;
  padding-top: 2rem;
}

/* =============================================
   PHOTO VIEWER / LIGHTBOX
   ============================================= */
.photo-viewer { position: relative; }
.photo-main {
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--gray-50);
  cursor: zoom-in;
}
.photo-main img { width: 100%; height: 100%; object-fit: cover; }

.photo-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.photo-thumb {
  width: 4rem; height: 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.photo-thumb.active { border-color: var(--brand); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   TOOLTIP
   ============================================= */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-text {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.tooltip-wrap:hover .tooltip-text { opacity: 1; }

/* =============================================
   PAGE TRANSITIONS (top bar)
   ============================================= */
.route-topbar {
  position: absolute !important;
  left: 0 !important; right: 0 !important;
  top: auto !important; bottom: 0 !important;
  z-index: 10 !important;
  height: 3px;
  background: linear-gradient(to right, var(--brand), #a855f7);
}

/* =============================================
   HELPERS / SPACING
   ============================================= */
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
@media (min-width: 768px) {
  .md-space-y-16 > * + * { margin-top: 4rem; }
}

/* =============================================
   SOCIAL ICONS (Instagram, Telegram SVG)
   ============================================= */
.icon-instagram,
.icon-telegram {
  width: 1.25rem; height: 1.25rem;
  fill: currentColor;
}
