/*
Single product page (PDP) skin — Product Pages mockup translated onto
stock WooCommerce markup. Conditionally enqueued via is_product()
(inc/woocommerce.php). Structure comes from the thin
woocommerce/content-single-product.php override + hooks in
inc/woocommerce-product.php. Tokens from main.css :root.
Design rule: solid gold for lines/rings — translucent gold over dark
surfaces composites to brown.
*/

/* ── BREADCRUMB BAR ──────────────────────────────────── */
.single-product nav.woocommerce-breadcrumb{max-width:none;margin:0;padding:12px max(28px,calc((100% - 1320px) / 2));background:var(--ink);border-bottom:1px solid var(--border);font-size:12px;letter-spacing:.02em;text-transform:none;color:var(--silver)}
.single-product nav.woocommerce-breadcrumb a{color:var(--mid)}
.single-product nav.woocommerce-breadcrumb a:hover{color:var(--gold)}
.single-product nav.woocommerce-breadcrumb .sep{color:var(--border);margin:0 6px}

/* ── NOTICES ─────────────────────────────────────────── */
.single-product .woocommerce-notices-wrapper{max-width:1320px;margin:0 auto;padding:0 28px}
.single-product .woocommerce-notices-wrapper > *{margin-top:24px}

/* ── LAYOUT ──────────────────────────────────────────── */
.single-product div.product > .product-inner{max-width:1320px;margin:0 auto;padding:48px 28px 80px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}

/* ── GALLERY ─────────────────────────────────────────── */
.single-product .product-gallery-col{position:sticky;top:90px}
.single-product .woocommerce-product-gallery{position:relative;background:var(--panel);border:1px solid var(--border);border-radius:4px;overflow:hidden;float:none;width:100%}
.single-product .woocommerce-product-gallery__image a{display:block}
.single-product .woocommerce-product-gallery__image img{width:100%;height:100%;object-fit:contain;padding:24px}
.single-product .woocommerce-product-gallery--with-images:not(.woocommerce-product-gallery--columns-0) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child{aspect-ratio:4/3}
.single-product .woocommerce-product-gallery .flex-viewport{background:var(--panel)}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{position:absolute;top:14px;right:14px;z-index:99;width:36px;height:36px;background:var(--dark);border:1px solid var(--border);border-radius:3px;display:flex;align-items:center;justify-content:center;transition:border-color .15s}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover{border-color:var(--gold)}
.single-product .woocommerce-product-gallery .flex-control-thumbs{margin:10px 0 0;padding:0;display:flex;gap:8px}
.single-product .woocommerce-product-gallery .flex-control-thumbs li{float:none;width:72px;height:72px;background:var(--panel);border:1px solid var(--border);border-radius:3px;overflow:hidden;cursor:pointer;flex-shrink:0;list-style:none;transition:border-color .15s}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img{width:100%;height:100%;object-fit:contain;padding:6px;opacity:.6}
.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active{border-color:var(--gold)}
.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover img,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active{opacity:1}

/* Gallery badges (sale flash / used) */
.single-product .product-gallery-col span.onsale,
.single-product .product-gallery-col .used-tag{position:absolute;top:14px;left:14px;z-index:9;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:2px;color:var(--white)}
.single-product .product-gallery-col span.onsale{background:var(--red)}
.single-product .product-gallery-col .used-tag{background:var(--gold-dk)}

/* ── SUMMARY TEXT ────────────────────────────────────── */
.single-product .summary{padding-top:8px}
.product-brand-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.single-product h1.product_title{font-family:var(--head);font-size:clamp(22px,2.5vw,32px);font-weight:800;color:var(--white);line-height:1.15;margin-bottom:8px}
.product-sku{font-size:12px;color:var(--mid);letter-spacing:.06em;margin-bottom:20px}

/* ── PRICE ───────────────────────────────────────────── */
.product-price-block{display:flex;align-items:center;gap:16px;padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:24px}
.product-price-block p.price{margin:0;display:flex;align-items:center;gap:16px}
.product-price-block p.price del{font-size:16px;color:var(--mid);text-decoration:line-through}
.product-price-block p.price del .woocommerce-Price-amount{color:var(--mid)}
.product-price-block p.price ins{text-decoration:none}
.product-price-block p.price ins .woocommerce-Price-amount,
.product-price-block p.price > .woocommerce-Price-amount{font-family:var(--head);font-size:40px;font-weight:800;color:var(--white);line-height:1}
.price-save{background:rgba(184,50,50,.15);color:#e87070;border:1px solid rgba(184,50,50,.3);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:2px;white-space:nowrap}
.price-save .woocommerce-Price-amount{color:inherit;font-size:inherit;font-family:inherit}

/* ── AVAILABILITY ────────────────────────────────────── */
.single-product p.stock{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin-bottom:24px}
.single-product p.stock::before{content:'';width:8px;height:8px;border-radius:50%;flex-shrink:0}
.single-product p.stock.in-stock{color:#4caf50}
.single-product p.stock.in-stock::before{background:#4caf50;box-shadow:0 0 6px rgba(76,175,80,.5)}
.single-product p.stock.out-of-stock{color:var(--gold)}
.single-product p.stock.out-of-stock::before{background:var(--gold)}

/* ── CART FORM & CTAS ────────────────────────────────── */
.single-product form.cart{display:flex;gap:10px;margin-bottom:10px}
.single-product form.cart .quantity{flex-shrink:0}
.single-product form.cart .quantity input.qty{width:74px;height:100%;background:var(--dark);border:1px solid var(--border);border-radius:2px;color:var(--white);font-family:var(--head);font-size:14px;font-weight:700;text-align:center;padding:12px 6px}
.single-product form.cart .quantity input.qty:focus{border-color:var(--gold-lt);box-shadow:0 0 0 2px var(--gold-lt);outline:none}
.single-product button.single_add_to_cart_button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--gold);color:var(--ink);font-family:var(--head);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:16px 32px;border-radius:2px;border:none;cursor:pointer;transition:background .15s}
.single-product button.single_add_to_cart_button:hover{background:var(--gold-lt)}
.single-product button.single_add_to_cart_button::before{content:'';width:18px;height:18px;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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat}
.product-ctas{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.btn-inquiry{display:flex;align-items:center;justify-content:center;gap:10px;background:transparent;color:var(--silver);font-family:var(--head);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:14px 32px;border-radius:2px;border:1.5px solid var(--border);cursor:pointer;transition:border-color .15s,color .15s;width:100%}
.btn-inquiry:hover{border-color:var(--gold);color:var(--gold-lt)}

/* ── TRUST BADGES ────────────────────────────────────── */
.trust-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:24px}
.trust-badge{background:var(--panel);border:1px solid var(--border);border-radius:3px;padding:12px 10px;text-align:center}
.trust-badge .ti{font-size:20px;margin-bottom:4px}
.trust-badge .tl{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);line-height:1.3}

/* ── SPECS (stock attributes table → mockup grid) ────── */
.specs-title{font-family:var(--head);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.single-product table.woocommerce-product-attributes{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:3px;overflow:hidden;margin-bottom:28px;width:100%}
.single-product table.woocommerce-product-attributes tbody,
.single-product table.woocommerce-product-attributes tr{display:contents}
.single-product table.woocommerce-product-attributes th{padding:10px 14px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);background:var(--panel);border-bottom:1px solid var(--border);border-right:1px solid var(--border);text-align:left}
.single-product table.woocommerce-product-attributes td{padding:10px 14px;font-size:13px;color:var(--silver);background:var(--dark);border-bottom:1px solid var(--border)}
.single-product table.woocommerce-product-attributes td p{margin:0}
.single-product table.woocommerce-product-attributes tr:last-child th,
.single-product table.woocommerce-product-attributes tr:last-child td{border-bottom:none}

/* ── DESCRIPTION ─────────────────────────────────────── */
.product-desc{background:var(--panel);border:1px solid var(--border);border-radius:3px;padding:24px;margin-bottom:24px}
.product-desc h3{font-family:var(--head);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.product-desc p{font-size:14px;color:var(--silver);line-height:1.75;margin-bottom:10px}
.product-desc p:last-child{margin-bottom:0}

/* ── MA NOTICE ───────────────────────────────────────── */
.ma-notice{background:rgba(26,58,107,.2);border:1px solid rgba(26,58,107,.4);border-left:3px solid #4a7abf;border-radius:3px;padding:16px 18px}
.ma-notice-title{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4a7abf;margin-bottom:4px}
.ma-notice-text{font-size:13px;color:var(--mist);line-height:1.65}
.ma-notice-text a{color:var(--gold)}
.ma-notice-text a:hover{color:var(--gold-lt)}

/* ── RELATED PRODUCTS ────────────────────────────────── */
.related-sec{background:var(--ink);padding:64px 0}
.related-sec .sec-title{color:var(--white)}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:40px}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .single-product div.product > .product-inner{grid-template-columns:1fr;gap:32px;padding-top:32px}
  .single-product .product-gallery-col{position:static}
  .single-product table.woocommerce-product-attributes{grid-template-columns:1fr}
  .single-product table.woocommerce-product-attributes th{border-right:none}
}
@media (max-width: 480px) {
  .trust-badges{grid-template-columns:1fr 1fr}
  .single-product form.cart{flex-wrap:wrap}
}
