/*
 * KingEvent Modern Glass UI
 * Loaded after the legacy theme styles to preserve the original page structure
 * while modernising navigation, WooCommerce and common components.
 */
:root {
  --ke-primary: #584370;
  --ke-primary-2: #8064a2;
  --ke-accent: #ff7a1a;
  --ke-accent-2: #ffad45;
  --ke-ink: #201a29;
  --ke-muted: #6f6879;
  --ke-bg: #f6f3fa;
  --ke-surface: rgba(255, 255, 255, 0.82);
  --ke-surface-strong: rgba(255, 255, 255, 0.96);
  --ke-border: rgba(88, 67, 112, 0.14);
  --ke-shadow: 0 18px 60px rgba(45, 31, 63, 0.13);
  --ke-shadow-soft: 0 9px 30px rgba(45, 31, 63, 0.09);
  --ke-radius: 22px;
  --ke-radius-sm: 14px;
  --ke-logo-max-height: 30px;
  --ke-logo-max-width: 110px;
  --ke-header-height: 82px;
}

@font-face {
  font-family: "KingEventYekan";
  src: url("../../fonts/Yekan.woff2") format("woff2"), url("../../fonts/Yekan.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

html { scroll-behavior: smooth; }
body.kingevent-modern-theme {
  font-family: "KingEventYekan", Tahoma, Arial, sans-serif;
  color: var(--ke-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(128, 100, 162, 0.10), transparent 26rem),
    radial-gradient(circle at 94% 18%, rgba(255, 122, 26, 0.07), transparent 24rem),
    var(--ke-bg);
  overflow-x: hidden;
}
body.kingevent-modern-theme.ke-drawer-open { overflow: hidden; }
body.kingevent-modern-theme a { transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
body.kingevent-modern-theme img { max-width: 100%; height: auto; }
body.kingevent-modern-theme .container { max-width: 1320px; }
body.kingevent-modern-theme input,
body.kingevent-modern-theme button,
body.kingevent-modern-theme select,
body.kingevent-modern-theme textarea { font-family: inherit; }

/* Header */
.ke-site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.admin-bar .ke-site-header { top: 32px; }
.ke-site-header.is-scrolled { box-shadow: 0 12px 40px rgba(32, 22, 43, .11); }
.ke-header-shell {
  position: relative;
  padding: 10px 0;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(88,67,112,.97), rgba(103,75,137,.94)),
    var(--ke-primary);
  border-bottom: 1px solid rgba(255,255,255,.13);
  isolation: isolate;
}
.ke-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% -20%, rgba(255,255,255,.22), transparent 34%), radial-gradient(circle at 80% 160%, rgba(255,122,26,.20), transparent 38%);
  pointer-events: none;
  z-index: -1;
}
.ke-header-main { min-height: 62px; display: grid; grid-template-columns: minmax(215px, .8fr) minmax(300px, 1.55fr) minmax(275px, .9fr); align-items: center; gap: 24px; }
.ke-brand-wrap, .ke-brand, .ke-header-actions, .ke-action-link { display: flex; align-items: center; }
.ke-brand { gap: 11px; color: #fff !important; text-decoration: none !important; min-width: 0; }
.ke-brand:hover { transform: translateY(-1px); }
.ke-brand-logo { display: inline-flex; width: auto; max-width: var(--ke-logo-max-width); height: auto; flex: 0 1 auto; align-items: center; justify-content: center; border-radius: 13px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); box-shadow: inset 0 1px rgba(255,255,255,.24); overflow: hidden; }
.ke-brand-logo .custom-logo-link { display: inline-flex; width: auto; height: auto; max-width: 100%; align-items: center; justify-content: center; padding: 4px 7px; }
.ke-brand-logo img.custom-logo { display: block; width: auto !important; height: auto !important; max-width: var(--ke-logo-max-width) !important; max-height: var(--ke-logo-max-height) !important; object-fit: contain !important; margin: 0 !important; }
.ke-brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ke-brand-copy strong { font-size: 20px; font-weight: 800; white-space: nowrap; }
.ke-brand-copy small { max-width: 210px; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-mobile-menu-trigger { display: none; margin-left: 8px; }
.ke-icon-button,
.ke-drawer-close { border: 0; cursor: pointer; }
.ke-icon-button { width: 42px; height: 42px; border-radius: 13px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.17); }

.ke-search-form { position: relative; display: flex; width: 100%; align-items: center; }
.ke-search-form input[type="search"] { width: 100%; height: 46px; padding: 0 18px 0 52px; color: #2f2638; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.5); border-radius: 15px; outline: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 24px rgba(34,22,47,.12); }
.ke-search-form input[type="search"]:focus { background: #fff; border-color: rgba(255,173,69,.75); box-shadow: 0 0 0 4px rgba(255,122,26,.13), 0 9px 28px rgba(34,22,47,.14); }
.ke-search-form button { position: absolute; left: 7px; top: 7px; width: 34px; height: 32px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--ke-accent), var(--ke-accent-2)); cursor: pointer; }

.ke-header-actions { justify-content: flex-end; gap: 7px; }
.ke-action-link { position: relative; min-height: 44px; gap: 8px; padding: 0 11px; color: rgba(255,255,255,.9) !important; background: transparent; border: 0; border-radius: 13px; text-decoration: none !important; cursor: pointer; font-size: 14px; }
.ke-action-link:hover { color: #fff !important; background: rgba(255,255,255,.11); transform: translateY(-1px); }
.ke-action-link i { font-size: 17px; }
.ke-badge, .ke-mobile-bottom-nav b { position: absolute; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; color: #fff; background: var(--ke-accent); border: 2px solid var(--ke-primary); border-radius: 20px; font-size: 10px; line-height: 1; }
.ke-action-link .ke-badge { top: 0; right: 0; }

.ke-nav-shell { min-height: 49px; background: rgba(255,255,255,.83); border-bottom: 1px solid var(--ke-border); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.ke-nav-container { display: grid; min-height: 49px; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.ke-category-trigger, .ke-nav-cta { display: inline-flex; min-height: 36px; align-items: center; gap: 9px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.ke-category-trigger { padding: 0 14px; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border: 0; cursor: pointer; box-shadow: 0 7px 20px rgba(88,67,112,.20); }
.ke-category-trigger:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(88,67,112,.25); }
.ke-nav-cta { padding: 0 13px; color: var(--ke-primary) !important; background: rgba(88,67,112,.07); text-decoration: none !important; }
.ke-nav-cta:hover { background: rgba(88,67,112,.13); }
.ke-desktop-nav ul { list-style: none; margin: 0; padding: 0; }
.ke-desktop-nav .ke-main-menu, .ke-desktop-nav > div > ul { display: flex; align-items: center; gap: 2px; }
.ke-desktop-nav .ke-main-menu > li, .ke-desktop-nav > div > ul > li { position: relative; margin: 0; padding: 0; }
.ke-desktop-nav .ke-main-menu > li > a, .ke-desktop-nav > div > ul > li > a { display: flex; min-height: 48px; align-items: center; padding: 0 11px; color: #3b3344; text-decoration: none; font-size: 13px; font-weight: 700; }
.ke-desktop-nav .ke-main-menu > li:hover > a,
.ke-desktop-nav .current-menu-item > a,
.ke-desktop-nav .current-menu-ancestor > a { color: var(--ke-primary); }
.ke-desktop-nav .menu-item-has-children > a::after { content: "\f107"; margin-right: 7px; font-family: "Font Awesome 5 Free"; font-size: 10px; font-weight: 900; opacity: .6; }
.ke-desktop-nav ul ul { position: absolute; top: calc(100% - 4px); right: 0; z-index: 100; visibility: hidden; width: 230px; padding: 9px; opacity: 0; background: rgba(255,255,255,.96); border: 1px solid var(--ke-border); border-radius: 16px; box-shadow: var(--ke-shadow); transform: translateY(8px); transition: .2s ease; backdrop-filter: blur(18px); }
.ke-desktop-nav li:hover > ul, .ke-desktop-nav li:focus-within > ul { visibility: visible; opacity: 1; transform: translateY(0); }
.ke-desktop-nav ul ul li { position: relative; display: block; width: 100%; }
.ke-desktop-nav ul ul a { display: block; padding: 9px 11px; color: #443b4e; border-radius: 10px; text-decoration: none; font-size: 13px; }
.ke-desktop-nav ul ul a:hover { color: var(--ke-primary); background: rgba(88,67,112,.08); }
.ke-desktop-nav ul ul ul { top: 0; right: calc(100% + 7px); }

/* Drawers */
.ke-drawer-backdrop { position: fixed; inset: 0; z-index: 10000; visibility: hidden; opacity: 0; background: rgba(24,16,32,.48); backdrop-filter: blur(5px); transition: .25s ease; }
.ke-drawer-backdrop.is-open { visibility: visible; opacity: 1; }
.ke-drawer { position: fixed; top: 0; bottom: 0; z-index: 10010; display: flex; visibility: hidden; width: min(430px, 93vw); flex-direction: column; opacity: 0; background: rgba(250,249,252,.97); box-shadow: 0 0 70px rgba(23,15,31,.28); transition: transform .32s cubic-bezier(.2,.75,.25,1), opacity .2s, visibility .32s; backdrop-filter: blur(26px) saturate(150%); }
.ke-menu-drawer { right: 0; transform: translateX(104%); }
.ke-cart-drawer { left: 0; transform: translateX(-104%); }
.ke-drawer.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
.ke-drawer-header { display: flex; min-height: 78px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 16px 20px; color: #fff; background: linear-gradient(130deg, var(--ke-primary), var(--ke-primary-2)); }
.ke-drawer-header > div { display: flex; flex-direction: column; }
.ke-drawer-header strong { font-size: 18px; }
.ke-drawer-header small { margin-top: 4px; color: rgba(255,255,255,.68); }
.ke-drawer-close { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: rgba(255,255,255,.14); border-radius: 13px; }
.ke-drawer-body { flex: 1 1 auto; padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.ke-drawer-footer { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ke-border); }
.ke-drawer-footer a { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; color: var(--ke-primary); background: rgba(88,67,112,.07); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 700; }
.ke-drawer-search { margin-bottom: 14px; }
.ke-drawer-search .search-form { display: flex; gap: 7px; }
.ke-drawer-search .search-field { min-width: 0; flex: 1; height: 44px; padding: 0 13px; background: #fff; border: 1px solid var(--ke-border); border-radius: 13px; }
.ke-drawer-search .search-submit { padding: 0 15px; color: #fff; background: var(--ke-primary); border: 0; border-radius: 13px; }
.ke-mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
.ke-mobile-navigation > ul > li { border-bottom: 1px solid rgba(88,67,112,.08); }
.ke-mobile-navigation li { position: relative; }
.ke-mobile-navigation a { display: flex; min-height: 45px; align-items: center; padding: 8px 3px; color: #332b3b; text-decoration: none; font-weight: 700; }
.ke-mobile-navigation .sub-menu { display: none; padding: 0 14px 9px 0; }
.ke-mobile-navigation .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
.ke-submenu-toggle { position: absolute; top: 7px; left: 0; display: grid; width: 34px; height: 34px; place-items: center; color: var(--ke-primary); background: rgba(88,67,112,.08); border: 0; border-radius: 10px; cursor: pointer; }
.ke-submenu-toggle i { transition: transform .2s; }
.is-submenu-open > .ke-submenu-toggle i { transform: rotate(180deg); }
.ke-drawer-section-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; color: var(--ke-muted); font-size: 12px; font-weight: 700; }
.ke-drawer-section-title::after { content: ""; height: 1px; flex: 1; background: var(--ke-border); }

/* Product categories shortcode */
.ke-glass-card, .product-categories-widget { background: rgba(255,255,255,.74); border: 1px solid var(--ke-border); border-radius: 18px; box-shadow: var(--ke-shadow-soft); }
.product-categories-widget { padding: 12px; }
.product-categories-widget .widget-title { margin: 0 0 9px; padding: 10px 12px; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 12px; font-size: 14px; text-align: right; }
.categories-list, .subcategory-list { list-style: none; margin: 0; padding: 0; }
.category-item + .category-item { border-top: 1px solid rgba(88,67,112,.08); }
.category-header { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 8px; }
.category-header .parent-link { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; color: #342c3d; text-decoration: none; font-size: 13px; font-weight: 700; }
.category-header img, .ke-category-placeholder { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; object-fit: cover; color: var(--ke-primary); background: rgba(88,67,112,.08); border-radius: 10px; }
.toggle-subcats { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ke-primary); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.toggle-subcats:hover { background: rgba(88,67,112,.08); }
.toggle-subcats i { transition: transform .2s; }
.toggle-subcats[aria-expanded="true"] i { transform: rotate(180deg); }
.subcategory-list { margin: 0 43px 8px 0; padding-right: 10px; border-right: 2px solid rgba(128,100,162,.22); }
.subcategory-list a { display: block; padding: 6px 7px; color: var(--ke-muted); border-radius: 8px; text-decoration: none; font-size: 12px; }
.subcategory-list a:hover { color: var(--ke-primary); background: rgba(88,67,112,.06); }

/* Mini cart */
.ke-cart-drawer-body { padding-bottom: 6px; }
.ke-mini-cart-content .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.ke-mini-cart-content .woocommerce-mini-cart-item { position: relative; display: grid; min-height: 88px; grid-template-columns: 68px 1fr; gap: 12px; margin-bottom: 10px; padding: 11px; background: #fff; border: 1px solid var(--ke-border); border-radius: 16px; box-shadow: 0 6px 20px rgba(40,28,53,.06); }
.ke-mini-cart-content .woocommerce-mini-cart-item > a:not(.remove) { color: #372f40; text-decoration: none; font-size: 13px; font-weight: 700; }
.ke-mini-cart-content .woocommerce-mini-cart-item img { float: right !important; width: 64px !important; height: 64px !important; margin: 0 0 0 10px !important; object-fit: cover; border-radius: 12px; }
.ke-mini-cart-content a.remove { position: absolute; top: 7px; left: 7px; display: grid !important; width: 24px; height: 24px; place-items: center; color: #c33 !important; background: #fff1f1; border-radius: 8px; line-height: 1; }
.ke-mini-cart-content .quantity { display: block; margin-top: 7px; color: var(--ke-muted); font-size: 12px; }
.ke-mini-cart-content .woocommerce-mini-cart__total,
.ke-mini-cart-content .woocommerce-mini-cart__buttons { display: none; }
.ke-cart-summary { flex: 0 0 auto; padding: 15px 18px calc(16px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--ke-border); box-shadow: 0 -10px 28px rgba(40,28,53,.06); }
.ke-cart-summary > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ke-cart-summary strong { color: var(--ke-primary); font-size: 16px; }
.ke-button { display: flex; min-height: 45px; align-items: center; justify-content: center; margin-top: 8px; border-radius: 13px; text-decoration: none !important; font-weight: 800; }
.ke-button-secondary { color: var(--ke-primary) !important; background: rgba(88,67,112,.08); }
.ke-button-primary { color: #fff !important; background: linear-gradient(135deg, var(--ke-accent), var(--ke-accent-2)); box-shadow: 0 10px 24px rgba(255,122,26,.22); }
.ke-empty-state, .woocommerce-mini-cart__empty-message { padding: 50px 20px; color: var(--ke-muted); text-align: center; }
.ke-empty-state i { display: block; margin-bottom: 12px; color: rgba(88,67,112,.25); font-size: 48px; }

/* Common content */
.kingevent-modern-theme #tp_content,
.kingevent-modern-theme main { position: relative; }
.kingevent-modern-theme .content-area,
.kingevent-modern-theme #theme-sidebar .widget,
.kingevent-modern-theme article.post,
.kingevent-modern-theme article.page { border-radius: var(--ke-radius); }
.kingevent-modern-theme .page-header,
.kingevent-modern-theme .entry-header { margin-bottom: 22px; }
.kingevent-modern-theme .page-title,
.kingevent-modern-theme .entry-title { color: var(--ke-ink); font-size: clamp(23px, 3vw, 36px); line-height: 1.35; letter-spacing: -.4px; }
.kingevent-modern-theme .entry-content { line-height: 2; }
.kingevent-modern-theme .widget { padding: 18px; background: var(--ke-surface); border: 1px solid var(--ke-border); border-radius: 18px; box-shadow: var(--ke-shadow-soft); backdrop-filter: blur(15px); }
.kingevent-modern-theme .widget + .widget { margin-top: 16px; }
.kingevent-modern-theme .widget-title { color: var(--ke-primary); font-size: 17px; }
.kingevent-modern-theme input[type="text"],
.kingevent-modern-theme input[type="email"],
.kingevent-modern-theme input[type="tel"],
.kingevent-modern-theme input[type="password"],
.kingevent-modern-theme input[type="number"],
.kingevent-modern-theme input[type="search"],
.kingevent-modern-theme select,
.kingevent-modern-theme textarea { max-width: 100%; color: var(--ke-ink); background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 13px; outline: 0; }
.kingevent-modern-theme input:focus,
.kingevent-modern-theme select:focus,
.kingevent-modern-theme textarea:focus { border-color: rgba(128,100,162,.55); box-shadow: 0 0 0 4px rgba(128,100,162,.10); }

/* WooCommerce */
.ke-woocommerce-page { padding: 35px 0 55px; }
.ke-woocommerce-content { min-width: 0; padding: clamp(15px, 2.2vw, 28px); background: rgba(255,255,255,.72); border: 1px solid var(--ke-border); border-radius: 26px; box-shadow: var(--ke-shadow); backdrop-filter: blur(18px); }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 20px; color: var(--ke-muted); font-size: 12px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ke-primary); }
.woocommerce ul.products { display: grid; gap: 20px; margin: 22px 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 11px 11px 15px; overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid var(--ke-border); border-radius: 20px; box-shadow: 0 9px 30px rgba(47,32,62,.08); transition: transform .25s ease, box-shadow .25s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 16px 42px rgba(47,32,62,.14); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; margin: 0 0 13px !important; object-fit: cover; border-radius: 15px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 48px; padding: 0 5px !important; color: #31293a; font-size: 15px !important; line-height: 1.65; }
.woocommerce ul.products li.product .price { padding: 0 5px; color: var(--ke-primary) !important; font-size: 14px !important; font-weight: 800; }
.woocommerce ul.products li.product .button { display: flex; min-height: 41px; align-items: center; justify-content: center; margin: 12px 4px 0 !important; color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)) !important; border-radius: 12px !important; }
.woocommerce span.onsale { top: 18px !important; right: 18px !important; left: auto !important; min-width: auto; min-height: auto; padding: 5px 10px; background: var(--ke-accent); border-radius: 10px; line-height: 1.5; }
.woocommerce .woocommerce-ordering select { min-height: 42px; padding: 0 12px; }
.woocommerce div.product { padding: clamp(10px, 2vw, 22px); background: rgba(255,255,255,.72); border-radius: 24px; }
.woocommerce div.product div.images img { border-radius: 20px; }
.woocommerce div.product .product_title { font-size: clamp(24px, 3vw, 36px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ke-primary); font-weight: 800; }
.woocommerce div.product form.cart .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit { color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)) !important; border-radius: 12px !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: rgba(255,255,255,.92); border-radius: 14px; box-shadow: var(--ke-shadow-soft); }
.woocommerce table.shop_table { overflow: hidden; background: rgba(255,255,255,.88); border-color: var(--ke-border); border-radius: 16px; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: rgba(88,67,112,.09); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 45px; padding: 9px 12px; }
.woocommerce-checkout #payment { background: rgba(88,67,112,.07); border-radius: 17px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px; background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 18px; box-shadow: var(--ke-shadow-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 11px 13px; color: #3d3447; border-radius: 11px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a, .woocommerce-account .woocommerce-MyAccount-navigation a:hover { color: #fff; background: var(--ke-primary); }

/* Footer */
.site-footer { position: relative; margin-top: 55px; color: rgba(255,255,255,.78); background: #241b2f; }
.ke-footer-widgets { padding: 55px 0 35px; background: radial-gradient(circle at 15% 10%, rgba(128,100,162,.28), transparent 30rem), linear-gradient(145deg, #2c2139, #201827); }
.ke-footer-grid { display: grid; gap: 22px; }
.ke-footer-cols-1 { grid-template-columns: 1fr; }
.ke-footer-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ke-footer-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ke-footer-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ke-footer-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.ke-footer-column .widget { padding: 0; color: rgba(255,255,255,.68); background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.ke-footer-column .widget-title { color: #fff; font-size: 16px; }
.ke-footer-column a { color: rgba(255,255,255,.72); text-decoration: none; }
.ke-footer-column a:hover { color: var(--ke-accent-2); }
.site-info { padding: 17px 0; background: rgba(9,6,12,.28); border-top: 1px solid rgba(255,255,255,.07); }
.ke-site-info-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ke-site-info-inner p { margin: 0; }
.ke-site-info-inner a { color: rgba(255,255,255,.65); text-decoration: none; }
#return-to-top { position: fixed; right: 22px; bottom: 24px; z-index: 9900; display: none; width: 44px; height: 44px; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 14px; box-shadow: var(--ke-shadow-soft); text-align: center; line-height: 44px; }

/* Mobile bottom navigation */
.ke-mobile-bottom-nav { display: none; }

@media (max-width: 1199px) {
  .ke-header-main { grid-template-columns: minmax(190px,.8fr) minmax(260px,1.25fr) auto; gap: 14px; }
  .ke-action-label { display: none; }
  .ke-action-link { width: 42px; justify-content: center; padding: 0; }
  .ke-desktop-nav .ke-main-menu > li > a, .ke-desktop-nav > div > ul > li > a { padding: 0 8px; font-size: 12px; }
  .ke-footer-cols-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 991px) {
  .admin-bar .ke-site-header { top: 46px; }
  .ke-site-header { position: sticky; }
  .ke-header-main { grid-template-columns: auto 1fr auto; min-height: 56px; }
  .ke-mobile-menu-trigger { display: grid; place-items: center; }
  .ke-brand-copy small, .ke-wishlist-link, .ke-nav-shell { display: none; }
  .ke-search-wrap { grid-column: 1 / -1; grid-row: 2; padding-bottom: 2px; }
  .ke-header-actions { gap: 2px; }
  .ke-header-shell { padding: 8px 0 10px; }
  .ke-header-main { row-gap: 8px; }
  .ke-brand-logo { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .ke-brand-copy strong { font-size: 17px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ke-footer-cols-4, .ke-footer-cols-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ke-mobile-bottom-nav { position: fixed; right: 10px; bottom: 9px; left: 10px; z-index: 9980; display: grid; height: 64px; grid-template-columns: repeat(var(--ke-mobile-item-count, 5), minmax(0, 1fr)); align-items: center; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.89); border: 1px solid rgba(88,67,112,.15); border-radius: 20px; box-shadow: 0 15px 45px rgba(31,21,42,.24); backdrop-filter: blur(22px) saturate(160%); }
  .ke-mobile-bottom-nav a, .ke-mobile-bottom-nav button { position: relative; display: flex; height: 50px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; color: #504658; background: transparent; border: 0; text-decoration: none; font-size: 10px; cursor: pointer; }
  .ke-mobile-bottom-nav i { font-size: 17px; }
  .ke-mobile-bottom-nav .ke-mobile-main-action { width: 54px; height: 54px; justify-self: center; margin-top: -25px; color: #fff; background: linear-gradient(135deg, var(--ke-accent), var(--ke-accent-2)); border: 5px solid rgba(255,255,255,.95); border-radius: 18px; box-shadow: 0 9px 24px rgba(255,122,26,.30); }
  .ke-mobile-bottom-nav .ke-mobile-main-action span { display: block; max-width: 48px; overflow: hidden; color: inherit; font-size: 8px; font-weight: 800; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .ke-mobile-bottom-nav b { top: 1px; right: calc(50% - 18px); border-color: #fff; }
  body.kingevent-modern-theme { padding-bottom: 83px; }
  #return-to-top { right: 16px; bottom: 88px; }
}

@media (max-width: 767px) {
  .ke-header-container { padding-right: 10px; padding-left: 10px; }
  .ke-header-main { grid-template-columns: minmax(0,1fr) auto; }
  .ke-brand-wrap { min-width: 0; }
  .ke-brand-copy { max-width: 145px; }
  .ke-brand-copy strong { overflow: hidden; text-overflow: ellipsis; }
  .ke-header-actions .ke-action-link:not(.ke-cart-trigger) { display: none; }
  .ke-search-form input[type="search"] { height: 42px; font-size: 13px; }
  .ke-search-form button { top: 5px; }
  .ke-drawer { width: min(400px, 96vw); }
  .ke-drawer-header { min-height: 70px; padding: 13px 16px; }
  .ke-drawer-body { padding: 14px; }
  .kingevent-modern-theme .page-title, .kingevent-modern-theme .entry-title { font-size: 24px; }
  .ke-woocommerce-page { padding: 20px 0 35px; }
  .ke-woocommerce-content { padding: 12px; border-radius: 18px; }
  .woocommerce ul.products { gap: 11px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 7px 7px 11px; border-radius: 15px; }
  .woocommerce ul.products li.product a img { margin-bottom: 8px !important; border-radius: 11px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 42px; padding: 0 2px !important; font-size: 12px !important; }
  .woocommerce ul.products li.product .price { padding: 0 2px; font-size: 12px !important; }
  .woocommerce ul.products li.product .button { min-height: 36px; margin: 8px 1px 0 !important; padding: 7px 4px !important; font-size: 11px !important; }
  .ke-footer-widgets { padding: 38px 0 25px; }
  .ke-footer-grid, .ke-footer-cols-2, .ke-footer-cols-3, .ke-footer-cols-4, .ke-footer-cols-5 { grid-template-columns: 1fr; }
  .ke-site-info-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 380px) {
  .ke-brand-copy strong { font-size: 15px; }
  .ke-mobile-menu-trigger { width: 38px; height: 38px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

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

/* ==============================================================
 * KingEvent layout correction v2
 * Removes the retired 284px fixed-sidebar offset and keeps the
 * service-heavy primary menu inside the right off-canvas panel.
 * ============================================================== */

/* The old theme reserved 284px for a fixed sidebar. That sidebar no longer
   exists in the modern header, therefore the whole website must reclaim it. */
body.kingevent-modern-theme .outside-area,
html[dir="rtl"] body.kingevent-modern-theme .outside-area,
html[dir="ltr"] body.kingevent-modern-theme .outside-area {
  width: 100% !important;
  height: auto !important;
  min-height: 100vh;
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow: visible !important;
  inset: auto !important;
}
body.kingevent-modern-theme .roll-box {
  width: 100% !important;
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
}
body.kingevent-modern-theme .headerbox { display: none !important; }
body.kingevent-modern-theme #tp_content { width: 100%; max-width: none; }
body.kingevent-modern-theme .ke-page-container { width: 100%; }
body.kingevent-modern-theme .ke-page-content-full,
body.kingevent-modern-theme .ke-standard-page #primary {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
}
body.kingevent-modern-theme .ke-standard-page #theme-sidebar { display: none !important; }

/* Keep the logo compact even when an old Customizer value is very large. */
.ke-brand-logo {
  width: auto !important;
  max-width: var(--ke-logo-max-width) !important;
  height: auto !important;
  flex: 0 1 auto !important;
}
.ke-brand-logo .custom-logo-link { width: auto !important; height: auto !important; padding: 4px 7px; }
.ke-brand-logo img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: var(--ke-logo-max-width) !important;
  max-height: var(--ke-logo-max-height) !important;
  object-fit: contain !important;
}
.ke-brand-copy strong { font-size: 17px; }
.ke-brand-copy small { max-width: 180px; }

/* Compact bar: no long horizontal services menu in the centre. */
.ke-nav-shell {
  min-height: 64px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 28px rgba(45,31,63,.06);
}
.ke-nav-container {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(290px, 430px) 1fr auto;
  align-items: center;
  gap: 20px;
}
.ke-services-trigger {
  position: relative;
  display: grid;
  min-height: 48px;
  grid-template-columns: 38px minmax(0,1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 5px 9px 5px 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2));
  border: 0;
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(88,67,112,.24);
  cursor: pointer;
  text-align: right;
  overflow: hidden;
}
.ke-services-trigger::after {
  content: "";
  position: absolute;
  top: -40px;
  left: -70px;
  width: 80px;
  height: 140px;
  background: rgba(255,255,255,.17);
  transform: rotate(25deg);
  transition: transform .45s ease;
}
.ke-services-trigger:hover::after { transform: translateX(235px) rotate(25deg); }
.ke-services-trigger:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(88,67,112,.3); }
.ke-services-trigger-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  font-size: 16px;
}
.ke-services-trigger-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.ke-services-trigger-copy strong { font-size: 14px; font-weight: 900; }
.ke-services-trigger-copy small { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-services-trigger-arrow { display: grid; place-items: center; font-size: 11px; opacity: .72; }
.ke-nav-message { display: flex; align-items: center; gap: 8px; color: var(--ke-muted); font-size: 12px; }
.ke-nav-message i { color: var(--ke-accent); }
.ke-nav-cta { min-height: 42px; padding: 0 16px; white-space: nowrap; }

/* Wider, calmer service drawer for long menus. */
.ke-menu-drawer { width: min(520px, 96vw); }
.ke-menu-drawer .ke-drawer-header { min-height: 86px; }
.ke-services-drawer-intro {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(88,67,112,.09), rgba(255,122,26,.06));
  border: 1px solid rgba(88,67,112,.11);
  border-radius: 16px;
}
.ke-services-drawer-intro-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2));
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(88,67,112,.18);
}
.ke-services-drawer-intro strong { color: var(--ke-primary); font-size: 14px; }
.ke-services-drawer-intro p { margin: 4px 0 0; color: var(--ke-muted); font-size: 11px; line-height: 1.7; }

/* Service groups are cards and submenus stay collapsed until requested. */
.ke-services-navigation > ul { display: grid; gap: 8px; }
.ke-services-navigation > ul > li {
  overflow: hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(88,67,112,.10);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(45,31,63,.045);
}
.ke-services-navigation > ul > li > a {
  min-height: 50px;
  padding: 10px 14px;
  font-size: 13px;
}
.ke-services-navigation .sub-menu {
  margin: 0 11px 11px;
  padding: 7px 10px 7px 0;
  background: rgba(88,67,112,.045);
  border-right: 2px solid rgba(128,100,162,.24);
  border-radius: 10px;
}
.ke-services-navigation .sub-menu a {
  min-height: 38px;
  padding: 7px 9px 7px 38px;
  color: #5c5365;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}
.ke-services-navigation .sub-menu a:hover { color: var(--ke-primary); background: rgba(255,255,255,.75); }
.ke-services-navigation .ke-submenu-toggle { top: 8px; left: 9px; }

@media (max-width: 1199px) {
  .ke-nav-container { grid-template-columns: minmax(280px, 390px) 1fr auto; gap: 13px; }
  .ke-nav-message span { display: none; }
}

@media (max-width: 991px) {
  /* Keep the service trigger visible on mobile; only the old horizontal menu is gone. */
  .ke-nav-shell { display: block !important; min-height: 58px; }
  .ke-nav-container { display: grid; min-height: 58px; grid-template-columns: 1fr auto; gap: 8px; padding-top: 5px; padding-bottom: 5px; }
  .ke-services-trigger { min-height: 46px; grid-template-columns: 36px minmax(0,1fr) 20px; }
  .ke-services-trigger-icon { width: 36px; height: 36px; }
  .ke-services-trigger-copy small { display: block; }
  .ke-nav-message { display: none; }
  .ke-nav-cta { min-height: 44px; width: 44px; justify-content: center; padding: 0; }
  .ke-nav-cta span { display: none; }
  .ke-brand-logo { width: auto !important; max-width: min(var(--ke-logo-max-width), 125px) !important; height: auto !important; flex-basis: auto !important; }
  .ke-brand-logo img.custom-logo { width: auto !important; height: auto !important; max-width: min(var(--ke-logo-max-width), 125px) !important; max-height: 34px !important; }
}

@media (max-width: 575px) {
  .ke-nav-container { padding-right: 10px; padding-left: 10px; }
  .ke-services-trigger-copy strong { font-size: 12px; }
  .ke-services-trigger-copy small { font-size: 9px; }
  .ke-menu-drawer { width: 96vw; }
  .ke-services-drawer-intro { grid-template-columns: 42px 1fr; padding: 10px; }
  .ke-services-drawer-intro-icon { width: 42px; height: 42px; }
}


/* Drawer accordion: services and WooCommerce shop categories. */
.ke-drawer-accordion { display: grid; gap: 10px; }
.ke-drawer-accordion-item {
  overflow: hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(88,67,112,.11);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(45,31,63,.045);
}
.ke-drawer-accordion-toggle {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ke-primary);
  background: linear-gradient(135deg, rgba(88,67,112,.08), rgba(255,122,26,.035));
  border: 0;
  cursor: pointer;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}
.ke-drawer-accordion-toggle > span { display: flex; align-items: center; gap: 9px; }
.ke-drawer-accordion-toggle > span i { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 10px; }
.ke-accordion-arrow { transition: transform .2s ease; }
.ke-drawer-accordion-toggle[aria-expanded="true"] .ke-accordion-arrow { transform: rotate(180deg); }
.ke-drawer-accordion-content { padding: 9px; border-top: 1px solid rgba(88,67,112,.08); }
.ke-drawer-accordion-content[hidden] { display: none !important; }

.ke-shop-all-link {
  display: grid;
  min-height: 58px;
  grid-template-columns: 38px minmax(0,1fr) 20px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2));
  border-radius: 13px;
  text-decoration: none !important;
}
.ke-shop-all-link > i:first-child { display: grid; width: 38px; height: 38px; place-items: center; background: rgba(255,255,255,.14); border-radius: 10px; }
.ke-shop-all-link span { display: flex; min-width: 0; flex-direction: column; }
.ke-shop-all-link strong { color: #fff; font-size: 13px; }
.ke-shop-all-link small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 10px; }
.ke-shop-category-title { margin: 3px 4px 7px; color: var(--ke-muted); font-size: 11px; font-weight: 800; }
.ke-shop-category-tree,
.ke-shop-category-tree ul { list-style: none; margin: 0; padding: 0; }
.ke-shop-category-tree li { position: relative; }
.ke-shop-category-tree > li + li { border-top: 1px solid rgba(88,67,112,.07); }
.ke-shop-category-tree a { display: flex; min-height: 42px; align-items: center; padding: 7px 9px 7px 42px; color: #3d3446; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 700; }
.ke-shop-category-tree a:hover { color: var(--ke-primary); background: rgba(88,67,112,.06); }
.ke-shop-category-tree .children { display: none; margin: 0 12px 7px 0; padding: 4px 9px 4px 0; background: rgba(88,67,112,.035); border-right: 2px solid rgba(128,100,162,.2); border-radius: 9px; }
.ke-shop-category-tree .is-category-open > .children { display: block; }
.ke-shop-category-toggle { position: absolute; top: 5px; left: 5px; display: grid; width: 32px; height: 32px; place-items: center; color: var(--ke-primary); background: rgba(88,67,112,.08); border: 0; border-radius: 9px; cursor: pointer; }
.ke-shop-category-toggle i { transition: transform .2s ease; }
.ke-shop-category-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Footer is intentionally fixed to five widget columns on wide screens. */
.ke-footer-grid.ke-footer-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1199px) {
  .ke-footer-grid.ke-footer-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .ke-footer-grid.ke-footer-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .ke-footer-grid.ke-footer-cols-5 { grid-template-columns: 1fr; }
}


/* ==============================================================
 * KingEvent revision v4
 * Compact automatic logo, icon-only drawer search, category
 * thumbnails and configurable multi-button consultation area.
 * ============================================================== */

/* The WordPress custom logo keeps its natural ratio and can never stretch the header. */
.ke-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.ke-brand-logo {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  max-width: var(--ke-logo-max-width) !important;
  max-height: var(--ke-logo-max-height) !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  line-height: 0;
}
.ke-brand-logo .custom-logo-link {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: var(--ke-logo-max-width) !important;
  max-height: var(--ke-logo-max-height) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}
.ke-brand-logo img.custom-logo,
.ke-brand-logo .custom-logo-link img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: var(--ke-logo-max-width) !important;
  max-height: var(--ke-logo-max-height) !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ke-brand-copy {
  color: #fff !important;
  text-decoration: none !important;
}
.ke-brand-copy:hover { color: #fff !important; transform: translateY(-1px); }

/* Zero to three Customizer-managed action buttons. */
.ke-nav-ctas {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.ke-nav-ctas.is-empty { display: none; }
.ke-nav-ctas .ke-nav-cta { flex: 0 0 auto; }
.ke-drawer-footer.has-many-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ke-drawer-footer.has-many-actions a { min-width: 0; padding: 7px 8px; text-align: center; }

/* Drawer search mirrors the header: the submit control is only a search icon. */
.ke-drawer-search .ke-drawer-search-form {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}
.ke-drawer-search .ke-drawer-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px 0 52px;
  color: #2f2638;
  background: #fff;
  border: 1px solid var(--ke-border);
  border-radius: 13px;
  outline: 0;
  box-shadow: 0 5px 16px rgba(45,31,63,.05);
}
.ke-drawer-search .ke-drawer-search-form input[type="search"]:focus {
  border-color: rgba(128,100,162,.55);
  box-shadow: 0 0 0 4px rgba(88,67,112,.08);
}
.ke-drawer-search .ke-drawer-search-form button {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--ke-accent), var(--ke-accent-2));
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

/* WooCommerce categories with their own category thumbnails. */
.ke-shop-category-tree a {
  display: grid;
  min-height: 52px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 9px 6px 43px;
}
.ke-shop-cat-thumb {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  color: var(--ke-primary);
  background: linear-gradient(135deg, rgba(88,67,112,.10), rgba(255,122,26,.08));
  border: 1px solid rgba(88,67,112,.10);
  border-radius: 11px;
}
.ke-shop-cat-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
}
.ke-shop-cat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}
.ke-shop-cat-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ke-shop-cat-copy small {
  margin-top: 3px;
  color: var(--ke-muted);
  font-size: 9px;
  font-weight: 500;
}
.ke-shop-category-tree .children a {
  min-height: 44px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding-top: 5px;
  padding-bottom: 5px;
}
.ke-shop-category-tree .children .ke-shop-cat-thumb {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.ke-shop-category-toggle { top: 10px; }

@media (max-width: 1199px) {
  .ke-nav-ctas { gap: 5px; }
  .ke-nav-ctas .ke-nav-cta { padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 991px) {
  .ke-brand-logo,
  .ke-brand-logo .custom-logo-link,
  .ke-brand-logo img.custom-logo,
  .ke-brand-logo .custom-logo-link img {
    width: auto !important;
    height: auto !important;
    max-width: min(var(--ke-logo-max-width), 100px) !important;
    max-height: min(var(--ke-logo-max-height), 28px) !important;
    flex-basis: auto !important;
  }
  .ke-nav-ctas { display: flex; }
  .ke-nav-ctas .ke-nav-cta {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }
  .ke-nav-ctas .ke-nav-cta span { display: none; }
}

@media (max-width: 575px) {
  .ke-brand-logo,
  .ke-brand-logo .custom-logo-link,
  .ke-brand-logo img.custom-logo,
  .ke-brand-logo .custom-logo-link img {
    max-width: 88px !important;
    max-height: 26px !important;
  }
  .ke-nav-ctas .ke-nav-cta:nth-child(n+2) { display: none; }
}

/* ==========================================================
 * KingEvent v5 — Elementor / WooCommerce responsive grids
 * Respect the column count selected in Product Categories.
 * ========================================================== */

/* Desktop: follow WooCommerce's columns-X class generated by Elementor. */
@media (min-width: 1025px) {
  .woocommerce ul.products.columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-7 { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-8 { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}

/* Tablet: keep one- and two-column choices, and cap dense layouts at 3. */
@media (min-width: 768px) and (max-width: 1024px) {
  .woocommerce ul.products.columns-1 { grid-template-columns: 1fr !important; }
  .woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6,
  .woocommerce ul.products.columns-7,
  .woocommerce ul.products.columns-8 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Mobile: two compact cards per row, except explicit single-column layouts. */
@media (max-width: 767px) {
  .woocommerce ul.products.columns-1 { grid-template-columns: 1fr !important; }
  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6,
  .woocommerce ul.products.columns-7,
  .woocommerce ul.products.columns-8 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 420px) {
  .woocommerce ul.products[class*="columns-"] { grid-template-columns: 1fr !important; }
}

/* Elementor Product Categories: compact styling without forcing its columns. */
.elementor-widget-wc-categories .woocommerce ul.products,
.elementor-widget-woocommerce-product-categories .woocommerce ul.products {
  gap: clamp(10px, 1.5vw, 18px);
}

.elementor-widget-wc-categories .woocommerce ul.products li.product-category,
.elementor-widget-woocommerce-product-categories .woocommerce ul.products li.product-category {
  min-width: 0;
  padding: clamp(7px, 1vw, 11px) clamp(7px, 1vw, 11px) 12px;
  border-radius: 16px;
}

.elementor-widget-wc-categories .woocommerce ul.products li.product-category a img,
.elementor-widget-woocommerce-product-categories .woocommerce ul.products li.product-category a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 8px !important;
  object-fit: cover;
  border-radius: 12px;
}

.elementor-widget-wc-categories .woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.elementor-widget-woocommerce-product-categories .woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  min-height: 0;
  margin: 0;
  padding: 3px 3px 0 !important;
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.6;
}

.elementor-widget-wc-categories .woocommerce ul.products li.product-category .count,
.elementor-widget-woocommerce-product-categories .woocommerce ul.products li.product-category .count {
  display: inline-block;
  margin-inline-start: 3px;
  padding: 1px 5px;
  background: rgba(88, 67, 112, .08);
  border-radius: 7px;
  font-size: .78em;
}



/* KingEvent v6: managed mobile navigation. */
@media (max-width: 991px) {
  body.kingevent-modern-theme.ke-mobile-nav-disabled { padding-bottom: 0; }
  .ke-mobile-bottom-nav { min-width: 0; }
  .ke-mobile-bottom-nav > a,
  .ke-mobile-bottom-nav > button { min-width: 0; }
}
