/* Add custom CSS styles below */
/* ==========================================
   css styles for codykey website
   ========================================== */

/* define color variables */
:root {
  --primary-color: #2ce29a;
  --secondary-color: #2f4858;
  --bg-fallback: #f5f5f5;
}
.s-add-product-button-main .s-add-product-button-mini-checkout {
  --salla-fast-checkout-button-border-radius: 100px;
}
/* —— Add to Cart button —— */
.undefined.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center {
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  color: #fff !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-radius: 100px;
}

.s-fast-checkout-button.outline {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}
/* SVG icon inherits currentColor */
.s-fast-checkout-button.outline svg {
  fill: currentColor;
}

section.flex.bg-white.p-5.sm\:pb-0.rounded-md.rounded-b-none,
section.sticky-product-bar.bg-white.p-5.rounded-md.rounded-b-none {
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 20px;
}
/* basic */
body {
  background-color: var(--bg-fallback);
  background-image: url("https://itsak.io/drive/body-background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

/***** header component *****/
/***** header compoent *****/
div#mainnav {
  background: transparent;
  box-shadow: 0 0;
}
.main-nav-container.fixed-header .inner {
  box-shadow: 0 0;
}
#mainnav > div > div {
  background: white;
  border-radius: 100px;
  padding: 0 50px;
  margin-top: 10px;
}
/** hero section **/
.full-banner-entry {
  background-color: transparent;
}

h2.text-2xl.font-bold.leading-12 {
  font-size: 72px;
  color: var(--secondary-color);
  max-width: 500px;
  line-height: 1.4;
}
/* ستايل للكلمة المظللة */
.hero-highlight {
  color: var(--primary-color);
  display: block;
}

/* style for the hero description */
/* make sure the h2 can carry a ::after */
.full-banner-entry .flex > div h2 {
  position: relative !important;
}

/* inject your description text */
/* Arabic */
.full-banner-entry .flex > div h2::after {
  content: "مرحباً بكم في متجر كود كي، وجهتكم المثالية لشراء المنتجات الرقمية! نقدم لكم تجربة تسوق سلسة وآمنة تلبي جميع احتياجاتكم الرقمية";
  display: block !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--secondary-color) !important;
  max-width: 600px !important;
  margin: 1rem 0 1.5rem !important;
  font-weight: 400;
}

/* English */
html[lang="en"] .full-banner-entry .flex > div h2::after {
  content: "Welcome to CodeKey, your perfect destination for buying digital products. We provide you with a seamless and safe shopping experience to fulfill all your digital requirements";
  display: block !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--secondary-color) !important;
  max-width: 600px !important;
  margin: 1rem 0 1.5rem !important;
  font-weight: 400;
}

.full-banner-entry::before,
.full-banner-entry::after {
  display: none;
}

/***** start of hero button *****/
a.inline-block.text-white.text-sm.border.rounded-md.font-bold.px-8.py-4 {
  position: relative;
  display: inline-block;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #fff;
  font-size: 20px;
  padding: 1rem 2rem;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* عنصر زائف للومضات */
a.inline-block.text-white.text-sm.border.rounded-md.font-bold.px-8.py-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

a.inline-block.text-white.text-sm.border.rounded-md.font-bold.px-8.py-4:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 0 10px var(--primary-color);
}

a.inline-block.text-white.text-sm.border.rounded-md.font-bold.px-8.py-4:hover::before {
  left: 100%;
}
/***** end of hero button *****/

.flex.h-full.items-center.justify-center.p-5.xs\:p-11.relative {
  justify-content: start;
}
#app
  > div.app-inner.flex.flex-col.min-h-full
  > section.s-block.s-block--full-banner.s-block--full-bg
  > div
  > div.flex.h-full.items-center.justify-center.p-5.xs\:p-11.relative
  > div {
  text-align: start;
}

/**** sections title *****/
.s-slider-block__title-nav,
.s-slider-prev,
.s-slider-next {
  display: none !important;
}
.s-slider-block__title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.s-slider-block__title h2 {
  position: relative !important;
  font-size: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  color: var(--secondary-color);
}
.s-slider-block__title h2::before,
.s-slider-block__title h2::after {
  content: "" !important;
  display: block !important;
  width: 90px;
  height: 15px;
  background: var(--primary-color) !important;
  border-radius: 100px !important;
  margin: 0 16px !important;
}

/***** product card *****/
@media (min-width: 1024px) {
  .s-products-slider-card {
    width: 16.666% !important;
  }
}
/* غلاف البطاقة */
.s-product-card-entry.s-product-card-vertical {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.s-product-card-entry.s-product-card-vertical:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

/* صورة المنتج + نسبة أبعاد ثابتة */
.s-product-card-image {
  position: relative;
  aspect-ratio: 1/1;
  background: #f6f7f9;
}
.s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* زر المفضلة */
.s-product-card-wishlist-btn,
.s-product-card-image salla-button.s-button-wrap {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
}
.s-product-card-wishlist-btn .s-button-element {
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffffcc !important;
  backdrop-filter: blur(6px);
  width: 38px;
  height: 38px;
}

/* بادج العرض */
.s-product-card-promotion-title {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid #b91c1c;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* محتوى البطاقة */
.s-product-card-content {
  padding: 14px 14px 16px;
}

/* العنوان */
.s-product-card-content-title {
  margin: 0 0 6px;
}
.s-product-card-content-title a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-product-card-content-title a:hover {
  opacity: 0.9;
}

/* الأسعار */
.s-product-card-sale-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.s-product-card-sale-price h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.s-product-card-sale-price h4 i {
  font-size: 0.9em;
  opacity: 0.9;
}
.s-product-card-sale-price span {
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: line-through;
}

/* الفوتر + زر الإضافة للسلة */
.s-product-card-content-footer {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.s-product-card-content-footer .s-button-element {
  height: 44px;
  border-radius: 12px;
  border-width: 1px;
  font-weight: 700;
}
.s-product-card-content-footer .s-button-primary-outline {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.s-product-card-content-footer .s-button-primary-outline:hover {
  filter: brightness(1.08);
}

/* دعم RTL/LTR بدون كسر المحاذاة */
[dir="rtl"] .s-product-card-sale-price {
  flex-direction: row;
}
[dir="ltr"] .s-product-card-sale-price {
  flex-direction: row;
}

/* تحكم بمسافات السلايدر */
.swiper-slide .s-product-card-entry {
  height: 100%;
}
.s-product-card-fit-height .s-product-card-image {
    height: initial;
    max-height: 15rem;
}
/* حالات لمس للهواتف */
@media (hover: none) {
  .s-product-card-entry.s-product-card-vertical:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }
}

.s-button-primary-outline {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 0.75rem 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
  transition: background 0.4s ease, box-shadow 0.3s ease;
}
.s-button-primary-outline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0.8;
  pointer-events: none;
}
.s-button-primary-outline:hover {
  background-color: var(--primary-color) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
}
.s-button-primary-outline:hover::after {
  width: 200%;
  height: 200%;
  opacity: 0;
}
.s-button-primary-outline .sicon-shopping-bag {
  margin-inline-end: 0.5rem;
}
.s-product-card-promotion-title {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  left: 6px;
  background: linear-gradient(
    135deg,
    rgba(255, 75, 75, 0.9),
    rgba(255, 130, 130, 0.85)
  );
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.5;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.s-product-card-promotion-title:where([dir="rtl"], [dir="rtl"] *) {
  right: 6px;
  left: auto;
}
.s-product-card-promotion-title:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/***** reviews *****/
.s-reviews-header-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
.s-reviews-header {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 48px !important;
  margin: 0 0 20px 0 !important;
  color: var(--secondary-color) !important;
}
.s-reviews-header::before,
.s-reviews-header::after {
  content: "" !important;
  display: block !important;
  width: 90px !important;
  height: 15px !important;
  background: var(--primary-color) !important;
  border-radius: 100px !important;
  margin: 0 16px !important;
}
.s-block--features__item,
.s-reviews-testimonial {
  border-radius: 20px;
}
.s-block--features__item .feature-icon {
  background: var(--primary-color) !important;
}
.s-block--features__item .feature-icon i {
  color: white;
}

/* RTL fix */
.s-slider-block__title-right:where([dir="rtl"], [dir="rtl"] *),
.s-slider-block__title h2:where([dir="rtl"], [dir="rtl"] *) {
  padding-left: 0;
}

/* ============= Responsive adjustments ============= */

/* Desktop (keep text/button left) */
@media (min-width: 769px) {
  .full-banner-entry .flex {
    justify-content: flex-start !important;
    padding: 5rem 2rem;
  }
}

/* Mobile/Tablet (≤768px): hide image */
@media (max-width: 768px) {
  .full-banner-entry {
    background-image: none !important;
    padding: 2rem 1rem !important;
  }
  .full-banner-entry .overlay {
    display: none !important;
  }
  .full-banner-entry .flex {
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
  }
}
@media (max-width: 768px) {
  /* Sections title responsive */
  .s-slider-block__title {
    /* keep centered but add some vertical spacing */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 1.5rem 0 !important;
  }
  .s-slider-block__title h2 {
    font-size: 32px !important; /* smaller on mobile */
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
  .s-slider-block__title h2::before,
  .s-slider-block__title h2::after {
    width: 60px !important; /* shorter bars */
    height: 12px !important; /* thinner bars */
    margin: 0 8px !important; /* tighter spacing */
  }
}
@media (max-width: 768px) {
  /* Responsive reviews header */
  .s-reviews-header {
    font-size: 32px !important; /* smaller on mobile */
    margin: 0 0 16px 0 !important; /* reduced bottom spacing */
  }
  .s-reviews-header::before,
  .s-reviews-header::after {
    width: 60px !important; /* shorter bars */
    height: 12px !important; /* thinner bars */
    margin: 0 8px !important; /* tighter spacing */
  }
}

/* ============= Mobile/Tablet only hero centering (≤768px) ============= */
@media (max-width: 768px) {
  #app
    > div.app-inner.flex.flex-col.min-h-full
    > section.s-block.s-block--full-banner.s-block--full-bg
    > div
    > div.flex.h-full.items-center.justify-center.p-5.xs\:p-11.relative
    > div {
    text-align: center;
  }
  /* Hero wrapper: flex column, centered */
  .full-banner-entry {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 2rem 1rem !important;
    background-image: none !important; /* hide hero background */
  }
  /* Remove the dark overlay */
  .full-banner-entry .overlay {
    display: none !important;
  }
  /* Hero inner flex: also center */
  .full-banner-entry .flex {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }
  /* Heading: smaller, full-width on mobile */
  .full-banner-entry h2.text-2xl.font-bold.leading-12 {
    font-size: 36px !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  /* Injected description */
  .full-banner-entry .flex > div h2::after {
    font-size: 16px !important;
    max-width: 100% !important;
    margin: 0.75rem 0 1rem !important;
  }
  /* Button: center and fit content */
  a.inline-block.text-white.text-sm.border.rounded-md.font-bold.px-8.py-4 {
    margin-top: 1rem !important;
    width: auto !important;
  }
}
.banner--fixed img {
  border-radius: 20px !important;
}
.store-footer .md\:flex.items-center.justify-between.py-4.container.text-center,
.footer-is-light .store-footer .store-footer__inner {
  background: var(--secondary-color) !important;
  background-color: var(--secondary-color) !important;

  color: white !important;
}
.store-footer {
  background-color: var(--secondary-color) !important;
  background: var(--secondary-color) !important;
}

.store-footer text-gray-400 mb-2.5 md:mb-0 {
  color: white !important;
}

.copyright-text p {
  color: white !important;
}