/*
Theme Name: Rokitas Store
Description: A light, collection-led WooCommerce storefront for Rokitas.
Version: 1.2.0
Text Domain: rokitas-store
Requires PHP: 7.4
*/

:root {
	--rok-ink: #211e34;
	--rok-muted: #5f566a;
	--rok-plum: #653a79;
	--rok-petal: #f3e6ef;
	--rok-paper: #faf8f5;
	--rok-line: #ded7e3;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--rok-paper); color: var(--rok-ink); font: 16px/1.55 "Segoe UI", system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #8562ae; outline-offset: 4px; }
.rok-wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.rok-content { min-height: 52vh; padding-block: 34px 60px; }
.screen-reader-text, .rok-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rok-skip:focus { position: absolute; top: 8px; left: 8px; z-index: 20; background: white; padding: 10px; }
.rok-header { background: white; border-bottom: 1px solid var(--rok-line); }
.rok-mast { display: grid; grid-template-columns: auto minmax(160px, 560px) auto; justify-content: space-between; align-items: center; gap: 30px; padding-block: 21px; }
.rok-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 2rem; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.rok-brand span { width: 22px; height: 26px; background: var(--rok-plum); clip-path: polygon(0 0,100% 0,65% 42%,100% 100%,57% 100%,0 45%); }
.custom-logo { display: block; width: auto; max-height: 46px; }
.rok-search { display: flex; border: 1px solid var(--rok-line); border-radius: 8px; overflow: hidden; }
.rok-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; background: white; color: var(--rok-ink); }
.rok-search input:focus-visible { outline-offset: -3px; }
.rok-search button, .rok-button { min-height: 44px; padding: 9px 16px; background: var(--rok-plum); color: white; border: 0; font-weight: 650; }
.rok-search button:focus-visible { outline-offset: -5px; outline-color: white; }
.rok-button { display: inline-flex; align-items: center; border-radius: 7px; text-decoration: none; }
.rok-cart { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; }
.rok-nav { background: var(--rok-ink); color: white; }
.rok-nav .rok-wrap { display: flex; flex-wrap: wrap; gap: 0 18px; }
.rok-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: none; }
.rok-nav a:hover, .rok-nav a:focus-visible { text-decoration: underline; }
.rok-hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); min-height: 390px; margin-top: 24px; background: var(--rok-petal); border-radius: 18px; overflow: hidden; }
.rok-hero-copy { padding: clamp(28px,5vw,68px); align-self: center; }
.rok-hero h1 { max-width: 11ch; margin: 0; font-size: clamp(2.65rem,5.3vw,5.15rem); font-weight: 830; letter-spacing: -.075em; line-height: .99; }
.rok-hero p { max-width: 35ch; color: var(--rok-muted); margin: 20px 0 24px; }
.rok-hero-media { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; padding: 20px 20px 20px 0; }
.rok-hero-image { display: grid; place-items: center; border-radius: 13px; padding: 18px; min-width: 0; overflow: hidden; }
.rok-hero-main { grid-row: span 2; background: #f9f5ed; }
.rok-hero-kitchen { background: #e4eee7; }
.rok-hero-power { background: #e6e8f5; }
.rok-hero-image img { display: block; width: 100%; height: 136px; object-fit: contain; mix-blend-mode: multiply; }
.rok-hero-main img { height: 295px; }
.rok-section { margin-block: clamp(32px,5vw,58px); }
.rok-section h2 { margin: 0 0 17px; font-size: clamp(1.55rem,3vw,2.35rem); letter-spacing: -.045em; line-height: 1.13; }
.rok-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rok-line); margin-bottom: 16px; }
.rok-section-head > a { color: var(--rok-plum); font-weight: 650; text-underline-offset: 3px; }
.rok-collections { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.rok-collection { display: grid; gap: 6px; align-content: start; padding: 14px 10px; border: 1px solid var(--rok-line); border-radius: 12px; background: white; text-decoration: none; font-weight: 680; text-align: center; }
.rok-collection img { width: 100%; height: 106px; object-fit: contain; }
.rok-collection small { color: var(--rok-muted); font-weight: 400; }
.rok-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.rok-product { background: white; border: 1px solid var(--rok-line); border-radius: 12px; padding: 12px 14px 16px; }
.rok-product a { display: block; text-decoration: none; }
.rok-product a:hover h3, .rok-collection:hover span { text-decoration: underline; text-underline-offset: 3px; }
.rok-product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.rok-product h3 { margin: 12px 0 8px; line-height: 1.4; font-size: 1rem; font-weight: 650; }
.rok-price { color: var(--rok-plum); font-weight: 750; }
.rok-price del { opacity: .75; }
.rok-footer { margin-top: 34px; padding: 30px 0; background: var(--rok-ink); color: white; }
.rok-footer .rok-wrap, .rok-footer ul { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.rok-footer ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) {
	.rok-wrap { width: calc(100% - 28px); }
	.rok-mast { grid-template-columns: 1fr auto; gap: 16px; padding-block: 14px; }
	.rok-search { grid-row: 2; grid-column: 1/-1; }
	.rok-nav .rok-wrap { gap: 0 12px; }
	.rok-hero { grid-template-columns: 1fr; min-height: 0; }
	.rok-hero-media { padding: 0 14px 14px; gap: 8px; }
	.rok-hero-image { padding: 9px; }
	.rok-hero-image img { height: 65px; }
	.rok-hero-main img { height: 152px; }
	.rok-collections { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
	.rok-collection img { height: 68px; }
	.rok-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
@media (max-width: 390px) {
	.rok-collections { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.rok-product { display: flex; flex-direction: column; }
.rok-product .rok-price { margin-top: auto; padding-bottom: 10px; }
.rok-product .rok-card-action, .rok-content ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--rok-plum);
	border-radius: 7px;
	background: white;
	color: var(--rok-plum);
	font-weight: 700;
	text-decoration: none;
	line-height: 1.25;
}
.rok-product .rok-card-action:hover, .rok-content ul.products li.product .button:hover {
	background: var(--rok-plum);
	color: white;
}
.rok-footer .rok-footer-layout { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr)); align-items: start; gap: 28px; }
.rok-footer-layout p { max-width: 26ch; color: #e0d8e7; }
.rok-footer-layout h2 { margin: 0 0 10px; font-size: 1.05rem; }
.rok-footer-layout ul { display: grid; gap: 7px; align-items: start; }
.rok-footer-layout li a { text-underline-offset: 3px; }
.rok-content .woocommerce-breadcrumb { color: var(--rok-muted); font-size: .875rem; margin-bottom: 19px; }
.rok-content .woocommerce-products-header__title { margin: 0 0 18px; font-size: clamp(2rem,4.5vw,3.5rem); letter-spacing: -.055em; line-height: 1.06; }
.rok-filters { display: grid; grid-template-columns: minmax(140px,1.3fr) minmax(140px,1fr) repeat(2,minmax(80px,.55fr)) auto; gap: 12px; align-items: end; margin: 0 0 21px; padding: 16px; background: white; border: 1px solid var(--rok-line); border-radius: 12px; }
.rok-filters label { display: grid; min-width: 0; gap: 5px; font-size: .85rem; font-weight: 650; }
.rok-filters select, .rok-filters input, .rok-content .woocommerce-ordering select {
	width: 100%;
	min-height: 44px;
	padding: 8px;
	border: 1px solid #bfb4c8;
	border-radius: 6px;
	background: white;
	color: var(--rok-ink);
}
.rok-filter-actions { display: flex; gap: 10px; align-items: center; }
.rok-filter-actions a { padding: 9px 3px; color: var(--rok-plum); }
.rok-content ul.products[class*="columns-"] {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 15px;
	clear: both;
}
.rok-content ul.products::before, .rok-content ul.products::after { display: none; }
.rok-content ul.products[class*="columns-"] li.product {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 13px;
	border: 1px solid var(--rok-line);
	border-radius: 11px;
	background: white;
}
.rok-content ul.products li.product a img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; margin: 0 0 10px; }
.rok-content ul.products li.product .woocommerce-loop-product__title { color: var(--rok-ink); font-size: .98rem; line-height: 1.35; }
.rok-content ul.products li.product .price, .rok-content div.product .summary .price { color: var(--rok-plum); font-weight: 750; }
.rok-content ul.products li.product .button { margin-top: auto; }
.rok-content div.product .product_title { font-size: clamp(1.7rem,3.25vw,2.9rem); letter-spacing: -.045em; line-height: 1.1; margin-bottom: 12px; }
.rok-content div.product .summary { padding: clamp(15px,2.6vw,30px); background: white; border: 1px solid var(--rok-line); border-radius: 14px; }
.rok-content div.product .summary .price { font-size: clamp(1.3rem,2.15vw,1.75rem); line-height: 1.3; }
.rok-content div.product .woocommerce-product-gallery { border-radius: 14px; background: white; }
.rok-content div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.rok-content div.product .woocommerce-product-gallery__image img { max-height: 540px; width: 100%; object-fit: contain; }
.rok-content div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding: 9px; }
.rok-content div.product .flex-control-thumbs li { float: none; width: auto; min-width: 0; border: 1px solid var(--rok-line); border-radius: 6px; }
.rok-content div.product .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; }
.rok-content div.product .summary .button.alt { background: var(--rok-plum); color: white; min-height: 46px; border-radius: 7px; white-space: normal; }
.rok-content div.product .summary .button.alt:hover { background: var(--rok-ink); }
.rok-content div.product .summary .quantity input,
.rok-content div.product .summary .variations select { min-height: 43px; border: 1px solid #bfb4c8; border-radius: 6px; }
.rok-content div.product .summary .variations { table-layout: fixed; }
.rok-content div.product .summary .variations th { width: 28%; overflow-wrap: anywhere; }
.rok-content div.product .summary .variations td select { max-width: 100%; }
.rok-content div.product .woocommerce-tabs .panel { padding: 16px 0; max-width: 85ch; }
.rok-content div.product .woocommerce-tabs .panel p { overflow-wrap: anywhere; }
@media (max-width: 940px) {
	.rok-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.rok-content ul.products[class*="columns-"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
	.rok-content ul.products[class*="columns-"] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
	.rok-content ul.products[class*="columns-"] li.product { padding: 10px; }
	.rok-content div.product .summary, .rok-content div.product .woocommerce-product-gallery { float: none; width: 100%; }
	.rok-content div.product .woocommerce-product-gallery__image img { max-height: 350px; }
	.rok-footer .rok-footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
	.rok-footer .rok-footer-layout > div:first-child { grid-column: 1/-1; }
}
