/* Smartize — product page. Loaded only on single products (inc/shop-product.php). */

.single-product .shop-main { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); }
.single-product div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }

/* Gallery: soft surface, square, product centred */
.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image a img { aspect-ratio: 1; object-fit: contain; padding: 6%; background: var(--mist); border-radius: var(--r-lg); }
.flex-control-thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; padding: 8%; border: 1px solid transparent; }
.flex-control-thumbs img.flex-active { border-color: var(--line); }

/* Summary hierarchy */
.single-product .summary { display: flex; flex-direction: column; }
.product-eyebrow { order: -2; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.single-product .product_title { order: -1; margin: 0 0 18px; font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 450; }
.summary > .price { margin: 0 0 14px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.summary > .price .woocommerce-Price-currencySymbol { font-size: .6em; font-weight: 500; color: var(--muted); margin-left: .15em; }
.woocommerce-product-details__short-description { margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; }
.woocommerce-product-details__short-description p { margin: 0; }

/* Options as buttons */
table.variations { margin: 0; }
table.variations tr { display: block; margin-bottom: 22px; }
table.variations th label { margin: 0 0 10px; font-weight: 500; font-size: .95rem; }
.swatch-current { font-weight: 400; color: var(--muted); }
select.is-swatched { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.reset_variations { display: none !important; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.swatch:hover { border-color: #c7ccd4; }
.swatch[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.swatch:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.swatches.is-color .swatch { width: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.swatch-dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.grade-note { margin: -8px 0 4px; font-size: .85rem; color: var(--muted); }

/* Selected unit: price, detail, availability */
.single_variation_wrap { margin-top: 18px; }
.woocommerce-variation-description p { margin: 0 0 6px; color: var(--text); font-size: .95rem; }
.woocommerce-variation-price .price { display: block; margin: 0 0 6px; font-size: 1.35rem; font-weight: 500; color: var(--text); }
.woocommerce-variation-price:empty { display: none; }
.woocommerce-variation-availability .stock { margin: 0; font-size: .9rem; color: var(--signal); }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: 12px; margin: 22px 0 18px; }
.single_add_to_cart_button { flex: 1; min-height: 56px; font-size: 1.02rem; }
.smz-buy-now { flex: 1; min-height: 56px; font-size: 1.02rem; font-weight: 600; background: linear-gradient(135deg, #12b76a, #039855); color: #fff; border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(3, 152, 85, .6); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.smz-buy-now:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(3, 152, 85, .7); }
.smz-buy-now:focus-visible { outline: 3px solid rgba(18, 183, 106, .45); outline-offset: 2px; }
@media (max-width: 520px) { .woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { flex-direction: column; } }
.quantity { display: none; } /* one unit per refurbished device */
.delivery-note { margin: 0 0 22px; }
.product_meta { display: none; }

/* Tabs: description + specifications */
.woocommerce-tabs { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 64px); }
.woocommerce-tabs ul.tabs { flex-direction: column; gap: 4px; border: 0; margin: 0; }
.woocommerce-tabs ul.tabs li a { padding: 8px 0; border: 0; font-size: 1.05rem; }
.woocommerce-tabs ul.tabs li.active a { color: var(--text); }
.woocommerce-Tabs-panel { font-size: 1.08rem; line-height: 1.6; }
.woocommerce-Tabs-panel p { margin: 0 0 1em; max-width: 60ch; }
.woocommerce-product-attributes th { width: 34%; font-size: .98rem; }
.woocommerce-product-attributes td { font-size: .98rem; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 28px; }
	.woocommerce-tabs { grid-template-columns: 1fr; }
	.woocommerce-tabs ul.tabs { flex-direction: row; gap: 24px; border-bottom: 1px solid var(--line); }
	.woocommerce-tabs ul.tabs li a { border-bottom: 2px solid transparent; }
	.woocommerce-tabs ul.tabs li.active a { border-color: var(--blue); }
	.single_add_to_cart_button { min-height: 54px; }
}

/* Gallery: supplier photos already sit on white — a white stage with a hairline, not a grey frame. */
.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image a img { background: #fff; padding: 4%; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.flex-control-thumbs img { background: #fff; border: 1px solid var(--line-2); }
.flex-control-thumbs img.flex-active { border-color: var(--text); }
.woocommerce-product-gallery__trigger { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230b1220' d='m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72'/%3E%3C/svg%3E") center / 18px no-repeat; border: 1px solid var(--line); box-shadow: none; }
.woocommerce-product-gallery__trigger img, .woocommerce-product-gallery__trigger span { display: none; }
/* The summary scrolls with the page: a sticky column overlapped the tabs below. */
.single-product div.product .summary { position: static; }

/* Short description: three verified points, set as a quiet checklist */
.product-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.product-checks li { position: relative; padding-left: 22px; color: var(--text); font-size: .98rem; }
.product-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 15px; height: 15px; background: var(--signal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69L218.34 66.34a8 8 0 0 1 11.32 11.32'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69L218.34 66.34a8 8 0 0 1 11.32 11.32'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Price: whole STN, larger, tabular */
.summary > .price, .woocommerce-variation-price .price { font-variant-numeric: tabular-nums; }
.summary > .price { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.025em; margin-bottom: 18px; }

/* Grade stays visible next to the options; specs table remains the reference */
.grade-note { font-size: .82rem; }
@media (max-width: 900px) {
	/* Supplier photos carry a wide white margin: a 4:3 stage keeps the device large. */
	.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image a img { aspect-ratio: 4 / 3; padding: 0; }
}

/* Prices in dobras and euros */
.smz-eur { color: var(--muted); font-size: .82em; font-weight: 400; white-space: nowrap; }
.smz-stn { white-space: nowrap; }
.smz-eur-note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }

/* ==========================================================================
   Visual refresh — product page
   ========================================================================== */
form.cart .quantity { display: none !important; }
.smz-trust { list-style: none; margin: 8px 0 26px; padding: 6px 18px; display: grid; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.smz-trust li { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.smz-trust li + li { border-top: 1px solid var(--line); }
.smz-trust-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(47, 107, 255, .08); color: var(--blue); }
.smz-trust-icon svg { width: 18px; height: 18px; }
.smz-trust strong { display: block; font-weight: 500; font-size: .95rem; color: var(--text); }
.smz-trust small { display: block; font-size: .85rem; color: var(--muted); }
.summary > .price .smz-stn { font-weight: 600; }
.summary > .price .smz-eur { font-size: .55em; vertical-align: middle; }
.woocommerce-tabs .panel, .woocommerce-tabs .woocommerce-Tabs-panel { padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--mist, #f4f6fa); }
.woocommerce-tabs ul.tabs li a { border-radius: 10px; padding: 8px 14px !important; border-bottom: 0 !important; }
.woocommerce-tabs ul.tabs li.active a { background: var(--ink); color: #fff; }
