:root {
  --ink: #202426;
  --teal: #245F73;
  --mahogany: #733E24;
  --paper: #F2F0EF;
  --gray: #BBBDBC;
  --muted: #626a6d;
  --line: rgba(36, 95, 115, .16);
  --radius: 22px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.has-announcement {
  padding-top: 112px;
}

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

button,
select {
  font: inherit;
}

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

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

.announcement-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  min-height: 34px;
  padding: 7px 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.announcement-bar strong {
  margin-left: .3em;
  color: #fff;
}

.navbar {
  position: fixed;
  inset: 34px 0 auto;
  z-index: 1000;
  background: rgba(242, 240, 239, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(36, 95, 115, .05);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand::before {
  content: "";
  width: 205px;
  height: 58px;
  display: block;
  background: url("logo.png") center / contain no-repeat;
}

.brand span {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  color: #39484d;
  font-size: .92rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--gray);
  border-radius: 50%;
  background: var(--paper);
  color: var(--teal);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mahogany);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}

.menu-btn {
  display: none;
}

.product-page {
  padding: 44px 0 100px;
}

.breadcrumbs {
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #677174;
  font-size: .86rem;
}

.breadcrumbs a:hover {
  color: var(--mahogany);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.gallery {
  min-width: 0;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e7e1;
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-main:hover img {
  transform: scale(1.07);
}

.zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(242, 240, 239, .92);
  color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  font-size: .78rem;
  font-weight: 800;
  pointer-events: none;
}

.thumbnail-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.thumbnail {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #e9e7e1;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
}

.thumbnail.active {
  border-color: var(--mahogany);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  position: static;
}

.product-category {
  color: var(--mahogany);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.product-info h1 {
  margin-top: 7px;
  font-size: clamp(2.1rem, 3.25vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.rating-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #5e676a;
  font-size: .9rem;
}

.trust-stars {
  padding: 5px 8px;
  background: #00b67a;
  color: #fff;
  letter-spacing: .08em;
  line-height: 1;
}

.product-summary {
  margin-top: 15px;
  color: #586164;
  font-size: .97rem;
  line-height: 1.55;
}

.product-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--teal);
  font-size: 1.72rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.product-price .regular-total {
  color: #7a8385;
  font-size: .72em;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.product-price .discounted-total {
  color: var(--teal);
}

.variant-field {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.variant-field label {
  font-size: .88rem;
  font-weight: 800;
}

.variant-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 13px;
  border: 1px solid var(--gray);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.product-quantity-field {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .55);
}

.quantity-label {
  display: block;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 850;
}

.quantity-saving {
  display: block;
  margin-top: 2px;
  color: #5b6568;
  font-size: .73rem;
  line-height: 1.35;
}

.product-quantity-control {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: 34px 40px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gray);
  border-radius: 999px;
  background: #fff;
}

.product-quantity-control button,
.product-quantity-control input {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-weight: 850;
}

.product-quantity-control button {
  color: var(--teal);
  cursor: pointer;
}

.product-quantity-control button:hover {
  background: #f2f0ef;
}

.product-quantity-control input {
  padding: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  appearance: textfield;
}

.product-quantity-control input::-webkit-inner-spin-button,
.product-quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-cta {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-cta .add-to-cart {
  grid-column: 1 / -1;
}

.payment-options {
  grid-column: 1 / -1;
  min-height: 34px;
  margin-top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-caption {
  margin-right: 2px;
  color: #687174;
  font-size: .68rem;
  font-weight: 750;
}

.payment-mark {
  width: 50px;
  height: 30px;
  min-width: 50px;
  padding: 4px 6px;
  flex: 0 0 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(36, 95, 115, .16);
  border-radius: 5px;
  background: #fff;
  color: #202426;
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.payment-mark.visa {
  color: #1434CB;
  font-size: .7rem;
  font-style: italic;
  letter-spacing: -.04em;
}

.payment-mark.mastercard {
  padding: 4px 6px;
}

.payment-mark.mastercard i {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
  background: #EB001B;
}

.payment-mark.mastercard i + i {
  margin-left: -5px;
  background: rgba(247, 158, 27, .92);
}

.payment-mark.official {
  padding: 3px 5px;
}

.payment-mark.official img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.payment-mark.amex-mark,
.payment-mark.google-pay-mark {
  width: 60px;
  height: 34px;
  padding: 2px;
  flex-basis: 60px;
}

.payment-mark.amex-mark img {
  transform: scale(1.08);
}

.payment-mark.google-pay-mark img {
  transform: scale(1.4);
}

.btn {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--mahogany);
  color: #fff;
}

.btn-secondary {
  border-color: var(--gray);
  background: rgba(255, 255, 255, .7);
  color: var(--teal);
}

.service-points {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.service-point {
  padding: 9px 8px 4px;
  border-top: 1px solid var(--line);
  color: #596366;
  font-size: .7rem;
}

.service-point strong {
  display: block;
  color: var(--ink);
  font-size: .76rem;
}

.product-details,
.product-reviews,
.related-section {
  padding: 88px 0;
}

.product-details {
  background: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(38px, 7vw, 90px);
}

.section-label {
  color: var(--mahogany);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.details-grid h2,
.reviews-head h2,
.related-section h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.description-copy p {
  margin-top: 18px;
  color: #596366;
}

.spec-list {
  border-top: 1px solid var(--line);
}

.spec-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(130px, .8fr) 1.2fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: #677174;
  font-size: .88rem;
}

.spec-row dd {
  font-weight: 750;
}

.spec-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #616a6d;
  background: var(--paper);
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.trust-summary {
  flex: 0 0 auto;
  text-align: right;
}

.trust-summary strong {
  display: block;
  font-size: 1.5rem;
}

.review-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(36, 95, 115, .06);
}

.review-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 850;
}

.review-card blockquote {
  margin-top: 18px;
  color: #3f494c;
  font-size: 1rem;
}

.review-author {
  margin-top: 18px;
  color: #6c7476;
  font-size: .86rem;
}

.review-disclosure {
  margin-top: 18px;
  color: #737b7e;
  font-size: .8rem;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
}

.related-card-copy {
  padding: 18px;
}

.related-card-copy span {
  color: var(--mahogany);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.related-card-copy h3 {
  margin-top: 7px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.related-card-copy strong {
  margin-top: 12px;
  display: block;
  color: var(--teal);
}

footer {
  padding: 70px 0 26px;
  background: var(--teal);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

footer .brand::before {
  width: 210px;
  height: 62px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 390px;
  color: #e5e8e8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col h4 {
  margin-bottom: 14px;
}

.footer-col a {
  margin: 8px 0;
  display: block;
  color: #e5e8e8;
  font-size: .9rem;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(242, 240, 239, .2);
  color: #e5e8e8;
  font-size: .84rem;
}

.zoom-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(10, 14, 15, .96);
  color: #fff;
  overflow: hidden;
}

.zoom-dialog::backdrop {
  background: rgba(10, 14, 15, .96);
}

.zoom-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
}

.zoom-stage img {
  max-width: 92vw;
  max-height: 86vh;
  transform-origin: center;
  transition: transform .18s ease;
  cursor: zoom-in;
}

.zoom-controls {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.zoom-control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  padding: 13px 17px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .product-layout,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }

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

@media (max-width: 720px) {
  body.has-announcement {
    padding-top: 112px;
  }

  .product-page {
    padding: 20px 0 58px;
  }

  .breadcrumbs {
    margin-bottom: 18px;
    gap: 6px;
    font-size: .78rem;
  }

  .product-layout {
    gap: 24px;
  }

  .gallery-main {
    border-radius: 17px;
  }

  .gallery-main:hover img {
    transform: none;
  }

  .zoom-hint {
    right: 12px;
    bottom: 12px;
    padding: 8px 11px;
  }

  .thumbnail-list {
    margin-top: 10px;
    gap: 8px;
  }

  .thumbnail {
    border-radius: 10px;
  }

  .product-info h1 {
    margin-top: 7px;
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .rating-row {
    margin-top: 14px;
    gap: 8px;
    font-size: .82rem;
  }

  .product-summary {
    margin-top: 16px;
    font-size: .98rem;
  }

  .product-price {
    margin-top: 18px;
    font-size: 1.72rem;
  }

  .variant-field {
    margin-top: 17px;
  }

  .product-cta {
    margin-top: 13px;
  }

  .service-points {
    margin-top: 18px;
    gap: 0;
  }

  .service-point {
    padding: 11px 4px;
  }

  .product-details,
  .product-reviews,
  .related-section {
    padding: 58px 0;
  }

  .product-cta,
  .service-points,
  .review-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-summary {
    text-align: left;
  }

  .details-grid,
  .reviews-head {
    gap: 26px;
  }

  .details-grid h2,
  .reviews-head h2,
  .related-section h2 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }

  .description-copy p {
    margin-top: 14px;
    font-size: .95rem;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px 0;
  }

  .review-card {
    padding: 20px;
  }

  .review-card blockquote {
    margin-top: 14px;
    font-size: .94rem;
  }

  .related-grid {
    gap: 14px;
  }

  .zoom-controls {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .zoom-stage img {
    max-width: 96vw;
    max-height: 80vh;
  }
}
