/* .img-comp-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.img-comp-img {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-comp-img.img-comp-overlay {
    height: 100%;
    border-right: 2px solid white;
    width: 50%;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 30px;
    height: 30px;
    background-color: white;
    opacity: 1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */
#productModal {
    position: fixed;
    inset: 0;    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); 
    transition: opacity 0.3s ease-in-out;
    z-index: 41;
}

#productModal.hidden {
    display: none;
}

/* Full-Screen Modal Customization */
/* ------------------ */
/* MODAL STYLING */
/* ------------------ */
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

/* Close Button Styling */
.btn-close {
    background: none;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close:hover {
    opacity: 0.7;
}

/* ------------------ */
/* IMAGE STYLING */
/* ------------------ */
/* .modal-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
} */

/* CATEGORY BOX */
.category-list {
    width: 45%;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    background: #FAF3E0;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* CATEGORY TITLE */
.category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #8B4513; /* SaddleBrown */
    text-transform: uppercase;
}

/* LIST GROUP STYLING */
.list-group {
    list-style: none;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 5px;
}

/* LIST GROUP ITEM */
.list-group-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #D2B48C; /* Tan */
    font-weight: bold;
    color: #654321; /* Deep Brown */
    transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.list-group-item:hover {
    background: #E3C28D; /* Warm Beige */
    cursor: pointer;
}

/* Selected Effect */
.list-group-item.selected {
    background-color: #D2B48C; /* Tan */
    color: #fff;
}

/* ------------------ */
/* CHECKBOX STYLING */
/* ------------------ */
.before-category,
.after-category {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #8B4513; /* SaddleBrown */
    transition: 0.3s ease-in-out;
}

.before-category:checked,
.after-category:checked {
    background: #8B4513; /* SaddleBrown */
}

/* ------------------ */
/* RESPONSIVE DESIGN */
/* ------------------ */
@media (max-width: 768px) {
    .modal-body h2 {
        font-size: 22px;
    }

    .modal-body p {
        font-size: 22px;
    }

    #productModal .product-title {
      line-height: 1.5;
    }

    .row {
        flex-direction: column;
    }

    .category-list {
        width: 100%;
        margin-bottom: 20px;
    }

    .list-group-item {
        font-size: 14px;
    }
}

#productModal.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 
.img-comp-img {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SLIDER OVERLAY */
.img-comp-overlay {
    width: 50%;
    /* border-right: 2px solid white; */
} */

/* SLIDER BUTTON */
/* .img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */

/* TEXT SECTION */
.modal-description {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}

.modal-description p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}


/* RESPONSIVENESS */
@media (max-width: 767px) {
    #productModal .modal-body {
        /* flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem; */
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: auto;
        border-radius: 0px !important;
    }

    .img-comp-container, .modal-description {
        width: 100%;
    }

    .modal-description p {
        font-size: 14px;
    }
}

/* Modal background overlay */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Show with JS */
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  
  /* Modal content */
  .product-modal-content {
    background-color: white;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  /* Modal header */
  .product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }
  
  .product-modal-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .product-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
  }
  
  .product-modal-header .close-modal:hover {
    color: #e74c3c;
  }
  
  /* Modal body layout */
  .product-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .product-modal-image-container {
    position: relative;
    height: 300px;
    flex-shrink: 0;
  }
  
  .product-modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }
  
  /* Description */
  .product-modal-description {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
  }
  
  /* Responsive */
  @media (min-width: 768px) {
    .product-modal-body {
      flex-direction: row;
    }
  
    .product-modal-image-container {
      width: 50%;
      height: 350px;
    }
  
    .product-modal-description {
      width: 50%;
      padding-left: 1rem;
      max-height: 100%;
    }
  }
@media screen and (max-width: 425px) {
  .phone-layout {
    height: 95vh;
    margin-top: 200px;
    border-radius: 10px;
    width: 100%;
  }

  #productModal .modal-body {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto;
    border-radius: 0px !important;
  }

  .aftre_before {
    margin-bottom: 2rem;
  }

  #vertical-model {
    margin-bottom: 2rem;
  }
  
} 

.card_image_1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.4s infinite;
}

@keyframes fadeInOutBefore {
  0% { opacity: 1; }
  /* 50%{opacity: 0.5;} */
  100% { opacity: 0; }
}

@keyframes fadeInOutAfter {
  0% { opacity: 0; }
  /* 50%{opacity: 0.5;} */
  100% { opacity: 1; }
}

.animate-before {
  display: block !important;
  animation: fadeInOutBefore 5s  infinite;
  /* z-index: 1; */
}

.animate-after {
  display: block !important;
  animation: fadeInOutAfter 5s  infinite;
  /* z-index: 2; */
}


.card_description {
  font-size: 14px !important;
}

/* before-after.css */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 32rem;
  margin: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-header, .modal-footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1rem 1.25rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

.product-description {
  white-space: pre-wrap;
  text-align: justify;
}

.img-comp-container {
    position: relative;
    overflow: hidden;
    border-radius: 32px;  /* Set border width and color */
}

.img-comp-img {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    vertical-align: middle;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
    }
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    background-color: #EF5858; 
    width: 30px;
    opacity: 1;
    border-radius: 50%;
    height: 30px;
    border: 2px solid;
    border-color: #EF5858;
  }
        
.img-comp-img.img-comp-overlay {
    height: 100%;
    /* border-right: 2px solid white ; */
}

.img-comp-slider-line {
  position: absolute;
  background-color: #EF5858;
  z-index: 5;
}


.aftre_before {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    /* margin-bottom: 1rem; */
}

.product_name {
    padding: 0px 20px 10px 20px;
    align-self: stretch;
    height: 45px;
    color: #1C1C14;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    word-wrap: break-word;
    overflow: hidden;
}

.compaire_card {
  padding: 14px;
  width: 543px;
  height: 371px;
  background: #fff;
}

.product-item {
    background: #F3F4F5;
} 
.img-comp-slider-2 {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); 
    transition: transform 0.3s ease-in-out, width 0.3s ease, height 0.3s ease;
    animation: pulseGlow 1.2s infinite alternate;
    width: 30px;
    height: 30px;
    background-color: white;
    opacity: 1;
    border-radius: 50%;
    border: 2px solid white;
}

@media screen and (max-width:767px) {
    .compaire_card {
        padding: 15px; 
        width: 85vw; 
    }
}

@media screen and (max-width: 768px) {
   #vertical-model .img-comp-container {
        height: 310px !important;
    }
    
}

@media screen and (max-width: 425px) {
    #vertical-model .img-comp-container {
        height: 250px !important;
    }
  
}

#productModal .modal-body{
  max-height: 90vh;
  height: auto;
  overflow-y: auto;
}
.mt-90{
    margin-top: 90px;
}

#vertical-model .img-comp-container{
  border: 8px solid #fff;  /* Set border width and color */
}


.title {
    margin-top: -1px;
    font-family: var(--display-sm-normal-font-family);
    font-weight: var(--display-sm-normal-font-weight);
    color: var(--black);
    font-size: var(--display-sm-normal-font-size);
    letter-spacing: var(--display-sm-normal-letter-spacing);
    line-height: var(--display-sm-normal-line-height);
    font-style: var(--display-sm-normal-font-style);
  }


.mobile-only-button {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #8f6e62; /* Brown */
    border-radius: 50%;
    padding: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-only-button svg {
    width: 24px;
    height: 24px;
    fill: #fff; /* White icon for better contrast */
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  z-index: 9999;
}
/* .hidden {
  display: none;
} */
.swiper-slide{
  width: fit-content;
}

.mt-45{
  margin-top: 45px;
}

.image-border{
  border: 14px solid rgb(143, 110, 98, 60%);  /* Set border width and color */
}

#productGalleryModal{
  z-index: 1000;
}

#mainProductTitle{
  height: 140px !important;
  margin-top: -1px;
  font-family: var(--display-sm-normal-font-family);
  font-weight: var(--display-sm-normal-font-weight);
  color: var(--black);
  letter-spacing: var(--display-sm-normal-letter-spacing);
  font-style: var(--display-sm-normal-font-style);
}
#mainProductImage{
  height: 300px!important;
}

.custom-navigation-button {
    display:  flex !important;
    visibility: visible !important;
    top : 63% !important;
    height: 2.3rem;
    width: 2.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(212, 212, 212, var(--tw-border-opacity));
    --tw-bg-opacity: 1;
    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgba(239, 196, 163, var(--tw-text-opacity));
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 150ms
}


.custom-navigation-button{
   border-radius: 50%;
   border-color: var(--natural-dark);
}

.custom-navigation-button:not(:disabled):hover { 
    background-color: white;
    opacity: 0.6;
}

#productGalleryModal > div {
  overflow-x: hidden;
}
 #IntersectionObserver {
    top: 30vh !important;
 }


/* .image-preview-container {
    display: none ;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1); 
    z-index: 10000;
} */


/* .image-preview-container img {
    max-width: 100vw;  
    max-height: 100vh;
    height: auto;
    width: auto;
    
} */

.exit-preview-btn {
  position: fixed;
  cursor: pointer;
  z-index: 10000; 
  height: 48px;
  width: 48px;
  background: transparent;
  border-radius: 4px;
  top: 10px;
  right: 2vw;
}

.fullscreen-horizontal-btn {
    position:absolute;
    top: 3%;     /* More predictable than % of parent height */
    right: 2.5%;   /* Responsive horizontal spacing */
    z-index: 1001;
    width: fit-content;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.3);  /* <--- dark semi-transparent bg */
    color: white;
    cursor: pointer;
    font-size: 24px;
    border: 1px solid white;
    border-radius: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fullscreen-vertical-btn {
    position: absolute;
    top: 1.5%;       /* Same vertical spacing as horizontal */
    right: 1.5%;       /* Adjust as needed for vertical layout */
    z-index: 1001;    /* Ensure it's above other elements */
    width: fit-content;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.3);  /* <--- dark semi-transparent bg */
    color: white;
    cursor: pointer;
    font-size: 24px;
    border: 1px solid white;
    border-radius: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

body.fullscreen-active {
    overflow: hidden;
}

.exit-preview-btn svg {
    padding: 5px;
    width: 80%; 
    height: 80%;
    background-color: rgba(0, 0, 0, 0.5);;
    border: 1px white solid;
    border-radius: 100%;
    position: relative;
    cursor: pointer;
}
/* Fullscreen Container for Image Comparison */
.image-preview-container {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0); /* Dark background */
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-container img {
    max-width: 100vw;  
    max-height: 100vh;
    object-fit: contain;
    width: auto;
}
