/* ============================================================
   OmarStore — Front-end Enhancements (motion & interaction)
   Loaded after style.css — additive only, no template overrides
   RTL-aware. Respects prefers-reduced-motion.
   ============================================================ */

:root {
  --eh-primary: var(--color-primary);
  --eh-primary-dark: var(--color-primary-dark);
  --eh-shadow-soft: 0 6px 18px rgba(44, 60, 40, 0.08);
  --eh-shadow-lift: 0 18px 38px rgba(44, 60, 40, 0.16);
  --eh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   1) Page entrance + smooth scrolling
   ------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  animation: ehPageIn 0.45s ease-out both;
}

@keyframes ehPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

::selection {
  background: var(--eh-primary);
  color: #fff;
}

/* Custom scrollbar (WebKit) — page scrollbar only; inner
   scrollable containers keep their default (invisible) bars */
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: #ecf2ef; }
html::-webkit-scrollbar-thumb {
  background: #a9c6b9;
  border-radius: 8px;
  border: 2px solid #ecf2ef;
}
html::-webkit-scrollbar-thumb:hover { background: var(--eh-primary); }

/* ------------------------------------------------------------
   2) Scroll-reveal (JS adds .eh-reveal then .eh-in)
   ------------------------------------------------------------ */
.eh-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s var(--eh-ease),
    transform 0.6s var(--eh-ease);
  transition-delay: var(--eh-delay, 0ms);
  will-change: opacity, transform;
}

.eh-reveal.eh-in {
  opacity: 1;
  transform: translateY(0);
}

/* Once revealed, release will-change and delays for hover snappiness */
.eh-reveal.eh-done {
  transition-delay: 0ms;
  will-change: auto;
}

/* ------------------------------------------------------------
   3) Section titles — animated gradient underline
   ------------------------------------------------------------ */
.title-area-between .title-left {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.title-area-between .title-left::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0; /* RTL: grow from the right */
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(270deg, var(--eh-primary), #2AA24E);
  transition: width 0.7s var(--eh-ease) 0.25s;
}

.eh-in .title-area-between .title-left::after,
.title-area-between.eh-in .title-left::after {
  width: 56px;
}

/* ------------------------------------------------------------
   4) Product cards — lift, glow border, image zoom, shine sweep
   ------------------------------------------------------------ */
.single-shopping-card-one {
  border: 1px solid #E3EBE6;
  border-radius: 12px;
  background: #fff;
  transition:
    transform 0.35s var(--eh-ease),
    box-shadow 0.35s var(--eh-ease),
    border-color 0.35s var(--eh-ease);
}

.single-shopping-card-one:hover {
  transform: translateY(-8px);
  box-shadow: var(--eh-shadow-lift);
  border-color: var(--eh-primary);
}

/* Offer cards: elegant accent instead of the old solid red border */
.single-shopping-card-one.eh-card-offer {
  border-color: #F3E6C2;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #F0C000, #C00000) border-box;
  border: 1px solid transparent;
}

.single-shopping-card-one.eh-card-offer:hover {
  box-shadow: 0 18px 38px rgba(201, 72, 63, 0.2);
}

/* Image zoom inside the square thumb */
.single-shopping-card-one .thumbnail-preview {
  border-radius: 12px 12px 0 0;
}

.single-shopping-card-one .thumbnail-preview img {
  transition: transform 0.6s var(--eh-ease);
}

.single-shopping-card-one:hover .thumbnail-preview img {
  transform: scale(1.07);
}

/* Shine sweep across the image on hover */
.single-shopping-card-one .thumbnail-preview::after {
  content: "";
  position: absolute;
  top: 0;
  right: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

.single-shopping-card-one:hover .thumbnail-preview::after {
  animation: ehShine 0.9s ease-out 1;
}

@keyframes ehShine {
  from { right: -80%; }
  to   { right: 160%; }
}

/* Discount badge: gentle float */
.single-shopping-card-one .badge {
  animation: ehBadgeFloat 3s ease-in-out infinite;
}

@keyframes ehBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Title color slide on hover */
.single-shopping-card-one .body-content .title {
  transition: color 0.25s ease;
}

.single-shopping-card-one:hover .body-content .title {
  color: var(--eh-primary);
}

/* ------------------------------------------------------------
   5) Feature (banner) cards
   ------------------------------------------------------------ */
.single-feature-card {
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.4s var(--eh-ease),
    box-shadow 0.4s var(--eh-ease),
    filter 0.4s var(--eh-ease);
}

.single-feature-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--eh-shadow-lift);
  filter: brightness(1.06);
}

/* ------------------------------------------------------------
   6) Category circles — glow + lift (no border)
   ------------------------------------------------------------ */
.single-category-one {
  position: relative;
  isolation: isolate; /* keeps the ::before glow above the section background */
  transition: transform 0.35s var(--eh-ease);
}

/* kill the template's green hover border (style.css) */
.single-category-one,
.single-category-one:hover,
.single-category-one:focus {
  border: none !important;
}

.single-category-one:hover {
  transform: translateY(-5px);
}

/* soft radial glow that blooms behind the image */
.single-category-one::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(45, 122, 95, 0.22) 0%,
    rgba(45, 122, 95, 0) 70%
  );
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  transition:
    opacity 0.35s var(--eh-ease),
    transform 0.35s var(--eh-ease);
  pointer-events: none;
  z-index: -1;
}

.single-category-one:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.single-category-one img {
  transition:
    transform 0.4s var(--eh-ease),
    filter 0.4s var(--eh-ease);
}

.single-category-one:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 10px 16px rgba(44, 60, 40, 0.22));
}

.single-category-one p {
  transition: color 0.2s ease;
}

.single-category-one:hover p {
  color: var(--eh-primary);
}

/* ------------------------------------------------------------
   7) Buttons — press feedback + ripple
   ------------------------------------------------------------ */
.rts-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.rts-btn:hover {
  box-shadow: 0 8px 20px rgba(45, 122, 95, 0.3);
}

.rts-btn:active {
  transform: scale(0.96);
}

.eh-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ehRipple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ehRipple {
  to { transform: scale(3); opacity: 0; }
}

/* ------------------------------------------------------------
   8) Header polish — dropdowns + sticky shadow
   ------------------------------------------------------------ */
.category-hover-header .category-sub-menu {
  transform-origin: top center;
}

.category-hover-header:hover .category-sub-menu {
  animation: ehDropIn 0.28s var(--eh-ease) both;
}

@keyframes ehDropIn {
  from { opacity: 0; transform: translateY(10px) scaleY(0.97); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* (nav-bar scroll shadow removed — the fixed ribbon carries it now,
   see section 17) */

/* Cart count badge pulse when it changes */
#shopcarts.eh-pulse,
#cart-item-count.eh-pulse {
  animation: ehPulse 0.55s var(--eh-ease);
}

@keyframes ehPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------
   9) Fly-to-cart clone
   ------------------------------------------------------------ */
.eh-fly-img {
  position: fixed;
  z-index: 99999;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.75s cubic-bezier(0.5, -0.1, 0.75, 0.4),
    opacity 0.75s ease;
}

/* ------------------------------------------------------------
   10) Toast (added-to-cart confirmation)
   ------------------------------------------------------------ */
.eh-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #153A1E;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99998;
  opacity: 0;
  transition:
    opacity 0.3s var(--eh-ease),
    transform 0.3s var(--eh-ease);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  direction: rtl;
}

.eh-toast.eh-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.eh-toast i {
  color: #6FCF9F;
  font-size: 16px;
}

/* ------------------------------------------------------------
   11) Back-to-top with scroll progress ring
   ------------------------------------------------------------ */
#ehBackTop {
  position: fixed;
  bottom: 26px;
  /* RTL layout: put it on the left side, away from content flow */
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(44, 60, 40, 0.22);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.3s var(--eh-ease),
    transform 0.3s var(--eh-ease),
    visibility 0.3s;
}

#ehBackTop.eh-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#ehBackTop:hover {
  transform: translateY(-4px);
}

#ehBackTop i {
  color: var(--eh-primary);
  font-size: 17px;
  position: relative;
  z-index: 1;
}

#ehBackTop svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

#ehBackTop svg circle {
  fill: none;
  stroke-width: 3;
}

#ehBackTop svg .eh-ring-bg { stroke: #E3EBE6; }

#ehBackTop svg .eh-ring-fg {
  stroke: var(--eh-primary);
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
}

/* ------------------------------------------------------------
   12) Misc polish
   ------------------------------------------------------------ */
a, .btn-border-only {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.keyword-badge:hover {
  transform: translateY(-2px);
}

.keyword-badge {
  transition: all 0.2s ease, transform 0.2s ease;
}

:focus-visible {
  outline: 2px solid var(--eh-primary);
  outline-offset: 2px;
}

/* ============================================================
   ROUND 2 — product details, cart, checkout
   ============================================================ */

/* ------------------------------------------------------------
   13) Product details — gallery crossfade + thumbnail strip
   ------------------------------------------------------------ */
.product-thumb-area .thumb-wrapper.filterd-items:not(.hide) {
  animation: ehFadeZoom 0.45s var(--eh-ease);
}

@keyframes ehFadeZoom {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.product-thumb-filter-group .thumb-filter {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s var(--eh-ease),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.product-thumb-filter-group .thumb-filter:hover {
  transform: translateY(-3px);
  box-shadow: var(--eh-shadow-soft);
}

.product-thumb-filter-group .thumb-filter.active {
  border-color: var(--eh-primary);
  box-shadow: 0 4px 14px rgba(45, 122, 95, 0.25);
}

/* Variant (design/size) buttons — inline border color animates too */
.variant-options button {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease,
    background-color 0.25s ease;
}

.variant-options button:not(:disabled):hover {
  box-shadow: var(--eh-shadow-soft);
  transform: translateY(-2px);
}

.variant-options button:not(:disabled):active {
  transform: scale(0.94);
}

/* ------------------------------------------------------------
   14) Cart page — rows, quantity controls, delete, summary
   ------------------------------------------------------------ */
.single-cart-area-list.main {
  border-radius: 10px;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.3s ease;
}

.single-cart-area-list.main:hover {
  background-color: #F3F8F5;
  box-shadow: var(--eh-shadow-soft);
}

/* Delete (trash) icon */
.delete-cart-item {
  cursor: pointer;
  border-radius: 50%;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.delete-cart-item:hover {
  background-color: #fdecec;
  color: #DC2626;
  transform: rotate(-8deg) scale(1.12);
}

.delete-cart-item:hover i { color: #DC2626; }

/* Quantity +/- buttons */
.quantity-edit .button {
  transition: transform 0.12s ease, color 0.2s ease;
}

.quantity-edit .button:hover i { color: var(--eh-primary); }

.quantity-edit .button:active {
  transform: scale(0.8);
}

/* Row while an AJAX quantity update is in flight */
.single-cart-area-list.eh-updating {
  opacity: 0.55;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(45, 122, 95, 0.12) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  animation: ehShimmer 1.1s linear infinite;
}

@keyframes ehShimmer {
  from { background-position: 180% 0; }
  to   { background-position: -20% 0; }
}

/* Cart totals card */
.cart-total-area-start-right {
  border-radius: 12px;
  box-shadow: var(--eh-shadow-soft);
  transition: box-shadow 0.3s ease;
}

.cart-total-area-start-right:hover {
  box-shadow: var(--eh-shadow-lift);
}

/* ------------------------------------------------------------
   15) Checkout — inputs, summary card, submit loading
   ------------------------------------------------------------ */
.single-input input,
.single-input select,
#coupon_input {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.single-input input:focus,
.single-input select:focus,
#coupon_input:focus {
  border-color: var(--eh-primary) !important;
  box-shadow: 0 0 0 4px rgba(45, 122, 95, 0.15);
  outline: none;
}

.single-input:focus-within label {
  color: var(--eh-primary);
}

.single-input label {
  transition: color 0.2s ease;
}

/* Order summary card */
.right-card-sidebar-checkout {
  border-radius: 12px;
  box-shadow: var(--eh-shadow-soft);
  transition: box-shadow 0.3s ease;
}

.right-card-sidebar-checkout:hover {
  box-shadow: var(--eh-shadow-lift);
}

.payment-option {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.payment-option:hover {
  border-color: var(--eh-primary);
  box-shadow: var(--eh-shadow-soft);
}

/* Submit button loading state (spinner replaces text) */
.rts-btn.eh-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.rts-btn.eh-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ehSpin 0.7s linear infinite;
}

.rts-btn.eh-loading > * {
  opacity: 0;
}

@keyframes ehSpin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   16) Header mini-cart items — entrance stagger on open
   ------------------------------------------------------------ */
.category-hover-header:hover .card-number-show .cart-item-1 {
  animation: ehDropIn 0.3s var(--eh-ease) both;
}

.category-hover-header:hover .card-number-show .cart-item-1:nth-child(2) { animation-delay: 0.05s; }
.category-hover-header:hover .card-number-show .cart-item-1:nth-child(3) { animation-delay: 0.10s; }
.category-hover-header:hover .card-number-show .cart-item-1:nth-child(4) { animation-delay: 0.15s; }
.category-hover-header:hover .card-number-show .cart-item-1:nth-child(5) { animation-delay: 0.20s; }

/* Category dropdown links — slide nudge on hover (RTL) */
.category-sub-menu li .menu-item {
  transition: padding-right 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.category-sub-menu li .menu-item:hover {
  padding-right: 8px;
  color: var(--eh-primary);
}

/* ------------------------------------------------------------
   17) Always-fixed top ribbon (logo / search / cart)
   ------------------------------------------------------------ */
/* Disable the template's delayed sticky behavior: it hides the
   header on scroll then pops a fixed bar in after 150px */
.header--sticky.sticky,
.rts-header-nav-area-one.header--sticky.sticky {
  position: relative !important;
  animation: none !important;
  box-shadow: none !important;
}

/* The template puts transform: translateY(0) on .header--sticky,
   which traps position:fixed children inside the header instead of
   the viewport — the ribbon must escape to stay truly fixed */
.header--sticky,
.header--sticky.sticky {
  transform: none !important;
}

/* The ribbon itself stays pinned from the start (JS adds the
   class and maintains a same-height spacer in the page flow) */
.eh-ribbon-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-top: 4px solid var(--color-primary);
  transition: box-shadow 0.3s ease;
}

/* Soft shadow only once the page is scrolled */
header.eh-stuck .eh-ribbon-fixed {
  box-shadow: 0 8px 24px rgba(44, 60, 40, 0.12);
}

/* ------------------------------------------------------------
   18) Product details page — price block, qty stepper,
       share row, trust badges, sidebar offers
   ------------------------------------------------------------ */
.eh-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: right;
}

.eh-price-current {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.eh-price-current.eh-price-offer {
  color: var(--color-danger);
}

.eh-price-old {
  font-size: 17px;
  color: #9aa5a0;
  text-decoration: line-through;
}

.eh-discount-pill {
  background: var(--color-danger);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  animation: ehPillPop 0.5s var(--eh-ease) both;
}

@keyframes ehPillPop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.eh-save-note {
  font-size: 13px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Quantity stepper */
.eh-buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.eh-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.eh-qty-btn {
  border: none;
  background: transparent;
  width: 42px;
  align-self: stretch;
  cursor: pointer;
  color: var(--color-heading-1);
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eh-qty-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.eh-qty-btn:active {
  transform: scale(0.9);
}

.eh-qty input {
  width: 48px;
  border: none;
  outline: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-heading-1);
  background: transparent;
}

/* Share row */
.eh-share-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.eh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe4df;
  background: #fff;
  color: var(--color-heading-1);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.eh-share-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.eh-share-wa:hover {
  border-color: #25D366;
  color: #1DA851;
}

/* Trust badges */
.eh-trust-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.eh-trust-item {
  flex: 1 1 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.eh-trust-item i {
  color: var(--color-primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* Sidebar offers */
.eh-offer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.eh-offer-row:hover {
  background: var(--color-primary-soft);
  transform: translateX(-3px); /* RTL: nudge toward content */
}

.eh-offer-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #E3EBE6;
  background: #fff;
}

.eh-offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eh-offer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading-1);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.eh-offer-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.eh-offer-old {
  font-size: 12px;
  color: #9aa5a0;
  text-decoration: line-through;
  margin-right: 6px;
}

/* ------------------------------------------------------------
   19) Product details — brand card, meta chips, gallery UX
   ------------------------------------------------------------ */
.eh-meta-card {
  margin-top: 20px;
  border-top: 1px solid #E3EBE6;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

/* Brand card with logo */
.eh-brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #E3EBE6;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 420px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.eh-brand-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--eh-shadow-soft);
  transform: translateY(-2px);
}

.eh-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #E3EBE6;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eh-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.eh-brand-fallback {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 700;
}

.eh-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.eh-brand-label {
  font-size: 11px;
  color: #8a958f;
  font-weight: 600;
}

.eh-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eh-brand-arrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: gap 0.2s ease;
}

.eh-brand-card:hover .eh-brand-arrow {
  gap: 10px;
}

/* Meta rows + chips */
.eh-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.eh-meta-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading-1);
  padding-top: 4px;
  min-width: 90px;
}

.eh-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.eh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dbe4df;
  color: var(--color-heading-1);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.eh-chip i {
  font-size: 11px;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.eh-chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.eh-chip:hover i {
  color: #fff;
}

/* Gallery: photo counter badge */
.rts-chop-details-area .product-thumb-area {
  position: relative;
}

.eh-photo-count {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(32, 54, 43, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
  letter-spacing: 1px;
}

/* Gallery: main image rounding */
.rts-chop-details-area .thumb-wrapper .product-thumb {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

/* Gallery zoom: touch tap-to-zoom state */
.rts-chop-details-area .product-thumb.eh-zoomed {
  background-size: 220%;
  touch-action: none;
  cursor: grab;
}

.rts-chop-details-area .product-thumb.eh-zoomed img {
  opacity: 0 !important;
}

/* Zoom hint badge — only where hover isn't available (touch) */
.eh-zoom-hint {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32, 54, 43, 0.72);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 5;
  pointer-events: none;
}

@media (hover: none) {
  .eh-zoom-hint {
    display: flex;
  }

  /* on touch, zoom is controlled only by the tap toggle — undo the
     template's sticky :hover that blanks the image after a tap */
  .zoom img:hover {
    opacity: 1;
  }
}

/* Gallery: thumbnail strip — horizontal scroll with snap */
.rts-chop-details-area .product-thumb-filter-group {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 2px;
}

.rts-chop-details-area .product-thumb-filter-group::-webkit-scrollbar {
  display: none;
}

.rts-chop-details-area .product-thumb-filter-group .thumb-filter {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  scroll-snap-align: center;
}

.rts-chop-details-area .product-thumb-filter-group .thumb-filter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .rts-chop-details-area .product-thumb-filter-group .thumb-filter {
    width: 58px;
    height: 58px;
  }

  .eh-brand-card {
    max-width: 100%;
  }

  .eh-meta-label {
    min-width: 100%;
    padding-top: 0;
  }
}

/* ------------------------------------------------------------
   20) Mobile fixes — breadcrumb, slider nav buttons, offers
   ------------------------------------------------------------ */
/* Breadcrumb: long product names get one line with ellipsis
   instead of cropping / wrapping awkwardly */
.navigator-breadcrumb-wrapper {
  flex-wrap: nowrap;
  min-width: 0;
}

.navigator-breadcrumb-wrapper .current {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navigator-breadcrumb-wrapper a {
  white-space: nowrap;
  flex-shrink: 0;
}

.navigator-breadcrumb-wrapper i {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .navigator-breadcrumb-wrapper {
    gap: 8px;
    font-size: 13px;
  }
}

/* Slider prev/next buttons in section titles: the template
   absolutely positions them (left:0 / left:44px in RTL), which
   breaks when the title stacks into a column on mobile — the
   buttons float over the page's left edge. Lay them out as a
   normal flex pair inside the title row instead. */
.title-area-between .next-prev-swiper-wrapper {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-area-between .next-prev-swiper-wrapper .swiper-button-prev,
.title-area-between .next-prev-swiper-wrapper .swiper-button-next {
  position: static !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

@media (max-width: 767px) {
  /* the title area stacks on mobile; keep title and arrows on one
     line with the arrows at the far end */
  .title-area-between {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
  }
}

/* Sidebar offers: the template stacks .single-offer-area into a
   column under 576px — keep our thumbnail + text row layout */
@media only screen and (max-width: 575px) {
  .shop-sight-sticky-sidevbar .single-offer-area.eh-offer-row {
    flex-direction: row;
    align-items: center;
  }
}

/* ------------------------------------------------------------
   21) Store info block in the footer (address / email / map)
   ------------------------------------------------------------ */
.eh-store-info {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eh-store-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.eh-store-info i {
  color: var(--color-primary);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.eh-store-info a {
  transition: color 0.2s ease;
}

.eh-store-info a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   22) Contact page — info cards + embedded map
   ------------------------------------------------------------ */
.eh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 10px 0 36px 0;
}

.eh-contact-card {
  background: #fff;
  border: 1px solid #E3EBE6;
  border-radius: 14px;
  padding: 26px 22px;
  text-align: right;
  transition:
    transform 0.3s var(--eh-ease),
    box-shadow 0.3s var(--eh-ease),
    border-color 0.3s var(--eh-ease);
}

.eh-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eh-shadow-lift);
  border-color: var(--color-primary);
}

.eh-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.eh-contact-icon.eh-contact-wa {
  background: #E7F8EE;
  color: #1DA851;
}

.eh-contact-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-heading-1);
  margin: 0 0 8px 0;
}

.eh-contact-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #5f6c72;
  margin: 0 0 6px 0;
}

.eh-contact-card strong {
  color: var(--color-heading-1);
}

.eh-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.2s ease, color 0.2s ease;
}

.eh-contact-link i {
  font-size: 11px;
}

.eh-contact-link:hover {
  gap: 12px;
  color: var(--color-primary-dark);
}

.eh-contact-empty {
  background: #fff;
  border: 1px dashed #cfdbd5;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #7b8781;
}

.eh-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E3EBE6;
  box-shadow: var(--eh-shadow-soft);
  line-height: 0;
}

.eh-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .eh-map-wrap iframe {
    height: 300px;
  }

  .eh-contact-card {
    padding: 22px 18px;
  }
}

/* ------------------------------------------------------------
   23) Delivery info page
   ------------------------------------------------------------ */
.eh-free-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 26px;
  box-shadow: var(--eh-shadow-soft);
}

.eh-free-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.eh-free-text h4 {
  margin: 0 0 4px 0;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.eh-free-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.eh-free-text strong {
  color: #fff;
  font-weight: 700;
}

.eh-delivery-card {
  background: #fff;
  border: 1px solid #E3EBE6;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 26px;
}

.eh-delivery-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading-1);
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eh-delivery-heading i {
  color: var(--color-primary);
  font-size: 16px;
}

.eh-delivery-table-wrap {
  overflow-x: auto;
}

.eh-delivery-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.eh-delivery-table th {
  background: var(--color-primary-soft);
  color: var(--color-heading-1);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
}

.eh-delivery-table th:first-child { border-radius: 0 8px 8px 0; }
.eh-delivery-table th:last-child  { border-radius: 8px 0 0 8px; }

.eh-delivery-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef3f0;
  font-size: 14.5px;
  color: #5f6c72;
}

.eh-delivery-table tbody tr {
  transition: background-color 0.2s ease;
}

.eh-delivery-table tbody tr:hover {
  background: #f7faf8;
}

.eh-delivery-table tbody tr:last-child td {
  border-bottom: none;
}

.eh-fee {
  font-weight: 700;
  color: var(--color-heading-1);
}

.eh-fee-free {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}

.eh-delivery-note {
  margin: 16px 0 0 0;
  font-size: 13.5px;
  color: #7b8781;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eh-delivery-note i { color: var(--color-primary); }

/* steps */
.eh-delivery-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.eh-step {
  background: #fff;
  border: 1px solid #E3EBE6;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: right;
  transition:
    transform 0.3s var(--eh-ease),
    box-shadow 0.3s var(--eh-ease),
    border-color 0.3s var(--eh-ease);
}

.eh-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--eh-shadow-lift);
  border-color: var(--color-primary);
}

.eh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.eh-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading-1);
  margin: 0 0 6px 0;
}

.eh-step p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #5f6c72;
  margin: 0;
}

/* help footer */
.eh-delivery-help {
  background: #fff;
  border: 1px dashed #cfdbd5;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}

.eh-delivery-help p {
  margin: 0 0 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading-1);
}

.eh-delivery-help-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .eh-free-banner {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }

  .eh-delivery-card {
    padding: 20px 16px;
  }
}

/* ------------------------------------------------------------
   24) Contact button in the header button group
   ------------------------------------------------------------ */
.eh-contact-btn {
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.eh-contact-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.eh-contact-btn:hover i,
.eh-contact-btn:hover .text {
  color: var(--color-primary-dark);
}

/* same action inside the mobile slide-out menu */
.eh-menu-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.eh-menu-contact-btn i {
  color: #fff;
  font-size: 16px;
}

.eh-menu-contact-btn:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Reduced motion: switch everything off
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body,
  .eh-reveal,
  .single-shopping-card-one,
  .single-shopping-card-one .thumbnail-preview img,
  .single-shopping-card-one .badge,
  .single-feature-card,
  .single-category-one,
  .single-category-one::before,
  .single-category-one img,
  .rts-btn,
  .eh-fly-img,
  .eh-toast,
  #ehBackTop,
  .product-thumb-area .thumb-wrapper.filterd-items:not(.hide),
  .product-thumb-filter-group .thumb-filter,
  .variant-options button,
  .single-cart-area-list.main,
  .single-cart-area-list.eh-updating,
  .delete-cart-item,
  .quantity-edit .button,
  .category-hover-header:hover .card-number-show .cart-item-1 {
    animation: none !important;
    transition: none !important;
  }

  .rts-btn.eh-loading::after {
    animation: ehSpin 0.7s linear infinite !important;
  }

  .eh-reveal {
    opacity: 1;
    transform: none;
  }
}
