/* =====================================================================
   specialperfume.sa — Custom CSS (Aali theme)
   Author: Khaled Omar <KO />
   Portfolio: https://sunnysapartment.github.io/Portfolio-Showcase/
   GitHub: SunnysApartment
   Paste into: Salla dashboard → Store design → Customize → Custom CSS
   Note: design is light-only. Turn OFF the dark-mode toggle in theme
   settings, otherwise cards/FAQ/testimonials show white on dark.
===================================================================== */


/* =========================================
   1. Overflow fix (RTL page sliding left)
========================================= */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) {
  html, body, #app .app-inner { overflow-x: clip; }
}

/* Split products block */
.spm-block { overflow: hidden; max-width: 100%; }
.spm__inner > * { min-width: 0; }
.s-slider-controls-outer .s-slider-block__title-nav { width: 100% !important; }

/* Slider safety */
salla-slider, .s-products-slider-wrapper, .swiper { max-width: 100%; }


/* =========================================
   2. Hero banner text
   Same layout as desktop on all screens:
   text + button at the top, centered.
========================================= */
.s-block-fullscreen-banners .floating-wrapper {
  top: 8% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  display: flex !important;
  justify-content: center !important;
}
.s-block-fullscreen-banners .floating_text {
  max-width: 900px;
  width: 100%;
  text-align: center !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.s-block-fullscreen-banners .floating_text .title,
.s-block-fullscreen-banners .floating_text .subtitle {
  text-align: center !important;
}
.s-block-fullscreen-banners .fs_banners_btn { margin-top: 1.25rem !important; }

/* Tablet + mobile: sizes scale with screen width
   (#app added for higher priority over theme styles) */
@media (max-width: 1023px) {
  #app .s-block-fullscreen-banners .floating-wrapper { top: 3% !important; }
  #app .s-block-fullscreen-banners .floating_text {
    padding-inline: 0.75rem !important;
    max-width: 92% !important;
  }
  #app .s-block-fullscreen-banners .floating_text .title,
  #app .s-block-fullscreen-banners .floating_text .title * {
    font-size: clamp(0.7rem, 2.6vw, 1.1rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.1rem !important;
  }
  #app .s-block-fullscreen-banners .floating_text .subtitle,
  #app .s-block-fullscreen-banners .floating_text .subtitle * {
    font-size: clamp(0.55rem, 1.8vw, 0.8rem) !important;
    line-height: 1.45 !important;
  }
  #app .s-block-fullscreen-banners .floating_text .subtitle {
    max-width: 80% !important;
    margin-inline: auto !important;
  }
  #app .s-block-fullscreen-banners .fs_banners_btn {
    margin-top: clamp(0.25rem, 1vw, 0.6rem) !important;
    padding: clamp(0.15rem, 0.5vw, 0.3rem) clamp(0.5rem, 1.8vw, 0.9rem) !important;
    font-size: clamp(0.55rem, 1.7vw, 0.75rem) !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
  }
}


/* =========================================
   3. Animated ads strip
========================================= */
.s-block-fullscreen-banners { margin-bottom: 0 !important; }

.s-block--animated-ads {
  position: relative;
  z-index: 5;
  margin-top: -44px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  max-width: 100%;
}
.s-block--animated-ads .animated-ads-outer { overflow: hidden; max-width: 100%; }

.s-block--animated-ads .ad-ul {
  height: 44px;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: #7c4a19 !important;
}
.s-block--animated-ads .a-ad-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.s-block--animated-ads .a-ad-text::before {
  content: "✦";
  margin-inline-end: 10px;
  font-size: 12px;
  color: #e8c89a;
}

@media (max-width: 767px) {
  .s-block--animated-ads { margin-top: 0 !important; }
  .s-block--animated-ads .ad-ul { height: 34px; }
  .s-block--animated-ads .a-ad-text { font-size: 12px; padding-inline: 14px; }
  .s-block--animated-ads .a-ad-text::before { font-size: 10px; margin-inline-end: 6px; }
}


/* =========================================
   4. Product card (site-wide)
========================================= */
#app custom-salla-product-card.product-block {
  border: 1px solid #c8a26b !important;
  border-radius: 24px !important;
  overflow: hidden;
}

#app custom-salla-product-card .product-block-outer,
#app custom-salla-product-card .product-block__info {
  padding: 0 12px 12px !important;
  text-align: center !important;
}

#app custom-salla-product-card .product-title,
#app custom-salla-product-card .product-title .title {
  text-align: center !important;
  justify-content: center !important;
}

#app custom-salla-product-card .price-wrapper,
#app custom-salla-product-card .price-wrapper > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  text-align: center !important;
}

#app custom-salla-product-card .btn--add-to-cart {
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#app custom-salla-product-card .btn--add-to-cart .s-button-btn {
  width: 100% !important;
  border-radius: 10px !important;
  background: #7c4919 !important;
  border-color: #7c4919 !important;
  color: #fff !important;
}
#app custom-salla-product-card .btn--add-to-cart .s-button-btn:hover {
  background: #5f3712 !important;
  border-color: #5f3712 !important;
}

@media (max-width: 767px) {
  #app custom-salla-product-card.product-block { border-radius: 16px !important; }
  #app custom-salla-product-card .product-block-outer,
  #app custom-salla-product-card .product-block__info {
    padding: 0 8px 8px !important;
  }
}


/* =========================================
   5. Tabs: single tab = title with gold bar
========================================= */
#app .aali-products-tabs .tabs {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 24px;
  border: 0 !important;
}

#app .aali-products-tabs .tab-trigger .s-button-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  color: #9a9a9a !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

#app .aali-products-tabs .tab-trigger .s-button-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#app .aali-products-tabs .tab-trigger .s-button-text::before {
  content: "";
  width: 7px;
  height: 22px;
  border-radius: 10px;
  background: #c8a26b;
  display: none;
}

#app .aali-products-tabs .tab-trigger.is-active .s-button-btn { color: #111 !important; }
#app .aali-products-tabs .tab-trigger.is-active .s-button-text::before { display: inline-block; }

#app .aali-products-tabs .tab-trigger::after,
#app .aali-products-tabs .tab-trigger .s-button-btn::after { display: none !important; }

@media (max-width: 767px) {
  #app .aali-products-tabs .tab-trigger .s-button-btn { font-size: 1.15rem !important; }
  #app .aali-products-tabs .tab-trigger .s-button-text::before { width: 6px; height: 18px; }
  #app .aali-products-tabs .tabs { gap: 16px; }
}


/* =========================================
   6. Tabs: multiple tabs = pills
========================================= */
#app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) {
  gap: 6px !important;
  justify-content: flex-start !important;
  align-items: center;
}

#app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) .tab-trigger .s-button-btn {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #8a8a8a !important;
  padding: 4px 14px !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.6 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
}

#app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) .tab-trigger .s-button-text::before {
  display: none !important;
}

#app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) .tab-trigger.is-active .s-button-btn {
  color: #7c4919 !important;
  border-color: #7c4919 !important;
  background: #fbf5ec !important;
}

#app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) .tab-trigger:not(.is-active) .s-button-btn:hover {
  color: #7c4919 !important;
}

/* Desktop: center pills */
@media (min-width: 768px) {
  #app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger),
  #app #featured-products-style2-6 .tabs {
    justify-content: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    float: none !important;
  }
}

/* Mobile: smaller pills */
@media (max-width: 767px) {
  #app .aali-products-tabs .tabs:has(.tab-trigger + .tab-trigger) .tab-trigger .s-button-btn {
    font-size: 0.85rem !important;
    padding: 3px 12px !important;
  }
}


/* =========================================
   7. Store story (both sections)
   Section IDs depend on image file names —
   update the src* values if images change.
========================================= */
.store-story .store-story__image {
  border-radius: 16px !important;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
}

.store-story .store-story__content-col { text-align: right !important; }

.store-story .store-story__small-title {
  color: #7c4919 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.store-story .store-story__title {
  color: #7c4919 !important;
  margin-bottom: 12px !important;
}

.store-story .store-story__description {
  color: #111 !important;
  opacity: 1 !important;
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.store-story .store-story__btn {
  background: #7c4919 !important;
  border-color: #7c4919 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 32px !important;
  font-size: 0.85rem !important;
}
.store-story .store-story__btn:hover {
  background: #5f3712 !important;
  border-color: #5f3712 !important;
}

.store-story .store-story__actions { margin-top: 16px !important; }

/* Desktop: 50/50, alternating sides */
@media (min-width: 1024px) {
  .store-story .store-story__inner {
    flex-direction: row !important;
    align-items: center !important;
    gap: 120px !important;
  }
  .store-story .store-story__media-col,
  .store-story .store-story__content-col {
    width: 50% !important;
  }

  /* Section 1: image RIGHT, text LEFT */
  .store-story:has(img[src*="47932593"]) .store-story__media-col { order: 1; }
  .store-story:has(img[src*="47932593"]) .store-story__content-col { order: 2; }

  /* Section 2: image LEFT, text RIGHT */
  .store-story:has(img[src*="7d89de0e"]) .store-story__content-col { order: 1; }
  .store-story:has(img[src*="7d89de0e"]) .store-story__media-col { order: 2; }

  .store-story + .store-story { margin-top: 64px !important; }
}

/* Mobile: image on top, text below */
@media (max-width: 1023px) {
  .store-story .store-story__inner { gap: 16px !important; }
  .store-story .store-story__media-col { order: 1; }
  .store-story .store-story__content-col { order: 2; }
  .store-story .store-story__title { font-size: 1.6rem !important; }
  .store-story .store-story__description { max-width: 100%; }
}


/* =========================================
   8. Features section
========================================= */

/* Title + gold underline */
.s-block--features .features--title-outer {
  text-align: center !important;
  margin-bottom: 40px !important;
}
.s-block--features .features--title-outer h3 {
  display: inline-block;
  position: relative;
  font-size: 1.4rem !important;
  font-weight: 700;
  color: #111 !important;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.s-block--features .features--title-outer h3::before { display: none !important; }
.s-block--features .features--title-outer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: #c8a26b;
}
.s-block--features .features--title-outer p {
  max-width: 480px;
  margin-inline: auto;
  color: #767676 !important;
  opacity: 1 !important;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Grid: 4 desktop / 2 mobile */
.s-block--features > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* Cards */
.s-block--features .s-block--features__item {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 28px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Icon: original image, no circle */
.s-block--features .feature-icon {
  width: 56px !important;
  height: 56px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.s-block--features .feature-icon::after { display: none !important; }
.s-block--features .feature-icon img {
  max-width: 100%;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: none !important;
}

/* Card title */
.s-block--features .s-block--features__item h4,
.s-block--features .s-block--features__item h4 .injaz_count {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #111 !important;
  margin: 0 0 4px !important;
  text-align: center !important;
}

/* Card subtitle (#767676 = readable contrast) */
.s-block--features .s-block--features__item p {
  font-size: 0.75rem !important;
  color: #767676 !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .s-block--features > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .s-block--features .features--title-outer { margin-bottom: 24px !important; }
  .s-block--features .features--title-outer h3 { font-size: 1.15rem !important; }
  .s-block--features .s-block--features__item { padding: 18px 10px !important; }
}


/* =========================================
   9. Testimonials carousel
   Desktop: 3 | Tablet: 2 | Mobile: 1
   (Turn OFF the grid/two-rows option in the block)
========================================= */

/* Title + gold bar */
.s-block-special-testimonials .block__title {
  display: flex !important;
  justify-content: flex-start !important;
  margin-bottom: 20px !important;
}
.s-block-special-testimonials .block__title h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111 !important;
}
.s-block-special-testimonials .block__title h2::before {
  content: "";
  width: 7px;
  height: 22px;
  border-radius: 10px;
  background: #c8a26b;
}
.s-block-special-testimonials .block__title p:empty { display: none; }

/* Slides */
.s-block-special-testimonials .swiper-wrapper { align-items: stretch !important; }

.s-block-special-testimonials .swiper-slide {
  width: 33.333% !important;
  height: auto !important;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex !important;
}
@media (max-width: 1023px) {
  .s-block-special-testimonials .swiper-slide { width: 50% !important; }
}
@media (max-width: 639px) {
  .s-block-special-testimonials .swiper-slide { width: 100% !important; padding: 0 2px; }
}

/* Card */
.s-block-special-testimonials .special-testimonial {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Layout: [avatar | name + stars] / text */
.s-block-special-testimonials .special-testimonial__inner {
  display: grid !important;
  grid-template-columns: 44px 1fr;
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  align-content: start;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 22px 22px 18px !important;
  text-align: right !important;
}
.s-block-special-testimonials .special-testimonial__text { display: contents !important; }

/* Avatar */
.s-block-special-testimonials .special-testimonial_avatar {
  grid-column: 1;
  grid-row: 1;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid #c8a26b;
  padding: 2px;
  overflow: hidden;
  background: #fff;
}
.s-block-special-testimonials .special-testimonial_avatar img { border-radius: 50%; }

/* Name + stars */
.s-block-special-testimonials .special-testimonial__text_up {
  grid-column: 2;
  grid-row: 1;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px;
}
.s-block-special-testimonials .special-testimonial__info p {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #111 !important;
}
.s-block-special-testimonials .s-rating-stars-wrapper { gap: 2px; min-height: 0 !important; }
.s-block-special-testimonials .s-rating-stars-btn-star { padding: 0 !important; width: auto !important; }
.s-block-special-testimonials .s-rating-stars-btn-star svg { width: 11px !important; height: 11px !important; }
.s-block-special-testimonials .s-rating-stars-selected { fill: #f5b335 !important; }

/* Review text + quotes */
.s-block-special-testimonials .special-testimonial__text_down {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  margin: 0 !important;
  font-size: 0.85rem !important;
  line-height: 1.8 !important;
  color: #555 !important;
  text-align: right !important;
}
.s-block-special-testimonials .special-testimonial__text_down::before,
.s-block-special-testimonials .special-testimonial__text_down::after {
  display: block;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 0.6;
  height: 24px;
  color: #c8a26b;
}
.s-block-special-testimonials .special-testimonial__text_down::before {
  content: "\201D";
  text-align: right;
  margin-bottom: 6px;
}
.s-block-special-testimonials .special-testimonial__text_down::after {
  content: "\201C";
  text-align: left;
  margin-top: 8px;
}

/* Pagination dots */
.s-block-special-testimonials .swiper-pagination {
  position: static !important;
  margin-top: 16px;
}
.s-block-special-testimonials .swiper-pagination-bullet-active { background: #c8a26b !important; }


/* =========================================
   10. FAQ section
========================================= */

/* Title + gold bar */
.s-block-faqs-home .faqs-title {
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 40px !important;
}
.s-block-faqs-home .faqs-title h3 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin-bottom: 8px;
}
.s-block-faqs-home .faqs-title h3::before {
  content: "";
  width: 7px;
  height: 22px;
  border-radius: 10px;
  background: #c8a26b;
}

/* Subtitle: full text + black (beats theme !important rule) */
html:not(.dark) body .s-block-faqs-home .faqs-title > p,
.s-block-faqs-home .faqs-title > p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
  max-width: 600px;
  margin-inline: auto;
  color: #111 !important;
  opacity: 1 !important;
  font-size: 0.85rem;
  line-height: 1.7 !important;
  text-align: center !important;
}

/* Grid */
.s-block-faqs-home .faq-container { gap: 24px !important; }

/* Item */
.s-block-faqs-home .faq-item {
  background: #fff !important;
  border: 1px solid #7c4919 !important;
  border-radius: 10px !important;
}
.s-block-faqs-home .faq-inner { background: transparent !important; }

/* Question row (text wraps on small screens) */
.s-block-faqs-home .question-outer {
  min-height: 58px;
  height: auto !important;
  gap: 12px;
  padding: 10px 20px !important;
  line-height: 1.5 !important;
}
.s-block-faqs-home .question {
  flex: 1 1 auto;
  min-width: 0;
  display: block !important;
  margin: 0;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #111 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-height: 1.6 !important;
  text-align: right;
}

/* Plus button */
.s-block-faqs-home .faq-icon {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #7c4919 !important;
  color: #fff !important;
  font-size: 14px;
  transition: transform 0.25s ease;
}
.s-block-faqs-home input:checked + .faq-inner .faq-icon { transform: rotate(45deg); }

/* Answer */
.s-block-faqs-home .answer-outer { padding-inline: 20px !important; }
.s-block-faqs-home .answer,
.s-block-faqs-home .answer p {
  color: #555 !important;
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.s-block-faqs-home .faq-btn .btn {
  background: #7c4919 !important;
  border-color: #7c4919 !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.s-block-faqs-home .faq-btn a[href=""] { display: none !important; }

@media (max-width: 767px) {
  .s-block-faqs-home .faqs-title { margin-bottom: 24px !important; }
  .s-block-faqs-home .faqs-title h3 { font-size: 1.2rem !important; }
  html:not(.dark) body .s-block-faqs-home .faqs-title > p,
  .s-block-faqs-home .faqs-title > p {
    font-size: 0.8rem !important;
    padding-inline: 8px !important;
  }
  .s-block-faqs-home .faq-container { gap: 12px !important; }
  .s-block-faqs-home .question-outer { min-height: 52px; padding: 8px 14px !important; }
  .s-block-faqs-home .question { font-size: 0.85rem !important; }
  .s-block-faqs-home .faq-icon { width: 32px !important; height: 32px !important; }
}


/* =========================================
   11. Footer
========================================= */
#app .store-footer,
#app .store-footer .store-footer__inner {
  background: #f3ede6 !important;
  background-image: none !important;
}

/* Payment icons: white chips */
#app .store-footer .s-payments-list-item {
  background: #fff !important;
  border-radius: 4px !important;
}

/* Social + SBC badge: no background */
#app .store-footer .s-social-link a { background: transparent !important; }
#app .store-footer .sbc-icon { background: transparent !important; }

/* Logo: blend its white square into the footer
   (remove once a transparent PNG logo is uploaded) */
#app .store-footer .footer_logo img { mix-blend-mode: multiply; }