:root {
  --bg: #ffffff;
  --bg-soft: #fff6f4;
  --text: #1e1a17;
  --text-muted: #6d5e56;
  --accent: #b24436;
  --accent-2: #d38b70;
  --stroke: rgba(20, 16, 14, 0.12);
  --glass: rgba(245, 245, 245, 0.35);
  --glass-strong: rgba(245, 245, 245, 0.55);
  --radius-lg: 34px;
  --radius-md: 26px;
  --radius-sm: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --max: 100%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(900px 700px at 12% 5%, rgba(210, 98, 78, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 90% 0%, rgba(178, 68, 54, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 60;
}

.nav {
  margin: 18px auto 0;
  background: rgba(182, 182, 182, 0.32);
  border: 1px solid rgba(20, 16, 14, 0.05);
  border-radius: 24px;
  padding: 6px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-left a {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
  color: var(--text);
  position: relative;
}

.nav-left a:hover {
  color: var(--accent);
}

.nav-left a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-left a:hover::after {
  width: 100%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.nav-right {
  justify-content: flex-end;
  gap: 14px;
}

.social-link,
.cart-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 16, 14, 0.08);
  background: rgba(255, 255, 255, 0.35);
  transition: 0.2s ease;
  position: relative;
}

.social-link:hover,
.cart-button:hover {
  border-color: rgba(20, 16, 14, 0.2);
  background: rgba(255, 255, 255, 0.65);
}

.social-link:hover svg,
.cart-button:hover svg {
  stroke: var(--accent);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d43c2f;
  color: white;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.cart-badge.show {
  display: flex;
}

.hero {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url("../assets/banner-left.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  height: 100%;
}

.hero-main h1 {
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 3vw, 52px);
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-main p {
  max-width: 540px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(200, 200, 200, 0.32);
  border: 1px solid rgba(20, 16, 14, 0.12);
  color: #ffffff;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta:hover {
  background: rgba(240, 240, 240, 0.7);
  color: var(--text);
  border-color: rgba(20, 16, 14, 0.12);
}

.hero-main .cta {
  margin-top: auto;
}

.hero-slider {
  padding: 0;
}

.hero-right {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  height: 100%;
}

.hero-slider-panel {
  padding: 0;
  height: auto;
  aspect-ratio: 3 / 4;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background-size: cover;
  background-position: center;
}

.slide-content h3 {
  display: none;
}

.slide-content span {
  display: none;
}

.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-bottom: 6px;
}

.slider-controls button {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(20, 16, 14, 0.12);
  cursor: pointer;
}

.slider-controls button.active {
  background: rgba(20, 16, 14, 0.35);
}

.section-title {
  margin: 70px 0 26px;
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 0.95fr));
  justify-content: space-between;
  gap: 34px;
}

.product-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 16, 14, 0.24);
}

.product-media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-media img.hover {
  opacity: 0;
}

.product-card:hover .product-media img.hover {
  opacity: 1;
}

.product-card:hover .product-media img.base {
  opacity: 0;
}

.product-info {
  padding: 18px 20px 22px;
}

.product-info h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-info span {
  color: var(--text-muted);
  font-size: 14px;
}

.footer {
  margin-top: 90px;
  padding-bottom: 0;
  overflow: hidden;
}

.footer-shell {
  background: rgba(200, 200, 200, 0.38);
  border-radius: 40px;
  border: 1px solid rgba(20, 16, 14, 0.08);
  box-shadow: var(--shadow);
  padding: 40px 40px 220px;
  transform: translateY(70px);
  position: relative;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2.4fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer a,
.footer button {
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer strong {
  font-size: 18px;
}

.footer-logo {
  display: inline-block;
  width: min(420px, 42vw);
  height: auto;
  line-height: 0;
  transition: filter 0.2s ease, opacity 0.2s ease;
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 1;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-logo:hover {
  filter: brightness(1.1);
  opacity: 0.9;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  right: clamp(16px, 4vw, 48px);
  top: 140px;
  width: min(420px, 94vw);
  background: rgba(245, 245, 245, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 80;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-drawer.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

[data-cart-items] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-meta {
  display: grid;
  gap: 6px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: transparent;
  cursor: pointer;
}

.cart-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: transparent;
  cursor: pointer;
}

.cart-summary {
  font-size: 14px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary.empty span {
  display: none;
}

.cart-summary.empty strong {
  font-weight: 400;
  color: var(--text-muted);
}

.cart-actions {
  display: flex;
}

.cart-actions a {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: rgba(20, 16, 14, 0.08);
  color: var(--text);
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cart-actions a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.cart-actions a:not(.disabled):hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-hero {
  margin-top: 30px;
}

.page-hero h1 {
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
}

.back-link:hover {
  color: var(--accent);
}

.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.back-link:hover::after {
  width: 100%;
}

.product-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-zoom {
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-details h2 {
  margin: 0;
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
}

.size-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-picker button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: rgba(20, 16, 14, 0.015);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.size-picker button.active {
  background: rgba(20, 16, 14, 0.16);
  color: var(--text);
}

.size-picker button:hover {
  background: rgba(20, 16, 14, 0.12);
  border-color: rgba(20, 16, 14, 0.28);
}

.size-picker button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(20, 16, 14, 0.02);
}

.size-picker button:disabled:hover {
  background: rgba(20, 16, 14, 0.02);
  border-color: rgba(20, 16, 14, 0.2);
}

.cta.narrow {
  align-self: flex-start;
  padding: 12px 18px;
  background: rgba(20, 16, 14, 0.1);
  color: var(--text);
  border: 1px solid rgba(20, 16, 14, 0.2);
}

.cta.narrow:hover {
  background: rgba(20, 16, 14, 0.16);
}

.cta:disabled,
.cta.narrow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tabs button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: rgba(20, 16, 14, 0.01);
  color: var(--text);
  cursor: pointer;
}

.tabs button.active {
  background: rgba(20, 16, 14, 0.12);
}

.tab-content {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 16, 14, 0.18);
  background: rgba(20, 16, 14, 0.03);
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(20, 16, 14, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  display: none;
  z-index: 90;
}

.toast.show {
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 75;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: white;
  border-radius: 26px;
  border: 1px solid rgba(20, 16, 14, 0.1);
  padding: 24px;
  width: min(540px, 92vw);
  box-shadow: var(--shadow);
  position: relative;
}

.modal h3 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 14, 0.1);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.zoom-modal {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.zoom-modal img {
  width: min(80vw, 800px);
  height: auto;
  display: block;
}

.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-layout {
  padding-top: 24px;
  padding-bottom: 40px;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkout-topbar h1 {
  margin: 0;
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
  font-size: clamp(20px, 2.4vw, 34px);
}

.checkout-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 14, 0.18);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.checkout-form-col,
.checkout-order-col {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 16, 14, 0.1);
  border-radius: 26px;
  padding: 22px;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-block {
  display: grid;
  gap: 12px;
}

.checkout-block h2 {
  margin: 0;
  font-size: 18px;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: #fff;
}

.phone-prefix {
  color: var(--text);
  font-weight: 600;
}

.phone-row input {
  border: none;
  outline: none;
  padding: 12px 0;
  width: 100%;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
}

.search-field input {
  border: none;
  outline: none;
  width: 100%;
  padding: 12px 0;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.form-inline {
  display: grid;
  gap: 10px;
}

.form-inline.two-cols {
  grid-template-columns: 1fr 1fr;
}

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

.promo-row button {
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  background: rgba(20, 16, 14, 0.08);
  cursor: pointer;
}

.checkout-submit {
  justify-content: center;
}

.checkout-order-list {
  display: grid;
  gap: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.checkout-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.checkout-item-meta {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.checkout-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.checkout-item-actions button {
  border: 1px solid rgba(20, 16, 14, 0.2);
  border-radius: 999px;
  background: transparent;
  padding: 4px 10px;
  cursor: pointer;
}

.checkout-summary {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 16, 14, 0.15);
  display: grid;
  gap: 8px;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-total {
  margin-top: 6px;
  font-size: 18px;
}

.form-error {
  display: none;
  color: #b24436;
}

.checkout-card {
  width: min(560px, 92vw);
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(20, 16, 14, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.checkout-card h1 {
  margin-top: 0;
  font-family: "Unbounded", "Helvetica Neue", sans-serif;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.form-row input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 16, 14, 0.2);
  font-size: 15px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.checkbox-row span {
  flex: 1 1 auto;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .nav-left,
  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo-link img {
    height: 52px;
  }
  .footer-logo {
    width: min(340px, 64vw);
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
  }

  .footer-logo img {
    width: 100%;
    height: auto;
  }

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

  .products,
  .footer-grid,
  .product-page {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .form-inline.two-cols {
    grid-template-columns: 1fr;
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
