/* ==========================================================================
   Product page
   ========================================================================== */

.dc-pdp { padding-top: 16px; }
.dc-pdp__grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
	.dc-pdp__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.dc-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- Gallery: swipeable main image + horizontal thumbnail strip ---------- */
.dc-gallery { min-width: 0; }
.dc-gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--g50); border: var(--card-border); }
.dc-gallery__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.dc-gallery__track::-webkit-scrollbar { display: none; }
.dc-gallery__slide { scroll-snap-align: center; aspect-ratio: 1; }
.dc-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.dc-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	display: grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid var(--g200); border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); color: var(--ink);
	box-shadow: var(--card-shadow); opacity: 0; transition: opacity .2s;
}
.dc-gallery__nav--prev { left: 12px; }
.dc-gallery__nav--next { right: 12px; }
.dc-gallery__main:hover .dc-gallery__nav { opacity: 1; }
.dc-gallery__nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .dc-gallery__nav { display: none; } }

.dc-gallery__thumbs {
	display: flex; gap: 8px; margin-top: 10px; padding: 2px 2px 8px;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.dc-gallery__thumb {
	flex: 0 0 72px; aspect-ratio: 1; padding: 0; overflow: hidden;
	border: 1.5px solid var(--g200); border-radius: var(--r-sm); background: var(--g50);
	scroll-snap-align: start; transition: border-color .15s;
}
@media (min-width: 900px) { .dc-gallery__thumb { flex-basis: 84px; } }
.dc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-gallery__thumb:hover { border-color: var(--g500); }
.dc-gallery__thumb.is-active { border-color: var(--black); }
.dc-gallery__thumbs:has(> :only-child) { display: none; }

/* ---------- Summary ---------- */
.dc-pdp__summary { min-width: 0; }
.dc-pdp__type { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g600); }
.dc-pdp__title { margin-top: 4px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.dc-pdp__rating { display: inline-flex; margin-top: 8px; color: var(--ink); text-decoration: none; }
.dc-pdp__price { margin-top: 10px; font-size: 22px; }
.dc-pdp__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.dc-pdp__switch { margin-top: 18px; }

.dc-pdp__buy { margin-top: 18px; }
/* Keep the buy box inside the phone screen: grid columns default to their content width, so the
   Complete the Look slider (5 items on accessory pages) was widening the form and the whole page.
   minmax(0, 1fr) + min-width: 0 make the slider scroll inside its own box instead (Oct 14). */
.dc-pdp__buy form.cart { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
.dc-pdp__buy form.cart > *, .dc-pdp__buy .single_variation_wrap, .dc-pdp__buy .variations_button { min-width: 0; max-width: 100%; }
.dc-addons { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
.dc-addons > * { min-width: 0; max-width: 100%; }
.dc-buy { display: grid; gap: 14px; }
.dc-options { display: grid; gap: 14px; }
.dc-option { display: grid; gap: 8px; }
.dc-option--single { display: none; }
.dc-option__label { font-size: 14px; font-weight: 700; }
.dc-reset { display: none !important; }
.dc-buy .single_variation:empty { display: none; }
.dc-buy .single_variation { font-size: 14px; color: var(--g600); }
.dc-buy .single_variation .price { display: none; } /* Price shows at the top instead. */
.dc-buy .single_variation .stock.out-of-stock { color: var(--sale); font-weight: 600; }
.dc-buy__row { display: flex; gap: 10px; margin-top: 4px; }
.dc-buy__row .dc-btn { flex: 1; }
.dc-buy .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.dc-stock--out { color: var(--sale); font-weight: 600; }

/* ---------- Complete the Look (add-ons slider above Add to Cart) ---------- */
.dc-addons { margin: 0 0 14px; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.dc-addons__title { padding: 0; font-size: 15px; font-weight: 800; }
.dc-addons__track { grid-auto-columns: 124px; gap: 10px; padding: 2px 2px 8px; }
.dc-addons .dc-carousel__btn { top: 50px; width: 34px; height: 34px; }
.dc-addons .dc-carousel__btn--prev { left: -8px; }
.dc-addons .dc-carousel__btn--next { right: -8px; }
.dc-addon { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; }
.dc-addon__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-addon__main { display: grid; gap: 3px; cursor: pointer; }
.dc-addon__img {
	position: relative; display: block; aspect-ratio: 1; overflow: hidden;
	border: 1.5px solid var(--g200); border-radius: var(--r); background: var(--g50); transition: border-color .15s;
}
.dc-addon__img img { width: 100%; height: 100%; object-fit: cover; }
.dc-addon__box {
	position: absolute; top: 6px; left: 6px; display: grid; place-items: center; width: 22px; height: 22px;
	border: 1.5px solid var(--g500); border-radius: var(--r-xs); color: transparent; background: var(--white);
}
.dc-addon__box .dc-icon { width: 16px; height: 16px; stroke-width: 3; }
.dc-addon__check:checked + .dc-addon__main .dc-addon__img { border-color: var(--black); }
.dc-addon__check:checked + .dc-addon__main .dc-addon__box { background: var(--black); border-color: var(--black); color: var(--white); }
.dc-addon__check:focus-visible + .dc-addon__main .dc-addon__box { outline: 2px solid var(--link); outline-offset: 2px; }
.dc-addon__name { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dc-addon__price { font-size: 12.5px; }
.dc-addon__var { width: 100%; font-size: 12px; }

/* ---------- Perks ---------- */
.dc-pdp__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 20px; padding: 14px; border-radius: var(--r-lg); border: var(--card-border); }
.dc-pdp__perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.dc-pdp__perks .dc-icon { width: 20px; height: 20px; }

/* ---------- Collapsible tabs ---------- */
.dc-accordion { margin-top: 20px; border-top: 1px solid var(--g200); }
.dc-accordion__item { border-bottom: 1px solid var(--g200); }
.dc-accordion__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 2px; cursor: pointer; list-style: none;
	font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.dc-accordion__head::-webkit-details-marker { display: none; }
.dc-accordion__icon { position: relative; width: 14px; height: 14px; flex: none; }
.dc-accordion__icon::before, .dc-accordion__icon::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
	background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease);
}
.dc-accordion__icon::after { transform: rotate(90deg); }
.dc-accordion__item[open] .dc-accordion__icon::after { transform: rotate(0deg); }
.dc-accordion__body { padding: 0 2px 18px; font-size: 15px; color: var(--g700); }

/* ---------- Reviews (WooCommerce comments markup) ---------- */
.dc-reviews { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--g200); }
.dc-reviews h2 { font-size: 24px; margin-bottom: 16px; }
.dc-reviews ol { display: grid; gap: 14px; }
.dc-reviews li { padding: 16px; border: var(--card-border); border-radius: var(--r-lg); }
.dc-reviews img.avatar { display: none; }
.dc-reviews .meta { font-size: 13px; color: var(--g600); margin-bottom: 6px; }
.dc-reviews .star-rating { display: none; }
.dc-reviews p.stars a { color: var(--star); }
.dc-reviews .comment-form { display: grid; gap: 12px; max-width: 640px; margin-top: 18px; }
.dc-reviews .comment-form label { display: block; margin-bottom: 4px; }
.dc-reviews input[type="submit"] {
	min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--black); color: var(--white); font-weight: 600;
}

/* Rails below */
.dc-pdp .dc-rail { margin-block: 48px; }

/* "Choose your model" prompt */
.dc-option.is-invalid .dc-select { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(214, 40, 40, .12); }
.dc-option__msg { font-size: 13px; font-weight: 600; color: var(--sale); }
.dc-option__msg:empty { display: none; }
.dc-pdp__rating { display: flex; width: fit-content; }
.dc-pdp__price { display: flex; }
.dc-addons__title { float: left; width: 100%; margin-bottom: 2px; }
.dc-addons__title + * { clear: both; }

/* ---------- Reviews: full-width row; review cards in 2 columns (tablet) / 3 (desktop) ---------- */
@media (min-width: 700px) { .dc-reviews ol.commentlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dc-reviews ol.commentlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* One bullet per line in tab lists (the prose list dot was doubling up). */
.dc-prose ul.dc-ticks { list-style: none; padding-left: 0; }

/* Review photos (form + cards) */
.dc-rphotos { display: grid; gap: 6px; }
.dc-rphotos__opt { font-weight: 400; color: var(--g600); }
.dc-rphotos input[type="file"] { font-size: 14px; }
.dc-rphotos__perk { margin: 0; padding: 10px 12px; font-size: 14px; border: 1px solid var(--gold-bar); border-radius: var(--r); background: #fffaf0; }
.dc-rphotos-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-rphotos-list img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--g200); display: block; }
.dc-rdisclose { margin: 8px 0 0; font-size: 12px; color: var(--g600); }
.dc-rphotos__err { margin: 0; font-size: 13px; font-weight: 600; color: var(--sale); }
.dc-rphotos__err:empty { display: none; }

/* Star picker (replaces the Rate... dropdown) */
.dc-rstars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.dc-rstars__star { width: 44px; height: 44px; padding: 0; border: 0; background: none; font-size: 36px; line-height: 1; color: var(--g300); cursor: pointer; transition: color .12s, transform .12s; }
.dc-rstars__star.is-on { color: var(--gold-bar); }
.dc-rstars__star:hover { transform: scale(1.1); }
.dc-rstars__star:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 6px; }
.dc-rstars__label { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--g700); }
.dc-rstars.is-invalid .dc-rstars__label { color: var(--sale); }
.dc-reviews .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.dc-reviews .comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: 14px; }
#review_form_wrapper, #reviews { scroll-margin-top: 110px; }
/* Review card stars (WooCommerce's star font isn't loaded) */
.dc-reviews .star-rating { display: block; position: relative; width: max-content; margin-bottom: 6px; font-size: 18px; line-height: 1; letter-spacing: 2px; color: var(--g300); }
.dc-reviews .star-rating::before { content: "\2605\2605\2605\2605\2605"; }
.dc-reviews .star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; color: transparent; }
.dc-reviews .star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; top: 0; left: 0; color: var(--gold-bar); }
.dc-reviews #reply-title { display: block; margin: 28px 0 4px; font-size: 20px; font-weight: 700; }
.dc-reviews .comment-notes { font-size: 14px; color: var(--g600); }
.dc-reviews .woocommerce-verification-required { margin-top: 18px; font-size: 14px; color: var(--g600); }

/* ---------- Zoom: "+" button on the photo + full-screen modal (Oct 14) ---------- */
.dc-gallery__zoom {
	position: absolute; right: 12px; bottom: 12px; z-index: 3;
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--g200); border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--ink);
	box-shadow: var(--card-shadow); cursor: zoom-in;
}
.dc-gallery__zoom .dc-icon { width: 20px; height: 20px; }
.dc-gallery__track img { cursor: zoom-in; }
.dc-zoom { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(255, 255, 255, .98); }
.dc-zoom.is-open { display: block; }
html.dc-zoom-open { overflow: hidden; }
.dc-zoom__stage { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior: contain; }
.dc-zoom__img { width: min(100vw, 100vh, 1000px); height: auto; cursor: zoom-in; user-select: none; }
.dc-zoom.is-zoomed .dc-zoom__stage { display: block; }
.dc-zoom.is-zoomed .dc-zoom__img { width: min(200vw, 200vh, 2000px); max-width: none; cursor: zoom-out; }
.dc-zoom__close {
	position: fixed; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: var(--r-pill); background: var(--black); color: var(--white);
	font-size: 32px; line-height: 46px; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
