/* ==========================================================================
   HunkyBee — WooCommerce styles (gateway-agnostic)
   ========================================================================== */

/* ---------- Toolbar ---------- */
.hb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 30px; padding: 10px 10px 10px 18px; border-radius: var(--hb-pill); background: var(--hb-glass-bg); border: 1px solid var(--hb-glass-border); -webkit-backdrop-filter: var(--hb-glass-blur); backdrop-filter: var(--hb-glass-blur); }
.hb-toolbar .woocommerce-result-count { margin: 0 auto 0 0; font-size: .9rem; color: var(--hb-muted); }
.hb-toolbar .woocommerce-ordering { margin: 0; }
.hb-toolbar .woocommerce-ordering select { width: auto; padding: 10px 40px 10px 18px; border-radius: var(--hb-pill); }

/* ---------- Product grid ---------- */
.woocommerce ul.products, .woocommerce-page ul.products, ul.products {
	list-style: none; margin: 0; padding: 0; display: grid !important; gap: clamp(16px, 2.2vw, 30px);
	grid-template-columns: repeat(var(--hb-cols, 4), minmax(0, 1fr));
}
ul.products.columns-2 { --hb-cols: 2; } ul.products.columns-3 { --hb-cols: 3; } ul.products.columns-4 { --hb-cols: 4; } ul.products.columns-5 { --hb-cols: 5; }
ul.products::before, ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product {
	position: relative; width: auto !important; margin: 0 !important; float: none !important; padding: 10px 10px 18px;
	border-radius: var(--hb-radius-lg); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 16px 34px -26px rgba(140, 106, 59, .6);
	transition: transform .6s var(--hb-ease), box-shadow .5s, background .4s;
	text-align: left;
}
ul.products li.product:hover { background: #fff; box-shadow: var(--hb-shadow); }
ul.products li.product .woocommerce-LoopProduct-link { display: block; color: var(--hb-ink); }
.hb-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: calc(var(--hb-radius-lg) - 8px); background: linear-gradient(160deg, #FBF5EC, #EFE1CC); margin-bottom: 14px; }
.hb-card__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform 1.2s var(--hb-ease), opacity .7s var(--hb-ease); }
.hb-card__media .hb-card__alt { opacity: 0; transform: scale(1.06); }
li.product:hover .hb-card__media img:first-of-type { transform: scale(1.06); }
li.product:hover .hb-card__media .hb-card__alt { opacity: 1; transform: scale(1); }
.hb-badge { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--hb-pill); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .85); color: var(--hb-gold-deep); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hb-badge--sale { background: var(--hb-accent); color: #fff; }
.hb-badge--muted { top: auto; bottom: 12px; background: var(--hb-ink); color: #fff; }
.hb-card__cat { display: block; padding-inline: 6px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hb-gold-deep); }
ul.products li.product .woocommerce-loop-product__title { padding: 4px 6px 0 !important; margin: 0 0 4px; font-family: var(--hb-font-display); font-size: 1.3rem !important; font-weight: 500; line-height: 1.2; }
ul.products li.product .price { display: block; padding-inline: 6px; color: var(--hb-ink) !important; font-weight: 500; font-size: 1rem !important; margin-bottom: 12px !important; }
.price del { opacity: .45; font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; color: var(--hb-accent); }
ul.products li.product .button { width: calc(100% - 12px); margin: 0 6px !important; padding: 12px 16px; font-size: .75rem; background: transparent; color: var(--hb-ink); border: 1px solid var(--hb-line); box-shadow: none; }
ul.products li.product .button:hover { background: var(--hb-ink); color: #fff; border-color: var(--hb-ink); }
ul.products li.product .button.loading { opacity: .6; }
ul.products li.product .button.added { display: none; }
ul.products li.product .added_to_cart { display: block; text-align: center; font-size: .8rem; margin-top: 8px; color: var(--hb-gold-deep); text-decoration: underline; }
.star-rating { color: var(--hb-gold); }

@media (max-width: 1024px) { ul.products { --hb-cols: 3 !important; } }
@media (max-width: 680px) {
	ul.products { --hb-cols: 2 !important; gap: 12px; }
	ul.products li.product { padding: 6px 6px 12px; border-radius: 22px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 1.08rem !important; }
	ul.products li.product .button { font-size: .68rem; padding: 10px 8px; letter-spacing: .04em; }
}

/* ---------- Wishlist buttons ---------- */
.hb-wl-btn { position: relative; display: inline-grid; place-items: center; border: 0; cursor: pointer; background: rgba(255, 255, 255, .85); color: var(--hb-ink); transition: transform .5s var(--hb-ease-bounce), color .3s, background .3s; }
.hb-wl-btn.hb-wl-btn--card { position: absolute; z-index: 5; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--hb-shadow-sm); }
.hb-wl-btn:hover { transform: scale(1.12); color: var(--hb-accent); }
.hb-wl-btn .hb-icon { width: 20px; height: 20px; transition: fill .3s; }
.hb-wl-btn.is-active { color: #E0475F; }
.hb-wl-btn.is-active .hb-icon { fill: currentColor; }
.hb-wl-btn.is-pop { animation: hb-heart .7s var(--hb-ease-bounce); }
@keyframes hb-heart { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
.hb-wl-btn .hb-burst { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #E0475F; pointer-events: none; animation: hb-burst .7s var(--hb-ease) forwards; }
@keyframes hb-burst { to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }
.hb-wl-btn--inline { gap: 8px; padding: 13px 22px; border-radius: var(--hb-pill); border: 1px solid var(--hb-line); grid-auto-flow: column; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-left: 10px; }

/* ---------- Single product ---------- */
.hb-single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 80px); align-items: start; }
.hb-single-product div.product > .woocommerce-product-gallery, .hb-single-product div.product > .summary { width: auto !important; float: none !important; margin: 0 !important; }
.hb-single-product div.product > .onsale { display: none; }
.hb-single-product .woocommerce-tabs, .hb-single-product .related, .hb-single-product .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { border-radius: var(--hb-radius-lg); overflow: hidden; box-shadow: var(--hb-clay); background: #fff; }
.woocommerce-product-gallery__image img { border-radius: var(--hb-radius-lg); }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 14px; opacity: .55; cursor: pointer; transition: opacity .3s, transform .4s var(--hb-ease); }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.woocommerce-product-gallery__trigger { position: absolute; z-index: 9; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--hb-shadow-sm); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 18px; }
.summary .product_title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.summary .price { font-size: 1.6rem !important; color: var(--hb-ink) !important; margin-bottom: 18px; }
.summary .woocommerce-product-details__short-description { color: var(--hb-muted); }
.summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0; }
.summary form.cart.variations_form { display: block; }
.summary .variations { width: 100%; border: 0; margin-bottom: 16px; }
.summary .variations th, .summary .variations td { padding: 6px 0; text-align: left; border: 0; }
.summary .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quantity { display: inline-flex; align-items: center; border-radius: var(--hb-pill); background: #fff; box-shadow: inset 0 2px 6px rgba(140, 106, 59, .1); border: 1px solid var(--hb-line); }
.quantity .qty { width: 64px; border: 0; background: transparent; box-shadow: none; text-align: center; padding: 14px 6px; }
.hb-qty-btn { width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--hb-gold-deep); }
.single_add_to_cart_button { padding: 16px 36px !important; }
.product_meta { font-size: .88rem; color: var(--hb-muted); display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--hb-line); }
.product_meta a { color: var(--hb-gold-deep); }
.hb-promise { list-style: none; margin: 22px 0; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: var(--hb-radius); background: rgba(255, 255, 255, .6); border: 1px solid var(--hb-glass-border); }
.hb-promise li { display: flex; gap: 10px; align-items: center; font-size: .86rem; }
.hb-promise .hb-icon { flex: none; color: var(--hb-gold-deep); }
.woocommerce-tabs { margin-top: 30px; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 6px; margin: 0 0 24px; display: inline-flex; flex-wrap: wrap; gap: 4px; border-radius: var(--hb-pill); background: rgba(255, 255, 255, .7); border: 1px solid var(--hb-glass-border); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0; border: 0; background: none; padding: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 22px; border-radius: var(--hb-pill); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce-tabs ul.tabs li.active a { background: var(--hb-ink); color: #fff; }
.woocommerce-Tabs-panel { padding: clamp(20px, 3vw, 40px); border-radius: var(--hb-radius-lg); background: rgba(255, 255, 255, .6); }
.related > h2, .upsells > h2 { text-align: center; margin: 60px 0 30px; }
@media (max-width: 860px) {
	.hb-single-product div.product { grid-template-columns: 1fr; }
	.hb-promise { grid-template-columns: 1fr; }
	.hb-wl-btn--inline { margin-left: 0; }
}

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px !important; margin: 0 0 24px !important;
	border-radius: 18px; border: 1px solid rgba(184, 146, 90, .3) !important; background: rgba(255, 255, 255, .75) !important; color: var(--hb-ink);
	box-shadow: var(--hb-shadow-sm); animation: hb-fade-up .6s var(--hb-ease);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: static !important; }
.woocommerce-error { border-color: rgba(138, 43, 43, .3) !important; background: #FFF4F4 !important; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; padding: 10px 18px; font-size: .75rem; }

/* ---------- Cart ---------- */
.hb-wc-page .woocommerce { display: block; }
.woocommerce-cart-form { margin-bottom: 30px; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 0 !important; border-radius: var(--hb-radius-lg); overflow: hidden; background: rgba(255, 255, 255, .7); box-shadow: var(--hb-clay); }
table.shop_table th { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hb-muted); font-weight: 500; padding: 18px 16px; text-align: left; background: rgba(241, 232, 220, .6); }
table.shop_table td { padding: 18px 16px; border-top: 1px solid var(--hb-line) !important; vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 84px; border-radius: 16px; }
table.shop_table .product-name a { font-family: var(--hb-font-display); font-size: 1.25rem; }
table.shop_table a.remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--hb-accent) !important; font-size: 1.3rem; box-shadow: var(--hb-shadow-sm); transition: transform .4s var(--hb-ease-bounce); }
table.shop_table a.remove:hover { transform: rotate(90deg); background: var(--hb-accent); color: #fff !important; }
table.shop_table td.actions { background: rgba(241, 232, 220, .35); }
table.shop_table td.actions .coupon { display: inline-flex; gap: 10px; flex-wrap: wrap; }
table.shop_table td.actions .coupon input { width: 200px; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(460px, 100%); padding: 30px; border-radius: var(--hb-radius-lg); background: linear-gradient(150deg, #fff, #F7F0E7); box-shadow: var(--hb-clay); }
.cart_totals table.shop_table { box-shadow: none; background: transparent; }
.cart_totals table.shop_table th { background: transparent; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; margin-top: 16px; padding: 18px; font-size: .9rem; }
@media (max-width: 768px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; }
	table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; text-align: right; }
	table.shop_table_responsive tr td::before { content: attr(data-title); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hb-muted); }
	table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before, table.shop_table_responsive tr td.actions::before { display: none; }
	table.shop_table_responsive td.product-thumbnail { justify-content: center; }
	table.shop_table td.actions .coupon { width: 100%; } table.shop_table td.actions .coupon input { flex: 1; }
}

/* ---------- Checkout ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
form.checkout > .woocommerce-NoticeGroup, form.checkout > .wc-block-components-notices { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
form.checkout #order_review { grid-column: 2; grid-row: 1; margin-top: 56px; position: sticky; top: 110px; }
#customer_details .col-1, #customer_details .col-2 { width: 100% !important; float: none !important; }
#customer_details > div { padding: clamp(22px, 3vw, 36px); border-radius: var(--hb-radius-lg); background: rgba(255, 255, 255, .7); box-shadow: var(--hb-clay); margin-bottom: 22px; }
.woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.woocommerce form .form-row label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hb-muted); margin-bottom: 6px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }
.woocommerce form .form-row .select2-container .select2-selection--single { height: 52px; border-radius: 16px; border: 1px solid var(--hb-line); display: flex; align-items: center; padding-inline: 10px; }
.woocommerce form .form-row .select2-container .select2-selection__arrow { height: 50px; }
#order_review { padding: clamp(22px, 3vw, 34px); border-radius: var(--hb-radius-lg); background: linear-gradient(150deg, #fff, #F7F0E7); box-shadow: var(--hb-clay); }
#order_review table.shop_table { box-shadow: none; background: transparent; }
#order_review table.shop_table th { background: transparent; }

/* Payment methods — styled generically so ANY gateway (Cashfree, Razorpay, PhonePe, Stripe, COD…) fits. */
#payment { background: transparent !important; border-radius: 0; }
#payment ul.payment_methods { list-style: none; margin: 18px 0; padding: 0 !important; border: 0 !important; display: grid; gap: 10px; }
#payment ul.payment_methods li { position: relative; padding: 16px 18px !important; border-radius: 18px; background: #fff; border: 1.5px solid var(--hb-line); transition: border-color .3s, box-shadow .3s, transform .4s var(--hb-ease); line-height: 1.4; }
#payment ul.payment_methods li:hover { transform: translateY(-2px); }
#payment ul.payment_methods li:has(input:checked) { border-color: var(--hb-gold); box-shadow: 0 0 0 4px rgba(184, 146, 90, .14); }
#payment ul.payment_methods li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
#payment ul.payment_methods li img { max-height: 26px; width: auto; margin: 0 4px !important; vertical-align: middle; }
#payment ul.payment_methods li input[type="radio"] { accent-color: var(--hb-gold-deep); width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; }
#payment div.payment_box { margin: 12px 0 0 !important; padding: 14px 16px !important; border-radius: 14px; background: var(--hb-surface) !important; color: var(--hb-muted) !important; font-size: .9rem; }
#payment div.payment_box::before { display: none !important; }
#payment .place-order { padding: 0 !important; margin-top: 20px; }
#place_order { width: 100%; padding: 18px !important; font-size: .95rem !important; }
.woocommerce-terms-and-conditions-wrapper { font-size: .88rem; color: var(--hb-muted); }
@media (max-width: 900px) {
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; margin-top: 0; position: static; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
}

/* Block-based cart/checkout fallback (if pages use WooCommerce blocks). */
.wc-block-cart, .wc-block-checkout { --wp--preset--color--contrast: var(--hb-ink); }
.wc-block-components-button:not(.is-link) { border-radius: var(--hb-pill) !important; background: linear-gradient(135deg, var(--hb-gold-light) -20%, var(--hb-gold) 45%, var(--hb-gold-deep) 120%) !important; color: #fff !important; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 24px; border-radius: var(--hb-radius-lg); background: linear-gradient(150deg, #fff, #F7F0E7); box-shadow: var(--hb-clay); }
.wc-block-components-radio-control-accordion-option { border-radius: 16px !important; }

/* ---------- Login / register (clay card with peeking mascot) ---------- */
.hb-auth { max-width: 980px; margin: 0 auto; position: relative; }
.hb-auth__hero { position: relative; text-align: center; max-width: 560px; margin: 0 auto; padding-top: 10px; z-index: 2; }
.hb-auth__mascot { width: min(300px, 72%); margin: 0 auto -58px; position: relative; z-index: 3; animation: hb-peek 1.1s var(--hb-ease-bounce) both .2s; }
@keyframes hb-peek { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
.hb-auth__heart { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); color: #E98A98; animation: hb-float 3s ease-in-out infinite; }
.hb-auth__heart .hb-icon { width: 34px; height: 34px; fill: currentColor; }
.hb-auth__title, .hb-auth__sub { display: none; }
.hb-auth > .hb-notice { margin: 0 auto 10px; max-width: 640px; text-align: left; }
.hb-auth #customer_login, .hb-auth > .woocommerce-form-login {
	position: relative; z-index: 2; margin-top: 0; padding: clamp(60px, 7vw, 86px) clamp(22px, 4vw, 52px) clamp(26px, 4vw, 46px);
	border-radius: 44px; background: linear-gradient(150deg, #FFFFFF 0%, #F6EFE6 100%);
	box-shadow: 0 40px 80px -40px rgba(140, 106, 59, .55), inset 0 3px 0 #fff, inset 0 -10px 24px rgba(184, 146, 90, .12);
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px);
}
.hb-auth > .woocommerce-form-login { display: block; max-width: 560px; margin-inline: auto; }
.hb-auth #customer_login > div { width: 100% !important; float: none !important; }
.hb-auth #customer_login::before { content: var(--hb-login-title, "Welcome back"); grid-column: 1 / -1; text-align: center; font-family: var(--hb-font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--hb-ink); line-height: 1; margin-bottom: -10px; }
.hb-auth #customer_login h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.hb-auth #customer_login h2::before { content: ""; width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--hb-gold-light), var(--hb-gold)); box-shadow: 0 8px 16px -8px rgba(140, 106, 59, .7); }
.hb-auth #customer_login .u-column2 { padding-left: clamp(20px, 4vw, 56px); border-left: 1px dashed var(--hb-line); }
.hb-auth form.login, .hb-auth form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.hb-auth .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0 !important; margin-right: 14px !important; }
.hb-auth .woocommerce-form-login__submit, .hb-auth .woocommerce-form-register__submit { width: 100%; margin-top: 10px; background: linear-gradient(135deg, var(--hb-gold-light) -20%, var(--hb-gold) 45%, var(--hb-gold-deep) 120%); }
.hb-auth .lost_password { margin-top: 14px; font-size: .9rem; text-align: center; }
.hb-auth .lost_password a { color: var(--hb-gold-deep); text-decoration: underline; }
.password-input { position: relative; display: block; }
.show-password-input { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; }
@media (max-width: 760px) {
	.hb-auth #customer_login { grid-template-columns: 1fr; border-radius: 34px; }
	.hb-auth #customer_login .u-column2 { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px dashed var(--hb-line); }
}

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: start; }
.woocommerce-account .woocommerce > .hb-auth, .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 12px; border-radius: var(--hb-radius-lg); background: linear-gradient(150deg, #fff, #F7F0E7); box-shadow: var(--hb-clay); position: sticky; top: 110px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 18px; border-radius: 14px; transition: background .3s, padding .4s var(--hb-ease); }
.woocommerce-MyAccount-navigation li a:hover { background: var(--hb-surface); padding-left: 24px; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--hb-ink); color: #fff; }
.woocommerce-MyAccount-content { padding: clamp(22px, 3vw, 40px); border-radius: var(--hb-radius-lg); background: rgba(255, 255, 255, .7); box-shadow: var(--hb-clay); }
@media (max-width: 800px) {
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation ul { position: static; display: flex; overflow-x: auto; gap: 4px; }
	.woocommerce-MyAccount-navigation li a { white-space: nowrap; }
}

/* ---------- Mini cart ---------- */
.widget_shopping_cart_content .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 12px 40px 12px 12px !important; border-radius: 20px; background: #fff; box-shadow: var(--hb-shadow-sm); animation: hb-fade-up .5s var(--hb-ease) both; }
.woocommerce-mini-cart-item:nth-child(2) { animation-delay: .06s; } .woocommerce-mini-cart-item:nth-child(3) { animation-delay: .12s; } .woocommerce-mini-cart-item:nth-child(n+4) { animation-delay: .18s; }
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-family: var(--hb-font-display); font-size: 1.1rem; line-height: 1.2; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 2; width: 72px !important; height: 72px; object-fit: cover; border-radius: 14px; margin: 0 !important; }
.woocommerce-mini-cart-item .quantity { border: 0; box-shadow: none; background: none; font-size: .9rem; color: var(--hb-muted); }
.woocommerce-mini-cart-item .remove { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--hb-surface); color: var(--hb-accent) !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 18px 4px; margin-top: 16px; border-top: 1px dashed var(--hb-line); font-size: 1.05rem; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { background: linear-gradient(135deg, var(--hb-gold-light) -20%, var(--hb-gold) 45%, var(--hb-gold-deep) 120%); }
.woocommerce-mini-cart__empty-message { text-align: center; padding: 40px 10px; color: var(--hb-muted); }
.woocommerce-mini-cart__empty-message::before { content: ""; display: block; width: 180px; height: 190px; margin: 0 auto 14px; background: var(--hb-empty-bag) center / contain no-repeat; }
.hb-minicart.is-busy .widget_shopping_cart_content { opacity: .5; transition: opacity .3s; }

/* Empty cart page */
.cart-empty.woocommerce-info { justify-content: center; box-shadow: none; background: transparent !important; border: 0 !important; color: var(--hb-muted); font-size: 1.05rem; }
.cart-empty.woocommerce-info::before { display: none; }
.return-to-shop { text-align: center; }
.return-to-shop .button { background: linear-gradient(135deg, var(--hb-gold-light) -20%, var(--hb-gold) 45%, var(--hb-gold-deep) 120%); }

/* ---------- Wishlist page ---------- */
.hb-wishlist__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.hb-wishlist__item { position: relative; padding: 12px !important; display: grid; gap: 14px; transition: transform .5s var(--hb-ease), opacity .5s; }
.hb-wishlist__item.is-removing { transform: scale(.9); opacity: 0; }
.hb-wishlist__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--hb-surface); }
.hb-wishlist__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hb-ease); }
.hb-wishlist__item:hover .hb-wishlist__img img { transform: scale(1.06); }
.hb-wishlist__body { display: grid; gap: 4px; padding: 0 8px 8px; }
.hb-wishlist__title { font-family: var(--hb-font-display); font-size: 1.3rem; }
.hb-stock { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.hb-stock.in { color: #2C6A3F; } .hb-stock.out { color: var(--hb-accent); }
.hb-wishlist__actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.hb-wishlist__actions .hb-btn { flex: 1; }
.hb-wl-remove { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--hb-surface); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--hb-ease-bounce), background .3s; }
.hb-wl-remove:hover { transform: rotate(90deg); background: var(--hb-accent); color: #fff; }

/* ---------- Shop sidebar widgets ---------- */
.hb-filters .widget { margin-bottom: 28px; }
.hb-filters .widget-title { font-size: 1.3rem; }
.hb-filters ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.price_slider_wrapper .ui-slider { position: relative; height: 4px; background: var(--hb-line); border-radius: 4px; margin: 16px 6px 24px; }
.price_slider_wrapper .ui-slider-range { position: absolute; height: 100%; background: var(--hb-gold); }
.price_slider_wrapper .ui-slider-handle { position: absolute; top: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--hb-gold); cursor: grab; }
.price_slider_amount { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Order received ---------- */
.woocommerce-order-overview { list-style: none; padding: 20px; display: flex; flex-wrap: wrap; gap: 16px 30px; border-radius: var(--hb-radius-lg); background: #fff; box-shadow: var(--hb-clay); }
.woocommerce-thankyou-order-received { font-family: var(--hb-font-display); font-size: 2rem; text-align: center; }
.hb-auth #customer_login::before { font-family: var(--hb-font-display); font-weight: 700; letter-spacing: -.03em; }
.hb-auth__mascot { position: relative; z-index: 3; }
.hb-auth__hero { z-index: 4; }

/* Mobile number field (register / account) */
.hb-mobile { display: flex; gap: 8px; }
.hb-mobile select { flex: 0 0 auto; width: auto; max-width: 46%; padding-right: 30px; }
.hb-mobile input { flex: 1; min-width: 0; }
.hb-mobile-help { display: block; margin-top: 6px; font-size: .78rem; color: var(--hb-muted); }

/* Tracking card (order page) */
.hb-track{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 22px;margin:0 0 24px;border-radius:22px}
.hb-track__icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--hb-gold,#c9a35b);color:#fff;flex:none}
.hb-track__icon svg{width:22px;height:22px}
.hb-track>div:nth-child(2){flex:1;min-width:180px}
.hb-track__k{margin:0;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
.hb-track__v{margin:2px 0 0;font-size:1.05rem}
.hb-wa-optin{margin:10px 0 14px;font-size:.92rem}
.hb-loc-hint{display:block;margin-top:6px;color:#b23b3b;font-size:.82rem}
.hb-loc-hint:empty{display:none}
.hb-ship-note{display:block;margin:4px 0 6px 24px;color:var(--hb-muted,#7a6a5a);font-size:.82rem;line-height:1.4}

/* Gift wrap */
.hb-gift { margin: 22px 0; padding: 16px 18px; border-radius: 20px; }
.hb-gift__toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.hb-gift__toggle input { margin-top: 5px; }
.hb-gift__icon { font-size: 1.6rem; line-height: 1; transition: transform .5s var(--hb-ease-bounce, ease); }
.hb-gift.is-on .hb-gift__icon { transform: rotate(-10deg) scale(1.15); }
.hb-gift__toggle em { font-style: normal; color: var(--hb-gold-deep, #9b7537); font-weight: 600; }
.hb-gift__toggle small { color: var(--hb-muted, #7a6a5a); }
.hb-gift__more { display: none; margin-top: 12px; }
.hb-gift.is-on .hb-gift__more { display: block; animation: hb-fade-up .4s var(--hb-ease, ease); }
.hb-gift__more textarea { width: 100%; }
.hb-gift__count { display: block; text-align: right; color: var(--hb-muted, #7a6a5a); }

/* US Stock page (USD) */
.hb-us__note, .hb-us-buy__note { padding: 12px 16px; border-radius: 14px; background: #eef3fb; border: 1px solid #d5e0f2; color: #26406b; font-size: .92rem; }
.hb-us-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.hb-us-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .8); border: 1px solid #fff; box-shadow: var(--hb-shadow-sm); }
.hb-us-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--hb-surface, #f6efe4); }
.hb-us-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--hb-ease, ease); }
.hb-us-card:hover .hb-us-card__media img { transform: scale(1.05); }
.hb-us-flag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #1f3b6e; color: #fff; }
.hb-us-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.hb-us-card__cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hb-gold-deep, #9b7537); }
.hb-us-card__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.hb-us-card__title a { color: inherit; text-decoration: none; }
.hb-us-card__price { margin-bottom: 8px; }
.hb-us-card .hb-wa-btn { margin-top: auto; align-self: flex-start; }
.hb-usd { font-weight: 700; font-size: 1.05rem; color: var(--hb-ink, #2b2118); }
.hb-usd del { color: var(--hb-muted, #7a6a5a); font-weight: 400; margin-right: 4px; }
.hb-usd ins { text-decoration: none; color: #b8323a; }
.hb-usd small { font-size: .7rem; font-weight: 600; color: var(--hb-muted, #7a6a5a); letter-spacing: .08em; }
.hb-us-buy { margin: 16px 0; display: grid; gap: 12px; }
@media (max-width: 1024px) { .hb-us-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hb-us-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hb-us-card__body { padding: 12px; } }

/* Reseller programme */
.hb-reseller { max-width: 760px; margin: 0 auto; }
.hb-rs-perks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.hb-rs-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.hb-rs-perks .hb-icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--hb-gold, #c9a35b); color: #fff; }
.hb-rs-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--hb-surface, #f6efe4); margin-bottom: 18px; }
.hb-rs-tabs button { flex: 1; border: 0; background: none; padding: 11px 14px; border-radius: 999px; cursor: pointer; font: 600 .92rem var(--hb-font-body); color: var(--hb-muted); }
.hb-rs-tabs button.is-active { background: #fff; color: var(--hb-ink); box-shadow: var(--hb-shadow-sm); }
.hb-rs-card { padding: clamp(20px, 3vw, 32px); border-radius: 26px; }
.hb-rs-card[hidden] { display: none; }
.hb-rs-card .form-row { margin: 0 0 14px; }
.hb-rs-card label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.hb-rs-card input.input-text, .hb-rs-card textarea { width: 100%; }
.hb-rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hb-rs-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.hb-rs-row label { display: inline; font-weight: 400; }
.hb-rs-small { font-size: .85rem; color: var(--hb-muted); }
.hb-rs-cta { text-align: center; }
.hb-rs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hb-rs-fields .hb-rs-f--address { grid-column: 1 / -1; }
.hb-rs-fields label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.hb-rs-fields input, .hb-rs-fields textarea { width: 100%; }
.hb-rs-co { margin: 24px 0; padding: 20px; border-radius: 22px; }
.hb-rs-co h3 { margin-top: 0; }
.hb-rs-co__lead { margin: 14px 0 10px; font-size: .92rem; }
.hb-rs-bill { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hb-rs-bill th, .hb-rs-bill td { padding: 8px 6px; border-bottom: 1px solid var(--hb-line); text-align: left; }
.hb-rs-bill input { width: 110px; }
.hb-rs-total { font-size: 1.05rem; }
.hb-rs-kit { margin: 18px 0; padding: 16px 18px; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hb-rs-kit__title { width: 100%; margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hb-gold-deep); font-weight: 700; }
.hb-rs-kit__text { width: 100%; margin: 0 0 4px; font-size: .88rem; color: var(--hb-muted); }
.hb-rs-share, .hb-rs-dl, .hb-rs-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px; padding: 9px 16px; font: 600 .85rem var(--hb-font-body); transition: transform .3s; }
.hb-rs-share { background: var(--hb-ink, #2b2118); color: #fff; }
.hb-rs-dl, .hb-rs-copy { background: #fff; color: var(--hb-ink); box-shadow: var(--hb-shadow-sm); }
.hb-rs-share:hover, .hb-rs-dl:hover, .hb-rs-copy:hover { transform: translateY(-2px); }
.hb-rs-share.is-busy { opacity: .6; pointer-events: none; }
.hb-rs-share--card { position: absolute; z-index: 5; right: 20px; top: 150px; padding: 7px 12px; font-size: .78rem; }
@supports (top: 1cqw) { ul.products li.product .hb-rs-share--card { top: auto; bottom: auto; top: calc(10px + 100cqw * 1.25 - 88px); } }
@media (max-width: 680px) { .hb-rs-share--card span { display: none; } .hb-rs-share--card { padding: 8px; } .hb-rs-perks, .hb-rs-grid, .hb-rs-fields { grid-template-columns: 1fr; } }
.hb-rs-hint { font-size: .85rem; margin: 6px 0 14px; }
.hb-rs-toast { position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--hb-ink, #2b2118); color: #fff; font-size: .9rem; transition: opacity .3s, transform .3s; max-width: 90vw; text-align: center; }
.hb-rs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hb-rs-hub h3 { margin-top: 28px; }

/* Pagination — round, evenly spaced page buttons (overrides WooCommerce's boxed list) */
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; margin: 0; padding: 0; white-space: normal; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li { border: 0; float: none; display: block; overflow: visible; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-width: 44px; width: auto; height: 44px; padding: 0 14px; border-radius: 999px;
	background: #fff; color: var(--hb-ink, #2b2118); font-weight: 600; font-size: 1rem; line-height: 1;
	border: 1px solid rgba(184,146,90,.25); box-shadow: 0 4px 12px rgba(80,55,20,.06); transition: all .2s;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus { background: #fff7e8; border-color: #B8925A; color: #8a6a3a; }
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current { background: linear-gradient(135deg, #d4b483, #B8925A); color: #fff; border-color: transparent; }
.woocommerce nav.woocommerce-pagination ul li .page-numbers.dots { background: transparent; border: 0; box-shadow: none; min-width: 24px; padding: 0; }
@media (max-width: 480px) {
	.woocommerce nav.woocommerce-pagination ul.page-numbers { gap: 6px; }
	.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
	.woocommerce nav.woocommerce-pagination ul li span.page-numbers { min-width: 38px; height: 38px; padding: 0 10px; font-size: .92rem; }
}
