/* =====================================
   GLOBAL RESPONSIVE FIXES
===================================== */
html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* Ensure no element forces body width */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Override all fixed widths that might cause overflow */
.travel-content h2,
.travel-content p,
.empower-content h2,
.empower-content p,
.crystal-section h2,
.crystal-section p,
.freedom-title,
.science-content p,
.zodiac-text p,
.gift-text h2,
.gift-text p {
  width: 100% !important;
  max-width: 100% !important;
}

.hero-content .hero-tag,
.hero-content .hero-title,
.hero-content p {
  max-width: 542px;
}

/* Fix yellow strip centering */
.yellow-strip {
  transform: none !important;
  left: 0 !important;
  width: 100% !important;
}

/* =====================================
   TABLET (768px - 991px)
===================================== */
@media (max-width: 991px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
    line-height: 46px;
  }

  .hero-content,
  .travel-content,
  .empower-content,
  .science-content {
    min-height: auto;
    height: auto;
  }

  .hero-section {
    /* height: 727px; */
  }

  .hero-content {
    padding: 80px 30px;
  }

  .travel-content,
  .empower-content,
  .science-content,
  .signature-content {
    padding: 50px 30px;
  }

  .hero-title,
  .travel-content h2,
  .empower-content h2,
  .science-heading h2,
  .testimonial-content h2 {
    width: 100%;
    max-width: 100%;
  }

  .video-gallery {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-wrapper {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .gift-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  /* Zodiac slider responsive */
  .zodiac-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .zodiac-item {
    flex: 0 0 50% !important;
    min-width: 50% !important;
    scroll-snap-align: start;
  }
  .zodiac-controls,
  .zodiac-arrows {
    display: none !important; /* Hide arrows on tablet to prevent JS jump bug, rely on swipe */
  }

  /* Scents of Summer Tablet Fix */
  .seasonal-section {
    height: auto !important;
    min-height: 400px;
    padding-bottom: 50px;
  }

  /* Freedom Section Tablet Fix */
  .freedom-section .col-lg-9 {
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
  .products-track {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
  }

  .mood-section .video-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  /* Spin Slide Tablet Adjustments */
  /* .spin-slide-wrapper .main-wrapper {
        height: auto;
        min-height: 900px;
        padding-top: 60px;
        padding-bottom: 60px;
        align-items: flex-start !important;
    } */

  .spin-slide-wrapper .left-content {
    text-align: center;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
  }

  .spin-slide-wrapper .badge-tag {
    margin-bottom: -10px;
    margin-left: -50px;
    z-index: 2;
  }

  .spin-slide-wrapper .main-heading .small-text {
    font-size: 2rem;
  }

  .spin-slide-wrapper .main-heading .large-text {
    font-size: 7.5rem;
  }

  .spin-slide-wrapper .large-text-wrapper {
    justify-content: center;
  }

  .spin-slide-wrapper .description {
    margin: 15px auto 25px;
    max-width: 80%;
  }

  .spin-slide-wrapper .right-content {
    margin-top: 20px;
    width: 100%;
  }

  .spin-slide-wrapper .wheel-container {
    transform: scale(0.9);
    transform-origin: top center;
    margin: 0 auto;
  }
}

/* =====================================
   MOBILE (767px and below)
===================================== */
@media (max-width: 767px) {
  h1 {
    font-size: 36px !important;
    line-height: 44px !important;
  }

  .hero-content .hero-tag,
  .hero-content .hero-title,
  .hero-content p {
    max-width: 100%;
  }

  .top-bar {
    height: 35px !important;
  }

  .top-bar .top-bar-marquee {
    font-size: 16px !important;
  }

  .hero-tag {
    padding: 4px 14px !important;
    font-size: 14px !important;
  }

  .empower-section img {
    height: auto !important;
  }
  .empower-content {
    padding: 28px !important;
  }

  .signature-section .row,
  .travel-section .row,
  .testimonial-section .row {
    flex-direction: column-reverse;
  }

  .testimonial-section .testimonial-content {
    padding: 10px 15px 20px 15px;
    min-height: auto;
  }

  .testimonial-section .testimonial-content h2 {
    max-width: 280px;
    margin: 0 auto 15px auto !important;
  }

  .testimonial-section .testimonial-video-wrapper {
    padding: 20px 15px;
    min-height: auto;
  }

  .testimonial-section .video-gallery .video-card {
    min-width: 77%;
  }

  .testimonial-section .video-card img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }

  h2 {
    font-size: 30px !important;
    line-height: 38px !important;
  }

  .freedom-title {
    text-align: center;
  }

  .freedom-title span {
    display: inline;
  }

  p {
    font-size: 15px !important;
    line-height: 24px !important;
  }

  .gift-image {
    display: none !important;
  }

  .signature-image img {
    height: auto !important;
  }

  .video-card img {
    height: auto !important;
  }

  .summer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }

  .science-tags {
    /* display: grid !important;
    grid-template-columns: auto auto auto;
    gap: 10px 6px !important; */
    display: flex;
    justify-content: center;
  }

  .science-tags .tag-btn {
    font-size: 12px !important;
    padding: 6px 8px !important;
    white-space: nowrap;
  }

  .science-tags .tag-btn:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  /* Recovery Section Mobile */
  .recovery-section .slider-arrow,
  .recovery-section .center-divider,
  .recovery-section .side-divider {
    display: none !important;
  }

  .recovery-section {
    border-bottom: 1px solid #000;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .recovery-section .logo-side,
  .recovery-section .content-side {
    padding: 20px 15px !important;
    min-height: auto !important;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .hero-tag {
    height: auto;
    font-size: 14px;
    line-height: 20px;
    white-space: normal;
  }

  .travel-content,
  .empower-content,
  .science-content,
  .signature-content,
  .signature-image {
    padding: 28px !important;
    min-height: 350px !important;
  }

  .signature-content p {
    margin: 0px 0 10px;
  }

  .signature-content h2 {
    margin-bottom: 0px;
  }

  .empower-content {
    padding: 80px 20px;
  }

  .science-section img,
  .hero-image img {
    height: auto !important;
    width: 100%;
    object-fit: cover;
  }

  .travel-image img {
    width: 100%;
    height: auto !important;
  }

  .video-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .video-gallery::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .video-gallery .video-card {
    min-width: 85%;
    scroll-snap-align: center;
  }

  .mood-section .video-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  /* Zodiac slider responsive */
  .zodiac-item {
    flex: 0 0 100% !important;
    min-width: 100% !important;
  }

  /* .zodiac-card {
    height: 400px;
  } */

  .slider-btn,
  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .testimonial-content,
  .testimonial-content h2,
  .testimonial-content p,
  .content-side,
  .content-side h3,
  .content-side .read-more {
    width: 100%;
  }

  .crystal-section p {
    font-size: 18px !important;
  }

  .gift-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }

  .gift-image-mobile {
    display: block;
    text-align: center;
    margin-bottom: -15px;
  }

  .gift-image {
    display: flex;
    order: -1;
  }

  .gift-text h2 {
    white-space: normal;
    width: 250px !important;
    margin: 0 auto !important;
    font-size: 24px !important;
  }

  /* .crystal-section::before {
    background-image: url("crystal-bg-mbile.webp");
    background-size: 100% 100%;
    background-position: center;
  } */

  /* .summer-banner::before {
    background-image: url("summer-banner-mobile.webp");
    height: 420px !important;
    background-size: 100% 100%;
    background-position: center;
  } */

  /* Hero Slider Mobile Adjustments */
  #heroCarousel .carousel-control-prev {
    left: 15px;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  #heroCarousel .carousel-control-next {
    right: 15px;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  #heroCarousel .carousel-indicators {
    bottom: 10px;
  }

  /* .spin-slide-wrapper {
        background-image: url('slider2-mobile.webp');
        background-size: 100% 100%;
        background-position: center;
    } */

  /* .spin-slide-wrapper .main-wrapper {
        height: 727px !important;
        align-items: flex-start !important;
        display: block !important;
        position: relative;
    } */

  .spin-slide-wrapper .left-content {
    position: relative;
    /* height: 360px; */
    width: 100%;
    margin: 0;
    margin-top: 30px;
    padding: 0;
    /* display: block !important; */
    text-align: left !important;
  }

  .spin-slide-wrapper .badge-tag {
    position: absolute;
    top: 20px;
    left: 95px;
    font-size: 9px;
    padding: 3px 10px;
    transform: rotate(-10.51deg);
    z-index: 2;
    margin: 0 !important;
  }

  .spin-slide-wrapper .main-heading {
    position: static;
    margin: 0;
  }

  .spin-slide-wrapper .main-heading .small-text {
    position: absolute;
    left: 103px;
    top: 40px;
    width: 100%;
    font-size: 21px;
    line-height: 25px;
    margin: 0;
  }

  .spin-slide-wrapper .large-text-wrapper {
    position: absolute;
    left: 0px;
    top: 28px;
    margin: 0;
  }

  .spin-slide-wrapper .main-heading .large-text {
    font-size: 160px;
    line-height: 180px;
  }

  .spin-slide-wrapper .main-heading .dot {
    width: 10px;
    height: 10px;
    margin-left: 2px;
  }

  .spin-slide-wrapper .description {
    position: absolute;
    left: 129px;
    top: 180px;
    width: 205px;
    font-size: 13px;
    line-height: 18px;
    margin: 0;
    max-width: none;
  }

  .spin-slide-wrapper .btn-spin-action {
    /* position: absolute !important; */
    /* left: 129px !important; */
    /* top: 250px !important; */
    font-size: 12px !important;
    padding: 8px 20px !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 400px) {
  .recovery-section .carousel-item .row {
    padding: 0px 21px !important;
  }
}
