/*
 * Oxcon storefront — header, footer, homepage, catalog, product, cart/checkout.
 *
 * One idea runs through the whole store: the garment spec tag. Data (sizes,
 * colours, SKU, fabric) sits in square hairline mono tags; actions are pills.
 * Everything else stays quiet so products carry the page.
 * Colour tokens live in brand.css.
 */

:root {
	--oxc-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	--oxc-display: 'Myriad Light Condensed', 'Arial Narrow', sans-serif;
	--oxc-muted: #5b636a;
	--oxc-card: #fbfbf9;
	--oxc-gutter: clamp(16px, 4vw, 48px);
	--oxc-max: 1320px;
}

/* ------------------------------------------------------------------ base */

body { font-size: 15px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oxc-accent); outline-offset: 3px; }

.oxc-tag {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--oxc-hairline);
	border-radius: 3px;
	padding: 6px 10px;
	font-family: var(--oxc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--oxc-ink);
}
.oxc-tag--sm { padding: 4px 7px; font-size: 10px; }
.oxc-tag--ghost { color: inherit; border-color: currentColor; opacity: .7; }

.oxc-eyebrow {
	display: block;
	font-family: var(--oxc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--oxc-accent);
}

.oxc-link {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.oxc-link:hover { color: var(--oxc-accent); }

.oxc-btn,
.woocommerce a.button.oxc-btn { padding: 15px 28px; font-weight: 600; letter-spacing: .02em; }

/* ---------------------------------------------------------------- header */

.oxc-strip {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 8px var(--oxc-gutter);
	background: var(--oxc-ink);
	color: var(--oxc-paper);
	font-family: var(--oxc-mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.oxc-strip__sep { opacity: .4; }

.oxc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(242, 241, 238, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--oxc-hairline);
}
.admin-bar .oxc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .oxc-header { top: 0; } }

.oxc-header__inner {
	max-width: var(--oxc-max);
	margin: 0 auto;
	padding: 0 var(--oxc-gutter);
	height: 68px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
}
.oxc-logo { display: flex; }
.oxc-logo img { height: 24px; width: auto; }

.oxc-nav ul,
.oxc-nav-mobile ul,
.oxc-footer ul { list-style: none; margin: 0; padding: 0; }
.oxc-nav ul { display: flex; gap: 28px; }
.oxc-nav a {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}
.oxc-nav a:hover,
.oxc-nav .current-menu-item > a,
.oxc-nav .current-product_cat-ancestor > a { border-bottom-color: var(--oxc-ink); }

.oxc-header__actions { display: flex; align-items: center; gap: 6px; }
.oxc-icon-link,
.oxc-search > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	cursor: pointer;
	color: var(--oxc-ink);
	position: relative;
	text-decoration: none;
}
.oxc-icon-link:hover,
.oxc-search > summary:hover { background: var(--oxc-surface); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.oxc-cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--oxc-ink);
	color: #fff;
	font-family: var(--oxc-mono);
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}
.oxc-cart-count[data-count="0"] { display: none; }

.oxc-search { position: relative; }
.oxc-search__form {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: min(380px, calc(100vw - 32px));
	display: flex;
	gap: 8px;
	padding: 10px;
	background: var(--oxc-card);
	border: 1px solid var(--oxc-hairline);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(22, 25, 28, .12);
}
.oxc-search__form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--oxc-hairline);
	border-radius: 999px;
	padding: 10px 16px;
	background: #fff;
	font-size: 14px;
}
.oxc-search__form button {
	border: 0;
	border-radius: 999px;
	padding: 0 18px;
	background: var(--oxc-ink);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.oxc-nav-toggle { display: none; }
.oxc-burger,
.oxc-burger::before,
.oxc-burger::after {
	display: block;
	width: 20px;
	height: 1.6px;
	background: var(--oxc-ink);
	position: relative;
	transition: transform .2s ease;
}
.oxc-burger::before,
.oxc-burger::after { content: ''; position: absolute; left: 0; }
.oxc-burger::before { top: -6px; }
.oxc-burger::after { top: 6px; }
.oxc-nav-toggle[open] .oxc-burger { background: transparent; }
.oxc-nav-toggle[open] .oxc-burger::before { transform: translateY(6px) rotate(45deg); }
.oxc-nav-toggle[open] .oxc-burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.oxc-header__inner { grid-template-columns: 40px 1fr auto; gap: 8px; height: 60px; }
	.oxc-nav { display: none; }
	.oxc-logo { justify-self: center; }
	.oxc-nav-toggle { display: block; }
	.oxc-nav-toggle > summary {
		width: 40px; height: 40px;
		display: flex; align-items: center; justify-content: center;
		cursor: pointer;
	}
	.oxc-nav-mobile {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--oxc-paper);
		border-bottom: 1px solid var(--oxc-hairline);
		padding: 8px var(--oxc-gutter) 20px;
	}
	.oxc-nav-mobile a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--oxc-hairline);
		font-family: var(--oxc-display);
		font-size: 26px;
		text-decoration: none;
	}
	.oxc-header__actions a[aria-label="Akun saya"] { display: none; }
}

/* ---------------------------------------------------------------- footer */

.oxc-footer {
	margin-top: clamp(56px, 8vw, 110px);
	background: var(--oxc-ink);
	color: #c9cfd3;
	font-size: 14px;
}
.oxc-footer__inner {
	max-width: var(--oxc-max);
	margin: 0 auto;
	padding: clamp(48px, 6vw, 80px) var(--oxc-gutter) 40px;
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 40px;
}
.oxc-footer__brand img { height: 22px; width: auto; filter: invert(1); }
.oxc-footer__tagline {
	margin: 20px 0 8px;
	font-family: var(--oxc-display);
	font-style: italic;
	font-size: 28px;
	line-height: 1.05;
	color: var(--oxc-paper);
}
.oxc-footer__meta { margin: 0; color: #8d979d; }
.oxc-footer h2 {
	margin: 0 0 16px;
	font-family: var(--oxc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #8fa3ab;
}
.oxc-footer li { margin: 0 0 10px; }
.oxc-footer a { text-decoration: none; }
.oxc-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.oxc-footer__base {
	max-width: var(--oxc-max);
	margin: 0 auto;
	padding: 20px var(--oxc-gutter) 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(242, 241, 238, .12);
	font-size: 12.5px;
	color: #8d979d;
}
@media (max-width: 820px) {
	.oxc-footer__inner { grid-template-columns: 1fr 1fr; }
	.oxc-footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------- homepage */

.oxc-home { width: 100%; max-width: none; padding: 0; }
body.home .content-wrapper,
body.home .content-wrapper > .main-row { max-width: none; padding: 0; margin: 0; }

.oxc-hero2 {
	max-width: var(--oxc-max);
	margin: 0 auto;
	padding: clamp(36px, 6vw, 80px) var(--oxc-gutter);
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
}
.oxc-hero2__title {
	margin: 18px 0 0;
	font-family: var(--oxc-display);
	font-style: italic;
	font-weight: 200;
	font-size: clamp(52px, 7.6vw, 108px);
	line-height: .92;
	letter-spacing: -0.015em;
}
.oxc-hero2__title .strong { font-style: normal; font-weight: 600; }
.oxc-hero2__title .accent { font-style: normal; font-weight: 700; color: var(--oxc-accent); white-space: nowrap; }
.oxc-hero2__desc { margin: 24px 0 0; max-width: 42ch; font-size: clamp(15px, 1.4vw, 17px); color: var(--oxc-muted); }
.oxc-hero2__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.oxc-spec-strip2 { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.oxc-hero2__media { position: relative; margin: 0; }
.oxc-hero2__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 6px;
	background: var(--oxc-surface);
}

/* Signature: a punched hang tag clipped to the hero photo. */
.oxc-hangtag {
	position: absolute;
	left: clamp(-28px, -2vw, -12px);
	bottom: clamp(24px, 6%, 56px);
	width: 176px;
	padding: 34px 16px 16px;
	background: var(--oxc-paper);
	border: 1px solid var(--oxc-ink);
	border-radius: 4px 4px 10px 10px;
	box-shadow: 0 14px 30px rgba(22, 25, 28, .18);
	transform: rotate(-4deg);
	transform-origin: 50% 0;
	font-family: var(--oxc-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	display: flex;
	flex-direction: column;
	gap: 7px;
	animation: oxc-swing 1.4s cubic-bezier(.3, 1.5, .5, 1) .3s both;
}
.oxc-hangtag::before {
	content: '';
	position: absolute;
	top: 11px;
	left: 50%;
	width: 11px;
	height: 11px;
	margin-left: -5.5px;
	border-radius: 50%;
	background: var(--oxc-surface);
	box-shadow: inset 0 0 0 1px var(--oxc-ink);
}
.oxc-hangtag__brand {
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--oxc-hairline);
	font-weight: 700;
	letter-spacing: .3em;
	text-align: center;
}
.oxc-hangtag__row { display: flex; justify-content: space-between; gap: 8px; }
.oxc-hangtag__row b { font-weight: 600; color: var(--oxc-muted); }
@keyframes oxc-swing {
	0% { transform: rotate(8deg); opacity: 0; }
	40% { opacity: 1; }
	100% { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) { .oxc-hangtag { animation: none; } }

@media (max-width: 820px) {
	.oxc-hero2 { grid-template-columns: 1fr; }
	.oxc-hero2__media { order: -1; }
	.oxc-hero2__media img { aspect-ratio: 4 / 4.2; }
	.oxc-hangtag {
		left: auto; right: 12px; bottom: -20px;
		width: 124px; padding: 24px 10px 10px; gap: 4px; font-size: 9px;
	}
	.oxc-hangtag::before { top: 8px; width: 8px; height: 8px; margin-left: -4px; }
	.oxc-hangtag__row { flex-direction: column; gap: 0; }
	.oxc-hero2__copy { padding-top: 12px; }
}

.oxc-band {
	max-width: var(--oxc-max);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--oxc-gutter) 0;
}
.oxc-band__head { margin-bottom: clamp(20px, 3vw, 36px); }
.oxc-band__head h2,
.oxc-specsheet2 h2 {
	margin: 8px 0 0;
	font-family: var(--oxc-display);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1;
}
.oxc-band__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

.oxc-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(10px, 1.4vw, 18px);
}
.oxc-cat { display: block; text-decoration: none; }
.oxc-cat__img {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: 6px;
	background: var(--oxc-surface) center / cover no-repeat;
	transition: transform .5s ease;
}
.oxc-cat:hover .oxc-cat__img { transform: scale(1.015); }
.oxc-cat__name {
	display: block;
	margin: 12px 0 6px;
	font-family: var(--oxc-display);
	font-size: 24px;
	line-height: 1.1;
}
@media (max-width: 820px) { .oxc-cats { grid-template-columns: repeat(2, 1fr); } }

.oxc-specsheet2 {
	margin-top: clamp(56px, 8vw, 110px);
	background: var(--oxc-ink);
	color: var(--oxc-paper);
}
.oxc-specsheet2__inner { max-width: var(--oxc-max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--oxc-gutter); }
.oxc-specsheet2 h2 { color: var(--oxc-paper); }
.oxc-specsheet2 .oxc-eyebrow { color: #8fa3ab; }
.oxc-specs { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.oxc-specs > div { padding: 0 24px; border-left: 1px solid rgba(242, 241, 238, .16); }
.oxc-specs > div:first-child { padding-left: 0; border-left: 0; }
.oxc-specs dt { color: var(--oxc-paper); border-color: rgba(242, 241, 238, .3); margin-bottom: 16px; }
.oxc-specs dd { margin: 0; color: #b7c0c5; font-size: 14px; }
.oxc-specs dd strong { display: block; margin-bottom: 6px; color: var(--oxc-paper); font-size: 17px; font-weight: 600; }
@media (max-width: 820px) {
	.oxc-specs { grid-template-columns: 1fr 1fr; gap: 32px 0; }
	.oxc-specs > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------- page header */

.woocommerce-page-header { padding: clamp(28px, 4vw, 52px) 0 clamp(8px, 2vw, 20px); background: transparent; }
.woocommerce-page-header .page-title {
	font-family: var(--oxc-display);
	font-style: italic;
	font-weight: 200;
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: 1;
}
.woocommerce-breadcrumb {
	font-family: var(--oxc-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--oxc-muted);
}
.woocommerce-breadcrumb a { text-decoration: none; }

/* --------------------------------------------------------- product cards */

.woocommerce ul.products li.product,
ul.products li.product {
	background: transparent;
	padding: 0;
	text-align: left;
	/* Botiga's grid is repeat(N, 1fr), whose tracks can't shrink below their
	   content; the 100%-width aspect-ratio image then blows cards up to 3000px. */
	min-width: 0;
}
ul.products li.product .loop-image-wrap {
	border-radius: 6px;
	overflow: hidden;
	background: var(--oxc-surface);
	/* Shape lives on the wrapper, so a broken image can't stretch the card. */
	aspect-ratio: 4 / 5;
}
ul.products li.product .loop-image-wrap img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0;
	transition: transform .6s ease;
}
ul.products li.product:hover .loop-image-wrap img { transform: scale(1.03); }

ul.products li.product .woocommerce-loop-product__title {
	margin: 12px 0 6px;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.35;
	/* Marketplace titles are long — two lines keeps the grid even. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
ul.products li.product .woocommerce-loop-product__title a { text-decoration: none; }
ul.products li.product .price {
	display: block;
	margin: 6px 0 0;
	font-weight: 700;
	font-size: 15px;
	color: var(--oxc-ink);
}
ul.products li.product .price del { font-weight: 400; color: var(--oxc-muted); }
.oxc-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 4px; }

/* Botiga's hover button over the image — keep, but in brand form. */
ul.products li.product .loop-button-wrap .button {
	font-size: 12.5px;
	padding: 10px 18px;
}

.woocommerce-sorting-wrapper { margin-bottom: 24px; font-size: 13px; }
.woocommerce-ordering select {
	border: 1px solid var(--oxc-hairline);
	border-radius: 999px;
	padding: 8px 32px 8px 14px;
	background-color: transparent;
}
.woocommerce-pagination .page-numbers li .page-numbers {
	border-radius: 999px;
	min-width: 38px;
	font-family: var(--oxc-mono);
	font-size: 12px;
}
.woocommerce-pagination .page-numbers li .current { background: var(--oxc-ink); color: #fff; }

/* -------------------------------------------------------- single product */

.single-product div.product .product_title {
	font-family: var(--oxc-display);
	font-weight: 300;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.05;
}
.single-product div.product p.price,
.single-product div.product span.price { font-size: 22px; font-weight: 700; color: var(--oxc-ink); }
.single-product .woocommerce-product-gallery img { border-radius: 6px; }
.single-product table.variations th.label,
.single-product table.variations td.label label {
	font-family: var(--oxc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.single-product table.variations select {
	border: 1px solid var(--oxc-hairline);
	border-radius: 6px;
	background-color: #fff;
	padding: 11px 14px;
	font-size: 14px;
}
.single-product .single_add_to_cart_button { font-weight: 600; letter-spacing: .02em; }
.single-product .woocommerce-variation-availability .stock { font-family: var(--oxc-mono); font-size: 12px; }

/* Care label: sewn-in label look — ribbon edges, mono rows. */
.oxc-care-label {
	margin: 24px 0 8px;
	padding: 16px 18px 12px;
	background: #fff;
	border: 1px solid var(--oxc-hairline);
	border-top: 3px double var(--oxc-ink);
	border-radius: 2px;
	font-size: 13.5px;
}
.oxc-care-label__head {
	margin-bottom: 10px;
	font-family: var(--oxc-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--oxc-muted);
}
.oxc-care-label dl { margin: 0; }
.oxc-care-label dl > div {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px dashed var(--oxc-hairline);
}
.oxc-care-label dt {
	font-family: var(--oxc-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding-top: 2px;
}
.oxc-care-label dd { margin: 0; color: var(--oxc-muted); }
.oxc-care-label a { color: var(--oxc-ink); }

.single-product .woocommerce-tabs ul.tabs li a {
	font-family: var(--oxc-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------------------------------------------------- cart & checkout */

.wc-block-cart,
.wc-block-checkout { font-size: 15px; }
.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-family: var(--oxc-mono) !important; /* Blocks inline their own heading font. */
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .12em;
	text-transform: uppercase !important;
}
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--oxc-ink) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600;
	min-height: 52px;
}
.wc-block-components-button:not(.is-link):hover { background: var(--oxc-accent) !important; }
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-order-summary,
.wc-block-cart .wc-block-cart__sidebar {
	background: var(--oxc-card);
}
.wc-block-components-sidebar-layout .wc-block-components-sidebar { border-radius: 8px; }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border-radius: 6px !important;
	background: #fff !important;
}
.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--oxc-ink) !important;
}
.wc-block-components-product-name { font-weight: 600; text-decoration: none; }

/* Empty cart / notices */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner {
	border-radius: 6px;
	border-color: var(--oxc-hairline);
	background: var(--oxc-card);
}

/* Botiga centres card text via its card-alignment setting; tags are left-set,
   so the whole card follows. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .oxc-card-tags {
	text-align: left;
	justify-content: flex-start;
}
.oxc-specs dt.oxc-tag { background: transparent; }
