/* ================= PRODUCT PAGE ================= */
body.product-single .main-content.md\:sticky.md\:overflow-hidden.top-24.w-full.md\:w-2\/4.md\:pb-16 > .flex.whitespace-nowrap.gap-4.items-center {
  display: none !important;
}
body.product-single h1 {
  text-transform: uppercase !important;
}
a.s-menu-topnav-item.topnav-link-item.right-side[href*="1932186110"] {
  display: none !important;
}

body.product-single .app-inner .flex {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 20px;
}
@media (max-width: 767px) {
  body.product-single .app-inner .flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  body.product-single .app-inner .flex > div {
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  .x-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
  }
  .sidebar,
  .main-content {
    width: 50% !important;
    max-width: 50% !important;
    float: none !important;
    display: block !important;
  }
}

@media (min-width: 768px) {
  .product-page-container {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 40px;
    align-items: flex-start;
  }
  .sidebar,
  .product-details {
    width: 50% !important;
  }
}

.main-content {
  position: sticky;
  top: 300px; /* عدل الرقم حسب حجم السلايدر أو الهيدر */
  z-index: 1;
}
@media (max-width: 768px) {
  .main-content {
    top: 250px;
  }
}

.single-product .custom-collections-salla {
  display: none !important;
}


/* ================= PRODUCT LISTING / CARDS ================= */
body[data-page-name="product.index"] .flex.min-h-screen {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 20px;
  align-items: flex-start;
}
body[data-page-name="product.index"] .s-product-card-entry {
  width: 100% !important;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
body[data-page-name="product.index"] .s-product-card-entry img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
body[data-page-name="product.index"] .s-product-card-entry:hover {
  transform: translateY(-6px);
}
body[data-page-name="product.index"] .s-product-card-content-title {
  color: #000;
}

.s-product-card-content-title {
  text-transform: uppercase;
  font-size: 20px !important;
  font-weight: bold !important;
  text-align: center !important;
  margin-top: 10px;
}
.s-product-card-content-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 60px;
}
.s-product-card-content-footer,
.s-product-card-price,
body.template-index .s-product-card-content .salla-add-product-button,
body.template-index .s-button-element.w-full:not(:disabled):not([loading]) {
  display: none !important;
}


/* ================= GLOBAL ================= */
body, * {
  font-family: 'Operetta8Black', sans-serif !important;
}
body, h1, h2, h3, h4, h5, h6, a, p, span, div, button, input, textarea {
  font-family: 'Tajawal', sans-serif !important;
}

body {
  background-color: #fff;
}
section {
  background-color: #fff !important;
}

:root {
  --color-primary: #000 !important;
  --color-primary-dark: #000 !important;
  --color-primary-light: #000 !important;
  --color-primary-reverse: #fff !important; /* was #000 = black text on black buttons */
}
.s-button-primary {
  color: #fff;
}

/* NOTE: this turns every flex row on the site into a column.
   The current layout depends on it, so it stays. */
.flex {
  display: flex;
  flex-direction: column;
}


/* ================= HEADER ================= */
.s-cart-summary-wrapper,
.header-btn__icon.sicon-user-circle,
.flex.items-center.justify-end,
.top-navbar .s-search-input,
.s-search-icon svg {
  display: none !important;
}

.header-btn {
  display: flex;
  position: absolute;
  margin-left: 150px;
}

.ltr .mburger {
  margin-right: 20rem !important;
}

.custom-icons-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-left: 15rem;
}
@media (min-width: 992px) {
  .custom-icons-nav {
    position: absolute;
    left: 1200px;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 768px) {
  .custom-icons-nav {
    position: absolute;
  }
}
.custom-icons-nav a {
  display: inline-block;
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}
.custom-icons-nav a:hover {
  transform: scale(1.2);
}
.custom-icons-nav img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0%) sepia(100%) hue-rotate(250deg) saturate(400%) contrast(1);
}

.s-block--tabs-produtcs .tab-trigger.is-active button {
  color: #000;
  font-size: 22px;
  background-color: #fff;
  border-color: #ebecfd03;
}


/* ================= MOBILE MENU ================= */
.custom-mobile-links {
  display: none;
}
@media (max-width: 767px) {
  .custom-mobile-links {
    display: block;
    list-style: none;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    margin-top: 15px;
  }
  .custom-mobile-links li {
    margin-bottom: 4px;
  }
  .custom-mobile-links a,
  .custom-mobile-links .submenu-toggle {
    display: block;
    padding: 10px 0; /* bigger tap area */
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
  }
  /* + / − so people know COLLECTIONS opens */
  .custom-mobile-links .submenu-toggle::after {
    content: "+";
    float: right;
    font-weight: normal;
  }
  .custom-mobile-links .has-submenu:has(.submenu-list.open) .submenu-toggle::after {
    content: "−";
  }
  .has-submenu .submenu-list {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin-top: 4px;
  }
  .has-submenu .submenu-list.open {
    display: block;
  }
  .has-submenu .submenu-list a {
    font-weight: normal;
  }
}


/* ================= HOME: HERO VIDEO ================= */
.custom-hero-salla {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.hero-video-salla {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay-salla {
  position: relative;
  z-index: 2;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-overlay-salla h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
}
.hero-btn-salla {
  background: #fff;
  color: #000;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s ease;
}
.hero-btn-salla:hover {
  background: #000;
  color: #fff;
}
@media (max-width: 600px) {
  .hero-overlay-salla h1 {
    font-size: 1.8rem;
  }
  .hero-btn-salla {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* ================= HOME: COLLECTIONS ================= */
.custom-collections-salla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 20px;
  background: #fafafa;
}
.collection-item-salla {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}
.collection-item-salla img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collection-item-salla:hover img {
  transform: scale(1.05);
}
.collection-title-salla {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}


/* ================= FOOTER ================= */
/* hide Salla's default footer (the custom one replaces it) */
.footer-is-light .store-footer,
.footer-is-light .store-footer .store-footer__inner {
  display: none;
}

.custom-footer-salla {
  background-color: #f9f6f4;
  padding: 20px;
  font-family: 'Tajawal', sans-serif;
  color: #111;
}
.custom-footer-salla .newsletter {
  text-align: center;
  margin-bottom: 30px;
}
.custom-footer-salla .newsletter-form {
  margin-top: 10px;
  display: inline-flex;
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
}
.custom-footer-salla input[type="email"] {
  border: none;
  background: transparent;
  padding: 5px 10px;
  outline: none;
  font-size: 14px;
}
.custom-footer-salla .arrow {
  font-size: 18px;
  cursor: pointer;
  padding-left: 10px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  text-align: left;
  gap: 5px;
}
.footer-logo h2 {
  font-family: serif;
  font-weight: normal;
  font-size: 28px;
  line-height: 1.2;
}
.footer-column h4 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 5px;
}
.footer-column ul li a {
  color: #222;
  text-decoration: none;
  font-size: 13px;
}
.footer-column ul li a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column,
  .footer-logo {
    width: 100%;
  }
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #000;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}


/* ================= IPHONE / TOUCH ================= */
/* Stop iOS from enlarging text when the phone is rotated */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safari's 100vh is taller than the visible screen (it ignores the toolbar).
   svh = the real visible height, so the hero video fits exactly. */
@supports (height: 100svh) {
  .custom-hero-salla {
    height: 100svh !important;
  }
}

/* iPhone zooms the whole page when you tap an input with text under 16px.
   This only applies on iPhone/iPad. */
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* On touch screens hover effects "stick" after a tap — turn them off there */
@media (hover: none) {
  body[data-page-name="product.index"] .s-product-card-entry:hover,
  .custom-icons-nav a:hover,
  .collection-item-salla:hover img {
    transform: none;
  }
  .hero-btn-salla:hover {
    background: #fff;
    color: #000;
  }
}

@media (max-width: 767px) {
  /* Search and cart icons are 22px — bigger invisible tap area, same look */
  .custom-icons-nav a {
    position: relative;
  }
  .custom-icons-nav a::after {
    content: "";
    position: absolute;
    inset: -11px;
  }

  /* Footer links easier to tap */
  .footer-column ul li a {
    display: inline-block;
    padding: 6px 0;
  }

  /* Keep the footer clear of the iPhone home bar */
  .custom-footer-salla {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Remove the grey flash iOS draws on tapped links */
a,
button,
.submenu-toggle {
  -webkit-tap-highlight-color: transparent;
}


/* ================= ACCESSIBILITY ================= */
/* outline only shows for keyboard users, not mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}