/* ==========================================================================
   Adele Perfume – shop.css (WooCommerce: cửa hàng, sản phẩm, giỏ, thanh toán, tài khoản)
   ========================================================================== */

/* ---------- Shop ---------- */
.ap-shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.ap-shop--full, .ap-shop:not(:has(.ap-filters)) { grid-template-columns: 1fr; }
.ap-filter-toggle { display: none; grid-column: 1 / -1; }
.ap-filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; padding: 20px; background: var(--surface); border: var(--hair); border-radius: var(--r-2); max-height: calc(100svh - var(--header-h) - 32px); overflow-y: auto; }
.ap-filters__head { display: none; }
.ap-fgroup { border: 0; border-bottom: var(--hair); padding: 12px 0; margin: 0; min-width: 0; }
.ap-fgroup:last-of-type { border-bottom: 0; }
.ap-fgroup legend { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; padding: 0; margin-bottom: 4px; }
.ap-fgroup small { color: var(--ink-soft); }
.ap-filters__actions { display: grid; gap: 8px; padding-top: 12px; }
.ap-shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ap-field--inline { display: flex; align-items: center; gap: 10px; }
.ap-field--inline select { width: auto; min-width: 180px; }
.ap-products[aria-busy="true"] { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ---------- Product card ---------- */
.ap-card-product { display: flex; flex-direction: column; background: var(--surface); border: var(--hair); border-radius: var(--r-2); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; position: relative; }
.ap-card-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.ap-card-product:hover .ap-frame img { transform: scale(1.06); }
.ap-card-product:hover .ap-ph .ap-bottle { transform: scale(1.06) rotate(-2deg); }
.ap-card-product__media { position: relative; padding: 10px 10px 0; }
.ap-card-product .ap-frame { aspect-ratio: 4 / 5; }
.ap-badges { position: absolute; left: 20px; top: 20px; display: flex; gap: 6px; z-index: 2; }
.ap-card-product__tools { position: absolute; right: 20px; top: 20px; display: grid; gap: 6px; z-index: 2; opacity: 0; transform: translateX(8px); transition: all .3s var(--ease); }
.ap-card-product:hover .ap-card-product__tools, .ap-card-product:focus-within .ap-card-product__tools { opacity: 1; transform: none; }
.ap-tool { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: var(--hair); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: all .2s; }
.ap-tool:hover { background: var(--ink); color: var(--bg); }
.ap-tool[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.ap-tool[aria-pressed="true"] svg { fill: currentColor; }
.ap-card-product__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ap-card-product__brand { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ap-card-product__brand a { color: inherit; text-decoration: none; }
.ap-card-product__title { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.ap-card-product__title a { color: var(--ink); text-decoration: none; }
.ap-card-product__title a:hover { color: var(--gold-ink); }
.ap-card-product .ap-btn { margin-top: auto; }
.ap-rating-sm { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink); text-decoration: none; }
.ap-rating-sm .ap-i { color: var(--gold-ink); fill: currentColor; }
.ap-rating-sm small { color: var(--ink-soft); }
.ap-price { margin: 4px 0 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.ap-price del { color: var(--ink-soft); font-weight: 400; font-size: .9em; margin-right: 6px; }
.ap-price ins { text-decoration: none; color: var(--danger); }
.ap-price--lg { font-size: 1.8rem; font-family: var(--font-head); }
.woocommerce-Price-currencySymbol { font-size: .8em; margin-left: 1px; }

/* ---------- Product page ---------- */
.ap-product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: clamp(32px, 5vw, 64px); }
.ap-gallery-pdp { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.ap-gallery-pdp__main { aspect-ratio: 1; cursor: zoom-in; }
.ap-gallery-pdp__main img { transition: transform .15s ease-out, opacity .2s; }
.ap-gallery-pdp__main.is-zoom img { transform: scale(2); cursor: zoom-out; }
.ap-gallery-pdp__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ap-thumb { width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; min-height: 44px; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ap-tag--abs { position: absolute; left: 16px; top: 16px; z-index: 2; }
.ap-h1--product { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: .2em; }
.ap-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.ap-stock.is-in { color: var(--ok); }
.ap-stock.is-out { color: var(--danger); }
.ap-product__short { color: var(--ink-soft); margin: 14px 0; }
.ap-buybox { margin: 20px 0; padding: 20px; background: var(--surface); border: var(--hair); border-radius: var(--r-2); }
.ap-buybox form.cart { display: grid; gap: 16px; margin: 0; }
.ap-buybox .variations { width: 100%; border-collapse: collapse; }
.ap-buybox .variations th, .ap-buybox .variations td { display: block; padding: 0; text-align: left; }
.ap-buybox .variations label { font-weight: 600; display: block; margin-bottom: 8px; }
.ap-buybox .variations select { display: none; }
.ap-buybox .variations .ap-swatches select { display: none; }
.ap-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-swatch { min-width: 76px; min-height: 48px; padding: 0 18px; border-radius: var(--r-1); border: 1px solid var(--line); background: var(--bg); font-weight: 600; transition: all .2s; }
.ap-swatch:hover { border-color: var(--gold); }
.ap-swatch[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ap-swatch[disabled] { opacity: .4; text-decoration: line-through; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: .85rem; }
.single_variation_wrap .woocommerce-variation-price { font-family: var(--font-head); font-size: 1.6rem; }
.woocommerce-variation-description { color: var(--ink-soft); }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.quantity input.qty { width: 56px; min-height: 48px; border: 0; text-align: center; padding: 0; background: transparent; border-radius: 0; -moz-appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity .ap-qty-btn { width: 44px; height: 48px; border: 0; background: transparent; font-size: 1.2rem; }
.ap-buyrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ap-buyrow .single_add_to_cart_button, .ap-buyrow .ap-buynow { flex: 1 1 160px; }
.single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; transition: all .2s; }
.single_add_to_cart_button:hover { background: var(--ink); color: var(--bg); }
.ap-buynow { min-height: 52px; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.ap-guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0; }
.ap-guarantee li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.ap-guarantee .ap-i { color: var(--gold-ink); }
.ap-guarantee__seal { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--gold); border-radius: var(--r-2); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.ap-guarantee__seal small { display: block; color: var(--ink-soft); }
.ap-guarantee--sm { grid-template-columns: 1fr; gap: 8px; margin: 16px 0 0; font-size: .85rem; }
.ap-product__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-product__scent { margin-top: 0; }
.ap-specs { display: grid; gap: 0; margin: 18px 0; }
.ap-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: var(--hair); }
.ap-specs dt { color: var(--ink-soft); }
.ap-specs dd { margin: 0; font-weight: 600; text-align: right; }
.ap-meter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.ap-meter__bar { display: flex; gap: 5px; }
.ap-meter__bar i { width: 32px; height: 8px; border-radius: 4px; background: var(--line); }
.ap-meter__bar i.is-on { background: var(--gold); }
.ap-product__tabs { padding-block: clamp(24px, 4vw, 48px); }
.ap-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: var(--hair); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); transform: translateY(100%); transition: transform .3s var(--ease); }
.ap-stickybuy.is-on { transform: none; }
.ap-stickybuy__info { min-width: 0; display: grid; }
.ap-stickybuy__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.ap-stickybuy .ap-price { margin: 0; }

/* Reviews (WooCommerce) */
#reviews .commentlist { display: grid; gap: 16px; }
#reviews .comment_container { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px; background: var(--surface); border: var(--hair); border-radius: var(--r-2); }
#reviews .avatar { border-radius: 50%; }
.star-rating { position: relative; display: inline-block; height: 1.1em; width: 5.4em; line-height: 1; font-size: 1em; overflow: hidden; color: var(--gold-ink); letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: var(--line); position: absolute; inset: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; height: 0; }
.star-rating span::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: var(--gold-ink); }
p.stars a { display: inline-block; width: 1.4em; height: 1.4em; text-indent: -999px; overflow: hidden; position: relative; }
p.stars a::before { content: "★"; text-indent: 0; position: absolute; inset: 0; font-size: 1.5rem; color: var(--line); }
p.stars:hover a::before, p.stars.selected a::before { color: var(--gold-ink); }
p.stars a:hover ~ a::before, p.stars.selected a:not(.active) ~ a::before { color: var(--line); }

/* ---------- Quick view, compare ---------- */
.ap-qv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ap-qv__title { font-size: 2rem; }
.ap-qv__notes { margin: 12px 0; display: grid; gap: 4px; font-size: .95rem; }
.ap-qv__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ap-compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.ap-compare th, .ap-compare td { padding: 12px 14px; border: var(--hair); text-align: left; vertical-align: top; font-size: .92rem; }
.ap-compare thead th { text-align: center; background: var(--surface-2); }
.ap-compare tbody th { background: var(--surface-2); width: 150px; font-weight: 600; }
.ap-compare img { margin: 0 auto 6px; border-radius: var(--r-1); }
.ap-compare a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Tables, cart ---------- */
.ap-table, table.shop_table { width: 100%; border-collapse: collapse; background: var(--surface); border: var(--hair); border-radius: var(--r-2); overflow: hidden; }
.ap-table th, .ap-table td, table.shop_table th, table.shop_table td { padding: 14px 16px; border-bottom: var(--hair); text-align: left; vertical-align: middle; }
.ap-table thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.ap-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-cart .product-thumbnail img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-1); }
.ap-cart .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ap-cart .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.ap-coupon { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 260px; }
.ap-coupon input { flex: 1 1 160px; }
.ap-coupon-toggle { margin-bottom: 20px; padding: 14px 18px; border: 1px dashed var(--gold); border-radius: var(--r-2); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.ap-coupon-toggle summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ap-totals { padding: 24px; background: var(--surface); border: var(--hair); border-radius: var(--r-3); box-shadow: var(--shadow-1); position: sticky; top: calc(var(--header-h) + 16px); }
.ap-totals table { border: 0; }
.ap-totals .order-total td, .ap-totals .order-total th { font-size: 1.2rem; font-weight: 700; }
.wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button:hover { background: var(--gold-600); color: #fff; }
#shipping_method { display: grid; gap: 8px; }
#shipping_method li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
#shipping_method input { width: 20px; height: 20px; accent-color: var(--gold); }

/* ---------- Checkout ---------- */
.ap-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-checkout__main { display: grid; gap: 20px; }
.ap-card { padding: clamp(18px, 3vw, 32px); background: var(--surface); border: var(--hair); border-radius: var(--r-3); box-shadow: var(--shadow-1); }
.ap-step-card .ap-h3 { display: flex; align-items: center; gap: 12px; }
.ap-step-card .ap-step__n { position: static; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--font-body); font-style: normal; font-size: .9rem; font-weight: 700; }
.ap-checkout__side .ap-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.woocommerce-checkout .form-row { margin: 0 0 14px; display: grid; gap: 6px; }
.woocommerce-checkout .form-row label { font-weight: 600; font-size: .9rem; }
.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { display: inline-grid; width: calc(50% - 8px); vertical-align: top; }
.woocommerce-checkout .form-row-first { margin-right: 16px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: block; }
.woocommerce-checkout .required { color: var(--danger); text-decoration: none; }
.woocommerce-invalid input, .woocommerce-invalid select { border-color: var(--danger); }
.woocommerce-validated input { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); }
.select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--bg); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 16px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-dropdown { background: var(--surface); border-color: var(--line); color: var(--ink); }
.ap-pay-list { display: grid; gap: 10px; }
.ap-pay { position: relative; }
.ap-pay > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-pay__card { display: grid; grid-template-columns: 52px 1fr 28px; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); cursor: pointer; min-height: 64px; transition: all .2s; }
.ap-pay__card:hover { border-color: var(--gold); }
.ap-pay > input:checked + .ap-pay__card { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--gold); }
.ap-pay > input:focus-visible + .ap-pay__card { outline: 3px solid var(--gold); outline-offset: 2px; }
.ap-pay__logo { display: inline-flex; width: 52px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-1); background: var(--surface); border: var(--hair); color: var(--gold-ink); }
.ap-pay__txt strong { display: block; line-height: 1.3; }
.ap-pay__txt small { color: var(--ink-soft); }
.ap-pay__tick { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.ap-pay > input:checked + .ap-pay__card .ap-pay__tick { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.payment_box { padding: 14px 16px; margin-top: 8px; border-radius: var(--r-2); background: var(--surface-2); font-size: .92rem; }
.ap-place { margin-top: 20px; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: .9rem; }
#order_review table.shop_table { border: 0; }
#order_review .product-name { display: flex; justify-content: space-between; }
#order_review .order-total th, #order_review .order-total td { font-size: 1.2rem; font-weight: 700; }
.ap-shipping-methods ul { display: grid; gap: 8px; }
.ap-shipping-methods li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); }
.blockUI.blockOverlay { background: var(--bg) !important; opacity: .6 !important; }
.ap-checkout-google { padding-bottom: 8px; }

/* WooCommerce notices */
.woocommerce-notices-wrapper { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.woocommerce-message { border-left: 4px solid var(--ok); }
.woocommerce-info { border-left: 4px solid var(--gold); }
.woocommerce-error { border-left: 4px solid var(--danger); display: grid; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }

/* ---------- Thank you, timeline ---------- */
.ap-thanks { padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 20px; max-width: 900px; }
.ap-thanks__status { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: var(--hair); }
.ap-thanks__ic { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); color: var(--gold-ink); flex: none; }
.ap-thanks__title { font-family: var(--font-head); font-size: 1.8rem; margin: 0; line-height: 1.1; font-weight: 600; }
.ap-thanks__hint { margin: 4px 0 0; color: var(--ink-soft); }
.ap-thanks__box--bad { border-color: var(--danger); }
.ap-thanks.is-paid .ap-thanks__ic { background: var(--ok); color: #fff; }
.ap-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 24px; }
.ap-order-overview li { display: grid; gap: 2px; }
.ap-order-overview span { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.ap-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 12px 0; counter-reset: t; }
.ap-timeline__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.ap-timeline__step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.ap-timeline__step:first-child::before { display: none; }
.ap-timeline__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.ap-timeline__step.is-done, .ap-timeline__step.is-current { color: var(--ink); }
.ap-timeline__step.is-done::before, .ap-timeline__step.is-current::before { background: var(--gold); }
.ap-timeline__step.is-done .ap-timeline__dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.ap-timeline__step.is-current .ap-timeline__dot { border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.ap-timeline__step.is-current .ap-timeline__label { font-weight: 700; }
.ap-timeline-end { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-2); }
.ap-timeline-end--bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.ap-tracking { max-width: 800px; margin: 24px auto; }

/* ---------- Account ---------- */
.ap-account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-account__nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 12px; background: var(--surface); border: var(--hair); border-radius: var(--r-2); }
.ap-account__nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--r-1); color: var(--ink); text-decoration: none; font-weight: 500; }
.ap-account__nav a:hover { background: var(--surface-2); }
.ap-account__nav .is-active a, .ap-account__nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.ap-dash__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 28px; }
.ap-dash__cards a { display: grid; gap: 4px; justify-items: center; padding: 22px 12px; border: var(--hair); border-radius: var(--r-2); background: var(--surface); color: var(--ink); text-decoration: none; transition: all .25s var(--ease); }
.ap-dash__cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--gold); }
.ap-dash__cards strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.ap-dash__cards .ap-i { color: var(--gold-ink); }
.ap-orders { display: grid; gap: 16px; }
.ap-order-row__head, .ap-order-row__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-order-row__head small { display: block; color: var(--ink-soft); }
.ap-order-row__foot { padding-top: 12px; border-top: var(--hair); }
.ap-order-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-order-mini { margin-bottom: 14px; display: grid; gap: 10px; }
.ap-auth { display: grid; gap: 20px; max-width: 520px; padding-bottom: clamp(40px, 6vw, 80px); }
.ap-auth--two { max-width: 560px; }
.ap-auth__card { box-shadow: var(--shadow-2); }
.ap-resend { margin-top: 16px; font-size: .9rem; }
.ap-resend summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); }
.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { display: grid; gap: 14px; }
.u-columns.col2-set, .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-Address { padding: 20px; background: var(--surface); border: var(--hair); border-radius: var(--r-2); }
.woocommerce-Address-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.woocommerce-Address-title h2 { font-size: 1.4rem; margin: 0; }
.woocommerce-button, .woocommerce-Button, button.button, a.button, input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce-button:hover, .woocommerce-Button:hover, button.button:hover, a.button:hover { background: var(--ink); color: var(--bg); }
button.button.alt, a.button.alt { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.ap-cart, .ap-checkout__grid { grid-template-columns: 1fr; }
	.ap-totals, .ap-checkout__side .ap-summary { position: static; }
	.ap-checkout__side { order: -1; }
	.ap-checkout__side .ap-summary { padding: 16px; }
}
@media (max-width: 960px) {
	.ap-shop { grid-template-columns: 1fr; }
	.ap-filter-toggle { display: inline-flex; }
	.ap-filters { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(380px, 92vw); max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .35s var(--ease); }
	.ap-filters.is-open { transform: none; }
	.ap-filters__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: var(--hair); }
	.ap-product__grid, .ap-account, .ap-qv { grid-template-columns: 1fr; }
	.ap-gallery-pdp, .ap-account__nav { position: static; }
	.ap-account__nav ul { display: flex; overflow-x: auto; gap: 4px; }
	.ap-account__nav a { white-space: nowrap; }
	.ap-card-product__tools { opacity: 1; transform: none; }
	.u-columns.col2-set, .woocommerce-Addresses { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ap-stickybuy { display: flex; }
	body.single-product { padding-bottom: 140px; }
	.ap-guarantee { grid-template-columns: 1fr; }
	.ap-dash__cards { grid-template-columns: 1fr; }
	.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: 100%; margin-right: 0; display: grid; }
	.ap-timeline { grid-template-columns: 1fr; gap: 10px; }
	.ap-timeline__step { grid-template-columns: 36px 1fr; justify-items: start; align-items: center; text-align: left; }
	.ap-timeline__step::before { display: none; }
	.ap-card-product__title { font-size: 1.15rem; }
	.ap-card-product__body { padding: 10px 10px 14px; }
	.ap-card-product .ap-btn { padding: 0 8px; font-size: .8rem; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: var(--hair); padding: 8px 0; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--ink-soft); }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.actions::before { content: none; }
	.ap-modal__box { padding: 16px; }
}
@media print { .ap-stickybuy, .ap-filters, .ap-comparebar { display: none !important; } }
