/* ===== Product page ===== */
.header.solid {
  position: relative; inset: auto; height: 179px;
  background: #ffffff; color: #1d1a1b; border-bottom: 1px solid #e5e3e3;
}
.header.solid .brand { color: #ffffff; }
.header.solid .nav-row { top: 140px; }
.header.solid .nav-row a, .header.solid .nav-row .icon, .header.solid .nav-scroll a { color: #1d1a1b; }

.p-main { display: grid; grid-template-columns: 44.7% 1fr; min-height: 614px; }
.p-gallery { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.p-stage { position: relative; flex: 1; overflow: hidden; min-height: 466px; background: #fff; }
.p-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; padding: 4%; box-sizing: border-box; }
.p-thumbs { display: flex; height: 148px; flex: none; }
.p-thumb {
  flex: none; width: 148px; height: 148px; padding: 0; margin: 0;
  border: 1px solid transparent; background: none; cursor: pointer; overflow: hidden;
}
.p-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; box-sizing: border-box; }
.p-thumb { background: #fff; }
.p-thumb[aria-current="true"] { border-color: #1d1a1b; }

.p-info { position: relative; display: flex; flex-direction: column; padding: 13px 68px 0 102px; min-width: 0; }
.crumbs { margin: 0; font-family: var(--font-ui); font-size: 14px; line-height: 22px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { font-weight: 700; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 54px; }
.p-title {
  margin: 0; max-width: 396px;
  font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 50.4px;
  text-transform: uppercase;
}
.p-price { flex: none; text-align: right; }
.p-price strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 48px; line-height: 52px; white-space: nowrap;
}
.p-price small { display: block; font-family: var(--font-ui); font-size: 14.5px; line-height: 20px; }
.p-stars { display: flex; align-items: center; gap: 4px; margin-top: 15px; font-family: var(--font-ui); font-size: 14px; }
.p-stars svg { width: 18px; height: 18px; }
.p-stars span { margin-left: 6px; }
.p-stock { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-family: var(--font-ui); font-size: 14px; }
.p-stock i { width: 9px; height: 9px; border-radius: 50%; background: #2f8f4e; display: block; }
.p-bottom { margin-top: auto; }
.p-swatch {
  display: block; width: 40px; height: 40px; border-radius: 50%; padding: 4px;
  border: 1px solid #1d1a1b; background: none; margin-bottom: 72px;
}
.p-swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #a8693f; }
.p-cta { display: flex; align-items: center; }
.p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 55px; padding: 0 28px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: #ffffff;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .01em;
  text-transform: uppercase; white-space: nowrap; transition: background-color .15s ease;
}
.p-btn:hover { background: var(--accent-hover); }
.p-icons { display: flex; margin-left: auto; margin-right: -13px; }
.p-icons button { width: 65px; height: 48px; padding: 0; border: 0; background: none; color: #1d1a1b; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.p-icons svg { height: 36px; width: auto; }
.p-icons button:hover { opacity: .65; }

/* sections under the product */
.p-section { background: #ffffff; color: #1d1a1b; padding-left: 72px; padding-right: 72px; }
.p-features { padding-top: 135px; }
.p-h2 { margin: 0; font-family: var(--font-ui); font-weight: 600; font-size: 24px; line-height: 1.2; }
.p-features ul { margin: 38px 0 0; padding: 0; }
.p-features li { margin: 0 0 27px; max-width: 440px; font-family: var(--font-ui); font-weight: 300; font-size: 20.4px; line-height: 28px; }

.p-tabs { padding-top: 96px; }
.p-tablist { display: flex; gap: 37px; }
.p-tab {
  padding: 0 0 3px; border: 0; background: none; cursor: pointer; color: #1d1a1b;
  font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 28px; text-transform: uppercase;
}
.p-tab[aria-selected="true"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.p-panel { display: none; margin-top: 84px; }
.p-panel.active { display: block; }
.p-details { display: grid; grid-template-columns: 408px 195px minmax(0, 1fr); column-gap: 53px; align-items: start; }
.p-details h3 { margin: 0; font-family: var(--font-ui); font-weight: 600; font-size: 22.4px; line-height: 28px; }
.p-details p, .p-spec p { margin: 0; font-family: var(--font-ui); font-weight: 300; font-size: 20.4px; line-height: 28px; }
.p-details img { width: 195px; height: auto; display: block; }
.p-spec h4 { margin: 0 0 1px; font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 22px; letter-spacing: .01em; text-transform: uppercase; }
.p-spec + .p-spec { margin-top: 27px; }
.p-spec p b { font-weight: 600; }
.p-noreviews { font-family: var(--font-ui); font-weight: 300; font-size: 20.4px; line-height: 28px; margin: 0; }

/* carousels */
.rec { background: #ffffff; color: #1d1a1b; padding: 100px 0 0; position: relative; }
.rec:last-of-type { padding-bottom: 110px; }
.rec h2 { margin: 0 0 22px; padding-left: 62px; font-family: var(--font-ui); font-weight: 600; font-size: 22.4px; line-height: 1.2; }
.rec-wrap { position: relative; }
.rec-track { display: flex; overflow-x: auto; padding-left: 62px; scroll-padding-left: 62px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rec-track::-webkit-scrollbar { display: none; }
.rec-card { flex: none; width: 380px; padding-right: 60px; scroll-snap-align: start; display: block; }
.rec-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.rec-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; display: block; transition: transform .4s ease; }
.rec-card:hover .rec-img img { transform: scale(1.03); }
.rec-name { display: block; margin-top: 22px; font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; }
.rec-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 35px; font-family: var(--font-ui); font-weight: 300; font-size: 18px; line-height: 27.5px;
}
.rec-price { display: block; margin-top: 33px; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.rec-arrow {
  position: absolute; top: 176px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: #0b0b0b; color: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.rec-arrow:hover { background: #2a2a2a; }
.rec-arrow svg { width: 18px; height: 18px; }
.rec-next { right: 9px; } .rec-prev { left: 9px; }
.rec-arrow[hidden] { display: none; }

/* second sticky bar with name, price and button */
.pbar {
  position: fixed; left: 0; right: 0; top: 72px; z-index: 40; height: 105px;
  background: #ffffff; border-bottom: 1px solid #e5e3e3;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.pbar.show { transform: translateY(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
.pbar-in { display: grid; grid-template-columns: 506px 239px 328px 1fr; align-items: center; height: 104px; padding: 0 72px; }
.pbar-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 29px; line-height: 1.1; text-transform: uppercase; }
.pbar-price { display: inline-block; text-align: right; justify-self: start; }
.pbar-price strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 29px; line-height: 1.1; }
.pbar-price small { display: block; font-family: var(--font-ui); font-size: 13px; line-height: 16px; }
.pbar .p-btn { width: 328px; height: 56px; }
.pbar .p-icons { margin-right: -10px; }
.pbar .p-icons svg { height: 34px; }

@media (max-width: 1100px) {
  .pbar-in { grid-template-columns: 1fr auto 260px; }
  .pbar-icons { display: none; }
  .pbar .p-btn { width: 260px; }
  .p-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-details > img { display: none; }
}
@media (max-width: 900px) {
  .p-main { grid-template-columns: 1fr; height: auto; }
  .p-gallery { height: auto; }
  .p-stage { flex: none; aspect-ratio: 4 / 3; }
  .p-info { padding: 24px 24px 32px; }
  .p-head { margin-top: 28px; flex-direction: column; gap: 14px; }
  .p-title { font-size: 40px; line-height: 38px; }
  .p-price { text-align: left; }
  .p-price strong { font-size: 34px; }
  .p-bottom { margin-top: 24px; }
  .p-swatch { margin-bottom: 28px; }
  .p-icons { margin-right: -10px; }
  .pbar { display: none; }
  .p-section { padding-left: 24px; padding-right: 24px; }
  .p-features { padding-top: 64px; }
  .p-tabs { padding-top: 64px; }
  .p-panel { margin-top: 40px; }
  .p-details { grid-template-columns: 1fr; row-gap: 32px; }
  .rec { padding-top: 64px; }
  .rec h2 { padding-left: 24px; }
  .rec-track { padding-left: 24px; scroll-padding-left: 24px; }
  .rec-card { width: 260px; padding-right: 20px; }
  .rec-arrow { display: none; }
}
@media (max-width: 720px) {
  .header.solid { height: 190px; }
}
.header.solid .search { box-shadow: inset 0 0 0 1px #cfcaca; }
main { background: #ffffff; color: #1d1a1b; display: flow-root; }
.pbar { color: #1d1a1b; }
.p-info { background: #ffffff; }
@media (max-width: 900px) {
  .p-thumbs { height: 96px; overflow-x: auto; scrollbar-width: none; }
  .p-thumb { width: 96px; height: 96px; }
  .p-icons { margin-right: 0; }
  .p-icons button { width: 52px; }
  .p-cta { gap: 8px; }
  .p-btn { padding: 0 22px; }
}
.p-icons button.on svg path { fill: currentColor; }

/* ===== variants, spec line, long text ===== */
.p-title.long { font-size: 40px; line-height: 40px; max-width: 420px; }
.p-spec-line { margin: 14px 0 0; max-width: 440px; font-family: var(--font-ui); font-weight: 300; font-size: 17px; line-height: 24px; color: #4a4547; }
.p-price strong.from::before { content: "From"; display: block; font-family: var(--font-ui); font-weight: 400; font-size: 14.5px; line-height: 20px; text-align: right; }
.p-opts { margin: 22px 0 0; display: grid; gap: 18px; }
.p-opt h4 { margin: 0 0 9px; font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 22px; letter-spacing: .01em; text-transform: uppercase; }
.p-opt h4 span { font-family: var(--font-ui); font-weight: 300; text-transform: none; font-size: 15px; margin-left: 8px; letter-spacing: 0; }
.p-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.p-choice {
  min-height: 44px; padding: 8px 16px; background: #fff; color: #1d1a1b; cursor: pointer;
  border: 1px solid #b9b3b5; border-radius: 0; font-family: var(--font-ui); font-size: 15px; line-height: 20px;
}
.p-choice:hover { border-color: #1d1a1b; }
.p-choice[aria-checked="true"] { border-color: #1d1a1b; box-shadow: inset 0 0 0 1px #1d1a1b; }
.p-choice.sw { width: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.p-choice.sw i { display: block; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.p-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-sku { margin: 12px 0 0; font-family: var(--font-ui); font-size: 13px; color: #6b6567; }
.p-details-text p + p { margin-top: 14px; }
.p-bottom { padding-top: 22px; }
@media (max-width: 900px) { .p-title.long { font-size: 32px; line-height: 34px; } .p-main { min-height: 0; } .p-stage { min-height: 0; } }
.p-para { display: block; }
.p-para + .p-para { margin-top: 14px; }

/* Phones: on pages with the white header, keep the account / wishlist / cart icons at the top (the desktop rule above moves them down and they land on top of the menu row). */
@media (max-width: 720px) {
  .header.solid .nav-row { top: 24px; }
}
