/*
 * OAF Trade design layer.
 *
 * Loads after master.css and dokan-lite's stylesheet, so equal specificity wins.
 * Four layers, in order:
 *   1. Tokens          — the palette, as custom properties
 *   2. Parent overrides — restating the parent's accent selectors to consume them
 *   3. Neutral reskin  — surfaces, borders, radius, type, rhythm
 *   4. New components  — homepage sections, cards, header, footer
 *
 * Note: master.css contains no var() references, so declaring tokens alone
 * retints nothing. Layer 2 does the actual work; tokens just keep it to one edit.
 */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
	--oaf-brand:      #1C54FF;  /* sampled from the logo */
	--oaf-brand-600:  #1442D1;  /* hover / pressed */
	--oaf-brand-050:  #EEF2FF;  /* tinted bands, category circles */
	--oaf-ink:        #020202;  /* sampled from the logo wordmark */
	--oaf-ink-70:     #4A4A4F;
	--oaf-ink-45:     #8A8A90;
	--oaf-line:       #E6E8EF;
	--oaf-surface:    #FFFFFF;
	--oaf-canvas:     #F7F8FB;
	--oaf-sale:       #E5384F;
	--oaf-ok:         #0F9D58;

	--oaf-radius:     12px;
	--oaf-radius-pill: 999px;
	--oaf-shadow:     0 1px 2px rgba(2, 2, 2, .04), 0 8px 24px rgba(2, 2, 2, .06);
}

/* ── 2. Parent accent override ─────────────────────────────────────────────
 * master.css hardcodes #f2624d (the Dokani orange) in 38 rule blocks and
 * #ffa500 for stars. The Customizer's generated CSS cannot reach them: it
 * prints BEFORE master.css with identical selectors, so it always loses.
 * These are those selectors, restated to consume the tokens above. Our sheet
 * prints after master.css and dokan-lite's, so equal specificity is enough —
 * except for the five the parent marked !important, grouped at the end.
 * ------------------------------------------------------------------------ */

.top-bar .widget_shopping_cart_content .woocommerce-mini-cart.cart_list li a,
.nav-below-header .main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a,
.site-header .inside-header .ajaxsearchform .input-group-addon:before,
.ajaxsearchform .input-group-addon:before,
ul.responsive-user-menu > li > a:hover,
.footer-widgets .widget a:hover,
.menu-toggle:before,
.btn-default,
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.page-header .page-title a:hover,
.comments-area .comment-list .comment-meta .comment-author-info .comment-author .fn a:hover,
.comments-area .comment-list .comment-meta .comment-author-info .comment-author .fn a:focus,
.comments-area .comment-list .comment-meta .comment-author-info .comment-author .fn a:active,
.comments-area .comment-reply-title .cancel-comment-reply-link,
.woocommerce ul.cart_list li a:hover,
.woocommerce ul.product_list_widget li a:hover,
.woocommerce #reviews #review_form_wrapper .comment-form label span,
.woocommerce div.product .vendor-name a:hover,
.widget-area .location-container .dokan-store-address a:hover,
.widget-area .location-container .dokan-store-phone a:hover,
#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap li .store-content .store-data-container .store-data h2 a:hover,
.dokani-product-category .cat-wrapper .cat-title,
.dokan-pagination-container ul.dokan-pagination li a:hover,
.dokan-pagination-container ul.dokan-pagination li.active a,
.product-cat-section .product-cat-wrapper .product-cat-box.more h3,
.error404.separate-containers .site-main .inside-article > .entry-content h2 {
	color: var(--oaf-brand);
}

ul.responsive-user-menu .dokan-cart-amount-top,
.btn-primary,
.comments-area .submit,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
#dokan-seller-listing-wrap ul.dokan-seller-list li .store-footer .dokan-btn:hover,
.woocommerce .products[class] li:hover .item-content .item-button a,
.error404.separate-containers .site-main .inside-article > .entry-content .search-form .search-submit {
	background-color: var(--oaf-brand);
}

.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
	background-color: var(--oaf-brand-600);
}

#dokan-seller-listing-wrap.list-view .dokan-seller-wrap li .store-wrapper .store-footer .visit-store-btn:hover {
	border-color: var(--oaf-brand);
	background-color: var(--oaf-brand);
}

/* The five the parent marked !important — matched selector for selector. */
.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active,
.social-follow-list li a:hover,
#dokan-seller-listing-wrap.list-view .dokan-seller-wrap li .store-wrapper .store-content .store-data-container .store-data h2 a:hover {
	color: var(--oaf-brand) !important;
}

.woocommerce .shop_table button[disabled]:hover,
.woocommerce-page .shop_table button[disabled]:hover,
.dokan-store-tab-wrapper .dokan-store-tabs .dokan-list-inline .dokan-right .dokan-btn-theme[class]:hover {
	background: var(--oaf-brand) !important;
}

/* ── 3. Neutral reskin ─────────────────────────────────────────────────────
 * Surfaces, borders, radius, type and vertical rhythm. This layer is most of
 * the "boring → not boring" difference; the parent's greys are flat mid-2010s
 * defaults (#efefef canvas, #ECEDEF borders, hard corners, no elevation).
 * ------------------------------------------------------------------------ */

body,
button, input, select, textarea,
.main-navigation a,
.woocommerce-loop-product__title,
h1, h2, h3, h4, h5, h6 {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body {
	background-color: var(--oaf-canvas);
	color: var(--oaf-ink-70);
	font-size: 15px;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--oaf-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }

/* Section headings — the parent centres a thin title with no breathing room. */
.section-title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	margin-bottom: 28px;
	text-align: left;
}

/* Page header band */
.page-header,
.woocommerce .page-header {
	background: var(--oaf-surface);
	border-bottom: 1px solid var(--oaf-line);
}

/* Buttons — pill, brand, with a real pressed state */
.btn,
.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
	border: 0;
	border-radius: var(--oaf-radius-pill);
	font-weight: 600;
	letter-spacing: 0;
	padding: 12px 22px;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(28, 84, 255, .24);
}

.btn-border,
.btn-default {
	background: transparent;
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius-pill);
	color: var(--oaf-ink);
	font-weight: 600;
	padding: 10px 20px;
	transition: border-color .15s ease, color .15s ease;
}

.btn-border:hover,
.btn-default:hover {
	border-color: var(--oaf-brand);
	color: var(--oaf-brand);
}

/* Forms */
input[type="text"], input[type="email"], input[type="search"],
input[type="password"], input[type="tel"], input[type="number"],
select, textarea {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: 10px;
	padding: 11px 14px;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--oaf-brand);
	box-shadow: 0 0 0 3px rgba(28, 84, 255, .12);
	outline: 0;
}

/* Chrome — top bar, header, nav */
.top-bar {
	background: var(--oaf-ink);
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
}

.top-bar a { color: rgba(255, 255, 255, .72); }
.top-bar a:hover { color: #fff; }

.site-header {
	background: var(--oaf-surface);
	border-bottom: 1px solid var(--oaf-line);
}

.main-navigation .main-nav ul li a {
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* ── 4. Components ─────────────────────────────────────────────────────── */

/* Product grid */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: transparent;
	box-shadow: var(--oaf-shadow);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
	padding: 18px;
	background: var(--oaf-surface);
	mix-blend-mode: multiply; /* kills the grey box on transparent PNGs */
}

.oaf-card { padding: 0 16px 16px; }

.oaf-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--oaf-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 8px;
	min-height: 2.9em;
	padding: 0;
}

.oaf-card .price,
.woocommerce ul.products li.product .price {
	color: var(--oaf-ink);
	font-size: 17px;
	font-weight: 700;
}

.oaf-card .price del,
.woocommerce ul.products li.product .price del {
	color: var(--oaf-ink-45);
	font-size: 14px;
	font-weight: 500;
	opacity: 1;
}

.oaf-card .price ins,
.woocommerce ul.products li.product .price ins {
	color: var(--oaf-brand);
	text-decoration: none;
}

.oaf-card .item-bar {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.oaf-card__vendor {
	color: var(--oaf-ink-45);
	font-size: 12px;
	margin-bottom: 6px;
}

.oaf-card__vendor a { color: var(--oaf-ink-70); font-weight: 600; }

/* Sale + stock badges */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--oaf-sale);
	border-radius: var(--oaf-radius-pill);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	left: 14px;
	letter-spacing: .02em;
	line-height: 1;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 7px 12px;
	right: auto;
	top: 14px;
}

.oaf-chip {
	border-radius: var(--oaf-radius-pill);
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
}

.oaf-chip--oos {
	background: var(--oaf-canvas);
	color: var(--oaf-ink-45);
}

/* Category tiles on the current homepage/shop */
.product-cat-section .product-cat-box,
.dokani-product-category .cat-wrapper {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	transition: box-shadow .18s ease, transform .18s ease;
}

.product-cat-section .product-cat-box:hover {
	box-shadow: var(--oaf-shadow);
	transform: translateY(-2px);
}

/* Trust bar */
.trust-factors-section { border-radius: 0; }
.trust-factors-section .factor-info { font-weight: 600; }

/* Footer */
.site-footer,
.footer-widgets {
	background: var(--oaf-ink);
	color: rgba(255, 255, 255, .66);
}

.site-footer a,
.footer-widgets .widget a { color: rgba(255, 255, 255, .66); }
.site-footer a:hover,
.footer-widgets .widget a:hover { color: #fff; }

.footer-widgets .widget-title,
.site-footer .widget-title { color: #fff; font-size: 15px; font-weight: 700; }

/* Category tiles in the shop loop — WooCommerce wraps the count in <mark>,
   which browsers paint highlighter-yellow by default. */
.woocommerce .woocommerce-loop-category__title {
	color: var(--oaf-ink);
	font-size: 15px;
	font-weight: 700;
	padding: 14px 16px 18px;
	text-align: center;
}

.woocommerce .woocommerce-loop-category__title mark.count,
.woocommerce mark.count {
	background: var(--oaf-brand-050);
	border-radius: var(--oaf-radius-pill);
	color: var(--oaf-brand);
	font-size: 12px;
	font-weight: 600;
	margin-left: 6px;
	padding: 3px 9px;
}

/* Add-to-cart icon button on the card */
.woocommerce ul.products li.product .item-bar .item-button > a,
.woocommerce-page ul.products li.product .item-bar .item-button > a {
	align-items: center;
	background: var(--oaf-brand);
	border: 0;
	border-radius: 10px;
	color: #fff;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: background-color .15s ease, color .15s ease;
	width: 38px;
}

.woocommerce ul.products li.product .item-bar .item-button > a:hover,
.woocommerce-page ul.products li.product .item-bar .item-button > a:hover {
	background: var(--oaf-brand-050);
	color: var(--oaf-brand);
}

.woocommerce ul.products li.product .item-bar .item-button .added_to_cart {
	border-radius: 10px;
	font-size: 12px;
	padding: 8px 12px;
}

/* ── 5. Homepage ───────────────────────────────────────────────────────── */

.oaf-home { background: var(--oaf-canvas); }

.oaf-section { padding: 56px 0; }
.oaf-section + .oaf-section { padding-top: 8px; }

.oaf-band--tint {
	background: linear-gradient(180deg, var(--oaf-brand-050), transparent 70%);
	margin: 24px 0;
	padding: 48px 0;
}

.oaf-section__head {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.oaf-section__title {
	font-size: clamp(21px, 2.6vw, 28px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 6px;
}

.oaf-kicker {
	color: var(--oaf-ink-45);
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.oaf-link {
	color: var(--oaf-brand);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.oaf-btn {
	align-items: center;
	border-radius: var(--oaf-radius-pill);
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	padding: 12px 24px;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.oaf-btn--primary { background: var(--oaf-brand); color: #fff; }
.oaf-btn--primary:hover { background: var(--oaf-brand-600); color: #fff; transform: translateY(-1px); }
.oaf-btn--ghost { border: 1px solid var(--oaf-line); color: var(--oaf-ink); }
.oaf-btn--ghost:hover { border-color: var(--oaf-brand); color: var(--oaf-brand); }
.oaf-btn--wa { background: #25D366; color: #fff; }
.oaf-btn--wa:hover { background: #1da851; color: #fff; }

/* Hero */
.oaf-hero { padding-top: 32px; }

.oaf-hero__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 2fr 1fr;
}

.oaf-hero-slider.flexslider {
	background: transparent;
	border: 0;
	border-radius: var(--oaf-radius);
	box-shadow: none;
	margin: 0;
	overflow: hidden;
}

.oaf-hero__slide {
	align-items: center;
	background: linear-gradient(120deg, var(--oaf-brand) 0%, #0b2a8f 100%);
	border-radius: var(--oaf-radius);
	display: grid;
	gap: 16px;
	grid-template-columns: 1.1fr .9fr;
	min-height: 380px;
	padding: 40px;
}

.oaf-hero__copy .oaf-kicker { color: rgba(255, 255, 255, .72); }

.oaf-hero__title {
	color: #fff;
	font-size: clamp(26px, 3.4vw, 42px);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 22px;
}

.oaf-hero__slide .oaf-btn--primary { background: #fff; color: var(--oaf-ink); }
.oaf-hero__slide .oaf-btn--primary:hover { background: var(--oaf-canvas); color: var(--oaf-ink); }

.oaf-hero__art { text-align: center; }

.oaf-hero__art img {
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .28));
	max-height: 300px;
	object-fit: contain;
	width: 100%;
}

.oaf-hero__promos { display: grid; gap: 16px; }

.oaf-promo {
	align-items: center;
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	overflow: hidden;
	padding: 24px;
	transition: box-shadow .18s ease, transform .18s ease;
}

.oaf-promo:hover { box-shadow: var(--oaf-shadow); transform: translateY(-2px); }

.oaf-promo__title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 10px;
}

.oaf-promo__cta { color: var(--oaf-brand); font-size: 13px; font-weight: 600; }
.oaf-promo__art { max-height: 92px; object-fit: contain; width: auto; mix-blend-mode: multiply; }

/* Category tiles */
.oaf-cats__row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.oaf-cats__item a {
	display: block;
	padding: 8px 4px;
	text-align: center;
}

.oaf-cats__disc {
	align-items: center;
	aspect-ratio: 1;
	background: var(--oaf-brand-050);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
	max-width: 116px;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}

.oaf-cats__item a:hover .oaf-cats__disc {
	box-shadow: 0 10px 24px rgba(28, 84, 255, .18);
	transform: translateY(-3px);
}

.oaf-cats__disc img {
	height: 100%;
	object-fit: cover;
	width: 100%;
	mix-blend-mode: multiply;
}

.oaf-cats__disc i { color: var(--oaf-brand); font-size: 34px; }

.oaf-cats__label {
	color: var(--oaf-ink);
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.oaf-cats__count { color: var(--oaf-ink-45); font-size: 12px; }

/* Carousels — the cards inside reuse the shop card exactly */
.oaf-carousel.flexslider { background: transparent; border: 0; box-shadow: none; margin: 0; }
.oaf-carousel .slides > li { padding: 0 8px; }
.oaf-carousel .flex-direction-nav a { opacity: 0; }
.oaf-carousel:hover .flex-direction-nav a { opacity: 1; }

.oaf-band--tint .woocommerce ul.products li.product,
.oaf-band--tint ul.products li.product { border-color: transparent; }

/* Tabs */
.oaf-tabs__radio { display: none; }

.oaf-tabs__label {
	border-bottom: 2px solid transparent;
	color: var(--oaf-ink-45);
	cursor: pointer;
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	margin-right: 22px;
	padding-bottom: 10px;
}

.oaf-tabs__panel { display: none; padding-top: 24px; }

.oaf-tabs__wrap { border-bottom: 0; }

.oaf-tabs__bar {
	border-bottom: 1px solid var(--oaf-line);
	display: flex;
	gap: 4px;
	margin-bottom: 4px;
}

#oaf-tab-new:checked ~ .oaf-tabs__bar .oaf-tabs__label--new,
#oaf-tab-best:checked ~ .oaf-tabs__bar .oaf-tabs__label--best,
#oaf-tab-featured:checked ~ .oaf-tabs__bar .oaf-tabs__label--featured {
	border-bottom-color: var(--oaf-brand);
	color: var(--oaf-ink);
}

#oaf-tab-new:checked ~ .oaf-tabs__panel--new,
#oaf-tab-best:checked ~ .oaf-tabs__panel--best,
#oaf-tab-featured:checked ~ .oaf-tabs__panel--featured { display: block; }

/* Collection banners */
.oaf-collections__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.oaf-collection {
	align-items: center;
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	display: flex;
	gap: 10px;
	justify-content: space-between;
	min-height: 160px;
	overflow: hidden;
	padding: 22px;
	transition: box-shadow .18s ease, transform .18s ease;
}

.oaf-collection:hover { box-shadow: var(--oaf-shadow); transform: translateY(-2px); }
.oaf-collection:nth-child(2n) { background: var(--oaf-brand-050); border-color: transparent; }
.oaf-collection__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.oaf-collection__cta { color: var(--oaf-brand); font-size: 13px; font-weight: 600; }
.oaf-collection__art { max-height: 110px; object-fit: contain; width: auto; mix-blend-mode: multiply; }

/* Talk to us */
.oaf-contact__inner {
	align-items: center;
	background: var(--oaf-ink);
	border-radius: var(--oaf-radius);
	color: rgba(255, 255, 255, .72);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	padding: 36px 40px;
}

.oaf-contact__title { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 8px; }
.oaf-contact__text { margin: 0; max-width: 52ch; }
.oaf-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.oaf-contact__actions .oaf-btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.oaf-contact__actions .oaf-btn--ghost:hover { border-color: #fff; color: #fff; }

.oaf-empty { color: var(--oaf-ink-45); padding: 24px 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.oaf-hero__grid { grid-template-columns: 1fr; }
	.oaf-hero__promos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.oaf-section { padding: 36px 0; }
	.oaf-hero__slide { grid-template-columns: 1fr; min-height: 0; padding: 28px; text-align: center; }
	.oaf-hero__art img { max-height: 200px; }
	.oaf-hero__promos { grid-template-columns: 1fr; }
	.oaf-cats__row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
	.oaf-contact__inner { padding: 26px 22px; }
	.oaf-tabs__label { margin-right: 14px; font-size: 14px; }
}

/* FlexSlider vs WooCommerce: WooCommerce lays ul.products out as a CSS grid,
   which overrides the horizontal float layout FlexSlider needs. Inside a
   carousel the slider owns the layout. */
.oaf-carousel ul.slides.products,
.oaf-carousel ul.products.slides {
	display: block !important;
	gap: 0 !important;
	grid-template-columns: none !important;
	margin: 0 !important;
}

.oaf-carousel ul.slides.products > li.product {
	clear: none !important;
	display: block !important;
	float: left;
	margin: 0 !important;
	width: auto;
}

.oaf-carousel .flex-viewport { padding: 4px 0 8px; }

/* Announcement bar */
.oaf-announce {
	background: var(--oaf-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 9px 0;
	text-align: center;
}

.oaf-announce a { color: #fff; text-decoration: underline; }

/* ── 6. Header ─────────────────────────────────────────────────────────── */

.site-header .inside-header {
	align-items: center;
	display: flex;
	gap: 20px;
	padding-bottom: 14px;
	padding-top: 14px;
}

.site-header .header-right { flex: 1 1 auto; justify-content: flex-end; }

/* Product search */
.oaf-search { flex: 1 1 auto; max-width: 560px; }

.oaf-search__form {
	align-items: center;
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius-pill);
	display: flex;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.oaf-search__form:focus-within {
	border-color: var(--oaf-brand);
	box-shadow: 0 0 0 3px rgba(28, 84, 255, .12);
}

.oaf-search__input,
.oaf-search__input[type="search"] {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	flex: 1 1 auto;
	font-size: 14px;
	min-width: 0;
	padding: 11px 18px;
}

.oaf-search__input:focus { box-shadow: none; }

.oaf-search__cat,
.oaf-search__cat[name="product_cat"] {
	background: transparent;
	border: 0;
	border-left: 1px solid var(--oaf-line);
	border-radius: 0;
	color: var(--oaf-ink-70);
	font-size: 13px;
	font-weight: 600;
	max-width: 160px;
	padding: 11px 12px;
}

.oaf-search__submit {
	align-items: center;
	background: var(--oaf-brand);
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	justify-content: center;
	padding: 0 20px;
	align-self: stretch;
}

.oaf-search__submit:hover { background: var(--oaf-brand-600); }

/* Sticky */
.oaf-sticky-header .site-header {
	position: sticky;
	top: 0;
	z-index: 120;
}

.oaf-sticky-header.admin-bar .site-header { top: 32px; }

.site-header.oaf-stuck {
	box-shadow: 0 2px 16px rgba(2, 2, 2, .08);
}

@media (max-width: 1024px) {
	.oaf-search { max-width: none; }
	.oaf-search__cat { display: none; }  /* the dropdown is the first thing to go */
}

@media (max-width: 768px) {
	.site-header .inside-header { flex-wrap: wrap; }

	/* The parent hides .header-right entirely below 768px, which takes the
	   search with it — and search matters more on a phone, not less. */
	.site-header .header-right {
		display: block !important;
		order: 10;
		width: 100%;
	}

	.site-header .header-right > *:not(.oaf-search) { display: none; }
	.oaf-search { margin-top: 12px; max-width: none; order: 10; width: 100%; }
	.oaf-sticky-header .site-header { position: static; }
	.oaf-sticky-header.admin-bar .site-header { top: 0; }
}

/* ── 7. Single product ─────────────────────────────────────────────────── */

.woocommerce div.product .product_title {
	font-size: clamp(22px, 2.8vw, 32px);
	margin-bottom: 12px;
}

/* The parent prices struck-through amounts in its own teal (#16a085). */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--oaf-ink);
	font-size: 26px;
	font-weight: 800;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--oaf-ink-45);
	font-size: 18px;
	font-weight: 500;
	opacity: 1;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	color: var(--oaf-brand);
	text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--oaf-ink-70);
	margin-bottom: 20px;
}

.woocommerce div.product div.images img { border-radius: var(--oaf-radius); }

.woocommerce div.product form.cart div.quantity {
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius-pill);
	overflow: hidden;
}

.woocommerce div.product .single_add_to_cart_button {
	border-radius: var(--oaf-radius-pill);
	font-size: 15px;
	padding: 14px 32px;
}

.woocommerce div.product .product_meta {
	border-top: 1px solid var(--oaf-line);
	color: var(--oaf-ink-45);
	font-size: 13px;
	margin-top: 22px;
	padding-top: 18px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--oaf-line);
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-weight: 600;
	padding: 12px 4px;
}

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 20px;
}

/* Archive header */
.woocommerce .page-header .page-title,
.woocommerce-page .page-header .page-title { font-weight: 800; }

.woocommerce .term-description { color: var(--oaf-ink-70); max-width: 70ch; }

.woocommerce .woocommerce-ordering select,
.dokani-products-view button {
	border-radius: var(--oaf-radius-pill);
}


/* ── 8. Cart and checkout ──────────────────────────────────────────────────
 * WooCommerce's block cart ships a near-black button (#32373c) and then takes
 * its text colour from the theme's link colour — brand blue on near-black,
 * which is both ugly and poor contrast.
 * ------------------------------------------------------------------------ */

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
	background-color: var(--oaf-brand) !important;
	border: 0 !important;
	border-radius: var(--oaf-radius-pill) !important;
	color: #fff !important;
	font-weight: 600;
	padding: 15px 28px !important;
	transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.contained:hover {
	background-color: var(--oaf-brand-600) !important;
	box-shadow: 0 6px 16px rgba(28, 84, 255, .24);
	color: #fff !important;
	transform: translateY(-1px);
}

.wc-block-cart__submit-button:focus-visible,
.wc-block-components-checkout-place-order-button:focus-visible {
	outline: 2px solid var(--oaf-brand-600);
	outline-offset: 2px;
}

/* Secondary block buttons (Apply coupon, etc.) shouldn't compete. */
.wc-block-components-button.outlined {
	border: 1px solid var(--oaf-line) !important;
	border-radius: var(--oaf-radius-pill) !important;
	color: var(--oaf-ink) !important;
}

.wc-block-cart-items__row .wc-block-components-product-name { font-weight: 600; }
.wc-block-components-totals-item__value { font-weight: 700; }

/* ── 8b. Visited links ─────────────────────────────────────────────────────
 * The parent colours a:visited, and every one of our nav-ish links is a link
 * the customer has usually already clicked — the active category pill most of
 * all, since it IS the page you are on. Without an explicit :visited colour the
 * label takes the parent's blue, which on the blue active pill means an empty
 * pill that only shows its text on hover.
 *
 * Worth knowing when debugging this class of bug: getComputedStyle() reports the
 * UNVISITED colour by design, to stop scripts sniffing browsing history. The
 * inspector will tell you the text is white while the screen shows otherwise.
 * ------------------------------------------------------------------------ */

.oaf-pill,
.oaf-pill:visited { color: var(--oaf-ink-70); }

.oaf-pill.is-active,
.oaf-pill.is-active:visited,
.oaf-pill.is-active:hover,
.oaf-pill.is-active:focus { color: #fff; }

.oaf-toggle,
.oaf-toggle:visited { color: var(--oaf-ink-70); }

.oaf-toggle.is-active,
.oaf-toggle.is-active:visited,
.oaf-toggle.is-active:hover,
.oaf-toggle.is-active:focus { color: #fff; }

.oaf-btn--primary,
.oaf-btn--primary:visited,
.oaf-btn--wa,
.oaf-btn--wa:visited { color: #fff; }

.oaf-btn--ghost,
.oaf-btn--ghost:visited { color: var(--oaf-ink); }

.oaf-link,
.oaf-link:visited,
.oaf-promo__cta,
.oaf-collection__cta { color: var(--oaf-brand); }

.oaf-cats__item a,
.oaf-cats__item a:visited { color: inherit; }

.oaf-contact-hero__actions .oaf-btn--ghost,
.oaf-contact-hero__actions .oaf-btn--ghost:visited { color: #fff; }

.oaf-hero__slide .oaf-btn--primary,
.oaf-hero__slide .oaf-btn--primary:visited { color: var(--oaf-ink); }

/* ── 9. Shop filter bar ────────────────────────────────────────────────────
 * Categories used to render as tiles inside the product grid, so a category
 * and a product looked like the same kind of thing. They are pills now —
 * deliberately not card-shaped.
 * ------------------------------------------------------------------------ */

.oaf-shopbar {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	margin-bottom: 24px;
	padding: 16px 18px;
}

.oaf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oaf-pill {
	align-items: center;
	background: var(--oaf-canvas);
	border: 1px solid transparent;
	border-radius: var(--oaf-radius-pill);
	color: var(--oaf-ink-70);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 7px;
	padding: 8px 14px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
}

.oaf-pill:hover {
	border-color: var(--oaf-brand);
	color: var(--oaf-brand);
}

.oaf-pill.is-active {
	background: var(--oaf-brand);
	color: #fff;
}

/* The generic :hover above turns the label brand-blue — on the active pill that
   is blue text on a blue background, i.e. the label vanishes exactly when you
   point at it. Active state keeps white text and darkens instead. */
.oaf-pill.is-active:hover,
.oaf-pill.is-active:focus {
	background: var(--oaf-brand-600);
	border-color: transparent;
	color: #fff;
}

.oaf-pill__count {
	background: rgba(2, 2, 2, .06);
	border-radius: var(--oaf-radius-pill);
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
}

.oaf-pill.is-active .oaf-pill__count {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

.oaf-filters {
	align-items: center;
	border-top: 1px solid var(--oaf-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
}

.oaf-filters__price {
	align-items: center;
	display: flex;
	gap: 6px;
	margin: 0;
}

.oaf-filters__label {
	color: var(--oaf-ink-45);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	margin-right: 2px;
	text-transform: uppercase;
}

.oaf-filters__price input[type="number"] {
	border-radius: var(--oaf-radius-pill);
	font-size: 13px;
	padding: 7px 12px;
	width: 86px;
}

.oaf-filters__dash { color: var(--oaf-ink-45); }

.oaf-filters__go {
	background: var(--oaf-ink);
	border: 0;
	border-radius: var(--oaf-radius-pill);
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
}

.oaf-filters__go:hover { background: var(--oaf-brand); }

.oaf-toggle {
	background: var(--oaf-canvas);
	border: 1px solid transparent;
	border-radius: var(--oaf-radius-pill);
	color: var(--oaf-ink-70);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
}

.oaf-toggle:hover { border-color: var(--oaf-brand); color: var(--oaf-brand); }
.oaf-toggle.is-active { background: var(--oaf-brand); color: #fff; }

/* Same trap as the pills. */
.oaf-toggle.is-active:hover,
.oaf-toggle.is-active:focus {
	background: var(--oaf-brand-600);
	border-color: transparent;
	color: #fff;
}

.oaf-filters__clear {
	color: var(--oaf-ink-45);
	font-size: 13px;
	font-weight: 600;
	margin-left: auto;
	text-decoration: underline;
}

.oaf-filters__clear:hover { color: var(--oaf-brand); }

.oaf-result-count {
	color: var(--oaf-ink-45);
	font-size: 13px;
	margin: 0 0 14px;
}

.oaf-result-count strong { color: var(--oaf-ink); }

.oaf-result-count__filtered {
	background: var(--oaf-brand-050);
	border-radius: var(--oaf-radius-pill);
	color: var(--oaf-brand);
	font-size: 11px;
	font-weight: 700;
	margin-left: 6px;
	padding: 2px 9px;
	text-transform: uppercase;
}

.oaf-empty-state {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	padding: 48px 24px;
	text-align: center;
}

.oaf-empty-state h2 { font-size: 20px; margin: 0 0 8px; }
.oaf-empty-state p { color: var(--oaf-ink-45); margin: 0 0 20px; }

@media (max-width: 768px) {
	.oaf-shopbar { padding: 14px; }
	.oaf-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.oaf-pills::-webkit-scrollbar { display: none; }
	.oaf-filters__clear { margin-left: 0; }
}

/* ── 10. Contact page ──────────────────────────────────────────────────── */

.oaf-contact-page { background: var(--oaf-canvas); }

.oaf-contact-hero {
	padding: 32px 0 8px;
}

/* The page wrapper is capped at 1200px, so a full-bleed background would stop
   dead mid-screen on a wide display. Panel with a radius instead — the same
   shape as the homepage hero — and its own padding, because the theme's
   .grid-container carries none and text would otherwise sit on the edge. */
.oaf-contact-hero__inner {
	background: linear-gradient(120deg, var(--oaf-brand) 0%, #0b2a8f 100%);
	border-radius: var(--oaf-radius);
	color: rgba(255, 255, 255, .8);
	padding: 56px 48px;
}

.oaf-contact-hero__inner .oaf-kicker { color: rgba(255, 255, 255, .7); }

.oaf-contact-hero__title {
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 12px;
}

.oaf-contact-hero__text { margin: 0 0 24px; max-width: 58ch; }

.oaf-contact-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.oaf-contact-hero__actions .oaf-btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.oaf-contact-hero__actions .oaf-btn--ghost:hover { border-color: #fff; color: #fff; }

.oaf-contact-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.oaf-contact-card {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	padding: 26px;
}

.oaf-contact-card__icon {
	align-items: center;
	background: var(--oaf-brand-050);
	border-radius: 50%;
	color: var(--oaf-brand);
	display: flex;
	font-size: 20px;
	height: 48px;
	justify-content: center;
	margin-bottom: 16px;
	width: 48px;
}

.oaf-contact-card h2 { font-size: 17px; margin: 0 0 8px; }
.oaf-contact-card p { color: var(--oaf-ink-70); margin: 0 0 12px; }
.oaf-contact-card a { color: var(--oaf-brand); font-weight: 600; }

.oaf-contact-sub { color: var(--oaf-ink-45); margin: 0 0 26px; }

.oaf-pickups {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.oaf-pickup {
	align-items: center;
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	display: flex;
	gap: 14px;
	padding: 20px;
}

.oaf-pickup__pin {
	align-items: center;
	background: var(--oaf-brand);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 auto;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.oaf-pickup h3 { font-size: 16px; margin: 0 0 2px; }
.oaf-pickup p { color: var(--oaf-ink-45); font-size: 13px; margin: 0; }

.oaf-contact-note { color: var(--oaf-ink-45); font-size: 14px; margin: 22px 0 0; }

.oaf-promises {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.oaf-promise {
	border-left: 3px solid var(--oaf-brand);
	padding-left: 16px;
}

.oaf-promise h3 { font-size: 16px; margin: 0 0 6px; }
.oaf-promise p { color: var(--oaf-ink-70); font-size: 14px; margin: 0; }


/* dokani's .grid-container sets a max-width but no side padding, so content
   touches the viewport edge below 1200px. Our sections opt into a gutter. */
.oaf-home > .oaf-section > .grid-container,
.oaf-home .oaf-carousel-section > .grid-container,
.oaf-contact-page > .oaf-section > .grid-container,
.oaf-contact-page > .oaf-contact-hero > .grid-container {
	padding-left: 20px;
	padding-right: 20px;
}

@media (max-width: 768px) {
	.oaf-contact-hero { padding-top: 16px; }
	.oaf-contact-hero__inner { padding: 36px 24px; }
}

/* ── 11. Top bar dropdowns ─────────────────────────────────────────────────
 * The top bar is dark, so its links are near-white — but the panels that drop
 * out of it (vendor menu, account menu, mini cart) have WHITE backgrounds, and
 * they inherited that near-white link colour. White on white: the panels looked
 * empty, and the items were only findable by hovering blindly.
 * ------------------------------------------------------------------------ */

.top-bar .dropdown-menu,
.site-header .dropdown-menu {
	background: var(--oaf-surface);
	border: 1px solid var(--oaf-line);
	border-radius: var(--oaf-radius);
	box-shadow: var(--oaf-shadow);
	padding: 8px;
}

.top-bar .dropdown-menu a,
.top-bar .dropdown-menu a:visited,
.top-bar .dropdown-menu li > a,
.site-header .dropdown-menu a,
.site-header .dropdown-menu a:visited {
	border-radius: 8px;
	color: var(--oaf-ink-70);
	display: block;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 12px;
}

.top-bar .dropdown-menu a:hover,
.top-bar .dropdown-menu a:focus,
.site-header .dropdown-menu a:hover,
.site-header .dropdown-menu a:focus {
	background: var(--oaf-brand-050);
	color: var(--oaf-brand);
}

/* The mini cart lives in the same panel: keep its own pieces legible. */
.top-bar .dropdown-menu .woocommerce-mini-cart__total,
.top-bar .dropdown-menu .quantity,
.top-bar .dropdown-menu .total {
	color: var(--oaf-ink);
}

.top-bar .dropdown-menu .woocommerce-mini-cart__empty-message {
	color: var(--oaf-ink-45);
	padding: 12px;
}

/* Remove-item crosses were browser-default dark red. */
.top-bar .dropdown-menu a.remove,
.top-bar .dropdown-menu a.remove:visited,
.site-header .dropdown-menu a.remove,
.site-header .dropdown-menu a.remove:visited {
	color: var(--oaf-ink-45);
	padding: 0;
}

.top-bar .dropdown-menu a.remove:hover,
.site-header .dropdown-menu a.remove:hover {
	background: transparent;
	color: var(--oaf-sale);
}

/* The mini cart's own buttons keep button styling, not menu-item styling. */
.top-bar .dropdown-menu .buttons a.button,
.top-bar .dropdown-menu .buttons a.button:visited {
	color: #fff;
	display: inline-block;
	font-weight: 600;
}

.top-bar .dropdown-menu .buttons a.button:hover { background: var(--oaf-brand-600); color: #fff; }

/* Subcategory rail — visually subordinate to the top-level pills above it. */
.oaf-pills--sub {
	border-top: 1px dashed var(--oaf-line);
	margin-top: 12px;
	padding-top: 12px;
}

.oaf-pills--sub .oaf-pill {
	background: transparent;
	border: 1px solid var(--oaf-line);
	font-size: 12.5px;
	padding: 6px 12px;
}

.oaf-pills--sub .oaf-pill:hover {
	border-color: var(--oaf-brand);
	color: var(--oaf-brand);
}

.oaf-pills--sub .oaf-pill.is-active,
.oaf-pills--sub .oaf-pill.is-active:visited {
	background: var(--oaf-brand);
	border-color: transparent;
	color: #fff;
}

.oaf-pill--up,
.oaf-pill--up:visited {
	color: var(--oaf-ink-45);
	font-weight: 500;
}
