/* Product Thumbnail Customization */
/* Fix: Thumbnail not hidden when active, allow for border */
.thumbnail-slider .thumb-image {
  height: 64px !important;
  min-height: 0 !important;
  max-height: 64px !important;
  aspect-ratio: 1/1;
  padding-top: 0 !important;
  box-sizing: border-box;
}
.thumbnail-slider .swiper-slide {
  width: 70px !important;
  max-width: 70px !important;
  box-sizing: border-box;
}
.thumbnail-slider .swiper-slide.swiper-slide-thumb-active .thumb-image,
.thumbnail-slider .swiper-slide.swiper-slide-active .thumb-image {
  border: 2px solid #ff0000 !important;
  box-shadow: 0 0 0 2px #ff000033;
  z-index: 2;
}
/* Product Image Zoom Effect */
.zoom-image-container {
  overflow: hidden;
  position: relative;
}
.zoom-image {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  cursor: zoom-in;
}
.zoom-image.zoomed {
  transform: scale(1.7) !important;
  z-index: 2;
  cursor: zoom-out;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
:root {
  --primary-color: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #4CAF501A;
  --accent-color: #ff9800;
  --accent-dark: #f57c00;
  --accent-light: #ffe0b2;
  --bg-light: #f9f9f9;
  --border-color: #d9d9d9;
  --white: #ffffff;
  --black: #060606;
}


@keyframes scrollMove {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.product-card:hover,
.product-card:hover .card-image-wrapper {
    box-shadow: none !important;
}

/* Snacks section */
.drink-box {
  background: linear-gradient(135deg, #ffcc33, #ff9900);
  border-radius: 20px;
  padding: 18px;
  height: 260px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.drink-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 38%;
    background: #00bcd4;
    border-top-left-radius: 50% 35px;
    border-top-right-radius: 50% 35px;
    z-index: 1;
}
.drink-image {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 140px;
    object-fit: contain;
    z-index: 2;
}
@media (max-width: 576px) {
  .drink-box {
    height: 226px;
    padding: 15px;
  }

  .drink-image {
    max-height: 120px;
    bottom: 35px;
  }
}

/* Monthly pack section */
.trend-track {
    display: flex;
    transition: transform 0.4s ease;
}
.trend-card {
    min-width: calc(100% / 3);
    padding: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .trend-card { min-width: calc(100% / 2); }
}
@media (max-width: 480px) {
    .trend-card { min-width: 100%; }
}
.trend-card.hidden-card { display: none; }
.card-btn:hover { background: #008f45; }
.offer-tag {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Nuts and dry */

.category-content {
    position: absolute;
    bottom: -26px;
    left: 41%;
    transform: translateX(-50%);
    width: 85%;
}

/* Meat section */
.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/*  Fruits */
.health-card img:hover {
    transform: scale(1.05);
}

/* vegetables */
.category-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.wishlist:hover {
    background: #ff4d4d;
    color: #fff;
}
.category-product-card:hover .product-img img {
    transform: scale(1.05);
}
.add-to-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

/* Fish */
.dryfish-scroll::-webkit-scrollbar { display: none; }
.fresh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.add-btn-small:hover {
  background: #218838;
  transform: scale(1.1);
}
.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Combo pack section */
.cp-track {
    display: flex;
    transition: transform 0.4s ease;
}
.cp-slide-item {
    min-width: calc(100% / 3);
    padding: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}
@media (max-width: 992px) { .cp-slide-item { min-width: calc(100% / 2); } }
@media (max-width: 640px) { .cp-slide-item { min-width: 100%; } }
.cp-slide-item.hidden-card { display: none; }
.cp-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.cp-card:hover .cp-card-img { transform: scale(1.08); }
.cp-buy-btn:hover { background: #218838; }
.cp-filter-btn.cp-active { background: #d81b60; color: white; }


/* cart side panel */
/* cart-css */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}
.cart-panel.open {
  transform: translateX(0);
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.qty-spinner svg path {
  stroke: var(--black);
}
.home-banner-sec .home-arrow-wrapper .swiper-button-prev,
.home-banner-sec .home-arrow-wrapper .swiper-button-next {
  position: unset;
}

/* Side bar */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    gap: 10px;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    gap: 10px;
}
.btn-outline:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* form */
.form-input {
  width: 100%;
  outline: none;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  text-transform: capitalize;
}

/* prodct card price */
.product_final_price{
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.product_orignal_price{
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-text-decoration-line: line-through;
  text-decoration-line: line-through;
}



/********* RTL CSS **********/
/* home page rtl css  */
[dir="rtl"] .fas.fa-arrow-right,
[dir="rtl"] .header-icons #form_logout svg {
  transform: scaleX(-1);
}
[dir="rtl"] .swiper-button-next{
  right: 10px;
    left: auto;
} 
[dir="rtl"] .swiper-button-prev{
  left: 10px;
  right: auto;
}
[dir="rtl"] #mobile-menu,
[dir="rtl"] .cart-panel{
  left: 0;
  right: auto;
  transform: translateX(-100%)
}

[dir="rtl"] #mobile-menu.show,
[dir="rtl"] .cart-panel.open{
  transform: translate(0);
}
[dir="rtl"] select {
  padding: 8px 15px 8px 35px !important;
  background-position: 15px 50%;
}

/* inner-page-css */
[dir="rtl"] #mobile-filter {
  right: 0;
  left: auto;
}
@media screen and (max-width: 1023px) {
  [dir="rtl"] #mobile-filter.-translate-x-full {
    transform: translateX(100%);
  }
  [dir="rtl"] #mobile-filter {
    transform: translateX(0);
  }
}

/* site-header */
.header-icons svg {
  height: 22px;
  width: 22px;
}
.header-icons svg path {
  fill: var(--black);
}
.site-header .menu-dropdown {
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease-in-out 0s;
  -webkit-transition: all 300ms ease-in-out 0s;
  -moz-transition: all 300ms ease-in-out 0s;
  -ms-transition: all 300ms ease-in-out 0s;
  -o-transition: all 300ms ease-in-out 0s;
  transform-origin: top;
  transform: scaleY(0);
  -webkit-transform: scaleY(0);
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -o-transform: scaleY(0);
}
.site-header .main-nav>.has-item:hover>.menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleY(100%);
  -webkit-transform: scaleY(100%);
  -moz-transform: scaleY(100%);
  -ms-transform: scaleY(100%);
  -o-transform: scaleY(100%);
}
.site-header .main-nav>.has-item>a:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid #374151;
  border-left: 2px solid #374151;
  transform: translateY(-50%) rotate(225deg);
  -webkit-transform: translateY(-50%) rotate(225deg);
  -moz-transform: translateY(-50%) rotate(225deg);
  -ms-transform: translateY(-50%) rotate(225deg);
  -o-transform: translateY(-50%) rotate(225deg);
  transition: all ease-in-out 0.5s;
  -webkit-transition: all ease-in-out 0.5s;
  -moz-transition: all ease-in-out 0.5s;
  -ms-transition: all ease-in-out 0.5s;
  -o-transition: all ease-in-out 0.5s;
  z-index: 1;
}
.site-header .main-nav>.has-item:hover>a:after {
  border-color: var(--primary-color);
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

/* --------------------------------------------------------
   SUBMENU – OPEN TO THE RIGHT (X-DIRECTION)
---------------------------------------------------------*/
.menu-dropdown > .has-item > .menu-dropdown {
  top: 0;
  left: 100%; /* <-- right side */
}
.menu-dropdown {
  margin: 2px;
}

.menu-dropdown > .has-item:hover > .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleX(1); /* <-- horizontal open */
}

.menu-dropdown li a {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
  color: #374151;
  font-size: 14px;
}
.menu-dropdown li a:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}
.menu-dropdown > .has-item > a {
  position: relative;
  padding-right: 20px;
}
.menu-dropdown > .has-item > a:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 7px;
  height: 7px;

  border-top: 2px solid #374151;
  border-right: 2px solid #374151;

  transform: translateY(-50%) rotate(45deg);
  transition: 300ms ease;
}
.menu-dropdown > .has-item:hover > a:after {
  border-color: var(--primary-color);
  transform: translateY(-50%) rotate(225deg);
}

/* Flip: open LEFT */
.menu-dropdown.open-left {
  top: 11px !important;
  left: auto !important;
  right: 100% !important;
  transform-origin: right;
}

.rotate-180 {
  transform: rotate(180deg);
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  width: 100%;
  padding: 10px 100px 10px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
.search-bar i {
  position: absolute;
  left: 16px;
}
.search-bar button {
  position: absolute;
  right: 0.5rem;
  padding: 4px 13px;
  font-size: 14px;
  font-weight: 500;
}
.search-bar button:hover {
  background-color: var(--primary-dark);
}
.mobile-dropdown-content {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.mobile-dropdown-content a {
  display: block;
  padding: 0.5rem 0;
}
.mobile-dropdown-toggle.active+.mobile-dropdown-content {
  display: block;
}
/* Animation for mobile menu */
.mobile-menu-enter {
  opacity: 0;
  transform: translateX(-100%);
}
.mobile-menu-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms, transform 300ms;
}
.mobile-menu-exit {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 300ms, transform 300ms;
}
.mobile-dropdown-content {
  display: none;
}
.mobile-dropdown-content.show {
  display: block;
}
.mobile-menu {
  width: 100%;
  max-width: 320px;
  right: 0;
}
.mobile-menu.show {
  transform: translateX(0);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}