.page-main { padding: 28px 0 72px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--teal-ink); }
.crumbs .sep { opacity: 0.45; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.page-head .sub { margin: 0; color: var(--muted); }
.page-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  position: sticky;
  top: 88px;
}
.filters h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.filters + .filters, .filter-block + .filter-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-list { display: grid; gap: 4px; }
.filter-list a,
.filter-chips button {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  text-align: left;
}
.filter-list a:hover,
.filter-chips button:hover { background: var(--paper); }
.filter-list a.is-active,
.filter-chips button.is-active {
  background: #d8f3f1;
  color: var(--teal-ink);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { border: 1px solid var(--line); background: var(--paper); }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.shop-toolbar select { width: auto; min-width: 160px; height: 42px; }
.shop-layout .grid { grid-template-columns: repeat(3, 1fr); }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.gallery {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}
.gallery-main {
  background: #f3efe6;
  border-radius: 16px;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.gallery-main img { max-height: 400px; width: auto; max-width: 92%; object-fit: contain; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs button {
  width: 76px;
  height: 64px;
  border: 1px solid var(--line);
  background: #f3efe6;
  border-radius: 10px;
  padding: 4px;
  display: grid;
  place-items: center;
}
.gallery-thumbs button.is-active { border-color: var(--teal); }
.gallery-thumbs img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

.pdp-buy {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.pdp-buy .card-type { margin-bottom: 8px; }
.pdp-buy h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.pdp-buy .sku { color: var(--muted); margin-bottom: 16px; }
.pdp-buy .price { margin: 0 0 8px; }
.pdp-buy .price strong { font-size: 28px; }
.pdp-buy .lead { color: var(--ink-2); margin: 16px 0 20px; }
.pdp-skus { margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pdp-skus .sku-label { width: 100%; font-size: 13px; color: var(--muted); }
.sku-chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.sku-chip.is-active { border-color: var(--teal, #1aa7a1); color: var(--teal, #1aa7a1); }
.pdp-detail { line-height: 1.7; }
.pdp-detail img { max-width: 100%; height: auto; }

.pdp-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 10px;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.stepper button {
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
}
.stepper input {
  width: 48px;
  height: 44px;
  border: 0;
  background: transparent;
  text-align: center;
}
.pdp-actions .btn { flex: 1; }
.pdp-help {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.pdp-help a { color: var(--teal-ink); }

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.feature-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.pdp-panel {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 28px;
}
.pdp-panel h2 { margin: 0 0 16px; font-size: 20px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-table th { width: 160px; color: var(--muted); font-weight: 500; }

.related { margin-top: 48px; }
.related h2 { margin: 0 0 18px; }

@media (max-width: 1080px) {
  .shop-layout, .pdp { grid-template-columns: 1fr; }
  .shop-layout .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { position: static; }
  .gallery-main { min-height: 280px; }
}

@media (max-width: 760px) {
  .shop-layout .grid { grid-template-columns: 1fr; }
}

.auth-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}
.auth-card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-visual {
  background:
    radial-gradient(400px 240px at 20% 20%, rgba(26,167,161,.28), transparent 60%),
    #17191d;
  color: #f4efe6;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 480px;
}
.auth-visual h2 {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.auth-visual p { margin: 0; color: #c9c3b6; }
.auth-form { padding: 40px 36px; }
.auth-form h1 {
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 8px;
}
.auth-form .sub { margin: 0 0 24px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--paper);
}
.field input:focus { outline: 2px solid #bfe8e5; border-color: var(--teal); }
.auth-form .btn { width: 100%; margin-top: 8px; }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--teal-ink); font-weight: 600; }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.account-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.account-user { padding: 8px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-user b { display: block; }
.account-user span { color: var(--muted); font-size: 12px; }
.account-side a,
.account-side button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
}
.account-side a.is-active,
.account-side a:hover { background: #d8f3f1; color: var(--teal-ink); }

.order-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.order-tabs button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 500;
}
.order-tabs button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.status {
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}
.status.paid { background: #e8f3ff; color: #1d4e89; }
.status.shipped { background: #fff4d6; color: #8a5a00; }
.status.done { background: #e6f6ea; color: #2d6b38; }
.status.pending { background: #f3efe6; color: #6d675e; }
.status.cancelled { background: #f3e8e8; color: #7a2e2e; }

.order-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.order-item img {
  width: 72px;
  height: 56px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
}
.order-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
}

.cart-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.cart-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 18px;
}
.cart-row {
  display: grid;
  grid-template-columns: 90px 1fr 120px 90px 32px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 90px;
  height: 70px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 10px;
}
.cart-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}
.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  position: sticky;
  top: 88px;
}
.cart-summary h2 { margin: 0 0 16px; font-size: 20px; }
.sum-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.sum-line.total { font-size: 18px; font-weight: 800; color: var(--ink); margin: 16px 0; }
.cart-summary .btn { width: 100%; }

.checkout-main { display: grid; gap: 18px; }
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.checkout-card h2 { margin: 0 0 16px; font-size: 20px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field-wide { grid-column: 1 / -1; }
.pay-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pay-opt.is-on { border-color: var(--teal); background: #f3fbfa; }
.pay-opt em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 4px; }
.pay-result { max-width: 560px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.pay-result h1 { margin: 0 0 10px; font-family: var(--display); }
.pay-result .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .field-grid { grid-template-columns: 1fr; }
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.support-grid article,
.support-faq,
.support-contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.support-grid h2,
.support-faq h2,
.support-contact h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.support-grid p,
.support-faq p { margin: 0 0 10px; color: var(--ink-2); }
.support-grid p:last-child { margin-bottom: 0; }
.support-faq { margin-bottom: 16px; }
.support-faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
}
.support-faq details:first-of-type { border-top: 0; padding-top: 4px; }
.support-faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.support-faq summary::-webkit-details-marker { display: none; }
.support-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.support-contact .btn { margin-right: 8px; margin-top: 8px; }

@media (max-width: 900px) {
  .auth-card, .account-layout, .cart-page, .support-grid, .support-contact { grid-template-columns: 1fr; }
  .auth-visual { min-height: 180px; }
  .cart-row { grid-template-columns: 72px 1fr auto; }
}
