/*
 * KingEvent shop layer
 * Same glass look as kingevent-modern.css; adds the native (non-Elementor)
 * shop / product layout, the sub-category strip and the sale badge.
 */

/* ---------- Layout ---------- */
.ke-shop-layout { display: block; }
.ke-shop-layout.has-sidebar {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: 22px;
  align-items: start;
}
.ke-shop-layout.has-sidebar > .ke-shop-sidebar { grid-area: side; }
.ke-shop-layout.has-sidebar > .ke-woocommerce-content { grid-area: main; }

.ke-shop-sidebar { position: sticky; top: calc(var(--ke-header-height, 82px) + 54px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.admin-bar .ke-shop-sidebar { top: calc(var(--ke-header-height, 82px) + 86px); }
.ke-shop-sidebar .product-categories-widget { max-height: calc(100vh - 190px); overflow: auto; overscroll-behavior: contain; }
.ke-shop-sidebar .widget { float: none; width: 100%; margin: 0; padding: 14px; background: rgba(255,255,255,.74); border: 1px solid var(--ke-border); border-radius: 18px; box-shadow: var(--ke-shadow-soft); text-align: right; }
.ke-shop-sidebar .widget .widget-title { margin: 0 0 10px; padding: 10px 12px; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 12px; font-size: 14px; }
.ke-shop-sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.ke-shop-sidebar .widget li { padding: 6px 2px; }
.ke-shop-sidebar .widget a { color: var(--ke-ink); text-decoration: none; }
.ke-shop-sidebar .widget a:hover { color: var(--ke-primary); }
.ke-shop-sidebar .price_slider_wrapper .button { min-height: 38px; }

.ke-shop-sidebar-toggle { display: none; }

/* Current category in the sidebar widget */
.category-item.is-current > .category-header .parent-link,
.subcategory-list li.is-current > a { color: var(--ke-primary); font-weight: 800; }
.subcategory-list li.is-current > a { background: rgba(88,67,112,.09); }
.category-item.is-current > .category-header { background: rgba(88,67,112,.05); border-radius: 12px; }
.ke-cat-count { margin-right: auto; padding: 1px 7px; color: var(--ke-muted); background: rgba(88,67,112,.08); border-radius: 20px; font-size: 10px; font-weight: 700; }
.subcategory-list .ke-subcategory-deep { margin: 2px 12px 2px 0; padding-right: 9px; border-right: 2px solid rgba(128,100,162,.16); list-style: none; }

/* ---------- Page header inside the shop ---------- */
.ke-shop-archive .woocommerce-products-header { margin-bottom: 4px; }
.ke-shop-archive .woocommerce-products-header__title,
.ke-shop-archive .page-title { margin: 0 0 12px; color: var(--ke-ink); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.ke-shop-archive .term-description,
.ke-shop-archive .page-description { margin-bottom: 14px; color: var(--ke-muted); line-height: 1.9; }
.ke-shop-archive .woocommerce-notices-wrapper:empty { display: none; }
.ke-shop-archive .woocommerce-result-count { float: none; margin: 0; color: var(--ke-muted); font-size: 13px; }
.ke-shop-archive .woocommerce-ordering { float: none; margin: 0; }
.ke-shop-archive .woocommerce-products-header + .woocommerce-notices-wrapper + .woocommerce-result-count { }
.ke-shop-archive .woocommerce-pagination { margin-top: 26px; text-align: center; }
.ke-shop-archive .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.ke-shop-archive .woocommerce-pagination ul.page-numbers li { margin: 0; overflow: visible; border: 0; }
.ke-shop-archive .woocommerce-pagination .page-numbers a,
.ke-shop-archive .woocommerce-pagination .page-numbers span { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; color: var(--ke-primary); background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 12px; text-decoration: none; }
.ke-shop-archive .woocommerce-pagination .page-numbers .current,
.ke-shop-archive .woocommerce-pagination .page-numbers a:hover { color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-color: transparent; }

/* result count + ordering on one row */
.ke-shop-archive .ke-woocommerce-content .woocommerce-result-count,
.ke-shop-archive .ke-woocommerce-content .woocommerce-ordering { display: inline-block; vertical-align: middle; }
.ke-shop-archive .ke-woocommerce-content .woocommerce-ordering { float: left; }
.ke-shop-archive .ke-woocommerce-content ul.products { clear: both; }

/* ---------- Sub-category strip (Snapp-style scroller) ---------- */
.ke-subcats { margin: 6px 0 20px; padding: 14px 14px 12px; direction: rtl; text-align: right; background: rgba(255,255,255,.78); border: 1px solid var(--ke-border); border-radius: 20px; box-shadow: var(--ke-shadow-soft); }
.ke-subcats-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--ke-ink); font-size: 14px; }
.ke-subcats-head::before { content: ""; width: 4px; height: 18px; background: linear-gradient(180deg, var(--ke-accent), var(--ke-accent-2)); border-radius: 4px; }
.ke-subcats-viewport { position: relative; }
.ke-subcats-list { display: flex; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 3px 2px 8px; overflow-x: auto; overflow-y: hidden; list-style: none; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.ke-subcats-list.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ke-subcats-list::-webkit-scrollbar { display: none; }
.ke-subcats-list li { flex: 0 0 auto; margin: 0; padding: 0; scroll-snap-align: start; }
.ke-subcat { display: flex; align-items: center; gap: 10px; min-width: 175px; padding: 8px 10px 8px 16px; color: var(--ke-ink) !important; background: rgba(255,255,255,.96); border: 1px solid var(--ke-border); border-radius: 16px; text-decoration: none !important; text-align: right; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; -webkit-user-drag: none; }
.ke-subcat:hover { border-color: rgba(128,100,162,.45); box-shadow: 0 10px 26px rgba(47,32,62,.12); transform: translateY(-2px); }
.ke-subcat.is-active { color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-color: transparent; box-shadow: 0 10px 26px rgba(88,67,112,.28); }
.ke-subcat.is-active small { color: rgba(255,255,255,.78); }
.ke-subcat.is-active .ke-subcat-thumb { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.ke-subcat.is-active .ke-category-placeholder { color: #fff; background: transparent; }
.ke-subcat-thumb { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; overflow: hidden; background: rgba(88,67,112,.08); border: 1px solid rgba(88,67,112,.08); border-radius: 14px; }
.ke-subcat-thumb img { width: 100%; height: 100%; margin: 0 !important; object-fit: cover; border-radius: 0 !important; pointer-events: none; }
.ke-subcat-thumb .ke-category-placeholder { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 0; font-size: 18px; }
.ke-subcat-name { display: block; font-size: 13px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.ke-subcat small { display: block; margin-top: 2px; color: var(--ke-muted); font-size: 11px; white-space: nowrap; }
.ke-subcat > .ke-subcat-name { flex: 1 1 auto; }
.ke-subcat-all { min-width: 150px; }

.ke-subcats-arrow { position: absolute; top: calc(50% - 5px); z-index: 3; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: var(--ke-primary); background: rgba(255,255,255,.96); border: 1px solid var(--ke-border); border-radius: 50%; box-shadow: 0 8px 22px rgba(47,32,62,.18); cursor: pointer; transform: translateY(-50%); transition: background .2s, color .2s, transform .2s, opacity .2s; }
.ke-subcats-arrow[hidden] { display: none; }
.ke-subcats-arrow:hover { color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-color: transparent; transform: translateY(-50%) scale(1.07); }
.ke-subcats-arrow:focus-visible { outline: 3px solid rgba(255,122,26,.45); outline-offset: 2px; }
.ke-subcats-arrow.is-right { right: -6px; }
.ke-subcats-arrow.is-left { left: -6px; }
.ke-subcats-viewport.can-scroll-right::before,
.ke-subcats-viewport.can-scroll-left::after { content: ""; position: absolute; top: 0; bottom: 8px; z-index: 2; width: 46px; pointer-events: none; }
.ke-subcats-viewport.can-scroll-right::before { right: 0; background: linear-gradient(270deg, rgba(255,255,255,.92), transparent); }
.ke-subcats-viewport.can-scroll-left::after { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.92), transparent); }

/* ---------- Product cards: stable positioning for badges ---------- */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .woocommerce-loop-category__title { padding: 0 5px; font-size: 14px; }
.woocommerce ul.products li.product-category a { display: block; text-align: center; }

/* ---------- Sale badge: same shape as the out-of-stock badge, orange ---------- */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
  position: absolute;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 9;
  display: inline-block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  color: #ea6a00;
  background: transparent;
  border: 2px solid #ea6a00;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.woocommerce div.product { position: relative; }
.woocommerce div.product span.onsale {
  top: 20px !important;
  right: 20px !important;
  z-index: 99;
  padding: 10px 20px;
  border-radius: 40px;
  letter-spacing: .5px;
}
/* never show both badges */
.woocommerce ul.products li.product.outofstock span.onsale,
.woocommerce div.product.outofstock span.onsale { display: none; }

/* ---------- Single product (native layout) ---------- */
.ke-shop-single .ke-woocommerce-content { padding: clamp(14px, 2.2vw, 28px); }
.ke-shop-single .woocommerce-breadcrumb { margin-bottom: 16px; }
.ke-shop-single div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery summary" "tabs tabs" "upsell upsell" "related related"; gap: 26px 34px; align-items: start; padding: 0; background: transparent; }
.ke-shop-single div.product > .woocommerce-product-gallery,
.ke-shop-single div.product > div.images { grid-area: gallery; float: none !important; width: 100% !important; margin: 0 !important; position: relative; }
.ke-shop-single div.product > .summary { grid-area: summary; float: none !important; width: 100% !important; margin: 0 !important; padding: clamp(16px, 2.2vw, 26px); background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 22px; box-shadow: var(--ke-shadow-soft); }
.ke-shop-single div.product > .woocommerce-tabs { grid-area: tabs; float: none; width: 100%; clear: both; }
.ke-shop-single div.product > .upsells { grid-area: upsell; }
.ke-shop-single div.product > .related { grid-area: related; }
.ke-shop-single div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

.ke-shop-single .woocommerce-product-gallery__wrapper { overflow: hidden; background: #fff; border: 1px solid var(--ke-border); border-radius: 22px; }
.ke-shop-single .woocommerce-product-gallery__image img { width: 100%; border-radius: 0; }
.ke-shop-single .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.ke-shop-single .flex-control-thumbs li { float: none; width: auto; margin: 0; padding: 0 !important; border: 0 !important; }
.ke-shop-single .flex-control-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent; border-radius: 13px; opacity: .65; cursor: pointer; transition: opacity .2s, border-color .2s; }
.ke-shop-single .flex-control-thumbs img.flex-active,
.ke-shop-single .flex-control-thumbs img:hover { border-color: var(--ke-primary-2); opacity: 1; }
.ke-shop-single .woocommerce-product-gallery__trigger { top: 14px; right: auto; left: 14px; z-index: 5; }

.ke-shop-single .summary .product_title { margin: 0 0 10px; color: var(--ke-ink); font-size: clamp(21px, 2.6vw, 30px); font-weight: 800; line-height: 1.5; }
.ke-shop-single .summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ke-shop-single .summary p.price,
.ke-shop-single .summary span.price { display: block; margin: 10px 0 14px; color: var(--ke-primary); font-size: 24px; font-weight: 800; }
.ke-shop-single .summary .price del { color: var(--ke-muted); font-size: 15px; font-weight: 500; opacity: .75; }
.ke-shop-single .summary .price ins { text-decoration: none; }
.ke-shop-single .woocommerce-product-details__short-description { margin-bottom: 16px; color: #4a4254; line-height: 2; }
.ke-shop-single form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 0; border-top: 1px dashed var(--ke-border); border-bottom: 1px dashed var(--ke-border); }
.ke-shop-single form.cart .quantity input.qty { width: 74px; height: 46px; text-align: center; border: 1px solid var(--ke-border); border-radius: 12px; }
.ke-shop-single form.cart .single_add_to_cart_button { flex: 1 1 190px; min-height: 48px; font-size: 15px; font-weight: 800; }
.ke-shop-single form.variations_form { display: block; }
.ke-shop-single table.variations { width: 100%; margin-bottom: 12px; }
.ke-shop-single table.variations td, .ke-shop-single table.variations th { display: block; padding: 4px 0; text-align: right; }
.ke-shop-single table.variations select { width: 100%; min-height: 44px; border: 1px solid var(--ke-border); border-radius: 12px; }
.ke-shop-single .single_variation_wrap { width: 100%; }
.ke-shop-single .product_meta { display: grid; gap: 6px; color: var(--ke-muted); font-size: 13px; }
.ke-shop-single .product_meta a { color: var(--ke-primary); }

.ke-shop-single .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; overflow: visible; border: 0; }
.ke-shop-single .woocommerce-tabs ul.tabs::before,
.ke-shop-single .woocommerce-tabs ul.tabs::after { display: none; }
.ke-shop-single .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 13px; }
.ke-shop-single .woocommerce-tabs ul.tabs li::before,
.ke-shop-single .woocommerce-tabs ul.tabs li::after { display: none; }
.ke-shop-single .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; color: var(--ke-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.ke-shop-single .woocommerce-tabs ul.tabs li.active { background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-color: transparent; }
.ke-shop-single .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.ke-shop-single .woocommerce-tabs .panel { margin: 0; padding: clamp(14px, 2vw, 24px); background: rgba(255,255,255,.9); border: 1px solid var(--ke-border); border-radius: 20px; line-height: 2; }
.ke-shop-single .woocommerce-tabs .panel > h2:first-child { margin-top: 0; font-size: 18px; }
.ke-shop-single .shop_attributes th { width: 30%; background: rgba(88,67,112,.05); }
.ke-shop-single .related > h2,
.ke-shop-single .upsells > h2 { margin: 6px 0 4px; color: var(--ke-ink); font-size: 20px; font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ke-shop-layout.has-sidebar { display: block; }
  .ke-shop-sidebar-toggle { display: flex; width: 100%; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 15px; color: var(--ke-primary); background: rgba(255,255,255,.88); border: 1px solid var(--ke-border); border-radius: 16px; box-shadow: var(--ke-shadow-soft); font-size: 14px; font-weight: 800; cursor: pointer; }
  .ke-shop-sidebar-toggle .ke-toggle-caret { margin-right: auto; transition: transform .2s; }
  .ke-shop-sidebar-toggle[aria-expanded="true"] .ke-toggle-caret { transform: rotate(180deg); }
  .ke-shop-layout.has-sidebar > .ke-shop-sidebar { display: none; position: static; margin: 0 0 16px; }
  .ke-shop-layout.has-sidebar > .ke-shop-sidebar.is-open { display: flex; }
  .ke-shop-sidebar .product-categories-widget { max-height: none; }
  .ke-shop-single div.product { grid-template-columns: 1fr; grid-template-areas: "gallery" "summary" "tabs" "upsell" "related"; gap: 18px; }
}

@media (max-width: 767px) {
  .ke-shop-archive .ke-woocommerce-content .woocommerce-ordering { float: none; display: block; margin-top: 8px; }
  .ke-shop-archive .ke-woocommerce-content .woocommerce-result-count { display: block; }
  .ke-shop-single .summary p.price, .ke-shop-single .summary span.price { font-size: 21px; }
  .ke-shop-single form.cart .single_add_to_cart_button { flex-basis: 100%; }
  /* keep the badges comfortable on small cards (sale + out-of-stock share the shape) */
  .woocommerce ul.products li.product span.onsale { top: 8px !important; right: 8px !important; padding: 5px 10px; font-size: 12px; border-width: 1.5px; }
}


/* =========================================================================
   v2.9.1 — Persian typography, sidebar tree, single product, scroll-top
   ========================================================================= */
:root { --ke-font: "KingEventYekan", Tahoma, Arial, sans-serif; }

/* Headings & titles follow the site font (legacy CSS forced Montserrat) */
body.kingevent-modern-theme h1,
body.kingevent-modern-theme h2,
body.kingevent-modern-theme h3,
body.kingevent-modern-theme h4,
body.kingevent-modern-theme h5,
body.kingevent-modern-theme h6,
body.kingevent-modern-theme .widget-title,
body.kingevent-modern-theme .page-title,
body.kingevent-modern-theme .woocommerce-loop-product__title,
body.kingevent-modern-theme .woocommerce-loop-category__title,
body.kingevent-modern-theme .product_title,
body.kingevent-modern-theme .woocommerce-tabs ul.tabs li a,
body.kingevent-modern-theme .woocommerce .button,
body.kingevent-modern-theme .woocommerce button.button { font-family: var(--ke-font); }

/* Everything inside the shop is right-to-left, right-aligned */
.ke-woocommerce-page .ke-woocommerce-content,
.ke-woocommerce-page .ke-shop-sidebar { direction: rtl; text-align: right; }
.ke-woocommerce-content :is(h1, h2, h3, h4, h5, h6, p, li, td, th, label, .term-description, .page-description, .woocommerce-product-details__short-description) { text-align: right; }
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating { text-align: right; }
.woocommerce ul.products li.product .star-rating { margin-right: 5px !important; margin-left: auto !important; }
.woocommerce ul.products li.product-category,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { text-align: center; }

/* Sidebar tree — same RTL look as the main menu drawer */
.product-categories-widget { direction: rtl; text-align: right; padding: 12px; }
.product-categories-widget .widget-title { margin: 0 0 10px !important; padding: 11px 14px !important; color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)) !important; border-radius: 12px; font-size: 14px !important; font-weight: 800; text-align: right !important; float: none; width: auto; }
.product-categories-widget .ke-shop-category-tree,
.product-categories-widget .ke-shop-category-tree ul.children { width: 100%; margin: 0; padding: 0; list-style: none; direction: rtl; text-align: right; }
.product-categories-widget .ke-shop-category-tree li { float: none; width: 100%; margin: 0; padding: 0; list-style: none; }
.product-categories-widget .ke-shop-category-tree li > a { display: flex; width: 100%; min-height: 52px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 6px 9px 6px 46px; direction: rtl; text-align: right; }
.product-categories-widget .ke-shop-cat-thumb { flex: 0 0 auto; width: 42px; height: 42px; margin: 0; }
.product-categories-widget .ke-shop-cat-thumb img { display: block; width: 42px !important; height: 42px !important; max-width: 42px; margin: 0 !important; border-radius: 10px; object-fit: cover; }
.product-categories-widget .ke-shop-cat-copy { min-width: 0; flex: 1 1 auto; align-items: flex-start; direction: rtl; text-align: right; }
.product-categories-widget .ke-shop-cat-copy strong,
.product-categories-widget .ke-shop-cat-copy small { display: block; width: 100%; text-align: right; }
.product-categories-widget .ke-shop-cat-copy strong { font-size: 13px; }
.product-categories-widget .ke-shop-category-tree .children { margin: 4px 16px 8px 0; padding: 4px 10px 4px 0; border-right: 2px solid rgba(128,100,162,.2); border-left: 0; }
.product-categories-widget .ke-shop-category-tree .children a { min-height: 44px; }
.product-categories-widget .ke-shop-category-tree .children .ke-shop-cat-thumb,
.product-categories-widget .ke-shop-category-tree .children .ke-shop-cat-thumb img { width: 32px !important; height: 32px !important; }
.product-categories-widget .ke-shop-category-toggle { top: 10px; left: 5px; right: auto; }
.product-categories-widget .ke-shop-category-tree .current-cat > a { color: var(--ke-primary); background: rgba(88,67,112,.09); }
.product-categories-widget .ke-shop-category-tree .current-cat > a strong { font-weight: 800; }

/* Shop page text moved below the products */
.ke-shop-about { margin-top: 28px; padding: clamp(14px, 2vw, 24px); color: #4a4254; background: rgba(255,255,255,.78); border: 1px solid var(--ke-border); border-radius: 20px; line-height: 2; }
.ke-shop-about .page-description > :first-child { margin-top: 0; }
.ke-shop-about .page-description > :last-child { margin-bottom: 0; }

/* ---------- Single product: title, chips, price ---------- */
.ke-shop-single .summary .product_title { text-align: right; }
.ke-product-terms { display: flex; flex-wrap: wrap; gap: 9px; margin: 2px 0 14px; }
.ke-term-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; color: var(--ke-ink) !important; background: rgba(88,67,112,.07); border: 1px solid rgba(88,67,112,.14); border-radius: 13px; font-size: 14px; line-height: 1.4; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.ke-term-chip i { font-size: 13px; color: var(--ke-primary-2); }
.ke-term-chip span { color: var(--ke-muted); font-weight: 500; }
.ke-term-chip strong { font-weight: 800; }
.ke-term-chip.is-tag { background: rgba(255,122,26,.08); border-color: rgba(255,122,26,.24); }
.ke-term-chip.is-tag i { color: var(--ke-accent); }
.ke-term-chip:hover { background: rgba(88,67,112,.13); border-color: rgba(128,100,162,.4); box-shadow: 0 8px 20px rgba(47,32,62,.1); transform: translateY(-2px); }
.ke-term-chip.is-tag:hover { background: rgba(255,122,26,.15); border-color: rgba(255,122,26,.45); }

.ke-price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 14px; padding: 14px 18px; background: linear-gradient(135deg, rgba(88,67,112,.07), rgba(255,122,26,.07)); border: 1px solid rgba(88,67,112,.12); border-radius: 18px; }
.ke-price-label { color: var(--ke-muted); font-size: 14px; font-weight: 700; }
.ke-shop-single .ke-price-box p.price,
.ke-shop-single .ke-price-box span.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ke-primary); font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.35; }
.ke-shop-single .ke-price-box .price .woocommerce-Price-currencySymbol { margin-right: 5px; font-size: .5em; font-weight: 700; color: var(--ke-muted); }
.ke-shop-single .ke-price-box .price del { order: -1; color: var(--ke-muted); font-size: .5em; font-weight: 500; opacity: .8; }
.ke-shop-single .ke-price-box .price ins { color: #ea6a00; text-decoration: none; }
.ke-product-sku { margin-top: 12px; color: var(--ke-muted); font-size: 13px; }
.ke-product-sku strong { color: var(--ke-ink); }
.ke-shop-single form.cart { border-top: 0; padding-top: 0; }
.ke-shop-single .woocommerce-product-details__short-description,
.ke-shop-single .woocommerce-tabs .panel,
.ke-shop-single .woocommerce-tabs .panel * { text-align: right; }
.ke-shop-single .woocommerce-tabs ul.tabs { justify-content: flex-start; }
.ke-shop-single .related ul.products,
.ke-shop-single .upsells ul.products { margin-top: 12px; }

/* ---------- Scroll-to-top: icon exactly centred ---------- */
#return-to-top { display: none; width: 46px; height: 46px; padding: 0; line-height: 0; }
#return-to-top i,
#return-to-top:hover i { position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0; left: 0; display: grid; width: 100%; height: 100%; margin: 0 !important; place-items: center; font-size: 18px; line-height: 1; transition: transform .25s ease; }
#return-to-top:hover i { transform: translateY(-3px); }

@media (max-width: 767px) {
  .ke-subcats { padding: 11px 11px 8px; border-radius: 17px; }
  .ke-subcat { min-width: 0; padding: 7px 9px 7px 13px; }
  .ke-subcat-thumb { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .ke-subcat-name { font-size: 12px; }
  .ke-subcats-arrow { width: 34px; height: 34px; }
  .ke-price-box { padding: 12px 14px; }
}


/* =========================================================================
   v2.9.2 — pagination, prices, product header card, separate cards, share
   ========================================================================= */

/* ---------- Pagination (shop + blog), glass ---------- */
nav.woocommerce-pagination,
.navigation.pagination .nav-links,
.ke-shop-archive nav.woocommerce-pagination { display: flex; justify-content: center; margin: 30px 0 6px; text-align: center; }
nav.woocommerce-pagination ul.page-numbers,
.navigation.pagination .nav-links { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 !important; padding: 8px !important; list-style: none; background: rgba(255,255,255,.72); border: 1px solid var(--ke-border) !important; border-radius: 20px; box-shadow: var(--ke-shadow-soft); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
nav.woocommerce-pagination ul.page-numbers li { margin: 0 !important; padding: 0 !important; overflow: visible; border: 0 !important; float: none; }
nav.woocommerce-pagination .page-numbers a,
nav.woocommerce-pagination .page-numbers span.page-numbers,
nav.woocommerce-pagination ul.page-numbers li > .page-numbers,
.navigation.pagination .page-numbers { display: inline-grid !important; min-width: 42px; height: 42px; place-items: center; margin: 0 !important; padding: 0 12px !important; color: var(--ke-primary) !important; background: transparent !important; border: 1px solid transparent !important; border-radius: 13px !important; font-family: var(--ke-font); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none !important; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
nav.woocommerce-pagination .page-numbers a:hover,
nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover { color: var(--ke-primary) !important; background: rgba(88,67,112,.10) !important; transform: translateY(-1px); }
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.current,
.navigation.pagination .page-numbers.current { color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)) !important; box-shadow: 0 8px 20px rgba(88,67,112,.30); }
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.dots,
.navigation.pagination .page-numbers.dots { min-width: 28px; padding: 0 !important; color: var(--ke-muted) !important; }
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.prev,
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next { color: var(--ke-primary-2) !important; background: rgba(88,67,112,.07) !important; }
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.prev:hover,
nav.woocommerce-pagination ul.page-numbers li > .page-numbers.next:hover { color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)) !important; }

/* ---------- Prices in product cards: centred, bold, large ---------- */
.woocommerce ul.products li.product .price {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 8px 0 4px;
  padding: 0 5px;
  color: var(--ke-primary) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.5;
  text-align: center !important;
}
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi { font-weight: 800; }
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol { margin-right: 3px; font-size: .62em; font-weight: 700; }
.woocommerce ul.products li.product .price del { color: var(--ke-muted); font-size: 13px; font-weight: 500; opacity: .8; }
.woocommerce ul.products li.product .price del .amount,
.woocommerce ul.products li.product .price del bdi { font-weight: 500; }
.woocommerce ul.products li.product .price ins { color: #ea6a00; text-decoration: none; }

/* ---------- Price on the product page (native + Elementor) ---------- */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .woocommerce-variation-price .price,
.elementor-widget-woocommerce-product-price .price {
  color: var(--ke-primary) !important;
  font-size: clamp(32px, 4.6vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.3;
}
.woocommerce div.product .price .woocommerce-Price-currencySymbol,
.elementor-widget-woocommerce-product-price .price .woocommerce-Price-currencySymbol { margin-right: 6px; font-size: .56em !important; font-weight: 800; color: var(--ke-primary-2); }
.woocommerce div.product .price del,
.elementor-widget-woocommerce-product-price .price del { font-size: .5em !important; font-weight: 500 !important; }
.woocommerce div.product .price ins { text-decoration: none; }
.ke-shop-single .ke-price-box { padding: 16px 20px; }
.ke-shop-single .ke-price-box .price .woocommerce-Price-currencySymbol { font-size: .56em; color: var(--ke-primary-2); }
.ke-shop-single .ke-price-label { font-size: 16px; }

/* ---------- Product header card (path + back buttons + share) ---------- */
.ke-product-nav { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 18px; padding: 14px 18px; text-align: right; border-radius: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ke-product-nav-path { display: flex; min-width: 0; flex: 1 1 320px; align-items: center; gap: 13px; }
.ke-product-nav-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 14px; box-shadow: 0 8px 20px rgba(88,67,112,.25); font-size: 18px; }
.ke-product-nav-title { min-width: 0; }
.ke-product-nav-title small { display: block; margin-bottom: 3px; color: var(--ke-muted); font-size: 12px; }
.ke-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.ke-crumbs li { margin: 0; padding: 0; font-size: 17px; font-weight: 800; line-height: 1.6; }
.ke-crumbs li + li::before { content: "\f104"; margin: 0 9px; color: var(--ke-primary-2); font-family: "Font Awesome 5 Free"; font-size: 13px; font-weight: 900; }
.ke-crumbs a { color: var(--ke-muted) !important; text-decoration: none !important; }
.ke-crumbs a:hover { color: var(--ke-primary) !important; }
.ke-crumbs li.is-last a { color: var(--ke-ink) !important; }
.ke-product-nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ke-nav-btn { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 15px; color: var(--ke-primary) !important; background: rgba(88,67,112,.08); border: 1px solid rgba(88,67,112,.14); border-radius: 13px; font-family: var(--ke-font); font-size: 13px; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.ke-nav-btn:hover { background: rgba(88,67,112,.15); box-shadow: 0 8px 20px rgba(47,32,62,.12); transform: translateY(-2px); }
.ke-nav-btn.is-primary { color: #fff !important; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-color: transparent; box-shadow: 0 8px 22px rgba(88,67,112,.26); }
.ke-nav-btn.is-share { color: #fff !important; background: linear-gradient(135deg, var(--ke-accent), var(--ke-accent-2)); border-color: transparent; box-shadow: 0 8px 22px rgba(255,122,26,.28); }
.ke-share { position: relative; }
.ke-share-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 50; width: min(340px, 86vw); padding: 16px; text-align: right; background: rgba(255,255,255,.98); border: 1px solid var(--ke-border); border-radius: 18px; box-shadow: var(--ke-shadow); }
.ke-share-pop[hidden] { display: none; }
.ke-share-pop > strong { display: block; margin-bottom: 11px; color: var(--ke-ink); font-size: 14px; }
.ke-share-copy { display: flex; gap: 7px; margin-bottom: 12px; }
.ke-share-copy input { min-width: 0; flex: 1 1 auto; height: 42px; padding: 0 11px; color: var(--ke-muted); background: rgba(88,67,112,.05); border: 1px solid var(--ke-border); border-radius: 11px; font-size: 12px; text-align: left; }
.ke-share-copy button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 13px; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border: 0; border-radius: 11px; font-family: var(--ke-font); font-size: 12px; font-weight: 800; cursor: pointer; }
.ke-share-copy button.is-done { background: #1f9d55; }
.ke-share-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ke-share-links a,
.ke-share-links button { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 12px; color: var(--ke-ink) !important; background: rgba(88,67,112,.06); border: 1px solid transparent; border-radius: 12px; font-family: var(--ke-font); font-size: 13px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.ke-share-links a:hover,
.ke-share-links button:hover { background: rgba(88,67,112,.13); }
.ke-share-links button[hidden] { display: none; }
.ke-share-links i { width: 18px; color: var(--ke-primary-2); text-align: center; }

/* ---------- Separate cards: tabs / upsells / related ---------- */
.ke-shop-single .ke-woocommerce-content { padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ke-shop-single div.product > .woocommerce-tabs,
.ke-shop-single div.product > .related,
.ke-shop-single div.product > .upsells,
.ke-shop-single div.product > .up-sells { padding: clamp(14px, 2.2vw, 26px); background: rgba(255,255,255,.8); border: 1px solid var(--ke-border); border-radius: 24px; box-shadow: var(--ke-shadow-soft); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ke-shop-single div.product > .woocommerce-tabs .panel { padding: 8px 4px 0; background: transparent; border: 0; border-radius: 0; }
.ke-shop-single div.product > .related > h2,
.ke-shop-single div.product > .upsells > h2,
.ke-shop-single div.product > .up-sells > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.ke-shop-single div.product > .related > h2::before,
.ke-shop-single div.product > .upsells > h2::before,
.ke-shop-single div.product > .up-sells > h2::before { content: ""; width: 5px; height: 22px; background: linear-gradient(180deg, var(--ke-accent), var(--ke-accent-2)); border-radius: 5px; }
.ke-shop-single div.product > .related ul.products,
.ke-shop-single div.product > .upsells ul.products,
.ke-shop-single div.product > .up-sells ul.products { margin: 0; }
.ke-shop-single div.product > .up-sells { grid-area: upsell; }

@media (max-width: 767px) {
  .ke-product-nav { padding: 12px; border-radius: 18px; }
  .ke-product-nav-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 16px; }
  .ke-crumbs li { font-size: 15px; }
  .ke-product-nav-actions { width: 100%; }
  .ke-nav-btn { flex: 1 1 auto; justify-content: center; padding: 0 11px; }
  .ke-share { flex: 1 1 100%; }
  .ke-share .ke-nav-btn { width: 100%; }
  .ke-share-pop { left: 0; right: 0; width: auto; }
  .woocommerce ul.products li.product .price { font-size: 16px !important; }
  nav.woocommerce-pagination ul.page-numbers { gap: 4px; padding: 6px !important; }
  nav.woocommerce-pagination ul.page-numbers li > .page-numbers { min-width: 36px; height: 38px; padding: 0 8px !important; font-size: 14px; }
}


/* v2.9.3 — share menu: copy + native share only; price box layout */
.ke-share-links { grid-template-columns: 1fr; }
.ke-share-links button { justify-content: center; }
.ke-share-links:not(:has(button:not([hidden]))) { display: none; }

.ke-shop-single .ke-price-box { display: block; padding: 12px 18px 16px; }
.ke-shop-single .ke-price-label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 4px; color: var(--ke-muted); font-size: 16px; font-weight: 800; text-align: right; }
.ke-shop-single .ke-price-label i { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ke-primary), var(--ke-primary-2)); border-radius: 10px; font-size: 14px; }
.ke-shop-single .ke-price-value { text-align: center; }
.ke-shop-single .ke-price-box p.price,
.ke-shop-single .ke-price-box span.price { justify-content: center; text-align: center; }
