/* Wardeina product page — Sanader. Loaded on single product pages only. */
.wd-pp { padding-block: 1rem 2rem; --wd-warm: #fbf1e3; }
.wd-pp__crumbs { max-width: 1100px; margin: 0 auto 1.25rem; font-size: .85rem; color: var(--wd-muted); }
.wd-pp__crumbs a { color: var(--wd-muted); text-decoration: underline; }
.wd-pp__crumbs a:hover { color: var(--wd-primary); }
.wd-pp__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2.5rem; max-width: 1100px; margin-inline: auto; align-items: start; }

/* Gallery */
.wd-pp__gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; align-items: start; }
.wd-pp__gallery:not(:has(.wd-pp__thumbs)) { grid-template-columns: minmax(0, 1fr); }
.wd-pp__thumbs { display: grid; gap: .75rem; }
.wd-pp__thumb { all: unset; box-sizing: border-box; cursor: pointer; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--wd-soft); }
.wd-pp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-pp__thumb[aria-selected="true"] { border-color: var(--wd-primary); }
.wd-pp__thumb:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 2px; }
.wd-pp__main { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--wd-soft); }
.wd-pp__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-pp__sku { grid-column: 2; margin: -.25rem 0 0; font-size: .8rem; font-style: italic; color: #9ca3af; }
.wd-pp__gallery:not(:has(.wd-pp__thumbs)) .wd-pp__sku { grid-column: 1; }

/* Summary */
.wd-pp__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.wd-pp__title { margin: 0; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 600; }
.wd-pp__share { all: unset; box-sizing: border-box; flex: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--wd-muted); border-radius: 50%; }
.wd-pp__share:hover, .wd-pp__share.is-copied { color: var(--wd-primary); background: var(--wd-soft); }
.wd-pp__pricerow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1.25rem; }
.wd-pp__price { font-size: 1.35rem; font-weight: 700; }
.wd-pp__price del { font-weight: 400; color: var(--wd-muted); font-size: 1rem; margin-inline-end: .4rem; }
.wd-pp__price ins { text-decoration: none; }
.wd-pp__rating { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 99px; background: #f3f4f6; font-size: .9rem; font-weight: 600; }
.wd-pp__rating i { color: #f5a623; font-size: .85rem; }
.wd-pp__rating span { color: var(--wd-muted); font-weight: 400; }

/* Add to cart row */
.wd-pp form.cart, .wd-pp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.25rem; }
.wd-pp form.cart .quantity { display: none; }
.wd-pp .wd-pp__heart { all: unset; box-sizing: border-box; flex: none; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--wd-border); border-radius: 14px; background: #fff; color: var(--wd-text); font-size: 20px; filter: none; position: static; }
.wd-pp .wd-pp__heart[aria-pressed="true"] { color: #e11d48; border-color: #e11d48; }
.wd-pp .single_add_to_cart_button, .wd-pp .wd-btn { all: unset; box-sizing: border-box; flex: 1; min-width: 160px; height: 52px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 1.5rem; border-radius: 999px; background: var(--wd-primary); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); transition: filter .15s, transform .15s, box-shadow .15s; text-align: center; }
.wd-pp .single_add_to_cart_button:hover { filter: brightness(1.15); }
.wd-pp .single_add_to_cart_button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.wd-pp .single_add_to_cart_button.disabled, .wd-pp .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.wd-pp .wd-buy-now { margin: 0; background: #fff; color: var(--wd-primary); box-shadow: inset 0 0 0 2px var(--wd-primary); flex-basis: 100%; }
.wd-pp .wd-buy-now:active { box-shadow: inset 0 0 0 2px var(--wd-primary); transform: none; }
.wd-pp table.variations { width: 100%; border: 0; margin: 0 0 1rem; border-collapse: collapse; }
.wd-pp table.variations th, .wd-pp table.variations td { display: block; padding: 0; text-align: start; }
.wd-pp table.variations th label { font-weight: 600; font-size: .95rem; }
.wd-pp table.variations select { width: 100%; height: 48px; margin: .35rem 0 .75rem; padding-inline: 1rem; border: 1px solid var(--wd-border); border-radius: 14px; background: #fff; font: inherit; }
.wd-pp .reset_variations { font-size: .85rem; color: var(--wd-muted); }
.wd-pp .woocommerce-variation-price { font-weight: 700; margin-bottom: .75rem; }
.wd-pp .stock { font-size: .9rem; color: var(--wd-muted); }

/* Trust box */
.wd-pp__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1.5rem; padding: 1.1rem .75rem; border-radius: 14px; background: var(--wd-warm); text-align: center; font-size: .82rem; font-weight: 500; line-height: 1.3; }
.wd-pp__trust li { display: grid; justify-items: center; gap: .5rem; }
.wd-pp__trust-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--wd-primary); font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

/* Accordions */
.wd-acc { border-top: 1px solid var(--wd-border); }
.wd-acc:last-child { border-bottom: 1px solid var(--wd-border); }
.wd-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: .95rem; }
.wd-acc summary::-webkit-details-marker { display: none; }
.wd-acc summary::after { content: ""; flex: none; width: 9px; height: 9px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-inline-start: auto; margin-block-end: 4px; }
.wd-acc[open] summary::after { transform: rotate(-135deg); margin-block-end: -3px; }
.wd-acc__rating { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; font-size: .85rem; }
.wd-acc__rating .star-rating { margin: 0; }
.wd-acc__body { padding: 0 0 1.25rem; font-size: .95rem; line-height: 1.7; color: #374151; }
.wd-acc__body p:first-child { margin-top: 0; }
.wd-acc__body table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.wd-acc__body th, .wd-acc__body td { padding: .4rem 0; text-align: start; border-bottom: 1px solid var(--wd-border); font-weight: 400; }
.wd-acc__body th { color: var(--wd-muted); width: 35%; }
.wd-acc__body .comment-form input[type="text"], .wd-acc__body .comment-form input[type="email"], .wd-acc__body .comment-form textarea { width: 100%; padding: .6rem .9rem; border: 1px solid var(--wd-border); border-radius: 12px; font: inherit; }
.wd-acc__body .comment-form .submit { height: 44px; padding-inline: 1.5rem; border: 0; border-radius: 99px; background: var(--wd-primary); color: #fff; font-weight: 600; cursor: pointer; }
.wd-acc__body ol.commentlist { list-style: none; padding: 0; }

/* Add-ons + similar */
.wd-pp-addons { margin-top: 3rem; padding-block: 2.25rem 2.5rem; background: var(--wd-warm); }
.wd-pp-addons .wd-sec__title { margin-bottom: 1.25rem; }
.wd-pp-addons .wd-tabs { justify-content: flex-start; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.wd-pp-panel[hidden] { display: none; }
.wd-pp-similar { padding-block: 2.5rem 1rem; }

@media (max-width: 900px) {
	.wd-pp__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.wd-pp__gallery { grid-template-columns: minmax(0, 1fr); }
	.wd-pp__thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; scrollbar-width: none; }
	.wd-pp__sku { grid-column: 1; order: 3; }
	.wd-pp__main { order: 1; border-radius: 16px; }
}
@media (max-width: 480px) {
	.wd-pp__trust { grid-template-columns: 1fr 1fr 1fr; padding-inline: .4rem; font-size: .75rem; }
	.wd-pp .wd-pp__heart { width: 48px; height: 48px; }
	.wd-pp .single_add_to_cart_button { height: 48px; }
}

/* WooCommerce notices (its own stylesheet is not loaded here) */
.woocommerce-notices-wrapper { max-width: 1100px; margin: 0 auto; padding-inline: var(--wd-gap); }
.woocommerce-notices-wrapper ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-message, .woocommerce-error li, .woocommerce-info { display: block; margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: #f3f4f6; border-inline-start: 4px solid var(--wd-primary); font-size: .95rem; }
.woocommerce-error li { background: #fff4f4; border-inline-start-color: #dc2626; }
.woocommerce-message .button { margin-inline-start: .75rem; color: var(--wd-primary); font-weight: 600; text-decoration: underline; }

/* Star ratings (rating pill, reviews list and the review form) */
.wd-acc .star-rating { position: relative; display: inline-block; overflow: hidden; width: 5.4em; height: 1.05em; line-height: 1; font-size: .95rem; vertical-align: middle; }
.wd-acc .star-rating::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0; color: #d1d5db; letter-spacing: .08em; white-space: nowrap; }
.wd-acc .star-rating span { position: absolute; inset-block-start: 0; inset-inline-start: 0; overflow: hidden; height: 0; padding-top: 1.6em; }
.wd-acc .star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset-block-start: 0; inset-inline-start: 0; color: #f5a623; letter-spacing: .08em; white-space: nowrap; }
.wd-acc p.stars { margin: .5rem 0; }
.wd-acc p.stars a { position: relative; display: inline-block; width: 1.4em; height: 1.4em; overflow: hidden; text-indent: -999px; font-size: 1.5rem; }
.wd-acc p.stars a::before { content: "\2605"; position: absolute; inset: 0; text-indent: 0; line-height: 1.4em; color: #d1d5db; }
.wd-acc p.stars:hover a::before, .wd-acc p.stars.selected a::before { color: #f5a623; }
.wd-acc p.stars a:hover ~ a::before, .wd-acc p.stars.selected a.active ~ a::before { color: #d1d5db; }
.wd-acc .comment-form label { font-weight: 600; font-size: .9rem; }
.wd-acc .comment-form p { margin: 0 0 .9rem; }

.wd-admin-hint { margin: .5rem 0 1.25rem; padding: .6rem .9rem; border-radius: 10px; background: #fff8e6; border-left: 4px solid #f59e0b; font-size: .82rem; color: #7c5a00; }

/* Personalised product: photo + text box */
.wd-cp { flex: 1 0 100%; display: grid; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px dashed var(--wd-accent); border-radius: 16px; background: #fffaf0; }
.wd-cp__title { margin: 0; font-size: 1rem; font-weight: 600; }
.wd-cp__title i { color: var(--wd-accent); }
.wd-cp__field { display: grid; gap: .4rem; }
.wd-cp__field > label:first-child { font-weight: 500; font-size: .95rem; }
.wd-cp__field b { color: #dc2626; }
.wd-cp__field small { color: var(--wd-muted); font-weight: 400; }
.wd-cp__drop { display: flex; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid var(--wd-border); border-radius: 12px; background: #fff; cursor: pointer; min-height: 56px; }
.wd-cp__drop:hover { border-color: var(--wd-primary); }
.wd-cp__prev { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.wd-cp__pick { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--wd-primary); word-break: break-all; }
.wd-cp__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wd-cp__text { width: 100%; padding: .7rem .9rem; border: 1px solid var(--wd-border); border-radius: 12px; font: inherit; resize: vertical; background: #fff; }
.wd-cp__text:focus { outline: 2px solid var(--wd-primary); outline-offset: 1px; }
.wd-cp__count { justify-self: end; }
.wd-cp-thumb { border-radius: 8px; object-fit: cover; margin-block: .25rem; }
