/* ==========================================================
   RK Books — main stylesheet
   ========================================================== */

:root {
	--ink: #1F2A6B;
	--accent: #F2A900;
	--text: #1A1C24;
	--muted: #5F6475;
	--line: #DDE0E8;
	--paper: #F3F4F8;
	--bg: #FFFFFF;
	--sale: #B3261E;
	--ok: #1F6B45;
	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1280px;
	--gut: clamp(16px, 3vw, 32px);
	--r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rkb-lock { overflow: hidden; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.rkb-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; }
.rkb-skip:focus { left: 8px; }

.rkb-container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.rkb-icon { display: block; flex: none; }

/* ---------- Buttons ---------- */
.rkb-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ink); color: #fff; border: 1px solid var(--ink);
	border-radius: var(--r); padding: 10px 18px;
	font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.rkb-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--text); border-color: var(--text); color: #fff;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #place_order, .woocommerce .checkout-button {
	background: var(--accent); border-color: var(--accent); color: var(--text);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce #place_order:hover, .woocommerce .checkout-button:hover {
	background: var(--text); border-color: var(--text); color: #fff;
}
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }
.rkb-btn--lg { padding: 14px 26px; font-size: 17px; }
.rkb-btn--ghost { background: transparent; color: var(--ink); }
.rkb-btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=search], input[type=url], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
	width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text);
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }

/* ---------- Top bar ---------- */
.rkb-topbar { background: var(--ink); color: #fff; font-size: 14px; }
.rkb-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.rkb-topbar__msg { margin: 0; }
.rkb-topbar__links { display: flex; gap: 20px; }
.rkb-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rkb-topbar a:hover { text-decoration: underline; }
.rkb-topbar .rkb-icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.rkb-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .rkb-header { top: 32px; }
.rkb-header__in {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo search actions";
	align-items: center; gap: 28px; padding-block: 14px;
}
.rkb-header__menu { display: none; grid-area: menu; }
.rkb-logo { grid-area: logo; }
.rkb-logo img { max-height: 56px; width: auto; display: block; }
.rkb-logo__text { font: 700 24px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.rkb-header__search { grid-area: search; max-width: 640px; width: 100%; justify-self: center; }
.rkb-header__actions { grid-area: actions; display: flex; align-items: center; gap: 6px; }

.rkb-iconbtn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px;
	background: none; border: 0; border-radius: var(--r); color: var(--text);
	text-decoration: none; cursor: pointer; font-size: 15px;
}
.rkb-iconbtn:hover { background: var(--paper); color: var(--ink); }
.rkb-cartbtn__icon { position: relative; display: block; }
.rkb-cart-count {
	position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--accent); color: var(--text);
	font: 700 11px/18px var(--sans); text-align: center;
}
.rkb-cart-count.is-empty { display: none; }

/* Search */
.rkb-search { position: relative; display: flex; }
.rkb-search input[type=search] {
	border: 1.5px solid var(--ink); border-right: 0; border-radius: var(--r) 0 0 var(--r);
	padding: 11px 14px; background: #fff;
}
.rkb-search button[type=submit] {
	display: grid; place-items: center; width: 52px; flex: none;
	border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--ink); color: #fff; cursor: pointer;
}
.rkb-search button[type=submit]:hover { background: var(--text); }
.rkb-search__results {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: 0 12px 30px rgba(20, 24, 50, .12); max-height: 70vh; overflow-y: auto;
}
.rkb-search__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.rkb-search__item:hover, .rkb-search__item:focus { background: var(--paper); }
.rkb-search__item img { width: 40px; height: 56px; object-fit: contain; background: var(--paper); flex: none; }
.rkb-search__item strong { display: block; font-weight: 500; line-height: 1.3; }
.rkb-search__item .price { font-size: 14px; color: var(--muted); }
.rkb-search__item .price ins { text-decoration: none; color: var(--text); font-weight: 700; }
.rkb-search__all { display: block; padding: 10px 14px; font-weight: 500; }
.rkb-search__empty { margin: 0; padding: 14px; color: var(--muted); }

/* Nav */
.rkb-nav { border-top: 1px solid var(--line); }
.rkb-nav__list, .rkb-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.rkb-nav li { position: relative; }
.rkb-nav a { display: block; padding: 11px 14px; color: var(--text); text-decoration: none; font-weight: 500; }
.rkb-nav a:hover, .rkb-nav .current-menu-item > a, .rkb-nav .current-menu-parent > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.rkb-nav li:first-child > a { padding-left: 0; }
.rkb-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 220px; z-index: 40;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(20, 24, 50, .12);
	visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.rkb-nav li:hover > .sub-menu, .rkb-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.rkb-nav .sub-menu a { padding: 8px 16px; box-shadow: none; }
.rkb-nav .sub-menu a:hover { background: var(--paper); box-shadow: none; }

/* ---------- Sections ---------- */
.rkb-section { padding-block: clamp(36px, 5vw, 64px); }
.rkb-section + .rkb-section { padding-top: 0; }
.rkb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.rkb-section__title { font-size: clamp(24px, 2.6vw, 32px); margin: 0; letter-spacing: -.01em; }
.rkb-section__more { font-weight: 500; white-space: nowrap; }

/* ---------- Hero ---------- */
.rkb-hero { background: var(--paper); overflow: hidden; }
.rkb-hero__in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-block: clamp(40px, 6vw, 80px); }
.rkb-hero__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em; max-width: 14ch; margin-bottom: 18px; color: var(--ink); }
.rkb-hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 44ch; margin-bottom: 28px; }
.rkb-hero__art { display: flex; justify-content: center; min-height: 280px; }
.rkb-hero__img { border-radius: var(--r); }

.rkb-fan { position: relative; width: min(100%, 440px); height: clamp(280px, 32vw, 380px); }
.rkb-fan__book {
	position: absolute; bottom: 0; left: 50%; width: 46%;
	transform-origin: 50% 110%;
	transform: translateX(-50%) rotate(calc((var(--i) - 1) * 9deg)) translateX(calc((var(--i) - 1) * 24%));
	transition: transform .3s ease;
}
.rkb-fan[data-count="1"] .rkb-fan__book { transform: translateX(-50%); }
.rkb-fan[data-count="2"] .rkb-fan__book { transform: translateX(-50%) rotate(calc((var(--i) - .5) * 9deg)) translateX(calc((var(--i) - .5) * 30%)); }
.rkb-fan__book:nth-child(2) { z-index: 2; }
.rkb-fan__book img { display: block; width: 100%; border-radius: 2px 4px 4px 2px; box-shadow: -1px 0 0 rgba(0,0,0,.15) inset, 0 18px 30px rgba(20, 24, 50, .22); }
.rkb-fan__book:hover { transform: translateX(-50%) rotate(calc((var(--i) - 1) * 9deg)) translateX(calc((var(--i) - 1) * 24%)) translateY(-10px); z-index: 3; }

/* ---------- Category shelf (the signature element) ---------- */
.rkb-shelf { overflow-x: auto; scrollbar-width: thin; padding-top: 16px; }
.rkb-shelf__row {
	list-style: none; margin: 0; padding: 0 4px;
	display: flex; align-items: flex-end; gap: 5px; min-width: max-content;
	border-bottom: 12px solid #6B4A2B;
	box-shadow: 0 6px 0 -2px #4E3520;
}
.rkb-spine {
	--c: var(--ink); --t: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	width: var(--w, 64px); height: var(--h, 240px); padding: 16px 0 12px;
	background: var(--c); color: var(--t); text-decoration: none;
	border-radius: 3px 3px 0 0;
	box-shadow: inset 5px 0 0 rgba(255,255,255,.12), inset -4px 0 0 rgba(0,0,0,.18);
	position: relative; transition: transform .2s ease;
}
.rkb-spine::before, .rkb-spine::after {
	content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; opacity: .45;
}
.rkb-spine::before { top: 8px; }
.rkb-spine::after { bottom: 34px; }
.rkb-spine:hover, .rkb-spine:focus-visible { transform: translateY(-12px); color: var(--t); }
.rkb-spine__name {
	writing-mode: vertical-rl; transform: rotate(180deg);
	font: 700 18px/1 var(--serif); letter-spacing: .01em; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis; max-height: calc(var(--h, 240px) - 70px);
}
.rkb-spine__count { font-size: 11px; line-height: 1.1; text-align: center; opacity: .85; padding: 0 4px; }
.rkb-spine--0 { --c: var(--ink); }
.rkb-spine--1 { --c: #7A1F2B; }
.rkb-spine--2 { --c: var(--accent); --t: #1A1C24; }
.rkb-spine--3 { --c: #1F5A45; }
.rkb-spine--4 { --c: #E8E2D0; --t: #1A1C24; }
.rkb-spine--5 { --c: #0F6E77; }
.rkb-spine--6 { --c: #3B4252; }

/* ---------- Tabs ---------- */
.rkb-tabs { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 999px; }
.rkb-tabs [role=tab] { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; }
.rkb-tabs [role=tab][aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,24,50,.12); }

/* ---------- Product grid & card ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px;
	margin: 0 0 32px !important; padding: 0;
}
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	display: flex; flex-direction: column; position: relative; text-align: left;
}
.rkb-card__media {
	display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 14px;
	background: var(--paper); border-radius: 4px; margin-bottom: 12px; overflow: hidden;
}
.woocommerce ul.products li.product .rkb-card__media img {
	width: auto; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain;
	box-shadow: 0 6px 14px rgba(20, 24, 50, .18);
	transition: transform .25s ease;
}
.woocommerce ul.products li.product:hover .rkb-card__media img { transform: translateY(-4px); }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	position: absolute; top: 10px; left: 10px; right: auto; margin: 0; z-index: 2;
	min-width: 0; min-height: 0; padding: 3px 9px; border-radius: 4px;
	background: var(--accent); color: var(--text); font: 700 13px/1.4 var(--sans);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font: 500 16px/1.35 var(--sans); padding: 0; margin: 0 0 2px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--text); text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--ink); text-decoration: underline; }
.rkb-card__author { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.rkb-card__author a { color: inherit; text-decoration: none; }
.rkb-card__author a:hover { color: var(--ink); text-decoration: underline; }
.woocommerce ul.products li.product .star-rating { font-size: 12px; margin: 2px 0 4px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--text); font-size: 17px; font-weight: 700; margin: 2px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
}
.woocommerce ul.products li.product .price del, .woocommerce div.product p.price del { order: 2; color: var(--muted); font-weight: 400; font-size: .85em; opacity: 1; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { order: 1; text-decoration: none; }
.rkb-delivery { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); margin: 0 0 12px; }
.rkb-delivery .rkb-icon { width: 16px; height: 16px; }
.woocommerce ul.products li.product .button {
	margin-top: auto; width: 100%; background: #fff; color: var(--ink); border-color: var(--ink);
}
.woocommerce ul.products li.product .button:hover { background: var(--ink); color: #fff; }
.woocommerce ul.products li.product .button.loading { opacity: .6; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; font-size: 14px; padding-top: 6px; }
/* Common wishlist plugins: keep their button tidy on cards */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .tinv-wraper { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }

/* ---------- Services strip ---------- */
.rkb-services { border-block: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.rkb-services__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.rkb-service { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px; text-decoration: none; color: var(--muted); font-size: 15px; line-height: 1.45; }
.rkb-service + .rkb-service { border-left: 1px solid var(--line); }
.rkb-service:first-child { padding-left: 0; }
.rkb-service strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.rkb-service .rkb-icon { width: 28px; height: 28px; color: var(--ink); }
.rkb-service:hover strong { color: var(--ink); text-decoration: underline; }

/* ---------- Shop layout ---------- */
.rkb-woo { padding-block: 20px 56px; }
.rkb-breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.rkb-breadcrumb a { color: var(--muted); }
.rkb-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.rkb-woo__layout { display: block; }
.rkb-woo.has-sidebar .rkb-woo__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.rkb-woo__side { position: sticky; top: 150px; font-size: 15px; }
.rkb-woo__side .widget { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.rkb-woo__side .widget-title { font: 700 16px/1.3 var(--sans); margin-bottom: 10px; }
.rkb-woo__side ul { list-style: none; margin: 0; padding: 0; }
.rkb-woo__side li { padding: 3px 0; }
.rkb-woo__side a { color: var(--text); text-decoration: none; }
.rkb-woo__side a:hover { color: var(--ink); text-decoration: underline; }
.rkb-filter-toggle { display: none; margin-bottom: 16px; }
.woocommerce-products-header__title, .woocommerce .page-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.term-description { color: var(--muted); max-width: 70ch; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.woocommerce .woocommerce-ordering { margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select { width: auto; padding: 8px 12px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--ink); }
.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range { background: var(--ink); }

/* ---------- Single product ---------- */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { grid-column: 1; }
.woocommerce div.product div.summary { grid-column: 2; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: var(--paper); border-radius: 4px; }
.woocommerce div.product div.images img { max-height: 620px; object-fit: contain; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.rkb-single__author { font-size: 18px; color: var(--muted); margin-bottom: 12px; }
.woocommerce div.product p.price { font-size: 28px; margin-bottom: 4px; }
.rkb-single__save { color: var(--sale); font-weight: 500; margin-bottom: 8px; }
.rkb-delivery--single { font-size: 15px; margin-bottom: 18px; padding: 10px 12px; background: color-mix(in srgb, var(--ok) 8%, #fff); border-radius: var(--r); display: inline-flex; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity .qty { width: 72px; height: 100%; min-height: 46px; text-align: center; }
.woocommerce div.product form.cart .button { padding: 14px 30px; font-size: 16px; flex: 1 1 auto; max-width: 320px; }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--muted); display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.rkb-wa-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #0E7A3D; font-weight: 500; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 24px 0 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 500; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 75ch; padding-top: 20px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.related.products > h2, .upsells.products > h2 { font-size: 26px; margin: 32px 0 20px; }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top: 0; border-left: 4px solid var(--ink); background: var(--paper); border-radius: var(--r); color: var(--text);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink); }
.woocommerce-error { border-left-color: var(--sale); }
.woocommerce-error::before { color: var(--sale); }

/* ---------- Pages / cart / checkout ---------- */
.rkb-page { padding-block: 32px 64px; max-width: 820px; }
.rkb-page--wide { max-width: var(--wrap); }
.rkb-page__title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; }
.rkb-page__thumb { margin-bottom: 24px; }
.rkb-meta { color: var(--muted); font-size: 14px; }
.rkb-content { font-size: 17px; line-height: 1.7; }
.rkb-content > * + * { margin-top: 1em; }
.woocommerce table.shop_table { border-radius: var(--r); border-color: var(--line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce-cart table.cart img { width: 64px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; }
.rkb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.rkb-post__thumb img { border-radius: 4px; display: block; }
.rkb-post__title { font-size: 21px; margin: 12px 0 4px; }
.rkb-post__title a { color: var(--text); text-decoration: none; }
.rkb-404 { text-align: left; }
.rkb-404 .rkb-search { max-width: 520px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.rkb-footer { background: var(--ink); color: rgba(255,255,255,.82); font-size: 15px; margin-top: 24px; }
.rkb-footer a { color: #fff; text-decoration: none; }
.rkb-footer a:hover { text-decoration: underline; }
.rkb-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; padding-block: 56px 40px; }
.rkb-footer__name { font: 700 22px/1.2 var(--serif); color: #fff; margin-bottom: 10px; }
.rkb-footer__about p { max-width: 42ch; }
.rkb-footer__title, .rkb-footer .widget-title { font: 700 16px/1.3 var(--sans); color: #fff; margin-bottom: 14px; }
.rkb-footer__links, .rkb-footer__contact, .rkb-footer ul { list-style: none; margin: 0; padding: 0; }
.rkb-footer__links li { padding: 4px 0; }
.rkb-footer__contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.rkb-footer__contact .rkb-icon { width: 18px; height: 18px; margin-top: 3px; opacity: .8; }
.rkb-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.rkb-footer__bottom p { margin: 0; padding-block: 18px; }

/* ---------- Drawers ---------- */
.rkb-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 100; width: min(400px, 88vw);
	background: #fff; display: flex; flex-direction: column;
	visibility: hidden; transition: transform .25s ease, visibility 0s .25s;
}
.rkb-drawer--left { left: 0; transform: translateX(-100%); }
.rkb-drawer--right { right: 0; transform: translateX(100%); }
.rkb-drawer.is-open { visibility: visible; transform: none; transition: transform .25s ease; }
.rkb-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.rkb-drawer__title { font: 700 20px/1.2 var(--serif); margin: 0; }
.rkb-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.rkb-drawer__menu { list-style: none; margin: 16px 0 0; padding: 0; }
.rkb-drawer__menu li { position: relative; border-bottom: 1px solid var(--line); }
.rkb-drawer__menu a { display: block; padding: 12px 40px 12px 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; }
.rkb-drawer__menu .sub-menu { list-style: none; padding: 0 0 8px 14px; margin: 0; display: none; }
.rkb-drawer__menu .sub-menu li { border: 0; }
.rkb-drawer__menu .sub-menu a { padding: 7px 0; font-weight: 400; font-size: 16px; }
.rkb-drawer__menu li.is-open > .sub-menu { display: block; }
.rkb-drawer__menu--extra a { color: var(--muted); font-weight: 400; }
.rkb-sub-toggle { position: absolute; right: 0; top: 6px; width: 36px; height: 36px; border: 0; background: var(--paper); border-radius: var(--r); cursor: pointer; font-size: 20px; line-height: 1; }
.rkb-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 18, 40, .45); opacity: 0; transition: opacity .25s; }
.rkb-overlay.is-on { opacity: 1; }

/* Mini cart */
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.woocommerce-mini-cart-item a:not(.remove) { grid-column: 1 / -1; display: grid; grid-template-columns: 56px 1fr; gap: 12px; color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.35; }
.woocommerce-mini-cart-item img { width: 56px !important; height: auto; float: none !important; margin: 0 !important; grid-row: span 2; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--muted); }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; color: var(--muted) !important; text-decoration: none; font-size: 20px; }
.woocommerce-mini-cart-item .remove:hover { color: var(--sale) !important; background: none !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0; font-size: 17px; margin: 0; }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--text) !important; }
.woocommerce-mini-cart__empty-message { color: var(--muted); padding: 24px 0; }

/* ---------- Bottom bar + WhatsApp ---------- */
.rkb-bottombar { display: none; }
.rkb-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.rkb-wa .rkb-icon { width: 30px; height: 30px; }
.rkb-wa:hover { color: #fff; background: #1EBE5A; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rkb-iconbtn__label { display: none; }
}

@media (max-width: 1024px) {
	.rkb-header__in {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "menu logo actions" "search search search";
		gap: 10px 8px; padding-block: 10px;
	}
	.rkb-header__menu { display: inline-flex; }
	.rkb-header__search { max-width: none; }
	.rkb-logo { justify-self: start; }
	.rkb-nav { display: none; }
	.rkb-woo.has-sidebar .rkb-woo__layout { display: block; }
	.rkb-filter-toggle { display: inline-flex; }
	.rkb-woo__side { display: none; position: static; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
	.rkb-woo__side.is-open { display: block; }
	.rkb-hero__in { grid-template-columns: 1fr; gap: 24px; }
	.rkb-hero__art { min-height: 0; }
	.rkb-fan { height: 280px; width: min(100%, 360px); }
}

@media (max-width: 782px) {
	.admin-bar .rkb-header { top: 0; position: relative; }
	.rkb-topbar__links { display: none; }
	.rkb-topbar__in { justify-content: center; text-align: center; }
	.rkb-hide-sm { display: none; }
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce ul.products.columns-3, .woocommerce ul.products.columns-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 16px; }
	.woocommerce div.product div.images, .woocommerce div.product div.summary { grid-column: 1; }
	.woocommerce div.product form.cart .button { max-width: none; }
	.rkb-services__in { grid-template-columns: 1fr; }
	.rkb-service, .rkb-service:first-child { padding: 16px 0; }
	.rkb-service + .rkb-service { border-left: 0; border-top: 1px solid var(--line); }
	.rkb-section__head { align-items: flex-start; flex-direction: column; }
	.rkb-tabs { overflow-x: auto; max-width: 100%; }
	.rkb-spine { --w: 54px !important; }
	.rkb-spine__name { font-size: 16px; }
	.rkb-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.rkb-footer__about { grid-column: 1 / -1; }

	body { padding-bottom: 64px; }
	.rkb-bottombar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 64px;
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
	}
	.rkb-bottombar > a, .rkb-bottombar > button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		font-size: 12px; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer;
	}
	.rkb-bottombar > a:hover, .rkb-bottombar > button:hover { color: var(--ink); }
	.rkb-wa { bottom: 78px; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	.woocommerce ul.products li.product .price { font-size: 16px; }
	.rkb-card__media { padding: 10px; }
	.woocommerce ul.products li.product .button { padding: 9px 8px; font-size: 14px; }
	.rkb-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
