/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
}

/* Prevent body scrolling when a modal is active */
body.no-scroll {
  overflow: hidden;
  position: fixed;
}


/* popup modal styles */
.details-modal-overlay.show {
  pointer-events: all;
  opacity: 1;
  z-index: 50;
}

/* Base hidden state */
.modal {
  display: none;
  position: fixed;
  inset: 0;                      /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* When its ID matches the URL hash */
.modal:target {
  display: flex;
}

/* Inner white box - APPLY THESE CHANGES */
.modal__content {
  background: #fff;
  border-radius: .5rem;
  padding: 1.5rem; /* Standard padding around content */
  max-width: 400px; /* Keeps modal from being too wide */
  width: 90%; /* Responsive width */
  position: relative;

  /* NEW: Make this a flex container to manage vertical space for children */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px); /* Set a maximum height for the entire modal box relative to viewport, with 40px margin top/bottom */
  /* No 'overflow' here, let the specific scrollable content handle it */
}

.modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.5rem;
  text-decoration: none;
  line-height: 1;
  color: inherit; /* Ensure color is inherited for consistency */
}

/* NEW CLASS: Style for the actual scrollable content area within the modal */
/* Apply this class to the specific div/ol/ul/etc. that holds the main content */
.modal-scroll-content {
  flex-grow: 1; /* Allows this element to take up all available vertical space */
  overflow-y: auto; /* Enables vertical scrolling when content exceeds available height */
  /* padding-right: 10px; Uncomment and adjust if scrollbar overlaps your text */
}

/* Optional: Style the scrollbar for better appearance (apply to .modal-scroll-content) */
.modal-scroll-content::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll-content::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 4px;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


/* Grid background */
.grid-background {
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Aspect ratio classes */
.aspect-w-16 { 
    position: relative; 
    padding-bottom: 56.25%; 
}

.aspect-w-16 > iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

/* Border effects */
.brush-border {
    box-shadow: 0 0 0 10px #ffffff, 0 0 0 12px #e5e7eb;
}

.brush-border-dark {
    box-shadow: 0 0 0 10px #ffffff, 0 0 0 12px #f3f4f6;
}

/* Product Carousel */
.product-carousel-wrapper {
    width: 100%;
    max-width: 800px;
    height: 400px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
}

.product-carousel-wrapper input[type=radio] {
    display: none;
}

.product-carousel-wrapper .cards {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
}

.product-carousel-wrapper .card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform .4s ease;
    cursor: pointer;
}

.product-carousel-wrapper .card img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.2));
}

#item-1:checked ~ .cards #select-body-product-section-image-original, 
#item-2:checked ~ .cards #select-body-product-section-image-chocolate, 
#item-3:checked ~ .cards #select-body-product-section-image-strawberry {
    transform: translatex(-55%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked ~ .cards #select-body-product-section-image-strawberry, 
#item-2:checked ~ .cards #select-body-product-section-image-original, 
#item-3:checked ~ .cards #select-body-product-section-image-chocolate {
    transform: translatex(55%) scale(.8);
    opacity: .4;
    z-index: 0;
}

#item-1:checked ~ .cards #select-body-product-section-image-chocolate, 
#item-2:checked ~ .cards #select-body-product-section-image-strawberry, 
#item-3:checked ~ .cards #select-body-product-section-image-original {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}

/* Button Styles */
.btn-primary {
    border-radius: 999px;
    border: 1px solid #403955;
    background: #F9B71B;
    box-shadow: 5px 5px 0px 0px #000;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px 0px #000;
}

.btn-secondary {
    border-radius: 999px;
    border: 1px solid #443B60;
    background: #FFF;
    box-shadow: 5px 5px 0px 0px #2F2942;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px 0px #2F2942;
}

/* Hero section fixed background */
/*
#hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 90vh;
  z-index: 0;
}

#hero-section > div,
#hero-section h1,
#hero-section button {
  z-index: 20;
  position: relative;
  pointer-events: auto;
}

Parallax asset visibility fix for hero section
#hero-section .parallax-asset {
  z-index: 100;
  pointer-events: none;
  position: absolute;
}

All other sections above hero
section:not(#hero-section) {
  position: relative;
  z-index: 1;
  background: transparent;
}

Ensure campaign-section starts after hero
#campaign-section {
  margin-top: 100vh;
}
*/

/* Contact Section solid background fix */
#contact-section {
background-image: url('https://ekmkxsrsgcxrzxknutng.storage.supabase.co/v1/object/public/milku/bg-footer.png');

}

/* Specific mobile breakpoints */
@media screen and (max-width: 360px) {
    #campaign-section .block {
        background-size: 360px auto;
    }
}

@media screen and (min-width: 361px) and (max-width: 375px) {
    #campaign-section .block {
        background-size: 375px auto;
    }
}

@media screen and (min-width: 376px) and (max-width: 412px) {
    #campaign-section .block {
        background-size: 412px auto;
    }
}

@media screen and (min-width: 413px) and (max-width: 414px) {
    #campaign-section .block {
        background-size: 414px auto;
    }
}

@media screen and (min-width: 415px) and (max-width: 600px) {
    #campaign-section .block {
        background-size: cover;
    }
}
