@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

:root {
  --font-main: "Cairo";
  --color-primary: #cab37d;
  --color-primary-dark: #9b8041;
  --color-primary-light: #e1c991;
  --color-primary-reverse: #ffffff;
}

main#main-content {
  overflow: hidden;
}

/* ========== Start Header ============*/

header {
  margin-bottom: 5rem;
}
/* ========== End Header ============*/

/* ========== Start categories Section ============*/
section.s-block.s-block--categories {
  margin: 1rem 0 3rem 0;
}

.s-block--categories .swiper-wrapper {
  justify-content: center !important;
  gap: 15px;
}

.s-block--categories .swiper-wrapper .swiper-slide i {
  display: none !important  ;
}

.s-block--categories .swiper-wrapper .slide--cat-entry h2 {
  font-size: 1.11rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: #655a3f;
}

.s-block--categories .swiper-slide {
  background-image: url("https://res.cloudinary.com/dp3p3jbcg/image/upload/v1772111694/44c5879592fdc20d44a80227e976d1579eb497d1_j8xtxg.jpg");
  border-radius: 18px;
  background-size: cover;
  transition: all 0.3s ease-in-out;
}

.s-block--categories .swiper-slide:hover {
  translate: 0 -5px;
}

.s-block--categories a.slide--cat-entry {
  background: #d3c093;
  border-radius: 18px;
  opacity: 0.92;
}

.carousel-slider .swiper-wrapper > div {
  padding: 0px;
  border-radius: 22px;
}

/* ========== End categories Section ============*/

/* ========== Start Tabs Section ============*/
.s-block--tabs-produtcs .tabs {
  display: flex;
  justify-content: center;
  align-items: center;
}

.s-block-tabs .s-button-outline {
  background-color: transparent !important;
  border: none !important;
  color: #877753 !important;
  font-size: 1.04rem;
}
/* ========== End Tabs Section ============*/

/* ================== Start Testimonials Section ===================== */
.s-block--custom-testimonials {
  padding: 56px 0;
  overflow: visible;
  direction: rtl;
}

/* Section header */
.s-block--custom-testimonials .s-reviews-header-wrapper {
  text-align: right;
  margin-bottom: 2rem;
}

.s-block--custom-testimonials .s-reviews-header {
  font-size: 1.725rem;
  font-family: var(--font-main), serif;
  font-weight: 800;
  color: #1d1f1f;
}

/* Slider wrapper — leave horizontal room for floating arrows */
.s-block--custom-testimonials .s-reviews-container {
  position: relative;
  padding: 0 70px;
}

/* Hide the default title-area nav (arrows live outside card now) */
.s-block--custom-testimonials .s-slider-block__title-nav {
  display: none !important;
}

/* Swiper fix */
.s-block--custom-testimonials .swiper {
  overflow: hidden !important;
  width: 100% !important;
}

.s-block--custom-testimonials .swiper-wrapper {
  justify-content: flex-start !important;
}

.s-block--custom-testimonials .swiper-slide {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* ── Card ── */
.s-block--custom-testimonials .s-reviews-testimonial {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  padding: 36px 48px;
  direction: rtl;
  min-height: 160px;
  display: flex;
  align-items: stretch;
}

/*
  Inner layout — 2-row column:
    Row 1 (top):  avatar + name on the RIGHT | stars on the LEFT
    Row 2 (body): review text spanning full width
*/
.s-block--custom-testimonials .s-reviews-testimonial__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
}

/* Hide the big quote icon */
.s-block--custom-testimonials .s-reviews-testimonial__icon {
  display: none;
}

/* Avatar: pulled into the name_wrapper row via order, hidden in its original position */
.s-block--custom-testimonials .s-reviews-testimonial__avatar {
  display: none;
}

/* Text block — column: name_wrapper on top, review text below */
.s-block--custom-testimonials .s-reviews-testimonial__text {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  width: 100%;
}

/*
  Top row: name_wrapper fills full width.
  Avatar (injected clone) + name on the RIGHT.
  Rating on the LEFT.
  Achieved with space-between + RTL direction.
*/
.s-block--custom-testimonials .s-reviews-testimonial__name_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  width: 100%;
}

/* Right side: avatar clone + name */
.s-block--custom-testimonials .km-author-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.s-block--custom-testimonials .km-author-right img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
  background: #e8e8e8;
}

.s-block--custom-testimonials .s-reviews-testimonial__info h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1f1f;
  margin: 0;
  font-family: var(--font-main), serif;
}

/* Review text */
.s-block--custom-testimonials .s-reviews-testimonial__text > p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  font-family: var(--font-main), serif;
  margin: 0;
  text-align: right;
}

/* ── Left side of top row: numeric rating + single star ── */
.s-block--custom-testimonials .s-reviews-testimonial__rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0 !important;
}

/* Show only the first star, hide the rest */
.s-block--custom-testimonials .s-rating-stars-wrapper {
  display: flex;
  align-items: center;
}

.s-block--custom-testimonials .s-rating-stars-btn-star {
  display: none;
}

.s-block--custom-testimonials .s-rating-stars-btn-star:first-child {
  display: flex !important;
}

.s-block--custom-testimonials .s-rating-stars-btn-star svg {
  width: 22px;
  height: 22px;
}

.s-block--custom-testimonials .s-rating-stars-selected svg path {
  fill: #f5a623;
}

/* Numeric rating label — injected by JS */
.s-block--custom-testimonials .km-rating-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1d1f1f;
  font-family: var(--font-main), serif;
  direction: ltr;
}

/* ── Floating arrows — outside the card ── */
.s-block--custom-testimonials .km-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  padding: 0;
}

.s-block--custom-testimonials .km-arrow:hover:not(:disabled) {
  background: #c8c8c8;
}

.s-block--custom-testimonials .km-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.s-block--custom-testimonials .km-arrow svg path {
  fill: #555;
}

/* RTL: prev = left side visually (next slide), next = right side (prev slide) */
.s-block--custom-testimonials .km-arrow--prev {
  right: 0;
}

.s-block--custom-testimonials .km-arrow--next {
  left: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .s-block--custom-testimonials .s-reviews-container {
    padding: 0 52px;
  }

  .s-block--custom-testimonials .s-reviews-testimonial {
    padding: 28px 24px;
    min-height: auto;
  }

  .s-block--custom-testimonials .s-reviews-testimonial__inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .s-block--custom-testimonials .s-reviews-testimonial__rating {
    align-self: flex-start;
  }

  .s-block--custom-testimonials .km-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .s-block--custom-testimonials .s-reviews-container {
    padding: 0 44px;
  }
}
/* ================== End Testimonials Section ===================== */