:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #66615b;
  --line: #dedbd4;
  --paper: #f8f6f1;
  --surface: #fffdf8;
  --leaf: #42604a;
  --rose: #b56d72;
  --sky: #dceaf1;
  --mustard: #d9b456;
  --shadow: 0 22px 60px rgba(27, 25, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  min-height: 44px;
}

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

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(248, 246, 241, 0.94);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3vw, 32px);
  letter-spacing: 0;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.search input {
  width: clamp(128px, 16vw, 220px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  outline: 0;
}

.search input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(66, 96, 74, 0.14);
}

.language-switch,
.category-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3px;
}

.language-switch {
  border-radius: 999px;
}

.language-switch button,
.category-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-switch button {
  min-width: 44px;
  border-radius: 999px;
  font-size: 12px;
}

.language-switch button.active,
.category-tabs button.active {
  background: var(--ink);
  color: white;
}

.bag-button,
.primary-link,
.secondary-link,
.add-button,
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.bag-button {
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0 16px;
}

.bag-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 36px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.7), rgba(18, 17, 15, 0.12) 62%),
    url("https://ourslippu.com/web/product/extra/big/202604/afabf06f9acca15b9acffa8a90de1776.jpg")
      center 42% / cover;
  transform: scale(1.01);
}

.hero-copy {
  position: relative;
  width: min(760px, calc(100% - 32px));
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 56px)
    clamp(44px, 9vw, 92px);
  color: white;
}

.hero-copy p:first-child,
.section-heading p,
.feature-copy p:first-child {
  margin: 0 0 12px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 11vw, 126px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p:not(:first-child) {
  width: min(520px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  min-width: 136px;
  border-radius: 999px;
  padding: 0 20px;
}

.primary-link {
  background: white;
  border-color: white;
  color: var(--ink);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.toolbar-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.toolbar,
.shop-section,
.feature-band {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.category-tabs {
  border-radius: 999px;
  overflow: auto;
}

.category-tabs button {
  min-width: 72px;
  border-radius: 999px;
  padding: 0 16px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
}

.category-tabs a.active {
  background: var(--ink);
  color: white;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sort-control select {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.shop-section {
  padding-block: clamp(34px, 6vw, 78px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--leaf);
}

.section-heading h2,
.feature-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-card button,
.product-card > a {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sky);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card button:hover img,
.product-card > a:hover img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  padding: 0 10px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.product-meta h3 {
  min-height: 42px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.product-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-price {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  padding-block: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.feature-copy p:first-child {
  color: var(--rose);
}

.feature-copy p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  align-content: start;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  background: var(--surface);
  padding: 22px;
}

.feature-list strong {
  font-size: 16px;
}

.feature-list span {
  color: var(--muted);
  line-height: 1.5;
}

.product-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(21, 21, 21, 0.42);
}

.product-drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(920px, 100%);
  min-height: 100%;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer-tools {
  position: sticky;
  top: 14px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 14px 0;
}

.drawer-close {
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
}

.drawer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(54px, 7vw, 86px) clamp(18px, 5vw, 56px) 44px;
}

.drawer-layout img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sky);
}

.drawer-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

#drawerCategory {
  margin: 0;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
  line-height: 1;
}

#drawerDescription {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

#drawerPrice {
  font-size: 20px;
}

.drawer-options {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
}

.drawer-options label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.drawer-options select,
.drawer-options input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  padding: 0 12px;
}

.add-button {
  width: 100%;
  border-radius: 0;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  display: none;
  min-height: 44px;
  transform: translateX(-50%);
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.toast.show {
  display: inline-flex;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 56px);
}

.page-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.page-heading p {
  margin: 0;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-heading h1,
.feature-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 500;
  line-height: 1;
}

.page-heading span {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-search input {
  width: min(420px, 100%);
}

.page-tabs {
  width: max-content;
  max-width: 100%;
  margin: 16px 0 28px;
  overflow: auto;
}

.detail-page {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(28px, 6vw, 76px) clamp(16px, 4vw, 56px);
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sky);
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-top: clamp(0px, 3vw, 36px);
}

.detail-copy > p:first-child {
  margin: 0;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 500;
  line-height: 1;
}

.detail-copy > p:not(:first-child) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.detail-copy > strong {
  font-size: 22px;
}

.related-section {
  border-top: 1px solid var(--line);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 96px auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  padding: 16px;
}

.cart-item img {
  width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cart-item p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cart-item label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.cart-item input {
  width: 92px;
  border: 1px solid var(--line);
  padding: 0 10px;
}

.cart-item button {
  border: 1px solid var(--line);
  background: white;
  padding: 0 14px;
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
}

.cart-summary span {
  color: var(--muted);
}

.cart-summary strong {
  font-size: 28px;
}

.integration-note {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.integration-note strong {
  color: var(--ink);
  font-size: 14px;
}

.info-page {
  min-height: calc(100vh - 72px);
  align-items: start;
}

.admin-page {
  display: grid;
  gap: 34px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.admin-form textarea {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

.admin-form button {
  grid-column: 1 / -1;
}

.admin-saved {
  display: grid;
  gap: 16px;
}

.admin-saved h2 {
  margin: 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.integration-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 132px;
  background: var(--surface);
  padding: 18px;
}

.integration-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.text-button {
  width: max-content;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
}

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

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

.checkout-form button {
  grid-column: auto;
}

.checkout-items {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

#checkoutResult {
  min-height: 160px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #f2f0ea;
  color: var(--ink);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .desktop-nav {
    order: 3;
    overflow: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-content: space-between;
  }

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

  .feature-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding: 12px 14px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .bag-button span {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 17, 15, 0.08), rgba(18, 17, 15, 0.78)),
      url("https://ourslippu.com/web/product/extra/big/202604/afabf06f9acca15b9acffa8a90de1776.jpg")
        center top / cover;
  }

  .toolbar {
    display: grid;
  }

  .category-tabs {
    justify-content: start;
  }

  .sort-control {
    justify-content: space-between;
  }

  .section-heading {
    display: grid;
  }

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

  .drawer-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .drawer-layout img {
    aspect-ratio: 1 / 1;
  }

  .detail-page,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    aspect-ratio: 1 / 1;
  }

  .cart-summary {
    position: static;
  }

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

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

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

  .language-switch,
  .bag-button {
    width: 100%;
  }

  .language-switch button,
  .bag-button {
    flex: 1;
  }

  .bag-button span {
    display: inline;
  }

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

  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-item img {
    width: 88px;
  }

  .cart-item label,
  .cart-item button {
    grid-column: 1 / -1;
  }

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