/* =========================================================
   product.css — страница товара (PDP)
   canadagoose-original.ru
   ========================================================= */

.pdp {
  padding: 32px var(--gutter) 80px;
}

.pdp__crumbs {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 32px;
}
.pdp__crumbs a { color: inherit; text-decoration: none; }
.pdp__crumbs a:hover { color: #222; }
.pdp__crumbs span + span::before { content: "/"; margin: 0 6px; }

/* Two-column layout: gallery + info */
.pdp__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Gallery ─────────────────────────────────────── */
.pdp__gallery {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 100px;
}

.pdp__gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pdp__thumb {
  width: 72px;
  height: 72px;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp__thumb.is-active {
  border-color: #222;
}

.pdp__gallery-main {
  flex: 1;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Info column ─────────────────────────────────── */
.pdp__info {
  padding-top: 8px;
}

.pdp__article {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 10px;
}

.pdp__title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 20px;
}

.pdp__temp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #555;
  margin: 10px 0 14px;
}
.pdp__temp svg { flex-shrink: 0; color: #222; }

.pdp__lead {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 24px;
}

/* Color swatches (rendered by cgColorSwatches snippet) */
.pdp__swatches {
  margin: 0 0 20px;
}
.pdp__swatches-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.pdp__swatches-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.pdp__swatch.is-active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #222;
}

.pdp__price {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px;
}

/* Size selector */
.pdp__sizes {
  margin: 0 0 24px;
}
.pdp__sizes-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.pdp__sizes-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp__size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: .05em;
  transition: border-color .15s, background .15s;
}
.pdp__size-btn:hover:not(.is-disabled) {
  border-color: #222;
}
.pdp__size-btn.is-active {
  border-color: #222;
  background: #222;
  color: #fff;
}
.pdp__size-btn.is-disabled {
  color: #bbb;
  cursor: default;
  text-decoration: line-through;
}

/* Buy button */
.pdp__buy {
  width: 100%;
  margin-bottom: 32px;
}

/* Accordion */
.pdp__acc { }
.pdp__acc-item {
  border-top: 1px solid #e0e0e0;
}
.pdp__acc-item:last-child {
  border-bottom: 1px solid #e0e0e0;
}
.pdp__acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pdp__acc-head::-webkit-details-marker { display: none; }
.pdp__acc-head::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}
details[open] > .pdp__acc-head::after {
  content: '–';
}
.pdp__acc-body {
  padding-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}
.pdp__acc-body p { margin: 0 0 6px; }

/* Size chart table */
.pdp__acc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pdp__acc-body table caption {
  text-align: left;
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
  caption-side: top;
}
.pdp__acc-body table th,
.pdp__acc-body table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}
.pdp__acc-body table th:first-child,
.pdp__acc-body table td:first-child {
  text-align: left;
  font-weight: 600;
}
.pdp__acc-body table thead th {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #222;
}
.pdp__acc-body table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  .pdp__layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .pdp__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdp__gallery { position: static; }
  .pdp__title { font-size: 28px; }
  .pdp__crumbs { margin-bottom: 24px; }
  .pdp { padding: 20px var(--gutter) 60px; }
}

@media (max-width: 480px) {
  .pdp__thumb { width: 60px; height: 60px; }
}

/* ── Color swatches (переключение цветов товара) ──────────────────── */
.pdp__colors {
  margin: 0 0 24px;
}
.pdp__colors-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}
.pdp__colors-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pdp__color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 2px #fff;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
  transition: box-shadow .15s, transform .15s;
}
.pdp__color-swatch:hover {
  transform: scale(1.12);
}
.pdp__color-swatch.is-active {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px #222;
  border-color: #222;
}
.pdp__color-name {
  font-size: 13px;
  color: #222;
  margin: 0;
}
