/*
 * Hideaway Style Refresh 2.0.1 (looks only)
 * Based on the "Shop" DESIGN.md: pill controls, soft rounded cards, two-layer soft shadows,
 * one accent color for the main action. Uses The Hideaway's own colors instead of Shop's violet.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
	     url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
	--hw-ink: #0b1f4d;
	--hw-ink-hover: #16336f;
	--hw-gold: #f0b429;
	--hw-gold-hover: #e2a313;
	--hw-red: #e10600;
	--hw-paper: #f7f3ea;
	--hw-card: #ffffff;
	--hw-border: #e6dcc8;
	--hw-muted: #5c6578;
	--hw-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hw-r-pill: 9999px;
	--hw-r-card: 20px;
	--hw-r-img: 14px;
	--hw-r-field: 12px;
	--hw-shadow-card: 0 4px 6px -1px rgba(11, 31, 77, .08), 0 2px 4px -2px rgba(11, 31, 77, .08);
	--hw-shadow-lift: 0 14px 30px -8px rgba(11, 31, 77, .18), 0 4px 10px -4px rgba(11, 31, 77, .10);
	--hw-shadow-gold: 0 6px 20px rgba(240, 180, 41, .38);
	--hw-shadow-navy: 0 6px 18px rgba(11, 31, 77, .22);
	--hw-ring: 0 0 0 3px rgba(240, 180, 41, .55);
}

/* ---------- Font ---------- */
body.theme-hideaway-theme {
	--wp--preset--font-family--display: var(--hw-font);
	--wp--preset--font-family--body: var(--hw-font);
}
body.theme-hideaway-theme,
body.theme-hideaway-theme button,
body.theme-hideaway-theme input,
body.theme-hideaway-theme select,
body.theme-hideaway-theme textarea,
body.theme-hideaway-theme .brand-name,
body.theme-hideaway-theme h1,
body.theme-hideaway-theme h2,
body.theme-hideaway-theme h3,
body.theme-hideaway-theme h4 {
	font-family: var(--hw-font);
}
body.theme-hideaway-theme {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.theme-hideaway-theme h1,
body.theme-hideaway-theme h2 { letter-spacing: -0.035em; }
body.theme-hideaway-theme h3,
body.theme-hideaway-theme h4 { letter-spacing: -0.02em; }

/* ---------- All buttons: pill shape ---------- */
body.theme-hideaway-theme .button,
body.theme-hideaway-theme a.button,
body.theme-hideaway-theme button.button,
body.theme-hideaway-theme input.button,
body.theme-hideaway-theme input[type="submit"],
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) input.button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) #respond input#submit,
body.theme-hideaway-theme .wp-block-button__link,
body.theme-hideaway-theme .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box; /* padding stays inside the width, so full-width buttons never spill out */
	max-width: 100%;
	min-height: 48px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--hw-r-pill) !important; /* theme + WooCommerce set 2-3px corners with stronger selectors */
	background-color: var(--hw-ink);
	color: #fff;
	font-family: var(--hw-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.theme-hideaway-theme .button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) input.button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) #respond input#submit:hover,
body.theme-hideaway-theme .wp-block-button__link:hover,
body.theme-hideaway-theme .wc-block-components-button:not(.is-link):hover {
	background-color: var(--hw-ink-hover);
	color: #fff;
	box-shadow: var(--hw-shadow-navy);
	transform: translateY(-1px);
}
body.theme-hideaway-theme .button:active,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button:active { transform: scale(.97); box-shadow: none; transition-duration: .08s; }

/* Keyboard focus that people can actually see */
body.theme-hideaway-theme .button:focus-visible,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button:focus-visible,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button:focus-visible,
body.theme-hideaway-theme .wc-block-components-button:focus-visible,
body.theme-hideaway-theme input:focus-visible,
body.theme-hideaway-theme select:focus-visible,
body.theme-hideaway-theme textarea:focus-visible {
	outline: none;
	box-shadow: var(--hw-ring);
}

/* Main action = gold (the one accent, like Shop's single violet) */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.button-brass,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button.alt,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button.alt,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) input.button.alt,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) #respond input#submit.alt,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.single_add_to_cart_button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.checkout-button,
body.theme-hideaway-theme #place_order,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .wc-block-components-button.wc-block-cart__submit-button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background-color: var(--hw-gold);
	color: var(--hw-ink);
	font-weight: 700;
	box-shadow: var(--hw-shadow-gold);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.button-brass:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button.alt:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button.alt:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) input.button.alt:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.single_add_to_cart_button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.checkout-button:hover,
body.theme-hideaway-theme #place_order:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .wc-block-components-button.wc-block-cart__submit-button:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
	background-color: var(--hw-gold-hover);
	color: var(--hw-ink);
	box-shadow: 0 10px 26px rgba(240, 180, 41, .48);
}

/* Glass button in the hero keeps its see-through look, just pill-shaped */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.button-glass {
	background-color: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
	backdrop-filter: blur(6px);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.button-glass:hover {
	background-color: rgba(255, 255, 255, .20);
	border-color: #fff;
	box-shadow: none;
}

/* Disabled (e.g. pick a size first) */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button:disabled,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button.disabled,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button:disabled[disabled],
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.single_add_to_cart_button.disabled {
	opacity: .45;
	box-shadow: none;
	transform: none;
	cursor: not-allowed;
}

/* ---------- Product cards (home + shop grid) ---------- */
body.theme-hideaway-theme .hideaway-product-card,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product,
body.theme-hideaway-theme .wc-block-grid__product {
	border: 0;
	border-radius: var(--hw-r-card);
	background: var(--hw-card);
	box-shadow: var(--hw-shadow-card);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
body.theme-hideaway-theme .hideaway-product-card:hover,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product:hover,
body.theme-hideaway-theme .wc-block-grid__product:hover {
	box-shadow: var(--hw-shadow-lift);
	transform: translateY(-3px);
}
/* Image sits inside the card with a small white frame */
body.theme-hideaway-theme .featured-product-image,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product a img {
	border-radius: var(--hw-r-img);
}
body.theme-hideaway-theme .featured-product-image { margin: 8px 8px 0; overflow: hidden; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product .woocommerce-loop-product__title,
body.theme-hideaway-theme .featured-product-info h3 {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product .price,
body.theme-hideaway-theme .featured-product .product-price {
	font-weight: 700;
	letter-spacing: -0.02em;
}
/* Cards are columns so every button sits on the same line at the bottom, even when titles wrap */
body.theme-hideaway-theme .hideaway-product-card,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product {
	display: flex;
	flex-direction: column;
}
body.theme-hideaway-theme .hideaway-product-card .featured-product-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}
body.theme-hideaway-theme .hideaway-product-card .featured-product-body > .button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product > .button {
	margin-top: auto;
}

/* Card button: full width pill */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product .button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .featured-product .button {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 11px 18px;
	font-size: 14px;
	border-radius: var(--hw-r-pill);
}

/* Sale badge: small clean pill */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) span.onsale,
body.theme-hideaway-theme .product-badge,
body.theme-hideaway-theme .wc-block-grid__product-onsale {
	min-width: 0;
	min-height: 0;
	padding: 5px 11px;
	border-radius: var(--hw-r-pill);
	background: var(--hw-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(225, 6, 0, .28);
}
body.theme-hideaway-theme.single-product .woocommerce span.onsale,
body.theme-hideaway-theme.single-product span.onsale { top: 16px; left: 16px; z-index: 5; }

/* ---------- Fields: search, quantity, dropdowns ---------- */
body.theme-hideaway-theme input[type="text"],
body.theme-hideaway-theme input[type="email"],
body.theme-hideaway-theme input[type="tel"],
body.theme-hideaway-theme input[type="search"],
body.theme-hideaway-theme input[type="number"],
body.theme-hideaway-theme input[type="password"],
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) form .form-row .input-text,
body.theme-hideaway-theme select,
body.theme-hideaway-theme textarea {
	min-height: 48px;
	padding: 11px 16px;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-r-field);
	background-color: #fff;
	color: var(--hw-ink);
	font-size: 16px; /* 16px stops iPhones from zooming in */
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.theme-hideaway-theme textarea { min-height: 120px; }
body.theme-hideaway-theme input:focus,
body.theme-hideaway-theme select:focus,
body.theme-hideaway-theme textarea:focus { border-color: var(--hw-gold); }

/* Home search bar: pill field + pill button */
body.theme-hideaway-theme .square-home-search input,
body.theme-hideaway-theme .woocommerce-product-search input[type="search"] {
	border-radius: var(--hw-r-pill);
	padding-left: 22px;
}

/* Quantity box next to Add to cart */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) .quantity .qty,
body.theme-hideaway-theme .quantity input.qty {
	width: 84px;
	min-height: 52px;
	padding: 10px 8px;
	border-radius: var(--hw-r-pill) !important;
	text-align: center;
	font-weight: 600;
}

/* ---------- Single product page ---------- */
body.theme-hideaway-theme.single-product div.product .product_title,
body.theme-hideaway-theme.single-product .product_title {
	font-family: var(--hw-font);
	color: var(--hw-ink);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
	margin-bottom: 10px;
}
body.theme-hideaway-theme.single-product div.product p.price,
body.theme-hideaway-theme.single-product div.product span.price {
	color: var(--hw-ink);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
body.theme-hideaway-theme.single-product div.product p.price del { color: var(--hw-muted); font-size: 18px; font-weight: 500; opacity: 1; }
body.theme-hideaway-theme.single-product div.product p.price ins { color: var(--hw-red); text-decoration: none; }

/* Gallery: rounded, framed image */
body.theme-hideaway-theme.single-product .woocommerce-product-gallery {
	padding: 10px;
	border-radius: var(--hw-r-card);
	background: var(--hw-card);
	box-shadow: var(--hw-shadow-card);
}
body.theme-hideaway-theme.single-product .woocommerce-product-gallery img { border-radius: var(--hw-r-img); }
body.theme-hideaway-theme.single-product .woocommerce-product-gallery .flex-control-thumbs { margin-top: 10px; display: flex; gap: 8px; }
body.theme-hideaway-theme.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; float: none !important; }
body.theme-hideaway-theme.single-product .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: 10px;
	border: 2px solid transparent;
	opacity: .7;
	transition: opacity .15s ease, border-color .15s ease;
}
body.theme-hideaway-theme.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.theme-hideaway-theme.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--hw-gold); }
body.theme-hideaway-theme.single-product .woocommerce-product-gallery__trigger {
	border-radius: var(--hw-r-pill);
	background: #fff;
	box-shadow: var(--hw-shadow-card);
}

/* Add to cart row */
body.theme-hideaway-theme.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 22px 0 26px;
}
body.theme-hideaway-theme.single-product div.product form.cart::before,
body.theme-hideaway-theme.single-product div.product form.cart::after { display: none; }
body.theme-hideaway-theme.single-product div.product form.cart .quantity { float: none; margin: 0; }
body.theme-hideaway-theme.single-product div.product form.cart .single_add_to_cart_button {
	float: none;
	flex: 1 1 220px;
	min-height: 52px;
	font-size: 16px;
}
body.theme-hideaway-theme.single-product div.product form.cart.variations_form,
body.theme-hideaway-theme.single-product div.product form.cart.grouped_form { display: block; }
body.theme-hideaway-theme.single-product div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.theme-hideaway-theme.single-product div.product form.cart table.variations { margin-bottom: 14px; }
body.theme-hideaway-theme.single-product div.product form.cart table.variations th,
body.theme-hideaway-theme.single-product div.product form.cart table.variations td { display: block; padding: 0 0 6px; text-align: left; }
body.theme-hideaway-theme.single-product div.product form.cart .reset_variations { font-size: 13px; color: var(--hw-muted); }

/* Meta (SKU, category) */
body.theme-hideaway-theme.single-product .product_meta {
	padding-top: 16px;
	border-top: 1px solid var(--hw-border);
	color: var(--hw-muted);
	font-size: 14px;
	line-height: 1.8;
}
body.theme-hideaway-theme.single-product .product_meta > span { display: block; }
body.theme-hideaway-theme.single-product .product_meta a { color: var(--hw-ink); font-weight: 600; }

/* Tabs: pill segmented control instead of old folder tabs */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 22px;
	padding: 5px;
	border: 0;
	border-radius: var(--hw-r-pill);
	background: rgba(11, 31, 77, .06);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs::before,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs::after,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li::before,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li::after { display: none; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--hw-r-pill);
	background: transparent;
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 18px;
	color: var(--hw-muted);
	font-size: 14px;
	font-weight: 600;
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li.active {
	background: #fff;
	box-shadow: var(--hw-shadow-card);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li.active a { color: var(--hw-ink); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs .panel {
	padding: 24px 26px;
	border-radius: var(--hw-r-card);
	background: var(--hw-card);
	box-shadow: var(--hw-shadow-card);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs .panel h2:first-child { font-size: 20px; }

/* Related products heading */
body.theme-hideaway-theme .related.products > h2,
body.theme-hideaway-theme .upsells.products > h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }

/* ---------- Store notices ("added to cart" etc.) ---------- */
body.theme-hideaway-theme .woocommerce-message,
body.theme-hideaway-theme .woocommerce-info,
body.theme-hideaway-theme .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 16px 52px;
	border: 0;
	border-left: 4px solid var(--hw-ink);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--hw-shadow-card);
	color: var(--hw-ink);
	font-size: 15px;
}
body.theme-hideaway-theme .woocommerce-message { border-left-color: #1c9a90; }
body.theme-hideaway-theme .woocommerce-error { border-left-color: var(--hw-red); }
body.theme-hideaway-theme .woocommerce-message::before,
body.theme-hideaway-theme .woocommerce-info::before,
body.theme-hideaway-theme .woocommerce-error::before { top: 50%; left: 20px; transform: translateY(-50%); }
body.theme-hideaway-theme .woocommerce-message::before { content: "\2713"; font-family: var(--hw-font); font-weight: 800; color: #1c9a90; }
body.theme-hideaway-theme .woocommerce-error::before { content: "!"; font-family: var(--hw-font); font-weight: 800; color: var(--hw-red); }
body.theme-hideaway-theme .woocommerce-info::before { content: "i"; font-family: var(--hw-font); font-weight: 800; color: var(--hw-ink); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .woocommerce-message .button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .woocommerce-info .button {
	order: 2;
	margin-left: auto;
	float: none;
	min-height: 40px;
	padding: 9px 18px;
	font-size: 14px;
}

/* ---------- Cart & checkout (classic pages) ---------- */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) table.shop_table {
	overflow: hidden;
	border: 0;
	border-radius: var(--hw-r-card);
	border-collapse: separate;
	background: #fff;
	box-shadow: var(--hw-shadow-card);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) table.shop_table th { font-weight: 600; color: var(--hw-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) table.shop_table td,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) table.shop_table th { border-color: var(--hw-border); padding: 14px 16px; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) table.cart img { border-radius: 10px; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.remove {
	width: 28px; height: 28px; line-height: 26px;
	border-radius: var(--hw-r-pill);
	color: var(--hw-muted) !important;
	background: rgba(11, 31, 77, .06);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.remove:hover { color: #fff !important; background: var(--hw-red); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) .cart-collaterals .cart_totals,
body.theme-hideaway-theme .woocommerce-checkout-review-order,
body.theme-hideaway-theme .woocommerce-checkout #payment {
	border-radius: var(--hw-r-card);
}
body.theme-hideaway-theme .woocommerce-checkout #payment { background: #fff; box-shadow: var(--hw-shadow-card); }
body.theme-hideaway-theme .woocommerce-checkout #payment div.payment_box { border-radius: 12px; background: var(--hw-paper); }
body.theme-hideaway-theme .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--hw-paper); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .wc-proceed-to-checkout .button.checkout-button,
body.theme-hideaway-theme #place_order { width: 100%; min-height: 54px; font-size: 17px; }

/* Block cart/checkout fields */
body.theme-hideaway-theme .wc-block-components-text-input input,
body.theme-hideaway-theme .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--hw-r-field); }
body.theme-hideaway-theme .wc-block-components-sidebar-layout .wc-block-components-main,
body.theme-hideaway-theme .wc-block-components-totals-wrapper { border-color: var(--hw-border); }

/* ---------- Shop page toolbar ---------- */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) .woocommerce-ordering select { border-radius: var(--hw-r-pill); padding-right: 36px; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) .woocommerce-result-count { color: var(--hw-muted); font-size: 14px; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul li { border: 0; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul li a,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul li span {
	min-width: 40px; height: 40px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--hw-r-pill);
	background: #fff;
	color: var(--hw-ink);
	font-weight: 600;
	box-shadow: var(--hw-shadow-card);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul li span.current,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) nav.woocommerce-pagination ul li a:hover { background: var(--hw-ink); color: #fff; }

/* Star ratings in gold */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) .star-rating span::before,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) p.stars a { color: var(--hw-gold); }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	body.theme-hideaway-theme .button,
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) button.button,
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button,
	body.theme-hideaway-theme .hideaway-product-card,
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product { transition: none; transform: none !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	body.theme-hideaway-theme.single-product div.product form.cart .single_add_to_cart_button { flex-basis: 100%; }
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs { display: flex; border-radius: 16px; }
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li { flex: 1 1 auto; text-align: center; }
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs .panel { padding: 18px; }
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .woocommerce-message .button,
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .woocommerce-info .button { margin-left: 0; width: 100%; }
}

/* =====================================================================
 * 2.0 - Motion and modern store touches (inspired by the Shop DESIGN.md)
 * ===================================================================== */

@keyframes hw-up { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hw-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hw-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes hw-bump { 0% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-6deg); } 55% { transform: scale(.92) rotate(3deg); } 80% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes hw-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* Cards and tiles float up one after another as they scroll into view */
.hw-js body.theme-hideaway-theme .hw-rv { opacity: 0; }
.hw-js body.theme-hideaway-theme .hw-rv.hw-in {
	opacity: 1;
	animation: hw-up .65s cubic-bezier(.2, .75, .25, 1) backwards;
	animation-delay: calc(var(--hw-i, 0) * 70ms);
}

/* Photos: soft shimmer while loading, then fade in */
.hw-js body.theme-hideaway-theme img.hw-img:not(.hw-loaded) {
	background: linear-gradient(100deg, #efe7d6 30%, #faf6ee 50%, #efe7d6 70%);
	background-size: 200% 100%;
	animation: hw-shimmer 1.2s linear infinite;
}
.hw-js body.theme-hideaway-theme img.hw-img.hw-loaded { animation: hw-fade .45s ease both; }

/* Photo zoom on hover */
body.theme-hideaway-theme .featured-product-image img,
body.theme-hideaway-theme .category-tile img,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product a img {
	transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}
body.theme-hideaway-theme .hideaway-product-card:hover .featured-product-image img,
body.theme-hideaway-theme .category-tile:hover img { transform: scale(1.07); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) ul.products li.product:hover a img { transform: scale(1.035); }

/* Category tiles lift like the product cards */
body.theme-hideaway-theme .category-tile {
	border-radius: var(--hw-r-card);
	overflow: hidden;
	box-shadow: var(--hw-shadow-card);
	transition: box-shadow .25s ease, transform .25s ease;
}
body.theme-hideaway-theme .category-tile:hover { box-shadow: var(--hw-shadow-lift); transform: translateY(-4px); }

/* Arrows inside buttons nudge forward on hover */
body.theme-hideaway-theme .button .icon,
body.theme-hideaway-theme .button svg { transition: transform .2s ease; }
body.theme-hideaway-theme .button:hover .icon,
body.theme-hideaway-theme .button:hover svg { transform: translateX(3px); }

/* Header: soft shadow once you scroll */
body.theme-hideaway-theme .site-header { transition: box-shadow .25s ease, background-color .25s ease; }
body.theme-hideaway-theme .site-header.hw-scrolled { box-shadow: 0 8px 28px -10px rgba(11, 31, 77, .22); }

/* Cart icon bounce when something is added */
body.theme-hideaway-theme .cart-link.hw-bump { animation: hw-bump .6s cubic-bezier(.3, .7, .3, 1); }
body.theme-hideaway-theme .hideaway-cart-count.hw-bump { animation: hw-pop .5s cubic-bezier(.3, .7, .3, 1); display: inline-block; }

/* Add-to-cart buttons on product lists: spinner + check mark */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button.loading { opacity: .75; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) a.button.added::after { margin-left: 6px; animation: hw-pop .4s ease; }

/* Quantity: one pill with - and + */
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity.hw-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 52px;
	padding: 4px;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-r-pill);
	background: #fff;
	box-shadow: var(--hw-shadow-card);
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity.hw-stepper input.qty {
	width: 46px;
	min-height: 0;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: transparent;
	box-shadow: none;
	font-size: 17px;
	font-weight: 700;
	-moz-appearance: textfield;
	appearance: textfield;
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity.hw-stepper input.qty::-webkit-outer-spin-button,
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity.hw-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity.hw-stepper:focus-within { border-color: var(--hw-gold); box-shadow: var(--hw-ring); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity .hw-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: var(--hw-r-pill);
	background: rgba(11, 31, 77, .06);
	color: var(--hw-ink);
	font-family: var(--hw-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity .hw-step:hover { background: rgba(11, 31, 77, .12); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity .hw-step:active { transform: scale(.9); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .quantity .hw-step:focus-visible { outline: none; box-shadow: var(--hw-ring); }

/* "You save" pill next to sale prices */
body.theme-hideaway-theme .hw-save {
	display: inline-block;
	margin-left: 10px;
	padding: 5px 11px;
	border-radius: var(--hw-r-pill);
	background: rgba(225, 6, 0, .09);
	color: var(--hw-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	vertical-align: middle;
	animation: hw-pop .45s cubic-bezier(.3, .7, .3, 1) .3s backwards;
}

/* Tab content fades in when you switch tabs */
body.theme-hideaway-theme .woocommerce-tabs .panel.hw-fade { animation: hw-fade-up .35s ease both; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce) div.product .woocommerce-tabs ul.tabs li { transition: background-color .2s ease, box-shadow .2s ease; }

/* Floating add-to-cart bar on product pages */
body.theme-hideaway-theme .hw-sticky-cart {
	position: fixed;
	left: 50%;
	bottom: 14px;
	z-index: 9990;
	width: min(760px, calc(100% - 24px));
	transform: translate(-50%, 140%);
	visibility: hidden;
	transition: transform .4s cubic-bezier(.2, .75, .25, 1), visibility 0s linear .4s;
}
body.theme-hideaway-theme .hw-sticky-cart.hw-show { transform: translate(-50%, 0); visibility: visible; transition: transform .4s cubic-bezier(.2, .75, .25, 1); }
body.theme-hideaway-theme .hw-sc-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 12px;
	border-radius: 22px;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	box-shadow: 0 18px 40px -12px rgba(11, 31, 77, .35), 0 0 0 1px rgba(11, 31, 77, .06);
}
body.theme-hideaway-theme .hw-sc-thumb { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 12px; background: var(--hw-paper); }
body.theme-hideaway-theme .hw-sc-text { min-width: 0; flex: 1; line-height: 1.25; }
body.theme-hideaway-theme .hw-sc-text strong { display: block; overflow: hidden; color: var(--hw-ink); font-size: 15px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
body.theme-hideaway-theme .hw-sc-text .hw-sc-price { margin: 2px 0 0; color: var(--hw-ink); font-size: 14px; font-weight: 700; }
body.theme-hideaway-theme .hw-sc-text .hw-sc-price del { color: var(--hw-muted); font-weight: 500; margin-right: 4px; }
body.theme-hideaway-theme .hw-sc-text .hw-sc-price ins { color: var(--hw-red); text-decoration: none; }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.hw-sc-btn { flex: none; min-height: 46px; padding: 11px 22px; font-size: 15px; background-color: var(--hw-gold); color: var(--hw-ink); font-weight: 700; box-shadow: var(--hw-shadow-gold); }
:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.hw-sc-btn:hover { background-color: var(--hw-gold-hover); color: var(--hw-ink); }
body.theme-hideaway-theme.hw-has-sticky-cart { padding-bottom: 92px; }

/* Category pills above the shop grid */
body.theme-hideaway-theme .hw-cat-pills {
	display: flex;
	gap: 10px;
	margin: 6px 0 26px;
	padding: 4px 2px 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
body.theme-hideaway-theme .hw-cat-pills::-webkit-scrollbar { display: none; }
body.theme-hideaway-theme .hw-cat-pill {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 1px solid rgba(11, 31, 77, .06);
	border-radius: var(--hw-r-pill);
	background: #fff;
	box-shadow: 0 2px 8px rgba(11, 31, 77, .07);
	color: var(--hw-ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
body.theme-hideaway-theme .hw-cat-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(11, 31, 77, .28); color: var(--hw-ink); }
body.theme-hideaway-theme .hw-cat-pill.is-active { background: var(--hw-ink); color: #fff; border-color: var(--hw-ink); }
body.theme-hideaway-theme .hw-cat-pill-img { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--hw-paper) center / cover no-repeat; }
body.theme-hideaway-theme .hw-cat-pill-all { display: inline-flex; align-items: center; justify-content: center; color: var(--hw-ink); font-size: 16px; }
body.theme-hideaway-theme .hw-cat-pill.is-active .hw-cat-pill-all { background: rgba(255, 255, 255, .15); color: #fff; }
body.theme-hideaway-theme .hw-cat-pill-count { color: var(--hw-muted); font-size: 13px; font-weight: 500; }
body.theme-hideaway-theme .hw-cat-pill.is-active .hw-cat-pill-count { color: rgba(255, 255, 255, .7); }

/* No motion for people who turned it off on their device */
@media (prefers-reduced-motion: reduce) {
	.hw-js body.theme-hideaway-theme .hw-rv,
	.hw-js body.theme-hideaway-theme .hw-rv.hw-in { opacity: 1 !important; animation: none !important; }
	body.theme-hideaway-theme .hw-sticky-cart, body.theme-hideaway-theme .hw-sticky-cart.hw-show { transition: none; }
	body.theme-hideaway-theme .hw-save, body.theme-hideaway-theme .cart-link.hw-bump, body.theme-hideaway-theme .hideaway-cart-count.hw-bump, body.theme-hideaway-theme .woocommerce-tabs .panel.hw-fade,
	.hw-js body.theme-hideaway-theme img.hw-img, .hw-js body.theme-hideaway-theme img.hw-img:not(.hw-loaded) { animation: none !important; }
	body.theme-hideaway-theme .featured-product-image img, body.theme-hideaway-theme .category-tile img, body.theme-hideaway-theme .category-tile { transition: none; transform: none !important; }
}

@media (max-width: 600px) {
	body.theme-hideaway-theme .hw-sticky-cart { bottom: 8px; width: calc(100% - 16px); }
	body.theme-hideaway-theme .hw-sc-thumb { width: 40px; height: 40px; }
	:is(body.theme-hideaway-theme.woocommerce, body.theme-hideaway-theme .woocommerce, body.theme-hideaway-theme) .button.hw-sc-btn { padding: 10px 16px; font-size: 14px; }
	body.theme-hideaway-theme.single-product div.product form.cart .quantity.hw-stepper { flex: none; }
}
