/* ==========================================================================
   HD Showcase: shop (ecommerce.hokedesigns.com). Loaded only with WooCommerce.
   ========================================================================== */

.hds-soon { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fff3e9; color: #b4481f; font-size: 13px; font-weight: 500; letter-spacing: .01em; }

/* Preview notice for shop managers */
.hds-shopnote { position: relative; z-index: 60; padding: 9px var(--hds-gutter); background: #fff3e9; border-bottom: 1px solid #ffd6c2; color: #7a3413; font-size: 14px; text-align: center; }
.hds-shopnote code { padding: 1px 6px; border-radius: 6px; background: #fff; font-size: 12.5px; }

/* Header cart link */
.hds-cartlink a { display: inline-flex; align-items: center; gap: 6px; }
.hds-cartlink .hds-ico { width: 18px; height: 18px; }
.hds-cartlink b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hd-coral); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* ---------- Page frame ---------- */
.hds-shop { width: min(var(--hds-wrap), 100% - 2 * var(--hds-gutter)); margin: 0 auto; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hds-shop .woocommerce-notices-wrapper:empty { display: none; }

.hds-shophead { max-width: 820px; margin: 0 0 clamp(28px, 4vw, 44px); }
.hds-shophead h1 { margin: 10px 0 .25em; font: 600 clamp(2.3rem, 4.6vw, 3.8rem)/1.04 var(--hds-font); letter-spacing: -.03em; color: var(--hd-navy); }
.hds-shophead .hds-lede { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--hd-slate); }
.hds-shophead__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hds-shophead .hds-pill--sm { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--hd-line); border-radius: 999px; background: #fff; color: var(--hd-ink); font-size: 15px; font-weight: 400; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s, transform .2s var(--hds-ease); }
.hds-shophead .hds-pill--sm i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hds-shophead .hds-pill--sm em { font-style: normal; font-size: 12px; color: var(--hd-slate); }
.hds-shophead .hds-pill--sm:hover { border-color: var(--c); color: var(--c); transform: translateY(-1px); box-shadow: 0 8px 18px -12px var(--c); }
.hds-shophead .hds-pill--sm.is-active { border-color: var(--c); background: var(--c); color: #fff; }
.hds-shophead .hds-pill--sm.is-active i { background: #fff; }
.hds-shophead .hds-pill--sm.is-active em { color: rgba(255, 255, 255, .8); }
.hds-shophead__note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--hd-mist); color: var(--hd-ink); font-size: 15px; }
.hds-shophead__note .hds-ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--hd-coral); }

/* ---------- Product grid ---------- */
.hds-shop ul.products, .hds-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.hds-shop ul.products::before, .hds-shop ul.products::after { display: none !important; }
.hds-shop ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0; }
.hds-pgrid > li { margin: 0; padding: 0; }

.hds-pcard { display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--hd-line); color: inherit; text-decoration: none; overflow: hidden; transition: box-shadow .35s var(--hds-ease), transform .35s var(--hds-ease); }
.hds-pcard:hover, .hds-pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c), 0 24px 44px -24px var(--c); outline: none; }
.hds-pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); }
.hds-pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--hds-ease); }
.hds-pcard:hover .hds-pcard__img img { transform: scale(1.06); }
.hds-pcard__wall { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--hd-navy); font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--hds-ease); }
.hds-pcard__wall .hds-ico { width: 16px; height: 16px; }
.hds-pcard:hover .hds-pcard__wall, .hds-pcard:focus-visible .hds-pcard__wall { opacity: 1; transform: none; }
@media (hover: none) { .hds-pcard__wall { opacity: 1; transform: none; } }
.hds-pcard__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.hds-pcard__cat { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.hds-pcard__body strong { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.25; color: var(--hd-navy); }
.hds-pcard__body small { font-size: 14px; color: var(--hd-slate); }
.hds-pcard__price { margin-top: auto; padding-top: 10px; font-size: 16px; font-weight: 500; color: var(--hd-ink); }
.hds-shop .woocommerce-pagination { margin-top: 36px; }

/* ---------- Product page ---------- */
.hds-shop--product div.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hds-shop--product div.product > .summary { position: sticky; top: calc(var(--hds-header) + 20px); float: none; width: auto; margin: 0; }
.hds-shop--product div.product > .hds-pdetails, .hds-shop--product div.product > .related { grid-column: 1 / -1; }
.hds-pkicker { margin-bottom: 10px; }
.hds-shop--product .product_title { margin: 0 0 .15em; font: 600 clamp(2rem, 3.4vw, 2.9rem)/1.06 var(--hds-font); letter-spacing: -.025em; color: var(--hd-navy); }
.hds-shop--product .summary > .price { margin: 0 0 14px; font-size: 22px; font-weight: 500; color: var(--hd-ink); }
.hds-shop--product .woocommerce-product-details__short-description p { margin: 0 0 18px; }

.hds-pmedia { position: relative; }
.hds-pmedia__switch { position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px -12px rgba(0, 27, 68, .45); backdrop-filter: blur(6px); }
.hds-pmedia__switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--hd-ink); font: 400 14px/1 var(--hds-font); cursor: pointer; transition: background-color .25s, color .25s; }
.hds-pmedia__switch button .hds-ico { width: 17px; height: 17px; }
.hds-pmedia__switch button[aria-selected="true"] { background: var(--hd-navy); color: #fff; }
.hds-pmedia__zoom { position: relative; display: block; border-radius: 24px; overflow: hidden; background: var(--hd-mist); }
.hds-pmedia__img { display: block; width: 100%; height: auto; }
.hds-pmedia__zoom span { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 27, 68, .72); color: #fff; font-size: 13px; opacity: 0; transition: opacity .3s; }
.hds-pmedia__zoom span .hds-ico { width: 15px; height: 15px; }
.hds-pmedia__zoom:hover span, .hds-pmedia__zoom:focus-visible span { opacity: 1; }
.hds-pmedia__view[data-panel="wall"] { animation: hdsFadeUp .45s var(--hds-ease); }

/* Size and finish chips */
.hds-config { margin: 6px 0 20px; }
.hds-config__group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.hds-config__group legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-slate); }
.hds-config__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hds-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--hd-line); border-radius: 14px; background: #fff; color: var(--hd-ink); font: 400 15px/1.25 var(--hds-font); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--hds-ease); }
.hds-chip small { font-size: 12.5px; color: var(--hd-slate); }
.hds-chip:hover { border-color: var(--hd-blue); transform: translateY(-1px); }
.hds-chip:focus-visible { outline: 3px solid rgba(3, 169, 244, .35); outline-offset: 2px; }
.hds-chip.is-on { border-color: var(--hd-navy); background: #eef5fa; box-shadow: inset 0 0 0 1px var(--hd-navy); }
.hds-config__group--finish .hds-config__chips { display: grid; grid-template-columns: 1fr; }
.hds-config__group--finish .hds-chip { width: 100%; }
.hds-config__price { min-height: 30px; margin: 4px 0 0; font-size: 26px; font-weight: 500; color: var(--hd-navy); }

/* Live mode: Woo's selects stay in the form but out of sight. */
.hds-shop--product form.variations_form table.variations { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hds-shop--product .single_variation_wrap .woocommerce-variation-price { display: none; }
.hds-shop--product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.hds-shop--product form.cart .quantity input { width: 72px; min-height: 48px; border: 1px solid var(--hd-line); border-radius: 12px; font: 400 16px var(--hds-font); text-align: center; }
.hds-shop--product .single_add_to_cart_button { min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--hd-coral); color: #fff; font: 500 16px var(--hds-font); cursor: pointer; transition: background-color .25s, box-shadow .25s, transform .25s var(--hds-ease); }
.hds-shop--product .single_add_to_cart_button:hover { background: var(--hd-ember); box-shadow: 0 0 0 4px rgba(255, 107, 74, .22), 0 14px 26px -12px rgba(225, 75, 42, .7); transform: translateY(-1px); }
.hds-shop--product .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

.hds-launch { margin: 0 0 22px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #fff6ef, #ffe9df); }
.hds-launch p { margin: 0 0 14px; color: var(--hd-ink); font-size: 16px; }

.hds-assure { display: grid; gap: 12px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--hd-line); list-style: none; }
.hds-assure li { display: flex; gap: 12px; align-items: flex-start; }
.hds-assure .hds-ico { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--hd-mist); color: var(--hd-blue); }
.hds-assure strong { display: block; font-size: 15px; font-weight: 500; color: var(--hd-navy); }
.hds-assure span { display: block; font-size: 14px; line-height: 1.5; }

.hds-pdetails { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hd-line); }
.hds-pdetails h2 { margin: 0 0 14px; font: 600 24px/1.2 var(--hds-font); color: var(--hd-navy); }
.hds-pdetails table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hds-pdetails th, .hds-pdetails td { padding: 10px 12px; border-bottom: 1px solid var(--hd-line); text-align: left; }
.hds-pdetails thead th { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--hd-slate); }
.hds-pdetails tbody th { font-weight: 500; color: var(--hd-navy); }
.hds-pdetails__sizes p { font-size: 14px; }
.hds-shop--product .related { margin-top: clamp(40px, 6vw, 72px); }
.hds-shop--product .related > h2 { margin: 0 0 20px; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--hds-font); color: var(--hd-navy); }

@media (max-width: 900px) {
	.hds-shop--product div.product { grid-template-columns: 1fr; }
	.hds-shop--product div.product > .summary { position: static; }
	.hds-pdetails { grid-template-columns: 1fr; }
}

/* ---------- The wall preview ---------- */
.hds-wall { --wall: #f3f1ec; }
.hds-wall__room { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; background: var(--wall); overflow: hidden; transition: background-color .6s ease; box-shadow: inset 0 0 0 1px rgba(0, 27, 68, .06); }
.hds-wall__room::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .5), transparent 55%), linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .06)); pointer-events: none; }
.hds-wall__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 10.67%; background: linear-gradient(180deg, #cdbba4, #bba58a); box-shadow: 0 -1px 0 rgba(0, 0, 0, .08); }
.hds-wall__sofa { position: absolute; left: 22%; bottom: 10.67%; width: 56%; height: 34.13%; filter: drop-shadow(0 14px 14px rgba(0, 27, 68, .18)); }
.hds-wall__lamp { position: absolute; right: 6%; bottom: 10.67%; width: 8%; height: 64%; }
.hds-wall__art { position: absolute; left: 50%; bottom: 53.3%; width: 16%; height: 12%; transform: translateX(-50%); background: #fff; transition: width .7s var(--hds-ease), height .7s var(--hds-ease), padding .4s, box-shadow .4s; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 26px -12px rgba(0, 0, 0, .45); }
.hds-wall__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hds-wall__art[data-finish="fine-art-paper"] { padding: 1.1%; }
.hds-wall__art[data-finish="canvas-wrap"] { padding: 0; box-shadow: 5px 6px 0 -1px rgba(0, 0, 0, .28), 0 22px 30px -14px rgba(0, 0, 0, .55); }
.hds-wall__art[data-finish="metal"] { padding: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 30px 40px -18px rgba(0, 0, 0, .6); }
.hds-wall__art[data-finish="metal"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .12) 100%); mix-blend-mode: screen; pointer-events: none; }
.hds-wall__ruler { position: absolute; left: 50%; height: 14px; transform: translateX(-50%); border: 1.5px solid rgba(0, 27, 68, .55); border-bottom: 0; transition: width .7s var(--hds-ease), bottom .7s var(--hds-ease); }
.hds-wall__ruler::after { content: attr(data-label); position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--hd-navy); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hds-wall[data-dark] .hds-wall__ruler { border-color: rgba(255, 255, 255, .6); }
.hds-wall__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.hds-wall__readout { font-size: 14px; color: var(--hd-slate); }
.hds-wall__swatches { display: inline-flex; gap: 8px; }
.hds-wall__swatch { width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--hd-line); cursor: pointer; transition: transform .2s var(--hds-ease), box-shadow .2s; }
.hds-wall__swatch:hover { transform: scale(1.1); }
.hds-wall__swatch.is-on { box-shadow: 0 0 0 2px var(--hd-navy); }

/* ---------- Landing: try it ---------- */
.hds-try { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hds-try__picks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hds-try__pick { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--hd-line); transition: box-shadow .2s, transform .2s var(--hds-ease); }
.hds-try__pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hds-try__pick:hover { transform: translateY(-2px); }
.hds-try__pick.is-on { box-shadow: 0 0 0 3px var(--hd-coral); }
.hds-try .hds-btn { margin-top: 6px; }
@media (max-width: 900px) { .hds-try { grid-template-columns: 1fr; } }

/* ---------- Cart, checkout, account (live mode) ---------- */
.woocommerce-cart .hds-page, .woocommerce-checkout .hds-page, .woocommerce-account .hds-page { max-width: var(--hds-wrap); }
.woocommerce .button, .wc-block-components-button:not(.is-link) { border-radius: 999px !important; }
.wc-block-components-button.contained, .woocommerce .button.alt { background: var(--hd-coral) !important; color: #fff !important; }

/* woocommerce-layout.css floats and sizes these at 48%; the grid owns layout here. */
.woocommerce .hds-shop.hds-shop--product div.product div.summary, .hds-shop.hds-shop--product div.product > div.summary { float: none; width: auto; clear: none; }
.woocommerce .hds-shop.hds-shop--product div.product div.images { float: none; width: auto; }
.hds-shop--product div.product::before, .hds-shop--product div.product::after { display: none; }
/* Pagination */
.hds-shop .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.hds-shop .woocommerce-pagination ul li { border: 0; }
.hds-shop .woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--hd-line); color: var(--hd-ink); font-size: 15px; text-decoration: none; transition: box-shadow .2s, color .2s; }
.hds-shop .woocommerce-pagination a.page-numbers:hover { box-shadow: 0 0 0 2px var(--hd-blue); color: var(--hd-blue); }
.hds-shop .woocommerce-pagination .page-numbers.current { background: var(--hd-navy); color: #fff; box-shadow: none; }

/* ---------- Landing: hero card stack ---------- */
.hds-stack { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.05; margin-inline: auto; }
.hds-stack__card { position: absolute; top: 6%; left: 50%; width: 64%; transition: transform .6s var(--hds-ease); }
.hds-stack__card .hds-pcard { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.hds-stack__card .hds-pcard__img { aspect-ratio: 4 / 3.4; }
.hds-stack__card--1 { z-index: 1; transform: translateX(-92%) rotate(-9deg) translateY(28px); }
.hds-stack__card--2 { z-index: 3; transform: translateX(-50%); }
.hds-stack__card--3 { z-index: 2; transform: translateX(-8%) rotate(9deg) translateY(28px); }
.hds-stack:hover .hds-stack__card--1 { transform: translateX(-104%) rotate(-12deg) translateY(20px); }
.hds-stack:hover .hds-stack__card--3 { transform: translateX(4%) rotate(12deg) translateY(20px); }
.hds-stack__card:hover { z-index: 4; }
.hds-stack__live { position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--hd-navy); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.hds-stack__live i { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); }
@media (prefers-reduced-motion: no-preference) {
	.hds-stack__live i { animation: hdsLivePulse 2s ease-out infinite; }
	.hds-stack__card--2 { animation: hdsStackFloat 7s ease-in-out infinite; }
}
@keyframes hdsLivePulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47, 191, 113, 0); } }
@keyframes hdsStackFloat { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-50%) translateY(-10px); } }
.hds-stack:hover .hds-stack__card--2 { animation-play-state: paused; }
@media (max-width: 560px) { .hds-stack { width: 88%; } .hds-stack__card { width: 70%; } }
.hds-stack__live { bottom: -4%; }
.hds-stack__card .hds-pcard__body small { display: none; }
@media (max-width: 700px) {
	.hds-stack { width: 76%; aspect-ratio: 1 / 1.08; margin: 8px auto 28px; }
	.hds-stack__card { width: 74%; }
	.hds-stack__card--1, .hds-stack:hover .hds-stack__card--1 { transform: translateX(-78%) rotate(-7deg) translateY(22px); }
	.hds-stack__card--3, .hds-stack:hover .hds-stack__card--3 { transform: translateX(-22%) rotate(7deg) translateY(22px); }
	.hds-stack__live { bottom: -9%; font-size: 13px; }
}
.hds-stack .hds-pcard__wall { display: none; }
.hds-stack__live { top: calc(100% + 6px); bottom: auto; }
.hds-stack { margin-bottom: 48px; }
@media (max-width: 700px) {
	.hds-stack { aspect-ratio: 1 / 1.22; margin-bottom: 56px; }
	.hds-stack__live { top: calc(100% + 4px); bottom: auto; }
}
