/* Single product (Figma Product 73:822). */

.single-product .f-wc { padding-top: clamp(24px, 3vw, 40px); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "summary gallery" "after after"; gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
/* Not sticky: with several option groups the summary is taller than the viewport and the
   add-to-cart button would become unreachable (found in browser QA). */
.single-product div.product .summary { grid-area: summary; }
.single-product div.product .woocommerce-product-gallery { grid-area: gallery; }
.single-product div.product > .related, .single-product div.product > section { grid-area: after; }

/* Gallery: main image + vertical thumbnails on the outer side */
.woocommerce-product-gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 14px; margin: 0; opacity: 1 !important; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; grid-row: 1; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #d5c3ad; }
.woocommerce-product-gallery .flex-control-thumbs { grid-column: 2; grid-row: 1; list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.woocommerce-product-gallery .flex-control-thumbs img { width: 92px; aspect-ratio: 3 / 4; object-fit: cover; opacity: .55; cursor: pointer; transition: opacity .2s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; outline: 1px solid var(--f-gold); outline-offset: -1px; }
.woocommerce-product-gallery__trigger { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(242,236,228,.85); font-size: 0; }
/* Magnifier: lens (::before) + handle (::after). Before staging QA only the lens was drawn, so it read as a plain circle. */
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; top: 9px; left: 9px; width: 15px; height: 15px; box-sizing: border-box; border: 2px solid var(--f-plum); border-radius: 50%; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; top: 20px; left: 23px; width: 2px; height: 8px; background: var(--f-plum); border-radius: 1px; transform: rotate(-45deg); }
.woocommerce-product-gallery__trigger img { display: none !important; }

/* Summary */
.summary .f-bc { margin-bottom: 14px; }
.summary .f-eyebrow { margin-bottom: 4px; }
.product_title { font-family: var(--f-font-latin); font-weight: 500; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1.05; margin: 0 0 6px; }
.summary > .price { font-size: 1.35rem; color: var(--f-gold); margin: 0 0 18px; }
.summary > .price .woocommerce-Price-amount { font-size: 1.9rem; }
.f-pdesc { color: rgba(242,236,228,.86); font-size: var(--f-fs-sm); line-height: 1.9; padding-bottom: 18px; border-bottom: 1px solid var(--f-line); margin-bottom: 20px; }
.f-pdesc p:last-child { margin: 0; }
.falcon-prep { font-size: var(--f-fs-xs); color: var(--f-muted); margin-top: -8px; }

/* Variations as chips */
table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.variations tr { display: block; margin-bottom: 18px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: start; }
table.variations th label { font-weight: 500; margin-bottom: 10px; }
table.variations td.value select.f-has-chips { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips .f-chip { min-width: 52px; }
.f-chips .f-chip--wide { padding-inline: 18px; }
.reset_variations { display: inline-block; font-size: var(--f-fs-xs); color: var(--f-muted); margin-top: 8px; text-decoration: underline; }
.woocommerce-variation-price { display: none; }
.woocommerce-variation-availability { font-size: var(--f-fs-xs); color: var(--f-muted); }

/* Note */
.falcon-note { margin: 6px 0 18px; }
.falcon-note label { font-weight: 500; margin-bottom: 10px; }

/* Add to cart row */
form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
form.cart .falcon-note, .woocommerce-variation-add-to-cart .falcon-note { flex-basis: 100%; }
/* Quantity stepper styles live in base.css (shared with cart). */
.single_add_to_cart_button { flex: 1; min-height: 52px; }
.single_add_to_cart_button.disabled { opacity: .55; }
.f-wa { margin-top: 12px; min-height: 52px; }

/* Accordions */
.f-acc { margin-top: 28px; border-top: 1px solid var(--f-line); }
.f-acc__item { border-bottom: 1px solid var(--f-line); }
.f-acc__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-size: var(--f-fs-sm); font-weight: 500; }
.f-acc__item summary::-webkit-details-marker { display: none; }
.f-acc__item summary::after { content: "+"; color: var(--f-gold); font-size: 18px; line-height: 1; }
.f-acc__item[open] summary::after { content: "−"; }
.f-acc__body { padding-bottom: 18px; font-size: var(--f-fs-sm); color: rgba(242,236,228,.86); }
.f-acc__body ul { list-style: none; display: grid; gap: 6px; }
.f-acc__body li::before { content: "•"; color: var(--f-gold); margin-inline-end: 8px; }
.f-acc__body strong { font-weight: 500; color: var(--f-text); }

/* Related */
.related.products { margin-top: var(--f-section); padding-top: var(--f-section); border-top: 1px solid var(--f-line); }
.related.products > h2 { font-family: var(--f-font-display); font-size: var(--f-fs-h2); margin-bottom: 36px; }
.related.products > h2::before { content: "من نفس المجموعة"; display: block; font-family: var(--f-font-ui); font-size: var(--f-fs-xs); color: var(--f-gold); margin-bottom: 8px; }

/* Lightbox (PhotoSwipe) keeps its own styles; make sure it sits above the header */
.pswp { z-index: 200; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: 1fr; grid-template-areas: "gallery" "summary" "after"; }
	.single-product div.product .summary { position: static; margin-top: 24px; }
	.woocommerce-product-gallery { grid-template-columns: 1fr; }
	.woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
	.woocommerce-product-gallery .flex-control-thumbs img { width: 64px; }
}
