/* ==========================================================================
   PRODUCT BLOCK of a jewel, gemstone or diamond page
   Markup: template/crafted/seo/product.phtml, filled by sec/scripts/php/seo/Product.php.
   Loaded on those pages only (VadSeoProduct::CSS; raise its ?v= with every change here).

   The look is the product popups' and the gemstone page's: Unna for the name, the warm
   ink #2e2a26 on hairlines of #e4dbd1, gold #a8804a for what can be clicked. The buttons
   are the site's own .gems-btn; only their size is set here.

   Every rule starts with .vad-product, also where the class alone would do: the block
   sits inside CMS content, and .std p / .std ul / .std dd would otherwise win.
   ========================================================================== */
.vad-product{margin:0 0 56px; padding:0 0 52px; border-bottom:1px solid #e4dbd1; color:#2e2a26; font-size:15px; line-height:1.6; text-align:left;}

/* --- breadcrumb ---------------------------------------------------------- */
.vad-product .vad-product-crumbs{margin:0 0 28px;}
	.vad-product .vad-product-crumbs ol{display:flex; margin:0; padding:0; list-style:none; color:#7c746c; font-size:13px; line-height:22px;}
		.vad-product .vad-product-crumbs li + li:before{content:"/"; margin:0 9px; color:#c9c0b6;}
		.vad-product .vad-product-crumbs a{color:#7c746c; text-decoration:none;}
		.vad-product .vad-product-crumbs a:hover{color:#a8804a; text-decoration:underline;}
		.vad-product .vad-product-crumbs a:focus-visible{outline:2px solid #a8804a; outline-offset:2px;}
		/* A long name is cut off with an ellipsis instead of wrapping: it is the H1 right below. */
		.vad-product .vad-product-crumbs li{flex:0 0 auto; margin:0; padding:0; white-space:nowrap;}
		.vad-product .vad-product-crumbs [aria-current]{flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; color:#2e2a26;}

/* --- layout -------------------------------------------------------------- */
/* Photo left, everything else right. The name is first in the markup (it is what the page is
   about) and is placed over the right column here; on a phone it comes above the photo. */
.vad-product .vad-product-layout{display:grid; grid-template-columns:minmax(0, 1.06fr) minmax(0, 1fr); grid-template-rows:auto 1fr; grid-template-areas:"media head" "media body"; column-gap:clamp(32px, 5vw, 72px);}
	.vad-product .vad-product-head{grid-area:head; margin:0 0 20px;}
	/* Stays in view while a long list of facts scrolls past. */
	.vad-product .vad-product-media{grid-area:media; align-self:start; position:-webkit-sticky; position:sticky; top:24px; min-width:0;}
	.vad-product .vad-product-body{grid-area:body; min-width:0;}

/* --- name ---------------------------------------------------------------- */
.vad-product .vad-product-eyebrow{margin:6px 0 12px;}
.vad-product .vad-product-title{margin:0; color:#2e2a26; font-family:Unna, 'Times New Roman', serif; font-size:clamp(32px, 3.3vw, 46px); font-weight:normal; line-height:1.1; letter-spacing:0; text-transform:none; overflow-wrap:break-word;}

/* --- photos -------------------------------------------------------------- */
/* A square frame whatever the photo's own shape, so the page never shifts while it loads. */
.vad-product .vad-product-stage{position:relative; aspect-ratio:1 / 1; background-color:#fff; border:1px solid #e4dbd1; border-radius:12px; overflow:hidden;}
	.vad-product .vad-product-slide{display:none; position:absolute; top:0; right:0; bottom:0; left:0; margin:0; padding:0;}
	.vad-product .vad-product-slide:first-child{display:block;}
		.vad-product .vad-product-slide img,
		.vad-product .vad-product-slide video{display:block; width:100%; height:100%; object-fit:contain;}
		.vad-product .vad-product-media--cover .vad-product-slide img{object-fit:cover;}
		.vad-product .vad-product-slide video{background-color:#1d1a17;}

	/* No photo: the outline of a diamond on the warm ground, as on the "sold" popup. */
	.vad-product .vad-product-stage--empty{display:flex; align-items:center; justify-content:center; background-color:#f6efe4; color:#cdb48f;}
		.vad-product .vad-product-stage--empty svg{display:block; width:min(34%, 150px); height:auto;}

/* The strip is a radio group: the checked radio is the photo in the frame. The radios
   themselves are out of sight but stay focusable, so the arrow keys walk the photos. */
.vad-product .vad-product-pick{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); opacity:0; -webkit-appearance:none; appearance:none;}
.vad-product .vad-product-pick:checked ~ .vad-product-stage .vad-product-slide{display:none;}
.vad-product .vad-product-pick:nth-of-type(1):checked ~ .vad-product-stage .vad-product-slide:nth-child(1),
.vad-product .vad-product-pick:nth-of-type(2):checked ~ .vad-product-stage .vad-product-slide:nth-child(2),
.vad-product .vad-product-pick:nth-of-type(3):checked ~ .vad-product-stage .vad-product-slide:nth-child(3),
.vad-product .vad-product-pick:nth-of-type(4):checked ~ .vad-product-stage .vad-product-slide:nth-child(4),
.vad-product .vad-product-pick:nth-of-type(5):checked ~ .vad-product-stage .vad-product-slide:nth-child(5),
.vad-product .vad-product-pick:nth-of-type(6):checked ~ .vad-product-stage .vad-product-slide:nth-child(6),
.vad-product .vad-product-pick:nth-of-type(7):checked ~ .vad-product-stage .vad-product-slide:nth-child(7),
.vad-product .vad-product-pick:nth-of-type(8):checked ~ .vad-product-stage .vad-product-slide:nth-child(8){display:block;}

.vad-product .vad-product-thumbs{display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0;}
	.vad-product .vad-product-thumbs label{position:relative; display:block; flex:0 0 auto; width:72px; height:72px; margin:0; background-color:#fff; border:1px solid #e4dbd1; border-radius:8px; overflow:hidden; cursor:pointer; transition:border-color .2s ease;}
	.vad-product .vad-product-thumbs label:hover{border-color:#c9b295;}
	/* The selected and focus rings (--vad-thumb-ring) lie on this layer over the photo: an inset shadow on the label
	   itself is painted under the image, so the photo hid it where it reached the edge. */
	.vad-product .vad-product-thumbs label:after{content:""; position:absolute; z-index:1; top:0; right:0; bottom:0; left:0; border-radius:7px; box-shadow:var(--vad-thumb-ring, none); pointer-events:none;}
		.vad-product .vad-product-thumbs img{display:block; width:100%; height:100%; object-fit:cover;}
		.vad-product .vad-product-media--contain .vad-product-thumbs img{object-fit:contain;}

	/* The video's thumbnail: a play mark, over its poster when there is one. */
	.vad-product .vad-product-thumbs .vad-product-thumb-video{background-color:#2e2a26;}
		.vad-product .vad-product-thumb-video img{opacity:.55;}
		.vad-product .vad-product-thumb-video span{position:absolute; top:0; right:0; bottom:0; left:0; overflow:hidden; text-indent:-999px;}
		.vad-product .vad-product-thumb-video span:after{content:""; position:absolute; top:50%; left:50%; margin:-9px 0 0 -6px; border-style:solid; border-width:9px 0 9px 15px; border-color:transparent transparent transparent #fff;}

.vad-product .vad-product-pick:nth-of-type(1):checked ~ .vad-product-thumbs label:nth-child(1),
.vad-product .vad-product-pick:nth-of-type(2):checked ~ .vad-product-thumbs label:nth-child(2),
.vad-product .vad-product-pick:nth-of-type(3):checked ~ .vad-product-thumbs label:nth-child(3),
.vad-product .vad-product-pick:nth-of-type(4):checked ~ .vad-product-thumbs label:nth-child(4),
.vad-product .vad-product-pick:nth-of-type(5):checked ~ .vad-product-thumbs label:nth-child(5),
.vad-product .vad-product-pick:nth-of-type(6):checked ~ .vad-product-thumbs label:nth-child(6),
.vad-product .vad-product-pick:nth-of-type(7):checked ~ .vad-product-thumbs label:nth-child(7),
.vad-product .vad-product-pick:nth-of-type(8):checked ~ .vad-product-thumbs label:nth-child(8){border-color:#a8804a; --vad-thumb-ring:inset 0 0 0 1px #a8804a;}

/* style.css takes every focus outline away; the keyboard gets it back on the thumbnail, as a heavier ring inside
   its own frame. An outline outside it read as a second, bigger frame around the selected photo. */
.vad-product .vad-product-pick:nth-of-type(1):focus-visible ~ .vad-product-thumbs label:nth-child(1),
.vad-product .vad-product-pick:nth-of-type(2):focus-visible ~ .vad-product-thumbs label:nth-child(2),
.vad-product .vad-product-pick:nth-of-type(3):focus-visible ~ .vad-product-thumbs label:nth-child(3),
.vad-product .vad-product-pick:nth-of-type(4):focus-visible ~ .vad-product-thumbs label:nth-child(4),
.vad-product .vad-product-pick:nth-of-type(5):focus-visible ~ .vad-product-thumbs label:nth-child(5),
.vad-product .vad-product-pick:nth-of-type(6):focus-visible ~ .vad-product-thumbs label:nth-child(6),
.vad-product .vad-product-pick:nth-of-type(7):focus-visible ~ .vad-product-thumbs label:nth-child(7),
.vad-product .vad-product-pick:nth-of-type(8):focus-visible ~ .vad-product-thumbs label:nth-child(8){border-color:#8f6b3b; --vad-thumb-ring:inset 0 0 0 2px #8f6b3b;}

.vad-product .vad-product-video-link{margin:12px 0 0; font-size:14px; line-height:1.45;}
	.vad-product .vad-product-video-link a{color:#a8804a; text-decoration:underline;}

/* --- price, buttons, assurances ------------------------------------------ */
.vad-product .vad-product-price{margin:0; color:#2e2a26; font-size:30px; font-weight:500; line-height:1.25;}
.vad-product .vad-product-price--request{font-size:22px; line-height:1.4;}
.vad-product .vad-product-note{margin:3px 0 0; color:#7c746c; font-size:13px; line-height:1.5;}

/* Availability: a dot and a few words, green for "can be sent", gold for "we make it". */
.vad-product .vad-product-stock{position:relative; margin:12px 0 0; padding-left:17px; color:#5a544f; font-size:14px; line-height:1.45;}
	.vad-product .vad-product-stock:before{content:""; position:absolute; left:0; top:6px; width:8px; height:8px; border-radius:50%; background-color:#3f7d3f;}
	.vad-product .vad-product-stock--order:before{background-color:#a8804a;}

.vad-product .vad-product-actions{display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 0;}
	/* As wide as their words need, then sharing what is left: a long German label stays on one line. */
	.vad-product .vad-product-btn{flex:1 1 auto; min-width:200px; min-height:52px; padding:8px 22px; font-size:16px; text-decoration:none;}
	.vad-product .vad-product-btn:focus-visible{outline:2px solid #8f6b3b; outline-offset:2px;}
	/* A single button does not stretch over the whole column. */
	.vad-product .vad-product-actions > :only-child{flex:0 1 auto; min-width:min(100%, 280px);}

.vad-product .vad-product-trust{margin:22px 0 0; padding:0; list-style:none;}
	.vad-product .vad-product-trust li{position:relative; margin:0 0 7px; padding:0 0 0 23px; color:#5a544f; font-size:14px; line-height:1.45;}
		.vad-product .vad-product-check{position:absolute; left:0; top:3px; width:14px; height:14px; fill:#a8804a;}
		.vad-product .vad-product-trust a{color:#5a544f; text-decoration:none;}
		.vad-product .vad-product-trust a:hover{color:#a8804a; text-decoration:underline;}
		.vad-product .vad-product-trust a:focus-visible{outline:2px solid #a8804a; outline-offset:2px;}

/* --- sold ---------------------------------------------------------------- */
/* Said three times so nobody misses it: the label under the name (above the photo on a phone),
   the struck-through price and the faded photo. */
.vad-product .vad-product-sold{margin:16px 0 0;}
	.vad-product .vad-product-sold strong{display:inline-block; padding:6px 13px 5px; background-color:#2e2a26; border-radius:4px; color:#fff; font-size:11px; font-weight:700; line-height:16px; letter-spacing:1.6px; text-transform:uppercase;}
.vad-product.vad-product--sold .vad-product-price{color:#a39a90; font-size:22px; text-decoration:line-through;}
.vad-product .vad-product-sold-text{max-width:520px; margin:12px 0 0; color:#5a544f; font-size:15px; line-height:1.6;}
.vad-product.vad-product--sold .vad-product-slide img{opacity:.55;}

/* --- facts and description ----------------------------------------------- */
.vad-product .vad-product-section{margin:36px 0 0;}
	.vad-product .vad-product-section h2{margin:0 0 12px; padding:0; color:#2e2a26; font-family:Unna, 'Times New Roman', serif; font-size:24px; font-weight:normal; line-height:1.2; letter-spacing:0; text-align:left; text-transform:none;}

	/* Two columns of label over value, the gemstone popup's list. An odd last fact
	   simply leaves its neighbour's place empty. */
	.vad-product .vad-product-facts{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); column-gap:30px; margin:0; padding:0; border-top:1px solid #e4dbd1;}
		.vad-product .vad-product-facts div{min-width:0; padding:13px 0 12px; border-bottom:1px solid #e4dbd1;}
		.vad-product .vad-product-facts dt{margin:0 0 4px; padding:0; color:#7c746c; font-size:11px; font-weight:600; line-height:14px; letter-spacing:1.2px; text-transform:uppercase;}
		.vad-product .vad-product-facts dd{margin:0; padding:0; color:#2e2a26; font-size:16px; line-height:22px; overflow-wrap:anywhere;}
			.vad-product .vad-product-facts a{color:#a8804a; text-decoration:underline;}
			.vad-product .vad-product-facts a:hover{color:#8f6b3b;}
			.vad-product .vad-product-facts a:focus-visible{outline:2px solid #a8804a; outline-offset:2px;}

	.vad-product .vad-product-description p{max-width:640px; margin:0 0 12px; padding:0; color:#5a544f; font-size:15px; line-height:1.7;}
	.vad-product .vad-product-description p:last-child{margin-bottom:0;}
		.vad-product .vad-product-description a{color:#a8804a; text-decoration:underline;}

/* --- tablet and phone ---------------------------------------------------- */
/* One column: name, photo, then the rest. */
@media screen and (max-width:860px){
	.vad-product{margin-bottom:40px; padding-bottom:40px;}
	.vad-product .vad-product-crumbs{margin-bottom:18px;}
	.vad-product .vad-product-layout{grid-template-columns:minmax(0, 1fr); grid-template-rows:auto; grid-template-areas:"head" "media" "body";}
		.vad-product .vad-product-head{margin-bottom:18px;}
		.vad-product .vad-product-media{position:static; max-width:560px; margin:0 0 24px;}
}

@media screen and (max-width:480px){
	.vad-product{font-size:14px;}
	.vad-product .vad-product-crumbs ol{flex-wrap:wrap; font-size:12px; line-height:20px;}
	.vad-product .vad-product-crumbs li + li:before{margin:0 6px;}
	/* The name is the next thing on the screen anyway, and would wrap the trail onto a second line. */
	.vad-product .vad-product-crumbs [aria-current]{display:none;}
	.vad-product .vad-product-title{font-size:30px;}
	.vad-product .vad-product-thumbs{gap:8px;}
		.vad-product .vad-product-thumbs label{width:60px; height:60px;}
	.vad-product .vad-product-price{font-size:26px;}
	.vad-product .vad-product-actions{flex-direction:column;}
		.vad-product .vad-product-btn,
		.vad-product .vad-product-actions > :only-child{flex:0 0 auto; width:100%; min-width:0;}
	.vad-product .vad-product-section{margin-top:30px;}
		.vad-product .vad-product-facts{column-gap:18px;}
		.vad-product .vad-product-facts dd{font-size:15px;}
}

/* The site's floating "custom jewel" bar lies over the order button when a product page opens on a
   phone: leave it out there. On wider screens and on the list pages it stays. */
@media (max-width:500px){
	body:has(.vad-product) .custom-box{display:none;}
}

/* --- under the block: other pieces and the way to the list ----------------
   VadSeoProduct::more(). A product page ends here; the whole list it belongs to is one button away
   instead of loaded underneath. The cards are the jewel pages' "more from this collection". */
.vad-product-more{margin:0 0 64px; color:#2e2a26; text-align:left;}
	.vad-product-more h2{margin:0 0 16px; padding:0; color:#2e2a26; font-family:Unna, 'Times New Roman', serif; font-size:24px; font-weight:normal; line-height:1.2; letter-spacing:0; text-align:left; text-transform:none;}
		.vad-product-more h2 a{color:#a8804a; text-decoration:none;}
		.vad-product-more h2 a:hover{text-decoration:underline;}
	.vad-product-more ul{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; margin:0; padding:0; list-style:none;}
		.vad-product-more li{margin:0; padding:0;}
		/* Name on top, price at the foot: the prices of a row line up whatever the names' length. */
		.vad-product-more li a{display:flex; flex-direction:column; height:100%; min-height:92px; padding:14px 16px 13px; background-color:#fff; border:1px solid #e4dbd1; border-radius:8px; color:#2e2a26; text-decoration:none; transition:border-color .2s ease, box-shadow .2s ease;}
		.vad-product-more li a:hover{border-color:#c9b295; box-shadow:0 2px 10px rgb(46 42 38 / 6%);}
		.vad-product-more a:focus-visible{outline:2px solid #8f6b3b; outline-offset:2px;}
			.vad-product-more-name{display:block; font-size:14px; line-height:1.45; overflow-wrap:break-word;}
			.vad-product-more-detail{display:block; margin-top:4px; color:#7c746c; font-size:13px; line-height:1.4;}
			.vad-product-more-price{display:block; margin-top:auto; padding-top:10px; color:#7c746c; font-size:13px; line-height:1.4;}
		.vad-product-more li a:hover .vad-product-more-name{color:#a8804a;}
	.vad-product-more .vad-product-more-actions{display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:28px 0 0; padding:0;}

@media screen and (max-width:860px){
	.vad-product-more{margin-bottom:48px;}
		.vad-product-more ul{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media screen and (max-width:480px){
	.vad-product-more ul{gap:10px;}
		.vad-product-more li a{min-height:0; padding:12px 12px 11px;}
			.vad-product-more-name{font-size:13px;}
	.vad-product-more .vad-product-more-actions .gems-btn{flex:1 1 100%;}
}
