/* ========================================
   MUBAKKAR PAGE STYLES
   ======================================== */

/* Hero Section */
.mubakkar-hero {
    width: 100%;
    padding: 46px 50px 0px;
    background: #352E2A;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mubakkar-title {
  color: #FFDDC2;
  text-align: center;
  font-family: 'Gambetta Variable', 'Gambetta', 'Times New Roman', serif;
  font-size: clamp(35px,3.9vw,75px);
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin: 0 0 30px;
}

.mubakkar-description {
  color: #FFF;
  text-align: center;
  font-family: 'Brandon Grotesque';
  font-size: clamp(15px, 1.5vw, 30.67px);
  font-style: italic;
  font-weight: 400;
  line-height: 157.379%;
  width: 100%;
  max-width: 1406px;
  margin: 0 auto;
}

/* Section Styles */
.mubakkar-section {
    width: 100%;
    padding: 28px 15px 0;
    background: #352E2A;
}

.section-title {
  color: #FFDDC2;
  text-align: center;
  font-family: 'Gambetta Variable', 'Gambetta', 'Times New Roman', serif;
  font-size: 75px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin: 0 0 60px;
}

/* Card Wrapper - contains image overflow (loose card style for packed) */
.mubakkar-swiper .card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 75px;
}

/* Card Styles */
.mubakkar-card {
    width: 100%;
    background: linear-gradient(220deg, #C69065 3.9%, #68411C 100.81%);
    border-radius: 18px;
    padding: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    overflow: visible;
}

.mubakkar-card:hover {
    background: linear-gradient(220deg, #D4A076 3.9%, #75482D 100.81%);
}

.mubakkar-card-title {
  color: #FFF;
  text-align: center;
  font-family: 'Brandon Grotesque';
  font-size: clamp(14px,2.2vw,44px);
  font-style: italic;
  font-weight: 500;
  line-height: 120%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

/* Packed card image - using loose card style (less overflow) */
.mubakkar-card .mubakkar-image {
    width: 100%;
    height: 100%;
    margin: -20% auto 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.mubakkar-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Add to Cart Button - Match Agarwood page styling */
.mubakkar-card .btn-add-cart {
  width: clamp(200px, 12vw, 255px);
  max-width: 100%;
  padding: 12px clamp(10px, 1vw, 30px);
  height: 66.769px;
  flex-shrink: 0;
  border-radius: 33.384px;
  border: 1.421px solid #BDBEC0;
  background: linear-gradient(270deg, #E3BC54 2.32%, #D1A22B 95.84%);
  color: #FFF;
  text-align: center;
  font-family: 'Brandon Grotesque';
  font-size: clamp(18px,1.2vw,29px);
  font-style: normal;
  font-weight: 400;
  line-height: 34.285px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin: 20px auto 0;
  position: static;
  align-self: center;
}

/* Show button on active card */
.mubakkar-card.active .btn-add-cart {
  display: inline-flex;
}

.mubakkar-card .btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 188, 84, 0.4);
}

.btn-add-cart svg {
  width: 36.226px;
  height: 17.612px;
  flex-shrink: 0;
}

/* ========================================
   SWIPER SLIDER STYLES
   ======================================== */

/* Swiper container */
.mubakkar-swiper {
  width: 100%;
  padding: 20px 60px 60px;
  position: relative;
}

.mubakkar-swiper .swiper-wrapper {
  display: flex;
}

/* Only apply grid/centering when mubakkar-grid class is present */
.mubakkar-swiper.mubakkar-grid .swiper-wrapper {
  gap: 30px;
  justify-content: center;
}





/* Desktop: fixed width slides for horizontal scroll */
@media screen and (min-width: 769px) {
  .mubakkar-swiper .swiper-slide {
    /* width: 340px !important; */
    flex-shrink: 0;
  }
  
  .mubakkar-swiper .card-wrapper {
    width: 100%;
    
  }
}

/* Hide Swiper navigation and pagination */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
  display: none !important;
}

/* Grid fallback when slider is disabled */
.mubakkar-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); */
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px 60px 100px;
}

/* When Swiper is not initialized, ensure proper grid display */
.mubakkar-swiper.mubakkar-grid .swiper-wrapper {
  display: flex ;
  gap: 20px;
  justify-content: center;
}

.mubakkar-swiper.mubakkar-grid .swiper-slide {
  max-width: 100%;
  width: 33%;
  min-width: 21.615vw;
  max-width: 415px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media screen and (max-width: 768px) {
  /* Hero section */
  .mubakkar-hero {
    padding: 30px 20px 15px;
    align-items: flex-start;
  }

  .mubakkar-title {
    font-size: clamp(28px, 8vw, 45px);
    margin-bottom: 12px;
    text-align: left;
  }

  .mubakkar-description {
    font-size: clamp(14px, 4vw, 18px);
    max-width: 95%;
    padding: 0;
    text-align: left;
    margin: 0;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 45px);
    margin-bottom: 30px;
    text-align: left;
  }

  .mubakkar-section {
    padding: 15px 15px;
  }

  /* Mobile: Flex wrap instead of Swiper */
  .mubakkar-swiper {
    padding: 0 0px 40px ;
    justify-content: flex-start;
  }

  .mubakkar-swiper .swiper-wrapper {
    gap: 15px;
    transform: none;
    justify-content: center;
  }

  .mubakkar-swiper .swiper-slide {
    height: auto;
    width: 100%;
    margin: 0;
    flex: 0 0 calc(50% - 7.5px);
  }

  /* Card wrapper - no height for mobile */
  .mubakkar-swiper .card-wrapper {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: auto ;
    padding-top: 16%;
  }

  /* Cards - compact mobile size with flex column */
  .mubakkar-card {
    min-height: auto;
    padding: 15px;
    border-radius: 12px;
    align-items: center;
    background: linear-gradient(220deg, #C69065 3.9%, #68411C 100.81%);
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .mubakkar-image {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  
  .mubakkar-image img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }

  .mubakkar-card-title {
    font-size: 14px !important;
    min-height: auto;
    margin: 10px 0;
    line-height: 1.3;
    font-weight: 500;
  }

  /* Button - shown on active card on mobile */
  .mubakkar-card .btn-add-cart {
    display: none;
    width: 90%;
    max-width: none;
    height: 38px;
    font-size: 14px;
    line-height: 18px;
    padding: 0 12px;
    border-radius: 19px;
    margin: 0 auto 10px;
  }

  .mubakkar-card.active .btn-add-cart {
    display: inline-flex !important;
  }

  .mubakkar-card .btn-add-cart svg {
    width: 20px;
    height: 10px;
  }

  .mubakkar-swiper.mubakkar-grid .swiper-wrapper {
    /* display: grid; */
    gap: 10px;
    /* grid-template-columns: repeat(2, 1fr); */
    width: 100%;
  }


}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .mubakkar-grid,
  .mubakkar-swiper {
    gap: 12px;
    padding: 0;
  }

  .mubakkar-card {
    padding: 12px;
    position: static;
  }

  .mubakkar-image {
    width: 80px !important;
    height: 80px !important;
  }

  .mubakkar-card-title {
    font-size: 12px !important;
    margin: 8px 0;
  }

  .mubakkar-card .btn-add-cart {
    font-size: 12px !important;
    height: 35px !important;
    position: static;
  }
}

/* Very small mobile devices - Single column layout */
@media screen and (max-width: 370px) {
  .mubakkar-grid,
  .mubakkar-swiper .swiper-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .mubakkar-card {
    max-width: 280px;
    margin: 0 auto;
    padding: 20px;
    position: static;
  }

  .mubakkar-image {
    width: 120px !important;
    height: 120px !important;
  }

  .mubakkar-card-title {
    font-size: 16px !important;
  }
}