/* ============================================================================
   SunSeason — Single product stylesheet
   One stylesheet per template. Chrome duplicated here; product layout
   (prefix ss-product-) + scoped WooCommerce gallery/cart/tabs styling follow.
   ============================================================================ */

/* ============================================================================
   SunSeason — Homepage stylesheet
   One stylesheet per template (no shared component CSS). This sheet also holds
   the shared chrome (top bar, menu) until sibling templates are built.

   Brand tokens carried over from the old design (logo + colours only):
     amber #f6a235 · navy/ink #1a1819 · cream #faf5ef · sand #e7dfd5
   ============================================================================ */

:root {
	--ss-amber: #f6a235;
	--ss-amber-dark: #e2860f;
	--ss-navy: #1a1819;
	--ss-ink: #1a1819;
	--ss-cream: #faf5ef;
	--ss-sand: #e7dfd5;
	--ss-white: #ffffff;
	--ss-topbar-bg: #17151a;
	--ss-topbar-fg: #cbc6bf;
	--ss-topbar-fg-strong: #ffffff;
	--ss-topbar-line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

.ss-home-page {
	font-family: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ss-ink);
	overflow-x: clip;
}

/* ------------------------------------------------------------------ TOP BAR */

.ss-home-topbar {
	background: var(--ss-topbar-bg);
	color: var(--ss-topbar-fg);
	font-size: 13px;
	line-height: 1;
	border-bottom: 1px solid var(--ss-topbar-line);
}

.ss-home-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ss-home-topbar-left,
.ss-home-topbar-right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.ss-home-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ss-topbar-fg);
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s ease;
}

.ss-home-topbar-item:hover { color: var(--ss-topbar-fg-strong); }

.ss-home-topbar-icon { color: var(--ss-amber); flex: 0 0 auto; }

.ss-home-topbar-address span { letter-spacing: .1px; }

.ss-home-topbar-phone { font-weight: 600; }

.ss-home-topbar-divider {
	width: 1px;
	height: 18px;
	background: var(--ss-topbar-line);
}

/* socials */
.ss-home-topbar-socials { display: inline-flex; align-items: center; gap: 6px; }

.ss-home-topbar-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--ss-topbar-fg);
	background: transparent;
	transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.ss-home-topbar-social:hover {
	color: var(--ss-navy);
	background: var(--ss-amber);
	transform: translateY(-1px);
}

/* language switcher */
.ss-home-topbar-lang {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	letter-spacing: .3px;
}

.ss-home-topbar-lang-link {
	color: var(--ss-topbar-fg);
	text-decoration: none;
	transition: color .18s ease;
}

.ss-home-topbar-lang-link:hover { color: var(--ss-topbar-fg-strong); }

.ss-home-topbar-lang-link.is-active { color: var(--ss-amber); }

.ss-home-topbar-lang-sep { color: var(--ss-topbar-line); font-weight: 400; }

/* ------------------------------------------------------ TOP BAR responsive */

@media (max-width: 980px) {
	.ss-home-topbar-address { display: none; }
}

@media (max-width: 640px) {
	.ss-home-topbar-inner { padding: 8px 16px; flex-wrap: wrap; gap: 10px 16px; min-height: 0; }
	.ss-home-topbar-email span { display: none; }
	.ss-home-topbar-left, .ss-home-topbar-right { gap: 14px; }
}

/* ---------------------------------------------------------------- MENU BAR */

.ss-home-menu {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ss-white);
	box-shadow: 0 1px 0 rgba(26, 24, 25, 0.08), 0 6px 24px rgba(26, 24, 25, 0.05);
}

.ss-home-menu-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.ss-home-menu-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ss-home-menu-logo img {
	height: 40px;
	width: auto;
	display: block;
}

/* nav panel (list + CTA) sits to the right, list pushed to the far side */
.ss-home-menu-panel {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.ss-home-menu-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-home-menu-item > a {
	display: inline-block;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .2px;
	color: var(--ss-ink);
	text-decoration: none;
	border-radius: 8px;
	position: relative;
	transition: color .18s ease, background-color .18s ease;
}

.ss-home-menu-item > a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 4px;
	height: 2px;
	background: var(--ss-amber);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.ss-home-menu-item > a:hover { color: var(--ss-amber-dark); }
.ss-home-menu-item > a:hover::after { transform: scaleX(1); }

.ss-home-menu-item.is-active > a { color: var(--ss-amber-dark); }
.ss-home-menu-item.is-active > a::after { transform: scaleX(1); }

/* WhatsApp CTA */
.ss-home-menu-cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 20px;
	background: #25d366;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ss-home-menu-cta:hover {
	background: #1fb457;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* cart */
.ss-home-menu-cart {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ss-ink);
	border-radius: 50%;
	transition: color .18s ease, background-color .18s ease;
}

.ss-home-menu-cart:hover { color: var(--ss-amber-dark); background: var(--ss-cream); }

.ss-home-menu-cart-badge {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ss-amber);
	color: var(--ss-navy);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	border-radius: 999px;
}

.ss-home-menu-cart-badge[data-count="0"] { display: none; }

/* mobile burger — hidden on desktop */
.ss-home-menu-toggle-input,
.ss-home-menu-burger { display: none; }

/* ------------------------------------------------------- MENU responsive */

@media (max-width: 900px) {
	.ss-home-menu-inner { min-height: 66px; gap: 16px; }
	.ss-home-menu-logo img { height: 34px; }

	.ss-home-menu-burger {
		order: 3;
		margin-left: auto;
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		padding: 10px;
		cursor: pointer;
		border-radius: 8px;
	}
	.ss-home-menu-burger span {
		display: block;
		height: 2px;
		width: 100%;
		background: var(--ss-ink);
		border-radius: 2px;
		transition: transform .22s ease, opacity .22s ease;
	}

	.ss-home-menu-cart { order: 2; }

	/* collapsed panel */
	.ss-home-menu-panel {
		order: 4;
		flex-basis: 100%;
		margin-left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
	}
	.ss-home-menu-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.ss-home-menu-item > a { padding: 12px 8px; border-radius: 8px; }
	.ss-home-menu-item > a::after { display: none; }
	.ss-home-menu-item.is-active > a,
	.ss-home-menu-item > a:hover { background: var(--ss-cream); }

	.ss-home-menu-cta { justify-content: center; margin: 8px 0 14px; }

	/* open state */
	.ss-home-menu-toggle-input:checked ~ .ss-home-menu-panel {
		max-height: 420px;
		opacity: 1;
		padding-top: 8px;
	}
	.ss-home-menu-toggle-input:checked ~ .ss-home-menu-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.ss-home-menu-toggle-input:checked ~ .ss-home-menu-burger span:nth-child(2) { opacity: 0; }
	.ss-home-menu-toggle-input:checked ~ .ss-home-menu-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------------------------------------------------ FOOTER */

.ss-home-footer { background: var(--ss-navy); color: rgba(255, 255, 255, 0.72); }

.ss-home-footer-top { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.ss-home-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 68px 24px 56px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 44px;
}

.ss-home-footer-logo { height: 38px; width: auto; display: block; margin-bottom: 20px; }
/* WooCommerce's `.woocommerce img, .woocommerce-page img { height:auto }` (0,1,1)
   out-specifies the line above on every store page and blows the mark up to its
   intrinsic 2532px. Pin it back with a 0,2,0 selector. */
.ss-home-footer .ss-home-footer-logo { height: 38px; width: auto; max-width: 100%; }

.ss-home-footer-tagline {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
	max-width: 34ch;
}

.ss-home-footer-socials { display: flex; gap: 10px; }
.ss-home-footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.ss-home-footer-socials a:hover { background: var(--ss-amber); color: var(--ss-navy); transform: translateY(-2px); }

.ss-home-footer-title {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .3px;
	color: #fff;
}

.ss-home-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ss-home-footer-col li { margin-bottom: 11px; }
.ss-home-footer-col a {
	color: rgba(255, 255, 255, 0.66);
	text-decoration: none;
	font-size: 14.5px;
	transition: color .16s ease, padding-left .16s ease;
}
.ss-home-footer-col a:hover { color: var(--ss-amber); }

.ss-home-footer-contact-item {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.66);
}
.ss-home-footer-contact-item svg { flex: 0 0 auto; margin-top: 2px; color: var(--ss-amber); }
.ss-home-footer-contact-item a { color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.ss-home-footer-contact-item a:hover { color: var(--ss-amber); }

.ss-home-footer-bottom-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.ss-home-footer-copy,
.ss-home-footer-made { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.ss-home-footer-made { color: var(--ss-amber); font-weight: 600; }

@media (max-width: 900px) {
	.ss-home-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; padding: 52px 24px 44px; }
	.ss-home-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.ss-home-footer-inner { grid-template-columns: 1fr; }
	.ss-home-footer-bottom-inner { justify-content: center; text-align: center; }
}


/* ========================================================= SINGLE PRODUCT */

.ss-product-main { background: #fff; }
.ss-product {
	max-width: 1280px; margin: 0 auto; padding: 34px 24px 84px;
}

/* breadcrumb */
.ss-product-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #8a8078; margin-bottom: 26px; flex-wrap: wrap; }
.ss-product-crumb a { color: var(--ss-amber-dark); text-decoration: none; font-weight: 600; }
.ss-product-crumb a:hover { text-decoration: underline; }
.ss-product-crumb span[aria-hidden] { color: #cbbfa8; }

/* top: gallery + summary */
.ss-product-top {
	display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start;
	margin-bottom: 64px;
}

/* ---- gallery (WooCommerce) ---- */
.ss-product-gallery .woocommerce-product-gallery { width: 100% !important; margin: 0; position: relative; }
.ss-product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.ss-product-gallery .woocommerce-product-gallery__image { border-radius: 18px; overflow: hidden; background: #f7f2ea; border: 1px solid #efe6d8; }
.ss-product-gallery .woocommerce-product-gallery__image a { display: block; }
.ss-product-gallery .woocommerce-product-gallery__image img { border-radius: 18px; }
.ss-product-gallery .flex-control-thumbs { display: flex; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.ss-product-gallery .flex-control-thumbs li { width: 74px; margin: 0; }
.ss-product-gallery .flex-control-thumbs img { border-radius: 10px; border: 1.5px solid #efe6d8; cursor: pointer; opacity: .7; transition: opacity .16s ease, border-color .16s ease; }
.ss-product-gallery .flex-control-thumbs img.flex-active,
.ss-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ss-amber); }
.ss-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px;
	background: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(26,24,25,.16); text-align: center; line-height: 42px;
}
.ss-product-gallery .onsale {
	position: absolute; top: 14px; left: 14px; z-index: 3; margin: 0; padding: 5px 12px;
	background: var(--ss-navy); color: var(--ss-amber); font-size: 12px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .4px; border-radius: 999px; min-height: 0; min-width: 0;
}

/* ---- summary ----
   Override WooCommerce's `.woocommerce div.product div.summary { width:48%;
   float:right }` which otherwise shrinks the summary to half its grid cell. */
.woocommerce div.product .ss-product-top .ss-product-summary,
.ss-product-summary { width: 100%; float: none; margin: 0; padding-top: 4px; }
/* same guard for the gallery half */
.woocommerce div.product .ss-product-top .ss-product-gallery,
.ss-product-gallery { width: 100%; float: none; margin: 0; }
.ss-product-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #a99a82; margin-bottom: 10px; }
.ss-product-title { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; color: var(--ss-ink); }
.ss-product-price { margin: 0 0 18px; font-size: 28px; font-weight: 800; color: var(--ss-ink); }
.ss-product-price del { color: #b4a98f; font-weight: 500; font-size: 20px; margin-right: 10px; }
.ss-product-price ins { text-decoration: none; color: var(--ss-amber-dark); }
.ss-product-price .woocommerce-Price-amount { color: inherit; }
.ss-product-intro { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid #eee4d5; font-size: 16px; line-height: 1.7; color: #5a5652; }
.ss-product-intro p { margin: 0 0 10px; }
.ss-product-intro p:last-child { margin: 0; }

/* add-to-cart form (qty + button) */
.ss-product-cart form.cart { display: flex; align-items: stretch; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.ss-product-cart .quantity { display: inline-flex; }
.ss-product-cart .quantity input.qty {
	width: 78px; height: 54px; padding: 0 10px; text-align: center;
	font-size: 16px; font-weight: 700; color: var(--ss-ink);
	background: #faf7f2; border: 1.5px solid #e6dccb; border-radius: 12px;
}
.ss-product-cart .quantity input.qty:focus { outline: none; border-color: var(--ss-amber); }

/* out-specify Woo's `.woocommerce button.button.alt` (0,3,1 purple) */
.ss-product .ss-product-cart button.single_add_to_cart_button,
.ss-product .ss-product-cart button.single_add_to_cart_button.alt {
	flex: 1 1 auto; min-width: 200px; height: 54px; padding: 0 30px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ss-amber); color: var(--ss-navy);
	font-size: 16px; font-weight: 800; border: 0; border-radius: 12px; cursor: pointer;
	box-shadow: 0 10px 24px rgba(246, 162, 53, 0.3);
	transition: background-color .18s ease, transform .18s ease;
}
.ss-product .ss-product-cart button.single_add_to_cart_button:hover { background: var(--ss-amber-dark); transform: translateY(-2px); }

/* WhatsApp order button */
.ss-product-wa {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	margin: 0 0 22px; padding: 14px 22px; border-radius: 12px;
	background: #25d366; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}
.ss-product-wa:hover { background: #1fb457; transform: translateY(-2px); }

/* meta (SKU / categories / tags) */
.ss-product-meta .product_meta { font-size: 14px; color: #6a655f; border-top: 1px solid #eee4d5; padding-top: 18px; margin: 0; }
.ss-product-meta .product_meta > span { display: block; margin-bottom: 7px; }
.ss-product-meta .product_meta a { color: var(--ss-amber-dark); text-decoration: none; }
.ss-product-meta .product_meta a:hover { text-decoration: underline; }

/* assurance list */
.ss-product-assurance { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid #eee4d5; display: grid; gap: 12px; }
.ss-product-assurance li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 600; color: #5a5652; }
.ss-product-assurance svg { flex: 0 0 auto; color: var(--ss-amber); }

/* ---- tabs ---- */
.ss-product-tabs { margin-bottom: 68px; }
.ss-product-tabs .woocommerce-tabs ul.tabs {
	display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0 0 0; padding: 0;
	border-bottom: 2px solid #eee4d5;
}
.ss-product-tabs .woocommerce-tabs ul.tabs::before,
.ss-product-tabs .woocommerce-tabs ul.tabs li::before,
.ss-product-tabs .woocommerce-tabs ul.tabs li::after { display: none; content: none; border: 0; }
.ss-product-tabs .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
}
.ss-product-tabs .woocommerce-tabs ul.tabs li a {
	display: inline-block; padding: 13px 20px; margin-bottom: -2px;
	font-size: 15px; font-weight: 700; color: #8a8078; text-decoration: none;
	border-bottom: 2px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.ss-product-tabs .woocommerce-tabs ul.tabs li a:hover { color: var(--ss-amber-dark); }
.ss-product-tabs .woocommerce-tabs ul.tabs li.active a { color: var(--ss-ink); border-bottom-color: var(--ss-amber); }
.ss-product-tabs .woocommerce-Tabs-panel { padding-top: 28px; font-size: 16px; line-height: 1.75; color: #5a5652; max-width: 900px; }
.ss-product-tabs .woocommerce-Tabs-panel h2 { font-size: 22px; color: var(--ss-ink); margin: 0 0 14px; }
.ss-product-tabs .woocommerce-Tabs-panel p { margin: 0 0 14px; }
.ss-product-tabs table.shop_attributes { width: 100%; border-collapse: collapse; }
.ss-product-tabs table.shop_attributes th,
.ss-product-tabs table.shop_attributes td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #eee4d5; font-size: 14.5px; }
.ss-product-tabs table.shop_attributes th { font-weight: 700; color: var(--ss-ink); width: 30%; }

/* ---- reviews: amber stars (Woo defaults them to the link colour = blue) ---- */
.ss-product .star-rating,
.ss-product .star-rating span,
.ss-product .star-rating span::before,
.ss-product .star-rating::before,
.ss-product p.stars a,
.ss-product p.stars a::before,
.ss-product .comment-form-rating p.stars a { color: var(--ss-amber); }
.ss-product p.stars a:hover,
.ss-product p.stars a.active { color: var(--ss-amber-dark); }
.ss-product .woocommerce-product-rating .star-rating { margin: 0; }
.ss-product .comment-form-rating label { font-weight: 700; color: var(--ss-ink); }

/* ---- related ---- */
.ss-product-related-title { margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.4px; color: var(--ss-ink); }
.ss-product-related-divider { display: block; width: 160px; max-width: 100%; height: 4px; margin: 0 0 26px; background: var(--ss-amber); border-radius: 999px; }
/* Out-specify WooCommerce's own ul.products grid (which forces 2 columns) and
   kill its clearfix ::before/::after (they become grid items → empty cells). */
.woocommerce ul.products.ss-product-related-grid,
.ss-product-related-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.woocommerce ul.products.ss-product-related-grid::before,
.woocommerce ul.products.ss-product-related-grid::after,
.ss-product-related-grid::before, .ss-product-related-grid::after { content: none; display: none; }
.woocommerce ul.products.ss-product-related-grid li.ss-product-related-card,
.ss-product-related-card {
	display: flex; flex-direction: column; margin: 0; width: auto; float: none; clear: none;
	background: #fff; border: 1px solid #efe6d8; border-radius: 16px; overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ss-product-related-card:hover { transform: translateY(-5px); border-color: rgba(246, 162, 53, 0.5); box-shadow: 0 20px 40px rgba(26, 24, 25, 0.1); }
.ss-product-related-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f7f2ea; overflow: hidden; }
.ss-product-related-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.ss-product-related-card:hover .ss-product-related-media img { transform: scale(1.05); }
.ss-product-related-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; background: var(--ss-navy); color: var(--ss-amber); font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 999px; }
.ss-product-related-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 16px 18px; }
.ss-product-related-cat { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #a99a82; margin-bottom: 6px; }
.ss-product-related-name { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.ss-product-related-name a { color: var(--ss-ink); text-decoration: none; }
.ss-product-related-name a:hover { color: var(--ss-amber-dark); }
.ss-product-related-price { margin-top: auto; font-size: 16px; font-weight: 800; color: var(--ss-ink); }
.ss-product-related-price del { color: #b4a98f; font-weight: 500; font-size: 13px; margin-right: 5px; }
.ss-product-related-price ins { text-decoration: none; color: var(--ss-amber-dark); }

/* ---- responsive ---- */
@media (max-width: 900px) {
	.ss-product-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
	.ss-product-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
	.ss-product-related-grid { grid-template-columns: 1fr; }
	.ss-product-cart form.cart { flex-direction: column; }
	.ss-product .ss-product-cart button.single_add_to_cart_button { width: 100%; }
}
/* ------------------------------------------------- MENU DROPDOWN (submenus) */
.ss-home-menu-item { position: relative; }

/* caret on parents with children */
.ss-home-menu-item.menu-item-has-children > a { padding-right: 30px; }
.ss-home-menu-item.menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 13px;
	top: 44%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	opacity: .8;
	transition: transform .2s ease;
}
.ss-home-menu-item.menu-item-has-children:hover > a::before,
.ss-home-menu-item.menu-item-has-children:focus-within > a::before {
	transform: translateY(-20%) rotate(225deg);
}

/* dropdown panel */
.ss-home-menu-list .sub-menu {
	position: absolute;
	top: calc(100% - 2px);
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--ss-white);
	border: 1px solid #eee4d5;
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(26, 24, 25, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	z-index: 60;
}
.ss-home-menu-item:hover > .sub-menu,
.ss-home-menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ss-home-menu-list .sub-menu .menu-item { display: block; }
.ss-home-menu-list .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ss-ink);
	text-decoration: none;
	white-space: nowrap;
}
.ss-home-menu-list .sub-menu a::after { display: none; }
.ss-home-menu-list .sub-menu a:hover { background: var(--ss-cream); color: var(--ss-amber-dark); }
.ss-home-menu-list .sub-menu .is-active > a,
.ss-home-menu-list .sub-menu .current-menu-item > a { color: var(--ss-amber-dark); background: var(--ss-cream); }

/* mobile: submenus render inline (static, indented) inside the burger panel */
@media (max-width: 900px) {
	.ss-home-menu-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		min-width: 0;
		padding: 0 0 4px 14px;
	}
	.ss-home-menu-item.menu-item-has-children > a::before { display: none; }
	.ss-home-menu-list .sub-menu a { color: #5a5652; padding: 10px 8px; }
}
/* ---- account icon (left of cart) ---- */
.ss-home-menu-account {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ss-ink);
	border-radius: 50%;
	transition: color .18s ease, background-color .18s ease;
}
.ss-home-menu-account:hover { color: var(--ss-amber-dark); background: var(--ss-cream); }
@media (max-width: 900px) { .ss-home-menu-account { order: 2; } }

/* tighten gap between account + cart icons */
.ss-home-menu-account { margin-right: -14px; }
.ss-home-menu-account { margin-right: -19px; }
/* fix: let the collapsed nav panel wrap to its own line so the top-row icons
   (incl. the hamburger) keep their size instead of being squeezed */
@media (max-width: 900px) {
	.ss-home-menu-inner { flex-wrap: wrap; }
	.ss-home-menu-burger { flex: 0 0 auto; }
	.ss-home-menu-account,
	.ss-home-menu-cart { flex: 0 0 auto; }
}
/* ===== mobile menu: robust overlay (supersedes the flex-wrap approach) ===== */
@media (max-width: 900px) {
	.ss-home-menu-inner { flex-wrap: nowrap; position: relative; gap: 10px; }
	.ss-home-menu-logo { margin-right: auto; }
	.ss-home-menu-logo img { height: 30px; }
	.ss-home-menu-account,
	.ss-home-menu-cart,
	.ss-home-menu-burger { flex: 0 0 auto; }
	.ss-home-menu-burger { margin-left: 0; }

	/* nav panel becomes an absolute dropdown so the top row never wraps */
	.ss-home-menu-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		order: 0;
		margin: 0;
		background: var(--ss-white);
		border-top: 1px solid #eee4d5;
		box-shadow: 0 16px 30px rgba(26, 24, 25, 0.12);
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		padding: 0 20px;
		transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
		z-index: 90;
	}
	.ss-home-menu-toggle-input:checked ~ .ss-home-menu-panel {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		opacity: 1;
		padding: 12px 20px 18px;
	}
}

/* ===== fix: burger panel — active parent and active child ran together =====
   Top-level links were inline-block (pill only as wide as the label) while
   submenu links are block, so an active parent sat directly on top of its
   active child and the two highlights read as one shape. Rows are now full
   width, the current section's parent keeps the amber label without a filled
   pill, and the submenu is a grouped, indented list with its own rail. */
@media (max-width: 900px) {
	.ss-home-menu-panel .ss-home-menu-item > a { display: block; }

	.ss-home-menu-list > .ss-home-menu-item.current-menu-ancestor:not(.current-menu-item) > a,
	.ss-home-menu-list > .ss-home-menu-item.current-menu-parent:not(.current-menu-item) > a,
	.ss-home-menu-list > .ss-home-menu-item.current_page_parent:not(.current-menu-item) > a {
		background: transparent;
		color: var(--ss-amber-dark);
	}

	.ss-home-menu-list .sub-menu {
		margin: 2px 0 10px;
		padding: 0 0 0 12px;
		border-left: 2px solid #efe6d8;
	}
	.ss-home-menu-list .sub-menu a { border-radius: 8px; }
	.ss-home-menu-list .sub-menu .is-active > a,
	.ss-home-menu-list .sub-menu .current-menu-item > a {
		background: var(--ss-cream);
		box-shadow: inset 2px 0 0 var(--ss-amber);
	}
}

/* ===== footer: Jelajahi + Layanan share one column, About gets its own =====
   The min-width guard matters: this block is appended after the footer's
   @media (max-width:900px) rules, so an unguarded grid declaration would
   re-apply four columns on mobile. */
.ss-home-footer-group + .ss-home-footer-group { margin-top: 26px; }
@media (min-width: 901px) {
	.ss-home-footer-inner { grid-template-columns: 1.5fr 1fr 1.15fr 1.25fr; }
}

/* ===== footer bottom bar: Terms / Privacy links ===== */
.ss-home-footer-legal { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.ss-home-footer-legal a { color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color .16s ease; }
.ss-home-footer-legal a:hover { color: var(--ss-amber); }
@media (max-width: 520px) {
	.ss-home-footer-legal { justify-content: center; }
}

/* ===== top bar: legal links took the address slot (and its hide rule) ===== */
@media (max-width: 980px) {
	.ss-home-topbar-legal { display: none; }
}
