/* Reset + base */


.montserrat-font {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.alexandria-font {
  font-family: "Alexandria", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* English */
html.lang-en body {
  font-family: "Montserrat", sans-serif;
  direction: ltr;
}

/* Arabic */
html.lang-ar body {
  font-family: "Alexandria", sans-serif;
  direction: rtl;
}

html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .text-left {
  text-align: right !important;
}

html[dir="rtl"] .text-right {
  text-align: left !important;
}

html[dir="rtl"] .force-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .slide-middle .content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .email-btn {
  left: 0;
  right: unset;
  bottom: 0;
  top: -80%;
  transform: rotate(180deg);
}

.alexandria {
  color: #ffffff;
  font-size: smaller;
  padding: 8px;
}

:root {
  --accent: rgb(255, 91, 40);
  --accent-2: rgb(255, 125, 65);
  --muted: #777;
  --bg: #fff;
  --dark: #000;
  --bg-dark: #000;
  --container-width: 1180px;
  --radius: 10px;
  --arabic-font: 'Alexandria', sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-family: var(--arabic-font);
  font-weight: 600;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility: container */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  padding: 6px 0;
}

.top-bar .container a {
  color: #fff;
  text-decoration: none;
}

.top-bar p {
  margin: 0;
  padding: 4px 0;
  text-align: center
}

/* Middle Bar */

.middle-bar {
  background: var(--accent-2);
  color: #fff;
  font-size: 0.95rem;
  padding: 6px 0;
  text-align: center;
}

.search-btn img {
  width: 20px
}

.cart-btn {
  position: relative;
}

/* Cart Icon */
.cart-btn img {
  width: 28px;
  height: auto;
}

/* Badge */
.cart-amount {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ff3b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 59, 59, 0.4);
  transform: scale(1);
  transition: transform 0.2s ease;
}

/* Hover feedback */
.cart-btn:hover .cart-amount {
  transform: scale(1.1);
}

/* Bounce animation */
@keyframes bounce {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.3);
  }

  60% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.cart-amount::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.35);
  opacity: 0;
  transform: scale(0.6);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.6);
  }

  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.cart-amount.animate {
  animation: bounce 0.35s ease;
}

.cart-amount.animate::after {
  animation: pulse 0.6s ease;
}

.cart-amount:empty,
.cart-amount[data-count="0"] {
  display: none;
}

.cart-btn img {
  width: 20px;
}

.lang-btn img {
  width: 20px;
}

.lang-btn {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

.middle-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* makes it evenly spaced across */
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.brand .logo {
  height: 50px;
  width: auto;
}

/* Search Bar */
.search-bar {
  position: relative;
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  background: var(--accent);
  border-radius: 50px;
  padding: 4px 14px;
  transition: all 0.3s ease;
}

.search-bar::placeholder {
  color: #fff;
}

.search-bar input {
  color: #fff;
  flex: 1;
  border: none;
  background: transparent;
  padding: 4px;
  font-size: 0.95rem;
  outline: none;
}

.search-bar .search-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: 0.3s;
}

/* searchbox setyling*/
.ui-autocomplete {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
  border: none !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  font-family: var(--arabic-font) !important;
}

.ui-menu-item {
  padding: 0;
}

.ui-menu-item-wrapper {
  padding: 12px 16px !important;
  font-size: 14px;
  line-height: 1.4;
  color: #000 !important;
  white-space: normal !important;
  word-break: break-word;
}

.ui-menu-item-wrapper.ui-state-active {
  background: var(--accent-2) !important;
  color: #000 !important;
  border: none !important;
  margin: 0 !important;
}

.ui-widget.ui-widget-content {
  border: none !important;
}

.ui-menu-item-wrapper:focus {
  outline: none;
}

html[dir="rtl"] .ui-autocomplete {
  text-align: right;
}

html[dir="rtl"] .ui-menu-item-wrapper {
  direction: rtl;
}


/* Header Actions */

.header-actions .lang-btn,
.header-actions .cart-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.header-actions .lang-btn:hover,
.header-actions .cart-btn:hover {
  color: var(--accent);
}

/* Auth Buttons */
.btn {
  border: none;
  font-family: var(--arabic-font);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .middle-bar .container {
    flex-direction: column;
    gap: 15px;
  }

  .search-bar {
    max-width: 100%;
    order: 3;
  }

  .header-actions {
    order: 2;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Header */
.site-header {
  background: #000;
  color: #fff;
  border-bottom: 4px solid #111;
}

.header-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.brand .logo {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.6rem;
  letter-spacing: 0.6px;
}

/* nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-2);
}

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1.2);
}


.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------------- MOBILE NAVIGATION ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 25px;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 992px) {
  .main-nav ul {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: relative;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 400px;
    /* enough space for items */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 8px 0;
    width: 100%;
  }

  /* Animate the hamburger */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@media (max-width: 480px) {
  .main-nav a {
    font-size: 0.85rem;
  }
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center
}

@media (max-width: 375px) {
  .header-actions {
    gap: 10px;
  }
}

.btn {
  border: 0;
  padding: 8px 14px;
  border-radius: 28px;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: #fff;
}

.btn.ghost a {
  text-decoration: none;
  color: #fff;
}

.btn.primary1 a {
  text-decoration: none;
  color: var(--accent);
}

.btn.primary {
  background: var(--accent-2);
  color: #ffffff;
  margin-top: 18px;
  text-decoration: none;
}

.primary1 {
  background: #ffffff;
  color: var(--accent);
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 28px;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: all 0.3s ease cubic-bezier(0.23, 1, 0.320, 1);
}

a.btn.small.primary {
  text-decoration: none;
}

.small::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  translate: 0 105%;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.small:hover {
  animation: shake 0.2s linear 1;
}

.small:hover::before {
  translate: 0 0;
}

@keyframes shake {
  0% {
    rotate: 0deg;
  }

  33% {
    rotate: 10deg;
  }

  66% {
    rotate: -10deg;
  }

  100% {
    rotate: 10deg;
  }
}

.scroll-x {
  overflow-y: hidden;
  width: 100%;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

/* Hero */
.main-slideshow {
  overflow: visible;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
  padding-top: 30px;
}

.slides-container {
  display: flex;
  transition: transform 0.8s ease-in-out;
  gap: 20px;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: translateZ(0);
  touch-action: pan-y;
}

.slide {
  flex: 0 0 calc(100% - 20px);
  display: flex;
  width: 100%;
  min-width: 100%;
  max-height: 350px;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: space-between;
  cursor: grab;
  opacity: 1;
  position: relative;
}

.slide-prev,
.slide-next {
  opacity: 0.4;
}

.slides-container:active {
  cursor: grabbing;
}

.slide img {
  user-select: none;
  pointer-events: none;
}

.slide-left img,
.slide-right img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.slide-right img {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.slide-left img {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.slide-middle {
  width: 25%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  position: relative;
}

.slide-middle .content {
  padding: 1.2rem;
}

.slide-middle .content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.circle-logo {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  width: clamp(65px, 8vw, 130px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: #ccc 1px solid;
}

.circle-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Controls */
.prev,
.next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.dots {
  display: none;
  position: absolute;
  bottom: -20px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #000;
}

/* Responsive */
@media (min-width: 992px) {
  .circle-logo {
    bottom: -19px;
    left: 42px;
  }
}

@media (max-width: 992px) {
  .slide {
    flex-direction: inherit;
    align-items: unset;
  }

  .slide-left,
  .slide-right,
  .slide-middle {
    width: 35%;
  }

  .slide-middle {
    padding: 2rem;
  }

  .slide-middle .content {
    padding: 0;
  }

  /* .circle-logo {
    position: absolute;
    margin: auto 0;
    bottom: 0;
  } */

  .circle-logo img {
    width: 100px;
  }
}

/* Section common */
.section {
  padding: 26px 0
}

.section--light {
  background: rgb(249, 249, 250);
}

.section-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.container2 {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  background: rgb(249, 249, 250);
}

.section-title2 {
  display: flex;
  flex-direction: column;
  padding: 0px 20px;
  border-radius: 12px;
  background: rgb(249, 249, 250);
}

.section-title h2,
.section-title2 h2 {
  margin: 0;
  font-size: 1.4rem
}

.section-title2 h2 {
  margin-bottom: 5px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  height: 100%;
  min-height: 400px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
  cursor: pointer;
}

.card-media {
  position: relative;
  overflow: hidden;
  /* optional: adds a modern look */
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
  will-change: transform, filter;
}

/* Hover zoom effect */
.card-media:hover img {
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.05) contrast(1.05);
}

/* Position the favorite button */
.favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.favorite:active {
  transform: scale(0.9);
}

/* Circle background */
.favorite .fav-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Unfilled heart (default visible) */
.favorite .fav-un,
.favorite .fav-filled {
  position: absolute;
  width: 50%;
  height: 50%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Hidden by default */
.favorite .fav-filled {
  opacity: 0;
}

/* When active (clicked) */
.favorite.active .fav-un {
  opacity: 0;
}

.favorite.active .fav-filled {
  opacity: 1;
  animation: pop 0.4s ease;
}

/* Heart pop animation */
@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}


.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 0 0;
  position: relative;
  background-color: #fff;
  flex: 1;
}

.card-body::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -12px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 6px 6px, rgb(249, 249, 250) 6px, transparent 6px);
  background-size: 100% 20px;
  z-index: 2;
}

.card-body::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -4px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 6px 6px, rgb(249, 249, 250) 6px, transparent 6px);
  background-size: 100% 20px;
  z-index: 2;
}

.card-text {
  color: #333;
  font-size: 0.95rem
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1;
  flex-wrap: wrap;
}

.card-meta>* {
  white-space: nowrap;
}

.card-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prices {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;

}

.prices>* {
  white-space: nowrap;
}

@supports (flex-wrap: wrap) {
  .prices {
    flex-wrap: wrap;
  }

  .prices:has(> :nth-child(2)) {
    flex-direction: row;
  }
}

.price {
  color: var(--accent-2);
  font-weight: 700;
  font-size: medium;
}

.first-price {
  color: rgb(149, 149, 149);
}

.save-price {
  color: rgb(26, 122, 44);
  border-radius: 29px;
  padding: 2px 6px;
  background: rgb(204, 245, 184);
  border: none;
  font-weight: 600;
}

.card-footer {
  position: relative;
  font-size: 14px;
  color: #000;
  padding: 22px;
  font-weight: 500;
  background: rgb(242, 242, 243);
  border-radius: 0 0 12px 12px;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.card-footer::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 100%;
  height: 12px;
  background: radial-gradient(circle at 6px 6px, white 6px, transparent 6px);
  background-size: 20px 20px;
  background-repeat: repeat-x;
  z-index: 2;
}

.card-footer::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 100%;
  height: 12px;
  background: radial-gradient(circle at 6px 6px, white 6px, transparent 6px);
  background-size: 20px 20px;
  background-repeat: repeat-x;
  z-index: 2;
}

.card-footer * {
  position: relative;
  z-index: 1;
}

.timer-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: var(--accent-2);
  width: 0%;
  transition: width 1s linear;
  z-index: 0;
}


/* categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.categories2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
  padding: 5px;
  border-radius: 12px;
  background: rgb(249, 249, 250);
}

.cat-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06)
}

.cat-card img {
  width: 100%;
  height: 160px;
  object-fit: cover
}

.card1 {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card1:hover {
  cursor: pointer;
}


.card1 iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  border: none;
  object-fit: cover;
  pointer-events: none;
}

.card1-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  color: #ffffff;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.6) 0%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.card1-overlay h3 {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .card1 {
    aspect-ratio: 9 / 16;
  }

  .card1 iframe {
    width: 100%;
    height: 100%;
  }
}

/* categoroies filtering buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  margin-bottom: 3px;
  background-color: var(--accent-2);
  border: 2px solid var(--accent-2);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--arabic-font);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: transparent;
  color: var(--accent-2);
}


.section-title p {
  margin-top: 2px;
}

.section-title2 p {
  margin-top: 2px;
  margin-bottom: 0px;
}

.arrow1-btn {
  background: transparent;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.arrow1-btn:hover {
  transform: rotate(45deg);
}

.arrow1-btn img {
  width: 40px;
  height: 40px;
  background-color: transparent;
}

.save-line {
  display: flex;
  align-items: center;
}

.cat-body {
  padding: 12px
}

.view-all-wrap {
  text-align: center;
  margin-top: 18px
}

/* Countdown card */
.countdown-section {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.countdown-section-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.countdown-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 90%;
  max-width: 960px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.count-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px
}

.count-left img {
  width: 44px;
  height: 44px
}

.count-left h3 {
  margin: 0
}

.count-center {
  flex: 1;
  text-align: center
}

.count-timer {
  font-size: 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 20px 30px;
  border-radius: 48px;
  color: #fff;
  font-weight: bolder;
}

.count-right {
  display: flex;
  min-width: 170px;
  text-align: right;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end
}

.app-icons img {
  width: 26px;
  height: 26px;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  /* border-top: 6px solid var(--accent);*/
  padding: 46px 0 60px
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 20px;
  align-items: start;
}

.footer-col {
  line-height: 1.5;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 1rem
}

.footer-brand h2 {
  color: var(--accent);
  margin: 0 0 8px 0
}

.footer p {
  color: #fff;
  line-height: 1.6
}

.footer .socials {
  margin-top: 10px;
  display: flex;
  gap: 8px
}

.pill {
  display: inline-block;
  background: var(--accent);
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-col li {
  color: #fff;
  margin: 8px 0
}

.footer-col a {
  color: #fff;
  text-decoration: none
}

.privacy {
  display: block;
  margin-top: 8px;
  color: #bbb;
  font-size: 0.8rem
}

.privacy p {
  color: var(--muted);
  padding-top: 0px;
  line-height: normal;
}

.privacy input {
  margin-right: 8px
}

/* responsiveness */
@media (max-width:1100px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto
  }

  .hero-card--right {
    order: 3
  }

  .hero-stack {
    order: 2
  }

  .hero-card--left {
    order: 1
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .categories-grid .card {
    transition: opacity 0.3s, transform 0.3s;
  }

  .categories-grid .card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
  }

  .categories-grid,
  .categories2-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto
  }

  .footer {
    font-size: smaller;
  }

  .footer .subscribe {
    grid-column: 1 / -1
  }
}

@media (max-width: 480px) {

  .categories-grid,
  .categories2-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 12px;
    overflow: auto;
    padding-bottom: 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .hero-stack {
    grid-auto-rows: auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .categories2-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-card {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .count-right {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .count-left {
    justify-content: center;
  }
}

@media (max-width:420px) {
  .brand .logo {
    font-size: 1.2rem;
  }

  .btn {
    padding: 8px 10px;
  }

  .hero-card img {
    height: auto;
  }
}

@media (max-width:500px) {
  .count-timer {
    font-size: 1.1rem;
    padding: 10px 14px;
  }
}

/* swiper slide */
.swiper-slide {
  padding-bottom: 40px;
}

.cards-swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-button-prev,
.swiper-button-next {
  display: none !important;
  color: var(--accent);
}

.swiper-pagination-bullet-active {
  background: var(--accent-2) !important;
  width: 20px !important;
  border-radius: 28px !important;
}

.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
  width: 16px;
  border-radius: 28px;
}

.footer h4 {
  color: var(--accent-2);
}

.phone,
.email {
  color: var(--accent-2);
}

.footerlogo {
  width: 200px;
}

.social-icon img {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.social-icon:hover img {
  color: var(--accent);
  scale: 1.1;
  transition: all 0.2s ease-in-out;
}

.subscribe-form {
  display: flex;
  margin-top: 8px;
}

.email-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.email-bar {
  width: 100%;
  color: #ffffff;
  background-color: rgb(25, 25, 25);
  border: none;
  border-radius: 32px;
  padding: 10px 14px;
  padding-left: 20px;
  transition: all 0.3s ease;
  font-size: 16px;
  box-sizing: border-box;
}

.email-btn {
  position: absolute;
  right: 0px;
  top: 12%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.email-btn img {
  width: 40px;
  height: 40px;
  transition: opacity 0.2s;
}

.email-btn:hover img {
  opacity: 1;
}

/* Loader */

.loader {
  --sand-light: rgb(255, 125, 65);
  --sand-main: rgb(255, 91, 40);
  --dur: 2s;
  display: block;
  margin: auto;
  width: 14em;
  height: auto;
}

.loader__glare-top,
.loader__glare-bottom,
.loader__model,
.loader__motion-thick,
.loader__motion-medium,
.loader__motion-thin,
.loader__sand-drop,
.loader__sand-fill,
.loader__sand-grain-left,
.loader__sand-grain-right,
.loader__sand-line-left,
.loader__sand-line-right,
.loader__sand-mound-top,
.loader__sand-mound-bottom {
  animation-duration: var(--dur);
  animation-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
  animation-iteration-count: infinite;
}

.loader__glare-top {
  animation-name: glare-top;
}

.loader__glare-bottom {
  animation-name: glare-bottom;
}

.loader__model {
  animation-name: loader-flip;
  transform-origin: 12.25px 16.75px;
}

.loader__motion-thick,
.loader__motion-medium,
.loader__motion-thin {
  transform-origin: 26px 26px;
}

.loader__motion-thick {
  animation-name: motion-thick;
}

.loader__motion-medium {
  animation-name: motion-medium;
}

.loader__motion-thin {
  animation-name: motion-thin;
}

.loader__sand-drop {
  animation-name: sand-drop;
}

.loader__sand-fill {
  animation-name: sand-fill;
}

.loader__sand-grain-left {
  animation-name: sand-grain-left;
}

.loader__sand-grain-right {
  animation-name: sand-grain-right;
}

.loader__sand-line-left {
  animation-name: sand-line-left;
}

.loader__sand-line-right {
  animation-name: sand-line-right;
}

.loader__sand-mound-top {
  animation-name: sand-mound-top;
}

.loader__sand-mound-bottom {
  animation-name: sand-mound-bottom;
  transform-origin: 12.25px 31.5px;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue), 90%, 10%);
    --fg: hsl(var(--hue), 90%, 90%);
  }
}

/* Animation */
@keyframes loader-flip {
  from {
    transform: translate(13.75px, 9.25px) rotate(-180deg);
  }

  24%,
  to {
    transform: translate(13.75px, 9.25px) rotate(0);
  }
}

@keyframes glare-top {
  from {
    stroke: rgba(255, 255, 255, 0);
  }

  24%,
  to {
    stroke: white;
  }
}

@keyframes glare-bottom {
  from {
    stroke: white;
  }

  24%,
  to {
    stroke: rgba(255, 255, 255, 0);
  }
}

@keyframes motion-thick {
  from {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.67turn);
  }

  20% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: rgb(32, 32, 32);
    stroke-dashoffset: 141.11;
    transform: rotate(1turn);
  }

  40%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1.33turn);
  }
}

@keyframes motion-medium {

  from,
  8% {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.5turn);
  }

  20% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: white;
    stroke-dashoffset: 147.53;
    transform: rotate(0.83turn);
  }

  32%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1.17turn);
  }
}

@keyframes motion-thin {

  from,
  4% {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.33turn);
  }

  24% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: rgb(53, 53, 53);
    stroke-dashoffset: 134.7;
    transform: rotate(0.67turn);
  }

  44%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1turn);
  }
}

@keyframes sand-drop {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 1;
  }

  70%,
  to {
    stroke-dashoffset: -107;
  }
}

@keyframes sand-fill {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 55;
  }

  70%,
  to {
    stroke-dashoffset: -54;
  }
}

@keyframes sand-grain-left {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 29;
  }

  70%,
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes sand-grain-right {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 27;
  }

  70%,
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes sand-line-left {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 53;
  }

  70%,
  to {
    stroke-dashoffset: -55;
  }
}

@keyframes sand-line-right {

  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 14;
  }

  70%,
  to {
    stroke-dashoffset: -24.5;
  }
}

@keyframes sand-mound-top {

  from,
  10% {
    animation-timing-function: linear;
    transform: translate(0, 0);
  }

  15% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    transform: translate(0, 1.5px);
  }

  51%,
  to {
    transform: translate(0, 13px);
  }
}

@keyframes sand-mound-bottom {

  from,
  31% {
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
    transform: scale(1, 0);
  }

  56%,
  to {
    transform: scale(1, 1);
  }
}

.loader-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-wrapper svg {
  width: 100px;
  height: auto;
}

.arcade-card {
  width: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Top image section */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* White section with circular cuts */
.card-bottom {
  background: white;
  height: 180px;
  position: relative;
}

/* Semicircular cuts at the bottom */
.card-bottom::before,
.card-bottom::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #f3f3f3;
  /* same as body bg to simulate cut */
  border-radius: 50%;
  box-shadow: 16px 0 0 #f3f3f3;
}

.card-bottom::after {
  left: calc(100% - 32px);
  box-shadow: -16px 0 0 #f3f3f3;
}

/*  */

.title-view-wrapper {
  display: flex;
  justify-content: space-between;
}

.section-viewAll {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

@media (max-width: 768px) {
  .section-viewAll {
    flex-wrap: wrap;
    align-items: unset;
  }

  .section-viewAll span {
    font-size: smaller;
  }

  .popular-cat {
    flex-direction: column !important;
  }

  .viewAll2 {
    align-items: center;
  }
}

.filter-container {
  display: flex;
  align-items: flex-start;
  margin-top: 1rem;
  gap: 20px;
}

.section-viewAll span {
  font-size: small;
}

@media (max-width: 480px) {
  .section-viewAll {
    font-size: x-small;
  }
}

.arrow2-btn img {
  width: 30px;
  height: 30px;
}

.arrow2-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.arrow2-btn:hover {
  transform: rotate(45deg);
}

/* middle flayer */
.middle-img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card2-overlay {
  position: relative;
  bottom: 0;
  left: 0;
  color: #ffffff;
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 18px #d6d6d6,
    -5px -5px 18px #ffffff;
  /* background: url("/theme/assets/middle-photo.jpg") No-repeat center center/cover; */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.card2-overlay h3 {
  left: 0;
  bottom: 0;
  margin-bottom: 0;
}

.overlay-wrapper {
  position: relative;
  top: 0;
  left: 0;
  width: fit-content;
  height: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  z-index: 1;
}

.middle-flayer {
  margin: 20px 0;
  padding-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: transparent;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.back-to-top img {
  width: 40px;
  height: 40px;
  rotate: calc(-90deg);
  transition: transform 0.3s ease;
}

.back-to-top:hover img {
  transform: translateX(3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}


.back-to-top.always {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .countdown-card {
    flex-direction: column;
  }

  .main-nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .top-bar p {
    font-size: small;
  }
}

.read-more-btn {
  font-family: var(--arabic-font);
}

.checkout-btn,
.btn-primary,
.btn-back {
  font-family: var(--arabic-font);
}

/* Bell Notification */
.bell-icon {
  position: absolute;
  top: -35px;
  right: -30px;
  z-index: 10;
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 50%;
  display: flex;

  svg {
    margin: auto;
    position: relative;
    right: 2%;
    width: 80%;
    height: 80%;
    stroke: rgba(0, 0, 0, 0.75);
  }

  .bell-icon__group {
    transform-origin: 50% 2px;
    transform: rotate(-8deg);
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
  }

  .bell-icon__ball {
    transform-origin: 50% 2px;
    transform: translateX(-6.5%);
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
  }

  &:focus,
  &:hover {
    outline: none;
    box-shadow: 0 0 12px -8px rgba(0, 0, 0, 0.6);

    .bell-icon__group {
      animation: animateGroup 2.3s;
    }

    .bell-icon__ball {
      animation: animateBall 2.3s;
    }

    .notification-amount {
      opacity: 1;
      visibility: visible;

      &::before {
        animation-name: bounce;
        animation-delay: 450ms;
      }
    }
  }
}

/* Tooltip box */
.bell-icon .tooltip {
  position: absolute;
  bottom: 125%;
  /* above the bell */
  right: 50%;
  transform: translateX(50%) translateY(4px);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Tooltip arrow */
.bell-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.bell-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.notification-amount {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 15%;
  right: 20%;
  width: 20px;
  height: 20px;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Copse", serif;
  font-size: 14px;

  span {
    position: relative;
  }

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #f72918;
    border-radius: 50%;
    z-index: 0;
    transform: scale(0);
    animation-duration: 800ms;
    animation-fill-mode: both;
  }
}

@keyframes animateGroup {

  0%,
  100% {
    transform: rotate(-8deg);
  }

  17.542% {
    transform: rotate(0deg);
  }

  35.084% {
    transform: rotate(-20deg);
  }

  48.2405% {
    transform: rotate(20deg);
  }

  57.0115% {
    transform: rotate(-20deg);
  }

  64.9054% {
    transform: rotate(8deg);
  }

  74.5535% {
    transform: rotate(-15deg);
  }

  78.939% {
    transform: rotate(-7deg);
  }
}

@keyframes animateBall {

  0%,
  100% {
    transform: translateX(-6.5%);
  }

  17.542% {
    transform: translateX(0%);
  }

  21.9275% {
    transform: translateX(-1%);
  }

  35.084% {
    transform: translateX(11%);
  }

  48.2405% {
    transform: translateX(-11%);
  }

  52.626% {
    transform: translateX(0%);
  }

  59.6428% {
    transform: translateX(10%);
  }

  68.414% {
    transform: translateX(-11%);
  }

  78.939% {
    transform: translateX(11%);
  }

  85.964% {
    transform: translateX(-11%);
  }
}


@keyframes bounce {
  0% {
    transform: scale(0);
  }

  14% {
    transform: scale(1.15);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

/* big deal new*/

.bigdeal-overlay {
  position: relative;
  bottom: 0;
  left: 0;
  color: #ffffff;
  width: 100%;
  min-height: 350px;
  border-radius: 12px;
  padding: 20px;
  background: url("/theme/assets/big-deal.jpg") No-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(40px);
  margin-bottom: 50px;
  margin-top: 20px;
  box-shadow: 5px 5px 18px #d6d6d6,
    -5px -5px 18px #ffffff;
}

.bigdeal-overlay.animate {
  animation: fadeUp 0.9s ease-out forwards;
}

.bigdeal-overlay h2 {
  left: 0;
  bottom: 0;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.9s ease-out forwards;
  animation-delay: 0.15s;
}

.big-flayer {
  margin: 20px 0;
  padding-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.bigdeal-overlay.animate h2 {
  animation-play-state: running;
}

.save-line-bigdeal {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.bigdeal-overlay.animate .save-line-bigdeal {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* Arrow pulse */
.arrow-bigdeal {
  background: transparent;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  animation: arrowPulse 1.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.arrow-bigdeal img {
  width: 40px;
  height: 40px;
  background-color: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrowPulse {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}