:root {
  --bg: #f5f6fb;
  --panel: #ffffff;
  --panel-alt: #f0f3ff;
  --text: #1c2340;
  --muted: #65708f;
  --primary: #4f46e5;
  --primary-dark: #2f2a89;
  --accent: #ff6b6b;
  --success: #0f9f6f;
  --border: rgba(93, 110, 163, 0.18);
  --shadow: 0 18px 45px rgba(28, 35, 64, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 30%),
    linear-gradient(180deg, #eef2ff 0%, var(--bg) 18%, #ffffff 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 18px auto;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 50;
}

.top-header,
.sale-strip,
.hero-slider,
.highlights,
.category-grid,
.horizontal-slider,
.price-panel,
.products-column,
.footer {
  backdrop-filter: blur(18px);
}

.top-header {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(28, 35, 64, 0.08);
  background: #f8f3ef;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text strong {
  font-size: 1.12rem;
}

.logo-text small,
.toolbar p,
.price-panel p,
.footer p {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s ease;
}

.main-nav a:hover,
.chip:hover,
.text-link:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
}

.search-icon {
  color: var(--muted);
  font-size: 1.1rem;
}

.search-bar input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 120px;
}

.search-bar button,
.primary-btn,
.footer-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 210px;
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 20px;
  padding: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.dropdown-panel a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.dropdown-panel.is-open {
  display: flex;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
}

.icon-button strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 0.88rem;
}

.cart-button {
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
}

.sale-strip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #18181b, #2e1065);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sale-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 12px;
}

.countdown div {
  min-width: 74px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 18px;
}

.countdown span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

main {
  padding-top: 24px;
}

.hero-slider,
.highlights,
.category-grid,
.horizontal-slider,
.price-panel,
.products-column,
.footer {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-slider {
  border-radius: 34px;
  overflow: hidden;
  padding: 18px;
}

.hero-track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(236, 72, 153, 0.08));
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 14px;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 700;
}

.hero-art {
  min-height: 370px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto auto 16% 10%;
  width: 180px;
  height: 180px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(-16deg);
}

.hero-art::after {
  inset: 12% 10% auto auto;
  transform: rotate(18deg);
  width: 220px;
  height: 220px;
}

.hero-art-1 {
  background: linear-gradient(135deg, #4338ca, #8b5cf6, #ec4899);
}

.hero-art-2 {
  background: linear-gradient(135deg, #be185d, #fb7185, #f59e0b);
}

.hero-art-3 {
  background: linear-gradient(135deg, #0f766e, #2dd4bf, #d9f99d);
}

.hero-art-4 {
  background: linear-gradient(135deg, #0f172a, #2563eb, #22d3ee);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.hero-nav,
.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--primary);
  font-size: 1.45rem;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(79, 70, 229, 0.2);
}

.hero-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: var(--primary);
}

.highlights {
  margin: 20px 0 34px;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlights article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(255, 107, 107, 0.06));
}

.highlights strong,
.section-head h2,
.category-tile h3,
.product-card h3,
.price-panel h3,
.footer h4 {
  display: block;
  margin-bottom: 8px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin: 0;
}

.compact {
  margin-bottom: 12px;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 34px;
}

.category-tile {
  min-height: 210px;
  border-radius: 26px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.category-tile span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.category-tile h3 {
  max-width: 220px;
  font-size: 1.5rem;
  margin-top: 18px;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(30deg);
}

.men { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.women { background: linear-gradient(135deg, #db2777, #f9a8d4); }
.kids { background: linear-gradient(135deg, #d97706, #facc15); }
.home { background: linear-gradient(135deg, #0891b2, #67e8f9); }
.ornaments { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.music { background: linear-gradient(135deg, #0f172a, #475569); }

.horizontal-slider {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 30px;
}

.horizontal-slider.small {
  margin-bottom: 0;
}

.slider-track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.double-slider-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.product-card {
  min-width: 280px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
}

.product-card.compact {
  min-width: 250px;
}

.product-image {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #edf2ff;
  overflow: hidden;
  display: block;
  width: 100%;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.product-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.offer-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 159, 111, 0.12);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 1.06rem;
}

.product-card p {
  color: var(--muted);
  margin: 0 0 14px;
  min-height: 42px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-row strong {
  font-size: 1.3rem;
}

.price-row del {
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions button {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: white;
  font-weight: 700;
}

.product-actions .buy-btn {
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
}

.popular-section {
  margin-top: 10px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.products-column,
.price-panel {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar-controls {
  display: flex;
  gap: 10px;
}

.chip {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-panel {
  position: sticky;
  top: 162px;
}

.price-panel label {
  display: block;
  font-weight: 700;
  margin: 20px 0 10px;
}

.price-panel select,
.price-panel input[type="range"] {
  width: 100%;
}

.price-panel select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
}

.price-summary {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.price-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-alt);
  font-weight: 700;
}

.footer {
  margin: 34px 0 24px;
  border-radius: 32px;
  padding: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 18px;
}

.footer-grid h4 {
  margin-top: 0;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-logo .logo-image {
  width: 72px;
  height: 72px;
}

.footer-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.footer-form input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.bottom-bar {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.bottom-bar div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1240px) {
  .top-header {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .catalog-layout,
  .footer-grid,
  .double-slider-wrap {
    grid-template-columns: 1fr;
  }

  .price-panel {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 20px, 1440px);
  }

  .category-grid,
  .highlights,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .sale-strip,
  .toolbar,
  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .search-bar,
  .footer-form {
    grid-template-columns: 1fr;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .product-actions {
    flex-direction: column;
  }

  .hero-slider,
  .horizontal-slider,
  .products-column,
  .price-panel,
  .footer,
  .category-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}
