/*
Theme Name: Ebukason
Theme URI: https://ebukason.com
Author: Ebukason
Description: Custom multi-vendor marketplace theme for WooCommerce and WCFM. Royal emerald and gold.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebukason
*/

/* ==========================================================================
   Design tokens (locked): emerald primary, gold accent with dark text.
   ========================================================================== */
:root {
	--ebk-primary: #0B3D2E;
	--ebk-primary-hover: #082E22;
	--ebk-primary-light: #135843;
	--ebk-primary-tint: #ECFDF5;

	--ebk-verified-text: #047857;
	--ebk-verified-bg: #ECFDF5;
	--ebk-verified-border: #A7F3D0;

	--ebk-accent: #F59E0B;
	--ebk-on-accent: #0F172A;
	--ebk-accent-hover: #D97706;
	--ebk-on-accent-hover: #0F172A;
	--ebk-accent-soft: #FEF3C7;

	--ebk-bg: #F8FAFC;
	--ebk-surface: #FFFFFF;
	--ebk-border: #E2E8F0;
	--ebk-text: #0F172A;
	--ebk-text-muted: #475569;

	--ebk-radius-sm: 8px;
	--ebk-radius-md: 12px;
	--ebk-radius-lg: 16px;
	--ebk-radius-pill: 9999px;
	--ebk-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
	--ebk-shadow-md: 0 10px 25px -5px rgba(11, 61, 46, .08), 0 4px 10px -2px rgba(11, 61, 46, .04);
	--ebk-shadow-lg: 0 20px 40px -10px rgba(11, 61, 46, .16);
	--ebk-container: 1240px;
	--ebk-transition: .2s cubic-bezier(.4, 0, .2, 1);
}

/* Zero-specificity resets so they never override components or plugin markup. */
:where(.ebk-body, .ebk-body *, .ebk-body *::before, .ebk-body *::after) { box-sizing: border-box; }
:where(.ebk-body) { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
:where(.ebk-body h1, .ebk-body h2, .ebk-body h3, .ebk-body h4, .ebk-body p, .ebk-body ul, .ebk-body ol) { margin: 0; padding: 0; }
:where(.ebk-body button) { font: inherit; background: none; border: none; cursor: pointer; }
:where(.ebk-body a) { color: inherit; text-decoration: none; }
:where(.ebk-body img, .ebk-body svg) { display: block; max-width: 100%; }

.ebk-body { background: var(--ebk-bg); color: var(--ebk-text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.ebk-body.ebk-scroll-lock { overflow: hidden; }
.ebk-body [hidden] { display: none !important; }

.ebk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ebk-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ebk-primary); color: #fff; padding: 10px 16px; border-radius: var(--ebk-radius-sm); transition: top var(--ebk-transition); }
.ebk-skip:focus { top: 12px; }

.ebk-body :focus-visible { outline: 2px solid var(--ebk-primary); outline-offset: 2px; }
.ebk-topbar :focus-visible, .ebk-nav :focus-visible, .ebk-hero :focus-visible, .ebk-promo-banner :focus-visible,
.ebk-footer :focus-visible, .ebk-drawer-header :focus-visible { outline-color: #fff; }

.ebk-anchor { scroll-margin-top: 112px; }
.ebk-container { width: 100%; max-width: var(--ebk-container); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   Buttons and badges
   ========================================================================== */
.ebk-btn-gold, .ebk-store .button, .ebk-store input[type="submit"], .ebk-drawer .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ebk-accent); color: var(--ebk-on-accent);
	font-weight: 700; font-size: .925rem; line-height: 1.2; padding: 11px 22px;
	border-radius: var(--ebk-radius-sm); border: 0; cursor: pointer;
	transition: background-color var(--ebk-transition), transform var(--ebk-transition), box-shadow var(--ebk-transition);
	box-shadow: 0 2px 6px rgba(15, 23, 42, .14);
}
.ebk-btn-gold:hover, .ebk-store .button:hover, .ebk-store input[type="submit"]:hover, .ebk-drawer .button:hover {
	background: var(--ebk-accent-hover); color: var(--ebk-on-accent-hover);
	transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 23, 42, .2);
}
.ebk-btn-gold.loading, .ebk-store .button.loading { opacity: .65; pointer-events: none; }
.ebk-body .added_to_cart { display: none; }
.ebk-btn-sm { padding: 7px 14px; font-size: .8rem; }
.ebk-btn-block { width: 100%; }

.ebk-btn-outline-light {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45);
	font-weight: 600; font-size: .925rem; padding: 10px 22px; border-radius: var(--ebk-radius-sm);
	transition: background-color var(--ebk-transition), border-color var(--ebk-transition);
}
.ebk-btn-outline-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.ebk-btn-emerald {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ebk-primary); color: #fff; font-weight: 600; font-size: .875rem;
	padding: 10px 18px; border-radius: var(--ebk-radius-sm); transition: background-color var(--ebk-transition);
}
.ebk-btn-emerald:hover { background: var(--ebk-primary-hover); }

.ebk-verified-badge {
	display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700;
	padding: 2px 8px; border-radius: var(--ebk-radius-pill);
	color: var(--ebk-verified-text); background: var(--ebk-verified-bg); border: 1px solid var(--ebk-verified-border);
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.ebk-topbar { background: var(--ebk-primary-hover); color: #E2E8F0; font-size: .8rem; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ebk-topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ebk-delivery-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .35); color: #FDE68A; padding: 3px 10px; border-radius: var(--ebk-radius-pill); font-weight: 600; font-size: .74rem; }
.ebk-delivery-dot { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.ebk-topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ebk-switch-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ebk-currency-select { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .24); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ebk-currency-select option { background: var(--ebk-primary-hover); color: #fff; }
.ebk-rate-note { font-size: .72rem; color: #CBD5E1; }
.ebk-switch-plugin select, .ebk-switch-plugin a { font-size: .78rem; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); border-radius: 6px; padding: 3px 8px; }
.ebk-switch-plugin option { color: #0F172A; }
.ebk-topbar-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ebk-topbar-links a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Header
   ========================================================================== */
.ebk-header { background: var(--ebk-surface); border-bottom: 1px solid var(--ebk-border); position: sticky; top: 0; z-index: 40; box-shadow: var(--ebk-shadow-sm); }
.admin-bar .ebk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ebk-header { top: 46px; } }
.ebk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; }

.ebk-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ebk-brand .custom-logo { max-height: 48px; width: auto; }
.ebk-brand-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--ebk-primary), var(--ebk-primary-light)); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(11, 61, 46, .2); }
.ebk-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ebk-brand-name { font-size: 1.25rem; font-weight: 800; color: var(--ebk-primary); letter-spacing: -.02em; }
.ebk-brand-sub { font-size: .72rem; font-weight: 600; color: var(--ebk-text-muted); letter-spacing: .02em; }

.ebk-search-form { flex: 1; max-width: 560px; display: flex; align-items: stretch; background: var(--ebk-bg); border: 1.5px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); overflow: hidden; transition: border-color var(--ebk-transition), box-shadow var(--ebk-transition); }
.ebk-search-form:focus-within { border-color: var(--ebk-primary); box-shadow: 0 0 0 3px rgba(11, 61, 46, .12); background: var(--ebk-surface); }
.ebk-search-select { background: transparent; border: 0; border-right: 1px solid var(--ebk-border); padding: 0 12px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--ebk-text); cursor: pointer; max-width: 160px; }
.ebk-search-input { flex: 1; border: 0; background: transparent; padding: 10px 14px; font: inherit; font-size: .9rem; color: var(--ebk-text); min-width: 0; }
.ebk-search-input:focus-visible, .ebk-search-select:focus-visible { outline-offset: -2px; }
.ebk-search-btn { background: var(--ebk-accent); color: var(--ebk-on-accent); padding: 0 18px; display: flex; align-items: center; justify-content: center; transition: background-color var(--ebk-transition); }
.ebk-search-btn:hover { background: var(--ebk-accent-hover); }

.ebk-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ebk-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--ebk-radius-sm); color: var(--ebk-text); background: var(--ebk-bg); border: 1px solid var(--ebk-border); transition: border-color var(--ebk-transition), color var(--ebk-transition); }
.ebk-icon-btn:hover { border-color: var(--ebk-primary); color: var(--ebk-primary); }
.ebk-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--ebk-radius-pill); background: var(--ebk-accent); color: var(--ebk-on-accent); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ebk-surface); }

/* Category bar */
.ebk-nav { background: var(--ebk-primary); color: #fff; }
.ebk-nav-list { display: flex; align-items: center; gap: 6px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.ebk-nav-list::-webkit-scrollbar { display: none; }
.ebk-nav-list li { list-style: none; }
.ebk-nav-btn { display: inline-block; color: #E2E8F0; font-size: .875rem; font-weight: 500; padding: 7px 14px; border-radius: var(--ebk-radius-sm); white-space: nowrap; transition: background-color var(--ebk-transition), color var(--ebk-transition); }
.ebk-nav-btn:hover, .ebk-nav-btn[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.ebk-nav-btn[aria-current] { box-shadow: inset 0 -2px 0 var(--ebk-accent); font-weight: 600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.ebk-hero { background: linear-gradient(135deg, var(--ebk-primary-hover) 0%, var(--ebk-primary) 55%, var(--ebk-primary-light) 100%); color: #fff; padding: 52px 0 58px; position: relative; overflow: hidden; }
.ebk-hero::after { content: ""; position: absolute; top: -120px; right: -80px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(245, 158, 11, .18), rgba(245, 158, 11, 0) 70%); pointer-events: none; }
.ebk-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.ebk-hero-grid:has(> div:only-child) { grid-template-columns: 1fr; }
.ebk-hero-title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 16px; max-width: 18ch; }
.ebk-hero-sub { font-size: 1.05rem; color: #E2E8F0; max-width: 540px; margin-bottom: 28px; }
.ebk-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ebk-hero-pillars { list-style: none; display: flex; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; font-weight: 600; color: #E2E8F0; }
.ebk-pillar-item { display: inline-flex; align-items: center; gap: 8px; }
.ebk-pillar-check { color: #FDE68A; font-weight: 800; }
.ebk-hero-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ebk-showcase-card { background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--ebk-radius-md); padding: 18px; display: flex; align-items: flex-end; min-height: 110px; transition: background-color var(--ebk-transition); }
.ebk-showcase-card:hover { background: rgba(255, 255, 255, .15); }
.ebk-showcase-card--wide { grid-column: span 2; min-height: 130px; }
.ebk-showcase-card > span { display: flex; flex-direction: column; gap: 4px; }
.ebk-showcase-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--ebk-on-accent); background: var(--ebk-accent); padding: 3px 9px; border-radius: var(--ebk-radius-pill); width: fit-content; }
.ebk-showcase-name { font-size: 1.1rem; font-weight: 700; margin-top: 6px; }
.ebk-showcase-meta { font-size: .8rem; color: #E2E8F0; }

/* ==========================================================================
   Sections, vendors, products
   ========================================================================== */
.ebk-section { padding: 52px 0; }
.ebk-section + .ebk-section { padding-top: 12px; }
.ebk-section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.ebk-section-title { font-size: 1.55rem; font-weight: 800; color: var(--ebk-primary); letter-spacing: -.02em; }
.ebk-section-sub { font-size: .92rem; color: var(--ebk-text-muted); margin-top: 4px; }
.ebk-link-more { font-weight: 700; color: var(--ebk-primary); border-bottom: 2px solid var(--ebk-accent); }
.ebk-link-more:hover { color: var(--ebk-primary-hover); }

.ebk-rating-wrap { display: inline-flex; align-items: center; gap: 6px; }
.ebk-stars-row { display: inline-flex; align-items: center; gap: 2px; color: #D97706; }
.ebk-rating-num { font-size: .78rem; font-weight: 600; color: var(--ebk-text-muted); }

.ebk-vendor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ebk-vendor-card { background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); padding: 22px 18px; text-align: center; box-shadow: var(--ebk-shadow-sm); transition: box-shadow var(--ebk-transition), border-color var(--ebk-transition); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ebk-vendor-card:hover { box-shadow: var(--ebk-shadow-md); border-color: var(--ebk-primary); }
.ebk-vendor-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ebk-primary-tint); border: 2px solid var(--ebk-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--ebk-primary); font-weight: 800; font-size: 1.25rem; }
.ebk-vendor-name { font-size: 1rem; font-weight: 700; color: var(--ebk-text); }
.ebk-vendor-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--ebk-text-muted); margin-bottom: 12px; }
.ebk-vendor-card .ebk-btn-gold { width: 100%; padding: 9px 14px; font-size: .85rem; margin-top: auto; }

.ebk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ebk-tab { padding: 8px 16px; border-radius: var(--ebk-radius-pill); font-size: .85rem; font-weight: 600; color: var(--ebk-text-muted); background: var(--ebk-surface); border: 1px solid var(--ebk-border); transition: background-color var(--ebk-transition), color var(--ebk-transition), border-color var(--ebk-transition); }
.ebk-tab:hover { border-color: var(--ebk-primary); color: var(--ebk-primary); }
.ebk-tab.is-active { background: var(--ebk-primary); color: #fff; border-color: var(--ebk-primary); }

.ebk-product-grid, .ebk-body ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.ebk-body ul.products li.product { width: auto; float: none; margin: 0; list-style: none; }
.ebk-body ul.products::before, .ebk-body ul.products::after { content: none; }

.ebk-card { background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); overflow: hidden; box-shadow: var(--ebk-shadow-sm); display: flex; flex-direction: column; height: 100%; transition: box-shadow var(--ebk-transition), border-color var(--ebk-transition); }
.ebk-card:hover { box-shadow: var(--ebk-shadow-md); border-color: #CBD5E1; }
.ebk-card-media { position: relative; background: linear-gradient(180deg, #F1F5F9, #E2E8F0); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ebk-card-media-link { display: block; width: 100%; height: 100%; }
.ebk-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ebk-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ebk-primary); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: var(--ebk-radius-pill); }
.ebk-wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ebk-text-muted); display: flex; align-items: center; justify-content: center; box-shadow: var(--ebk-shadow-sm); transition: color var(--ebk-transition), transform var(--ebk-transition); }
.ebk-wish-btn:hover, .ebk-wish-btn.is-wished { color: #DC2626; transform: scale(1.08); }
.ebk-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.ebk-card-vendor { font-size: .78rem; font-weight: 600; color: var(--ebk-primary-light); width: fit-content; }
a.ebk-card-vendor:hover { text-decoration: underline; }
.ebk-card-vendor--plain { color: var(--ebk-text-muted); }
.ebk-card-title { font-size: .96rem; font-weight: 700; line-height: 1.35; }
.ebk-card-title a:hover { color: var(--ebk-primary); text-decoration: underline; }
.ebk-card-rating { margin-top: 2px; }
.ebk-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ebk-border); }
.ebk-card-body > .ebk-card-title + .ebk-card-footer, .ebk-card-rating + .ebk-card-footer { margin-top: 12px; }
.ebk-price { font-size: 1.05rem; font-weight: 800; color: var(--ebk-primary); }
.ebk-price del { font-weight: 500; font-size: .8rem; color: var(--ebk-text-muted); margin-right: 4px; }
.ebk-price ins { text-decoration: none; }
.ebk-card-footer .ebk-btn-gold { padding: 8px 14px; font-size: .82rem; text-align: center; }

.ebk-empty-state { text-align: center; padding: 48px 20px; background: var(--ebk-surface); border: 1px dashed var(--ebk-border); border-radius: var(--ebk-radius-md); color: var(--ebk-text-muted); }
.ebk-empty-state p + p, .ebk-empty-state .ebk-page-title + p { margin-top: 8px; }
.ebk-empty-note { text-align: center; color: var(--ebk-text-muted); margin-top: 40px; padding: 0 22px; }

.ebk-promo-banner { border-radius: var(--ebk-radius-lg); padding: 36px; color: #fff; background: linear-gradient(135deg, #0F172A, var(--ebk-primary)); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.ebk-promo-title { font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.ebk-promo-desc { font-size: .95rem; color: #CBD5E1; max-width: 560px; margin-top: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ebk-footer { background: var(--ebk-primary-hover); color: #CBD5E1; padding: 56px 0 28px; margin-top: 24px; }
.ebk-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ebk-footer .ebk-brand-name { color: #fff; }
.ebk-footer .ebk-brand-sub { color: #CBD5E1; }
.ebk-footer-about { font-size: .86rem; max-width: 290px; margin-top: 14px; }
.ebk-footer-title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.ebk-footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: .875rem; }
.ebk-footer-links a:hover { color: #FDE68A; text-decoration: underline; }
.ebk-trust-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ebk-primary); padding: 10px 16px; border-radius: var(--ebk-radius-sm); font-weight: 700; font-size: .85rem; margin-top: 14px; }
.ebk-footer-bottom { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* ==========================================================================
   Drawers (cart and wishlist)
   ========================================================================== */
.ebk-drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 60; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.ebk-drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ebk-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100vh; height: 100dvh; background: var(--ebk-surface); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s ease; box-shadow: var(--ebk-shadow-lg); }
.ebk-drawer.is-open { transform: translateX(0); visibility: visible; }
.ebk-drawer-header { padding: 18px 22px; background: var(--ebk-primary); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.ebk-drawer-header h2 { font-size: 1.05rem; font-weight: 700; }
.ebk-drawer-close { color: #fff; font-size: 1.4rem; width: 34px; height: 34px; border-radius: var(--ebk-radius-sm); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); }
.ebk-drawer-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ebk-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.ebk-drawer-footer { padding: 18px 22px; border-top: 1px solid var(--ebk-border); background: var(--ebk-bg); }

.ebk-cart-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); background: var(--ebk-bg); }
.ebk-cart-thumb { width: 64px; height: 64px; border-radius: 8px; background: #fff; border: 1px solid var(--ebk-border); flex-shrink: 0; overflow: hidden; }
.ebk-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ebk-cart-info { flex: 1; min-width: 0; }
.ebk-cart-name { display: block; font-weight: 700; font-size: .88rem; }
.ebk-cart-name:hover { text-decoration: underline; }
.ebk-cart-price { font-weight: 800; font-size: .9rem; color: var(--ebk-primary); margin-top: 3px; }
.ebk-cart-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.ebk-remove-btn { font-size: .76rem; font-weight: 600; color: #B91C1C; padding: 4px 8px; border-radius: 6px; }
.ebk-remove-btn:hover { background: #FEE2E2; }

/* WooCommerce mini cart inside the drawer */
.widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ebk-body .woocommerce-mini-cart { list-style: none; overflow-y: auto; flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.ebk-body .woocommerce-mini-cart-item { position: relative; display: block; padding: 12px 12px 12px 12px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); background: var(--ebk-bg); font-size: .88rem; font-weight: 700; min-height: 88px; }
.ebk-body .woocommerce-mini-cart-item img { float: left; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin: 0 12px 0 0; border: 1px solid var(--ebk-border); }
.ebk-body .woocommerce-mini-cart-item a:not(.remove) { display: block; }
.ebk-body .woocommerce-mini-cart-item .quantity { display: block; font-weight: 500; color: var(--ebk-text-muted); font-size: .82rem; margin-top: 4px; }
.ebk-body .woocommerce-mini-cart-item a.remove { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 50%; color: #B91C1C; font-size: 1.1rem; font-weight: 700; }
.ebk-body .woocommerce-mini-cart-item a.remove:hover { background: #FEE2E2; color: #B91C1C; }
.ebk-body .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 22px 0; font-size: 1.05rem; font-weight: 800; border-top: 1px solid var(--ebk-border); background: var(--ebk-bg); }
.ebk-body .woocommerce-mini-cart__buttons { display: flex; gap: 10px; padding: 14px 22px 18px; background: var(--ebk-bg); }
.ebk-body .woocommerce-mini-cart__buttons .button { flex: 1; font-size: .85rem; padding: 11px 12px; }
.ebk-body .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--ebk-primary); color: #fff; }
.ebk-body .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--ebk-primary-hover); color: #fff; }
.ebk-body .woocommerce-mini-cart__empty-message { text-align: center; color: var(--ebk-text-muted); margin-top: 40px; padding: 0 22px; }

.ebk-toast { position: fixed; bottom: 24px; right: 20px; z-index: 80; background: var(--ebk-primary); color: #fff; padding: 12px 18px; border-radius: var(--ebk-radius-sm); font-size: .86rem; font-weight: 600; box-shadow: var(--ebk-shadow-lg); border-left: 4px solid var(--ebk-accent); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 40px); }
.ebk-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Content pages and WooCommerce pages
   ========================================================================== */
.ebk-prose-wrap, .ebk-woo { padding-top: 36px; padding-bottom: 56px; }
.ebk-page-head { margin-bottom: 24px; }
.ebk-page-title { font-size: 1.9rem; font-weight: 800; color: var(--ebk-primary); letter-spacing: -.02em; }
.ebk-post-list { display: grid; gap: 20px; }
.ebk-post-item { background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); padding: 22px; }
.ebk-post-title { font-size: 1.2rem; font-weight: 700; }
.ebk-post-title a:hover { color: var(--ebk-primary); text-decoration: underline; }

.ebk-prose { max-width: 75ch; font-size: 1rem; line-height: 1.7; }
.ebk-prose > * + * { margin-top: 1em; }
.ebk-prose h2, .ebk-prose h3 { margin-top: 1.6em; font-weight: 700; color: var(--ebk-primary); }
.ebk-prose ul, .ebk-prose ol { padding-left: 1.4rem; }
.ebk-prose a { color: var(--ebk-primary); text-decoration: underline; }
.ebk-woo .ebk-prose, .woocommerce-cart .ebk-prose, .woocommerce-checkout .ebk-prose, .woocommerce-account .ebk-prose { max-width: none; }

.ebk-store .woocommerce-breadcrumb { font-size: .82rem; color: var(--ebk-text-muted); margin-bottom: 18px; }
.ebk-store .woocommerce-breadcrumb a:hover { text-decoration: underline; color: var(--ebk-primary); }
.ebk-store .woocommerce-products-header__title, .ebk-store .product_title { font-size: 1.9rem; font-weight: 800; color: var(--ebk-primary); letter-spacing: -.02em; margin-bottom: 8px; }
.ebk-store .woocommerce-result-count { float: left; font-size: .88rem; color: var(--ebk-text-muted); margin: 0 0 20px; }
.ebk-store .woocommerce-ordering { float: right; margin: 0 0 20px; }
.ebk-store .woocommerce-ordering select { padding: 8px 12px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); background: var(--ebk-surface); font: inherit; font-size: .88rem; }
.ebk-store ul.products { clear: both; }

.ebk-store .woocommerce-pagination, .ebk-store .navigation.pagination { margin-top: 32px; text-align: center; }
.ebk-store .woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 6px; border: 0; }
.ebk-store .woocommerce-pagination li { border: 0; }
.ebk-store .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); background: var(--ebk-surface); font-weight: 600; }
.ebk-store .page-numbers.current, .ebk-store a.page-numbers:hover { background: var(--ebk-primary); color: #fff; border-color: var(--ebk-primary); }

/* Single product */
.ebk-body.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.ebk-body.single-product .woocommerce-product-gallery { background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); overflow: hidden; position: relative; }
.ebk-body.single-product .woocommerce-product-gallery img { width: 100%; height: auto; }
.ebk-body.single-product .summary .price { font-size: 1.5rem; font-weight: 800; color: var(--ebk-primary); margin: 8px 0 16px; display: block; }
.ebk-body.single-product .summary .price del { font-size: 1rem; font-weight: 500; color: var(--ebk-text-muted); }
.ebk-body.single-product .summary .price ins { text-decoration: none; }
.ebk-body.single-product .woocommerce-product-details__short-description { color: var(--ebk-text-muted); margin-bottom: 18px; }
.ebk-body.single-product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 18px; }
.ebk-store .quantity .qty { width: 72px; height: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm); font: inherit; text-align: center; }
.ebk-body.single-product .product_meta { font-size: .85rem; color: var(--ebk-text-muted); display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--ebk-border); }
.ebk-body.single-product .woocommerce-tabs, .ebk-body.single-product .related, .ebk-body.single-product .upsells { grid-column: 1 / -1; }
.ebk-store .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--ebk-border); margin-bottom: 20px; }
.ebk-store .woocommerce-tabs ul.tabs li { border: 0; background: none; }
.ebk-store .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 16px; font-weight: 600; color: var(--ebk-text-muted); border-bottom: 3px solid transparent; }
.ebk-store .woocommerce-tabs ul.tabs li.active a { color: var(--ebk-primary); border-bottom-color: var(--ebk-accent); }
.ebk-store .related > h2, .ebk-store .upsells > h2 { font-size: 1.4rem; font-weight: 800; color: var(--ebk-primary); margin: 12px 0 20px; }

/* Notices, forms, tables */
.ebk-store .woocommerce-message, .ebk-store .woocommerce-info, .ebk-store .woocommerce-error, .ebk-store .woocommerce-notice { list-style: none; background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-left: 4px solid var(--ebk-primary); border-radius: var(--ebk-radius-sm); padding: 14px 18px; margin: 0 0 20px; color: var(--ebk-text); }
.ebk-store .woocommerce-error { border-left-color: #B91C1C; }
.ebk-store .woocommerce-message::before, .ebk-store .woocommerce-info::before, .ebk-store .woocommerce-error::before { content: none; }
.ebk-store .woocommerce-message .button, .ebk-store .woocommerce-info .button { float: right; margin-left: 12px; padding: 7px 14px; font-size: .8rem; }
.ebk-store input[type="text"], .ebk-store input[type="email"], .ebk-store input[type="tel"], .ebk-store input[type="password"],
.ebk-store input[type="number"], .ebk-store input[type="url"], .ebk-store textarea, .ebk-store select.input-select, .ebk-store .select2-selection {
	width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-sm);
	background: var(--ebk-surface); font: inherit; color: var(--ebk-text);
}
.ebk-store label { font-weight: 600; font-size: .9rem; }
.ebk-store .form-row { margin: 0 0 14px; }
.ebk-store table.shop_table { width: 100%; border-collapse: collapse; background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); overflow: hidden; margin-bottom: 24px; }
.ebk-store table.shop_table th, .ebk-store table.shop_table td { padding: 12px 14px; border-bottom: 1px solid var(--ebk-border); text-align: left; vertical-align: middle; }
.ebk-store table.shop_table th { background: var(--ebk-bg); font-size: .82rem; }
.ebk-store table.shop_table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.ebk-store .cart_totals, .ebk-store #order_review { background: var(--ebk-surface); border: 1px solid var(--ebk-border); border-radius: var(--ebk-radius-md); padding: 20px; }
.ebk-store .woocommerce-checkout #customer_details { margin-bottom: 24px; }
.ebk-store #place_order, .ebk-store .checkout-button { width: 100%; padding: 14px 22px; font-size: 1rem; }
.ebk-store .woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: 6px; }
.ebk-store .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--ebk-radius-sm); background: var(--ebk-surface); border: 1px solid var(--ebk-border); font-weight: 600; }
.ebk-store .woocommerce-MyAccount-navigation .is-active a, .ebk-store .woocommerce-MyAccount-navigation a:hover { background: var(--ebk-primary); color: #fff; border-color: var(--ebk-primary); }
.ebk-store.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.ebk-store .onsale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ebk-accent); color: var(--ebk-on-accent); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: var(--ebk-radius-pill); }

/* Classic cart and checkout layout (WooCommerce's own layout sheet is not loaded) */
.ebk-store .cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; }
.ebk-store .cart-collaterals .cart_totals { grid-column: 2; width: 100%; float: none; }
.ebk-store form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.ebk-store form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.ebk-store form.checkout #order_review_heading, .ebk-store form.checkout #order_review { grid-column: 2; }
.ebk-store form.checkout .col2-set .col-1, .ebk-store form.checkout .col2-set .col-2 { float: none; width: 100%; }
@media (max-width: 768px) {
	.ebk-store .cart-collaterals, .ebk-store form.checkout { grid-template-columns: 1fr; }
	.ebk-store .cart-collaterals .cart_totals, .ebk-store form.checkout #customer_details, .ebk-store form.checkout #order_review_heading, .ebk-store form.checkout #order_review { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   Motion preference and responsive
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ebk-body *, .ebk-body *::before, .ebk-body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.ebk-btn-gold:hover, .ebk-wish-btn:hover { transform: none; }
}

@media (max-width: 1024px) {
	.ebk-hero-grid { grid-template-columns: 1fr; }
	.ebk-vendor-grid, .ebk-product-grid, .ebk-body ul.products { grid-template-columns: repeat(2, 1fr); }
	.ebk-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.ebk-body.single-product div.product { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.ebk-header-inner { flex-wrap: wrap; }
	.ebk-search-form { order: 3; max-width: 100%; width: 100%; flex-basis: 100%; }
	.ebk-body .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.ebk-promo-banner { padding: 26px; }
}
@media (max-width: 520px) {
	.ebk-vendor-grid, .ebk-product-grid, .ebk-body ul.products, .ebk-footer-grid { grid-template-columns: 1fr; }
	.ebk-search-select { display: none; }
	.ebk-hero { padding: 36px 0 40px; }
}
