/* ═══════════════════════════════════════════════════════
   HIMOTHY — Product Page
   ═══════════════════════════════════════════════════════ */

.product-page {
  padding: 0 0 10px;
  background: #fff;
  color: #111;
}

.product-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 5% 1%;
}

/* ── BREADCRUMB ─────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  flex-wrap: wrap;
  color: #888;
  text-transform: uppercase;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: #111;
}

.breadcrumb span {
  color: #bbb;
}

.breadcrumb span:last-child {
  color: #111;
}

/* ── LAYOUT ─────────────────────────────────────────── */

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── GALLERY ────────────────────────────────────────── */

.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Vertical thumbnail strip */

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumb {
  width: 80px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: #f4f4f4;
  padding: 0;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.gallery-thumb.active {
  border-color: #111;
}

.gallery-thumb:hover {
  border-color: #999;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* Main image area */

.gallery-main-wrap {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #111;
  transition:
    background 0.18s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
  opacity: 0;
}

.gallery-main-wrap:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.main-product-image {
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 4;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── PRODUCT DETAILS ────────────────────────────────── */

.product-details {
  padding-top: 8px;
}

.product-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #111;
}

/* .product-price {
    font-family: "HelveticaW1Roman", "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    margin-bottom: 20px;
} */

.product-description {
  font-family: "HelveticaW1Roman", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-top: 10px;
  margin-bottom: 26px;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 28px;
}

/* ── OPTIONS ────────────────────────────────────────── */

.product-option {
  margin-top: 10px;
  margin-bottom: 24px;
}

.product-option label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.product-option select {
  width: 100%;
  height: 48px;
  border: 1.5px solid #ddd;
  background-color: #fff;
  padding: 0 48px 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: border-color 0.2s ease;
}

.product-option select:hover,
.product-option select:focus {
  border-color: #111;
}

.product-option select:invalid {
  color: #999;
}

/* ── CUSTOM SIZE DROPDOWN ───────────────────────────── */

.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  height: 48px;
  border: 1.5px solid #ddd;
  background-color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.custom-select-trigger:hover,
.custom-select-wrap.open .custom-select-trigger {
  border-color: #111;
}

.custom-select-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.custom-select-wrap.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-list {
  position: absolute;
  top: calc(100% - 1.5px);
  left: 0;
  width: 100%;
  border: 1.5px solid #111;
  border-top: none;
  background: #fff;
  z-index: 200;
  display: none;
  max-height: calc(48px * 3.5);
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
}

.custom-select-list::-webkit-scrollbar {
  width: 6px;
}

.custom-select-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.custom-select-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 0;
}

.custom-select-wrap.open .custom-select-list {
  display: block;
}

.custom-select-option {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #eee;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: #f5f5f5;
}

.custom-select-option.selected {
  color: #1d1d1d;
}

/* ── COLOR SWATCHES ─────────────────────────────────── */

.color-name-label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #555;
}

.color-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch {
  width: 30px;
  height: 30px;
  border: 1.5px solid transparent;
  cursor: pointer;
  border-radius: 50%;
  transition:
    transform 0.18s ease,
    outline-offset 0.18s ease;
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.active {
  outline: 1px solid #111;
  outline-offset: 3px;
}

.black {
  background: #111;
}

.blue {
  background: #4f86ff;
}

.brown {
  background: #6b5848;
}

.beige {
  background: #d3bfa0;
}

/* ── QUANTITY ───────────────────────────────────────── */

.quantity-box {
  width: 130px;
  height: 48px;
  border: 1.5px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  transition: border-color 0.2s ease;
}

.quantity-box:hover {
  border-color: #111;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.15s ease;
  border-radius: 0;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-btn svg {
  pointer-events: none;
}

.qty-number {
  font-size: 15px;
  font-weight: 500;
  min-width: 28px;
  text-align: center;
  color: #111;
  user-select: none;
}

/* ── BUTTONS ────────────────────────────────────────── */

.product-buttons {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}

.add-to-cart {
  flex: 1;
  height: 54px;
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.15s ease;
}

.add-to-cart:hover {
  background: transparent;
  color: #111;
  border-color: #111;
}

.add-to-cart:active {
  transform: scale(0.985);
}

.add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.add-to-cart--coming-soon,
.add-to-cart--coming-soon:hover,
.add-to-cart--coming-soon:disabled {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  opacity: 1 !important;
  cursor: default !important;
  transform: none !important;
  letter-spacing: 0.14em;
}

.wishlist-btn {
  width: 54px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-btn:hover {
  border-color: #111;
}

/* ── FIT & FABRIC INFO ──────────────────────────────── */

.product-fit-fabric {
  border-top: 1px solid #e8e8e8;
  margin-top: 32px;
  padding-top: 28px;
  margin-bottom: 32px;
}

.product-fit-fabric h2,
.product-fit-fabric strong {
  display: block;
  font-family: "HelveticaW1Roman", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  margin-top: 0;
  margin-bottom: 16px;
}

.product-fit-fabric ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-fit-fabric ul li {
  font-family: "HelveticaW1Roman", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #555;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.product-fit-fabric ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: bold;
}


/* ── SOCIAL ─────────────────────────────────────────── */

.product-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.product-social a {
  font-size: 17px;
  color: #999;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.product-social a:hover {
  color: #111;
  transform: translateY(-2px);
}

/* ── POLICY LINKS ──────────────────────────────────── */

.product-policy-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.product-policy-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-policy-links a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .product-layout {
    gap: 32px;
  }
}

/* ── TABLET: keep 2-column side-by-side ─────────────── */

@media (max-width: 991px) and (min-width: 600px) {
  .product-body {
    padding: 20px 20px 40px 20px;
  }

  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .product-gallery {
    position: sticky;
    top: 90px;
  }

  .product-gallery {
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }

  .gallery-thumb {
    width: 56px;
  }

  .gallery-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }

  .main-product-image {
    aspect-ratio: 3 / 4;
  }

  .product-title {
    font-size: 17px;
  }

  .product-price {
    font-size: 15px;
  }

  .product-description {
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .product-option {
    margin-bottom: 16px;
  }

  .product-option select {
    height: 42px;
  }

  .product-buttons {
    margin: 20px 0;
  }

  .add-to-cart {
    height: 46px;
    font-size: 12px;
  }
}

/* ── MOBILE: single column ──────────────────────────── */

@media (max-width: 599px) {
  .product-body {
    padding: 20px 20px 40px 20px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-gallery {
    position: relative;
    top: auto;
  }

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

  .gallery-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .gallery-thumb {
    width: 60px;
    flex-shrink: 0;
  }

  .gallery-main-wrap {
    order: 1;
  }

  .gallery-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }

  .main-product-image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 599px) {
  .add-to-cart {
    padding: 20px;
  }

  .product-page {
    padding-bottom: 60px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-price {
    font-size: 16px;
  }

  .product-description {
    font-size: 14px;
  }

  .main-product-image {
    aspect-ratio: 3 / 4;
  }

  .product-buttons {
    flex-direction: column;
  }

  .wishlist-btn {
    width: 100%;
    height: 54px;
  }
}