/* Myshapan — minimal shop layout */

:root {
  --bg: #ffffff;
  --muted: #f6f6f6;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --nav-overlay: rgba(255, 255, 255, 0.95);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --price-contact-text: "Narxni aniqlash uchun bog'laning";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header — oq matn yorqin rasmda yo‘qolmasligi uchun z-index + matn soyasi */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.site-header .logo {
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.14em;
  justify-self: start;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  justify-content: center;
  justify-self: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-main a {
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.nav-main a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-util {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
}

.nav-util a:not(.cart-btn) {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.nav-util .sep {
  opacity: 0.85;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-util .cart-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  opacity: 0.95;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.nav-util .cart-btn:hover {
  opacity: 1;
}

.nav-util .cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .nav-main {
    order: 3;
  }

  .logo {
    order: 1;
  }

  .nav-util {
    order: 2;
    justify-content: center;
  }

  .lang-switch {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 0;
  min-height: min(78vh, 720px);
  background: #2a2a2a;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Yuqori qism — menyu uchun; pastki — sarlavha uchun */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.22) 32%,
      rgba(0, 0, 0, 0) 55%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.1) 45%,
      rgba(0, 0, 0, 0) 72%
    );
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: clamp(28px, 6vh, 64px);
  color: #fff;
  max-width: 540px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-cta {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.hero-cta:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Category bar */
.category-bar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  row-gap: 12px;
  padding: 24px 16px 0;
  min-height: 56px;
  border-bottom: 1px solid #e8e8e8;
  background: var(--bg);
}

.category-bar a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  padding: 0 2px 12px;
  border-bottom: 2px solid transparent;
}

.category-bar a.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.category-bar a:hover:not(.is-active) {
  color: var(--text);
}

/* Product grid */
.catalog {
  padding: 40px clamp(18px, 4vw, 48px) 72px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-block {
  scroll-margin-top: 96px;
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: block;
}

.product-card:hover .product-thumb {
  transform: scale(1.01);
}

.product-thumb {
  aspect-ratio: 1;
  background: var(--muted);
  overflow: hidden;
  transition: transform 0.35s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  padding: 14px 4px 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.product-title {
  display: none !important;
}

.product-price {
  display: none !important;
}

.product-meta::after {
  content: var(--price-contact-text);
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b6b6b;
}

.site-footer {
  text-align: center;
  padding: 24px 16px 48px;
  font-size: 12px;
  color: #888;
}

.visit-section {
  background: #ece5d2;
  padding: clamp(38px, 5vw, 68px) clamp(18px, 4vw, 48px);
}

.visit-header {
  text-align: center;
  margin-bottom: 26px;
}

.visit-kicker {
  margin: 0 0 8px;
  color: #4e8f85;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.visit-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  color: #1c355e;
}

.visit-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.visit-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.visit-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1c355e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.visit-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.visit-value {
  margin: 0;
  color: #1a1a1a;
  font-size: 16px;
}

.visit-social {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.social-btn.insta { background: #e4405f; }
.social-btn.tg { background: #2497d8; }
.social-btn.wa { background: #25d366; }

.visit-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.visit-map-wrap iframe {
  width: 100%;
  height: clamp(270px, 40vw, 400px);
  border: 0;
  display: block;
}

.map-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #1c355e;
  font-weight: 600;
}

@media (max-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
