/* Artel product page (uses tokens + cards from artel-shop.css) */
.asf-pdp__wrap { padding-bottom: 72px; }
.asf-pdp__notices:empty { display: none; }
.asf-pdp__notices { padding: 16px 80px 0; }
.asf-pdp .asf-crumbs { margin-bottom: 32px; }

.asf-pdp__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }

/* gallery */
.asf-gal { position: sticky; top: 110px; }
.asf-gal__main { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--img-bg); border: 1px solid var(--card-line); }
.asf-gal__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
.asf-gal__slide.is-active { opacity: 1; pointer-events: auto; }
.asf-gal__slide img, .asf-gal__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; cursor: zoom-in; max-width: none; }
.asf-gal__main .asf-card__badges { top: 20px; left: 20px; z-index: 2; }
.asf-gal__main .asf-card__badge { font-size: 11px; padding: 5px 11px 4px; }
.asf-gal__zoom { position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--navy); box-shadow: 0 2px 10px rgba(1, 18, 72, .1); padding: 0; }
.asf-gal__zoom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.asf-gal__zoom:hover { background: var(--navy); color: #fff; }
.asf-gal__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.asf-gal__thumb { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--card-line); border-radius: 8px; overflow: hidden; background: var(--img-bg); cursor: pointer; transition: border-color .2s; }
.asf-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asf-gal__thumb.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.asf-gal__cap { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; }

/* summary */
.asf-sum { padding-top: 4px; }
.asf-sum__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.asf-sum__title { font-family: inherit; font-weight: 400; font-size: clamp(30px, 2.25vw, 43px); line-height: 1.15; color: var(--navy); margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.asf-sum__share { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); padding: 0; margin-top: 4px; position: relative; }
.asf-sum__share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.asf-sum__share:hover { border-color: var(--navy); }
.asf-sum__share.is-done::after { content: "Link copied"; position: absolute; top: 100%; right: 0; margin-top: 6px; white-space: nowrap; font-size: 11px; color: var(--gold-dk); }
.asf-sum__line { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.asf-sum__line a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.asf-sum__line a:hover { color: var(--gold-dk); }
.asf-sum__sku { margin: 0; font-size: 11px; color: #A9A9A9; letter-spacing: .02em; }
.asf-sum__pro { display: inline-block; margin: 10px 0 0; padding: 4px 10px 3px; background: var(--gold); color: var(--navy); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.asf-sum__price { margin: 26px 0 0; padding-bottom: 26px; border-bottom: 1px solid #EADFC6; font-size: 30px; font-weight: 500; color: var(--gold-dk); line-height: 1.2; }
.asf-sum__price .amount, .asf-sum__price bdi { color: inherit; }
.asf-sum__price del { color: var(--muted); font-size: 20px; font-weight: 400; margin-right: 10px; }
.asf-sum__price ins { text-decoration: none; }

.asf-metal { margin-top: 26px; }
.asf-metal__label { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.asf-metal__label strong { color: var(--navy); font-weight: 500; }
.asf-metal__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.asf-pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 14px; border-radius: 22px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.asf-pill .asf-dot { width: 18px; height: 18px; }
.asf-pill:hover { border-color: var(--navy); }
.asf-pill.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.asf-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.asf-info__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--navy); font-size: 12px; text-decoration: none; cursor: pointer; transition: border-color .2s; }
.asf-info__btn svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-dk); stroke-width: 1.5; stroke-linejoin: round; }
.asf-info__btn:hover { border-color: var(--navy); color: var(--navy); }

/* add to cart (theme form restyled) */
.asf-atc { margin-top: 12px; }
.asf-atc form.cart { margin: 0 !important; display: block; }
.asf-atc .c-product__atc-row-1, .asf-atc form.cart > div:first-child { display: flex !important; align-items: stretch; gap: 10px; position: static !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.asf-atc .quantity, .asf-atc .c-product__quantity { display: none !important; }
.asf-atc .single_add_to_cart_button { flex: 1 1 auto; height: 54px !important; min-height: 54px !important; margin: 0 !important; padding: 0 24px !important; border-radius: 2px !important; background: var(--navy) !important; color: #fff !important; border: 1px solid var(--navy) !important; font: 500 12px/1 "Jost", sans-serif !important; letter-spacing: .18em !important; text-transform: uppercase !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: auto !important; }
.asf-atc .single_add_to_cart_button::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M6 8h12l-1 12H7L6 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M6 8h12l-1 12H7L6 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.asf-atc .single_add_to_cart_button:hover { background: #0a2066 !important; }
.asf-atc .single_add_to_cart_button.loading { opacity: .6; }
.asf-atc .variations { width: 100%; margin: 0 0 16px; border: 0; }
.asf-atc .variations th, .asf-atc .variations td { display: block; padding: 0; border: 0; text-align: left; }
.asf-atc .variations label { font-size: 13px; color: var(--navy); font-weight: 500; }
.asf-atc .reset_variations { font-size: 12px; color: var(--muted); }
.asf-atc .stock { font-size: 13px; margin: 0 0 10px; }
.asf-atc .stock.out-of-stock { color: #b3261e; }
.asf-atc .added_to_cart { display: none !important; }
.asf-atc-wish { flex: 0 0 54px; width: 54px; height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 2px; display: grid; place-items: center; cursor: pointer; color: var(--navy); position: relative; padding: 0; }
.asf-atc-wish:hover { border-color: var(--navy); }
.asf-atc-wish i { font-size: 16px; }
.asf-atc-wish .c-wishlist__btn-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.asf-atc-wish .c-wishlist__btn-icon--active { opacity: 0; }
.asf-atc-wish.c-wishlist__btn--active .c-wishlist__btn-icon--active, .asf-atc-wish.active .c-wishlist__btn-icon--active { opacity: 1; color: var(--gold-dk); }
.asf-atc-wish.c-wishlist__btn--active .c-wishlist__btn-icon--normal, .asf-atc-wish.active .c-wishlist__btn-icon--normal { opacity: 0; }
.asf-atc .c-product__atc-row-2, .asf-atc .c-product__wishlist, .asf-atc .c-product__share { display: none !important; }

/* frequently bought together */
.asf-fbt { margin-top: 32px; border: 1px solid #EADFC6; border-radius: 6px; padding: 26px 26px 22px; background: #fff; }
.asf-fbt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.asf-fbt__head h2 { margin: 0; font-family: inherit; font-weight: 400; font-size: 20px; color: var(--navy); letter-spacing: 0; text-transform: none; }
.asf-fbt__tag { font-size: 11px; color: var(--gold-dk); background: #FBF5E8; border: 1px solid #E7D3A4; border-radius: 14px; padding: 5px 12px; white-space: nowrap; }
.asf-fbt__row { display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; position: relative; transition: opacity .2s; }
.asf-fbt__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.asf-fbt__row input:checked + .asf-opt__box { background: var(--navy); border-color: var(--navy); }
.asf-fbt__row input:checked + .asf-opt__box::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.asf-fbt__row input:focus-visible + .asf-opt__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.asf-fbt__row.is-off .asf-fbt__img, .asf-fbt__row.is-off .asf-fbt__info, .asf-fbt__row.is-off .asf-fbt__price { opacity: .45; }
.asf-fbt__img { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--img-bg); border: 1px solid var(--card-line); }
.asf-fbt__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asf-fbt__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.asf-fbt__meta { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.asf-fbt__name { font-size: 14px; color: var(--navy); line-height: 1.35; }
.asf-fbt__metal { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.asf-fbt__metal .asf-dot { width: 13px; height: 13px; }
.asf-fbt__price { font-size: 14px; color: var(--gold-dk); font-weight: 500; align-self: start; }
.asf-fbt__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.asf-fbt__was { font-size: 12px; color: var(--muted); }
.asf-fbt__was del { color: var(--muted); }
.asf-fbt__now { font-size: 12px; color: var(--muted); }
.asf-fbt__now strong { font-size: 24px; color: var(--gold-dk); font-weight: 500; margin-left: 6px; }
.asf-fbt__btn { width: 100%; height: 50px; }
.asf-fbt__btn.is-loading { opacity: .6; pointer-events: none; }
.asf-fbt__btn:disabled { opacity: .4; cursor: not-allowed; }
.asf-fbt__msg { margin: 10px 0 0; font-size: 13px; color: var(--navy); min-height: 0; }
.asf-fbt__msg:empty { display: none; }
.asf-fbt__msg a { color: var(--gold-dk); }

/* accordions */
.asf-acc { border-top: 1px solid var(--line); padding: 48px 80px 40px; }
.asf-acc__inner { border-top: 1px solid var(--line); }
.asf-acc__item { border-bottom: 1px solid var(--line); }
.asf-acc__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0; cursor: pointer; font-size: 21px; color: var(--navy); }
.asf-acc__item summary::-webkit-details-marker { display: none; }
.asf-acc__chev { width: 12px; height: 12px; fill: none; stroke: var(--gold-dk); stroke-width: 1.5; transition: transform .25s; flex: 0 0 auto; }
.asf-acc__item[open] .asf-acc__chev { transform: rotate(180deg); }
.asf-acc__body { padding: 0 0 32px; max-width: 980px; }
.asf-acc__body p { font-size: 15px; line-height: 1.85; color: #444; margin: 0 0 16px; }
.asf-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 760px; }
.asf-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.asf-dl dt { color: var(--muted); margin: 0; }
.asf-dl dd { color: var(--navy); margin: 0; text-align: right; }

/* related */
.asf-related { padding: 56px 80px 100px; }
.asf-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.asf-related__head h2 { margin: 0; font-family: inherit; font-weight: 400; font-size: clamp(30px, 2.3vw, 44px); color: var(--navy); letter-spacing: 0; text-transform: none; line-height: 1.1; }
.asf-related__all { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; white-space: nowrap; }
.asf-related__all:hover { color: var(--gold-dk); }

/* lightbox */
.asf-lightbox { position: fixed; inset: 0; z-index: 100001; background: rgba(1, 18, 72, .92); display: grid; place-items: center; padding: 40px; }
.asf-lightbox[hidden] { display: none !important; }
.asf-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 6px; background: #fff; }
.asf-lightbox__x { position: absolute; top: 24px; right: 24px; }

@media (max-width: 1279px) {
	.asf-pdp__top { gap: 48px; }
	.asf-acc, .asf-related { padding-left: 40px; padding-right: 40px; }
	.asf-pdp__notices { padding: 16px 40px 0; }
	.asf-related .asf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.asf-pdp__top { grid-template-columns: 1fr; gap: 32px; }
	.asf-gal { position: static; }
	.asf-related .asf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.asf-pdp .asf-crumbs { margin-bottom: 18px; font-size: 12px; }
	.asf-gal__thumbs { gap: 8px; margin-top: 8px; }
	.asf-gal__zoom { top: 12px; right: 12px; width: 38px; height: 38px; }
	.asf-sum__price { margin-top: 18px; padding-bottom: 18px; font-size: 26px; }
	.asf-info { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
	.asf-info__btn { font-size: 11px; gap: 5px; padding: 0 4px; }
	.asf-info__btn svg { display: none; }
	.asf-fbt { padding: 20px 16px 16px; }
	.asf-fbt__head { flex-direction: column; align-items: flex-start; }
	.asf-fbt__row { grid-template-columns: 18px 52px minmax(0, 1fr) auto; gap: 12px; }
	.asf-fbt__img { width: 52px; height: 52px; }
	.asf-acc { padding: 32px 16px 24px; }
	.asf-acc__item summary { font-size: 18px; padding: 22px 0; }
	.asf-dl { grid-template-columns: 1fr; }
	.asf-related { padding: 40px 16px 64px; }
	.asf-related__head { flex-direction: column; align-items: flex-start; margin-bottom: 22px; }
	.asf-pdp__notices { padding: 12px 16px 0; }
}

/* theme overrides */
.asf-pdp .asf-atc form.cart:not(.variations_form), .asf-pdp .asf-atc .woocommerce-variation-add-to-cart { display: flex !important; align-items: stretch !important; gap: 10px !important; flex-wrap: nowrap !important; }
.asf-pdp .asf-atc form.cart .quantity.quantity, .asf-pdp .asf-atc .c-product__quantity.quantity { display: none !important; }
.asf-pdp .asf-atc .single_add_to_cart_button.button { flex: 1 1 auto !important; }
.asf-pdp .asf-fbt__row > input[type=checkbox] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }

/* WP Armour puts its honeypot fields (and, for admins only, a big "Act as Spam Bot"
 * test notice) inside the add-to-bag form. Keep them out of the button row. */
.asf-atc form.cart .wpa-test-msg { display: none !important; }
.asf-atc form.cart .altEmail_container,
.asf-atc form.cart .wpa_hidden_field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Hover zoom on the main product image (desktop mouse only; see artel-product.js) */
.asf-gal__main .asf-gal__slide img { transition: transform .25s ease-out; transform-origin: 50% 50%; }
.asf-gal__main.is-zooming { cursor: zoom-in; }
.asf-gal__main.is-zooming .asf-gal__slide.is-active img { cursor: zoom-in; }
