.product-page { padding: 24px 0 56px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.product-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.product-gallery__thumb { width: 72px; height: 96px; padding: 0; border: 2px solid #e8e4e0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--white); flex-shrink: 0; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb:hover { border-color: #c4bdb6; }
.product-gallery__thumb.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.product-gallery__main { position: relative; background: var(--white); border: 1px solid #e8e4e0; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; max-height: 640px; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { background: var(--white); border: 1px solid #e8e4e0; border-radius: 12px; padding: 28px 32px; }
.product-info h1 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.3; margin: 0 0 16px; }
.product-price { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin: 0 0 24px; }
.product-price .price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-right: 10px; }
.product-price__custom { font-size: 1.125rem; font-weight: 600; color: var(--dark); line-height: 1.45; }
.product-option { margin-bottom: 24px; }
.product-option__label { font-size: 0.875rem; font-weight: 600; margin: 0 0 12px; }
.color-dropdown { position: relative; max-width: 320px; }
.color-dropdown__toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e8e4e0; border-radius: 8px; background: var(--white); font-family: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--dark); cursor: pointer; text-align: left; }
.color-dropdown__toggle:hover { border-color: #c4bdb6; }
.color-dropdown__toggle[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(139,33,66,.12); }
.color-dropdown__swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e8e4e0; flex-shrink: 0; }
.color-dropdown__swatch--black { background: #1e1b21; }
.color-dropdown__swatch--custom { background: #fff; box-shadow: inset 0 0 0 1px #d4cfc8; }
.color-dropdown__label { flex: 1; }
.color-dropdown__arrow { width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-top: -4px; flex-shrink: 0; transition: transform 0.2s ease; }
.color-dropdown__toggle[aria-expanded="true"] .color-dropdown__arrow { transform: rotate(-135deg); margin-top: 4px; }
.color-dropdown__menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid #e8e4e0; border-radius: 8px; box-shadow: 0 12px 32px rgba(30,27,33,.12); }
.color-dropdown__option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 0.9375rem; font-weight: 500; }
.color-dropdown__option:hover, .color-dropdown__option.is-selected { background: var(--cream); }
.color-dropdown__option.is-selected { color: var(--primary); }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option { min-width: 48px; padding: 10px 14px; border: 1px solid #e8e4e0; border-radius: 8px; background: var(--white); font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; color: var(--dark); transition: border-color 0.15s, background 0.15s, color 0.15s; }
.size-option:hover { border-color: var(--primary); }
.size-option.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.size-option--custom { padding-inline: 16px; }
.product-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.product-actions .btn { width: 100%; padding: 14px 28px; font-size: 1rem; justify-content: center; }
.product-actions .btn[hidden] { display: none !important; }
.product-info .btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.product-info .btn-outline:hover { background: rgba(139,33,66,.06); }
.product-description { margin-bottom: 28px; padding-top: 24px; border-top: 1px solid #f0ece8; }
.product-description h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 12px; }
.product-description p { margin: 0; color: var(--text-muted); line-height: 1.7; font-size: 0.9375rem; }
.product-specs { margin: 0; padding-top: 24px; border-top: 1px solid #f0ece8; }
.product-specs h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 16px; }
.product-specs dl { margin: 0; display: grid; gap: 12px; }
.product-specs__row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; font-size: 0.9375rem; }
.product-specs dt { color: var(--text-muted); margin: 0; }
.product-specs dd { margin: 0; font-weight: 500; }
.product-specs a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.product-specs a:hover { color: #a8325a; }
.product-details { margin-top: 40px; margin-bottom: 56px; }
.product-accordion { background: var(--white); border: 1px solid #e8e4e0; border-radius: 12px; overflow: hidden; }
.product-accordion__item { border-bottom: 1px solid #e8e4e0; }
.product-accordion__item:last-child { border-bottom: none; }
.product-accordion__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.product-accordion__summary::-webkit-details-marker { display: none; }
.product-accordion__summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; margin-top: -4px; }
.product-accordion__item[open] .product-accordion__summary::after { transform: rotate(-135deg); margin-top: 4px; }
.product-accordion__summary:hover { color: var(--primary); }
.product-accordion__body { padding: 0 24px 24px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }
.product-about__title { font-size: 1.125rem; font-weight: 600; color: var(--dark); margin: 0 0 12px; }
.product-about__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.product-about__list li { display: grid; gap: 6px; }
.product-about__list strong { color: var(--dark); font-weight: 600; }
.product-about__list strong::before { content: "• "; color: var(--primary); }
.size-chart-intro { margin: 0 0 16px; color: var(--text-muted); }
.size-chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-chart { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.size-chart thead th { text-align: left; font-weight: 600; color: var(--dark); padding: 12px 16px 12px 0; border-bottom: 1px solid #e8e4e0; white-space: nowrap; }
.size-chart tbody td { padding: 14px 16px 14px 0; border-bottom: 1px solid #f0ece8; color: var(--dark); }
.size-chart tbody tr:last-child td { border-bottom: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery__thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .product-gallery__main { max-height: none; aspect-ratio: 4/5; }
  .product-info { padding: 20px; }
  .product-specs__row { grid-template-columns: 1fr; gap: 4px; }
  .product-accordion__summary { padding: 16px 18px; }
  .product-accordion__body { padding: 0 18px 18px; }
}
.product-related { padding-top: 16px; margin-top: 16px; }
.product-related__grid { grid-template-columns: repeat(4, 1fr); }
.placeholder-img { background: linear-gradient(135deg, #e8e4e0, #d4cfc8); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.875rem; }
.tailoring { background: var(--dark); color: var(--white); border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.tailoring h2 { font-size: 1.75rem; margin: 0 0 16px; }
.tailoring p { opacity: .85; margin: 0; }
.tailoring-form { background: rgba(255,255,255,.08); border-radius: 12px; padding: 28px 24px; }
.tailoring-form__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 20px; color: var(--white); }
.tailoring-form .form-field label { color: rgba(255,255,255,.92); }
.tailoring-form .form-check { color: rgba(255,255,255,.78); margin-bottom: 16px; }
.tailoring-form .form-check a { color: var(--gold); }
.tailoring-form__submit { width: 100%; }
.tailoring .btn-outline { border-color: rgba(255,255,255,.65); color: var(--white); }
.tailoring .btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30,27,33,.55); }
.modal__dialog { position: relative; width: min(480px, 100%); background: var(--white); border-radius: 16px; padding: 28px 24px 24px; max-height: min(90vh, 640px); overflow-y: auto; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--dark); display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: #e8e4e0; }
.modal__title { font-size: 1.375rem; font-weight: 700; margin: 0 0 20px; padding-right: 32px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #e8e4e0; border-radius: 8px; font-family: inherit; font-size: 1rem; background: var(--white); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid rgba(139,33,66,.25); border-color: var(--primary); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.45; }
.form-check input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.form-check a { color: var(--primary); text-decoration: underline; }
body.modal-open { overflow: hidden; }
@media (max-width: 1024px) {
  .product-related__grid { grid-template-columns: repeat(2, 1fr); }
  .tailoring { grid-template-columns: 1fr; }
}
