/* General Reset */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

button#minimize-button {
    pointer-events: auto !important;
    z-index: 10002 !important;
    touch-action: manipulation;
}

#fullscreenModal{
    z-index: 10002 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}

body.popup-open #fullscreenicon_container {
  z-index: 10002;
}


#enter-btn .spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes shimmer {
  0% {
    background-position: -200%;
  }
  100% {
    background-position: 200%;
  }
}

#enter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
  border-radius: inherit;
  pointer-events: none;
}



#music-btn img {
  width: 100%;
  height: 100%;
}

#music-btn:hover {
  opacity: 0.7;
  transition: opacity 0.3s;
}

#info-popup {
  
  z-index: 10002;
  pointer-events: auto;
  
}

.popup-content {
  pointer-events: auto;
}

#fade-overlay,
#loading-screen {
  pointer-events: none;
}


#popup-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent; /* or rgba(0,0,0,0.2) if you want dimming */
  z-index: 9998; /* lower than popup, higher than all other content */
  pointer-events: none; /* default disabled */
  touch-action: none;
}




#custom-cursor {
      position: fixed;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 1000;
    }

    .cursor-dot, .cursor-ring, .cursor-text {
      position: absolute;
      top: 0;
      left: 0;
    }

    .cursor-dot {
      width: 6px;
      height: 6px;
      background-color: white;
      border-radius: 50%;
      transform: translate(-50%, -50%);
    }

    .cursor-ring {
      width: 60px;
      height: 60px;
      border: 0.5px solid rgb(117, 117, 117);
      border-radius: 50%;
      transform: translate(-50%, -50%);
    }

    .cursor-text {
      color: rgb(208, 208, 208);
      font-family: sans-serif;
      font-size: 16px;
      transform: translate(60px, -50%);
      white-space: nowrap;
      font-weight: 100;
    }


#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10;
}

#loading-screen.hidden {
    display: none;
}




#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 2s ease-in-out;
  }

.body-scroll-lock {
    overflow: hidden;
}

canvas {
    display: block;
}

.hidden {
    display: none;
}

/* Popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.7); 
    backdrop-filter: blur(50px); 
    
    /* Optional shadow for contrast */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    padding: 30px;
    /* z-index: 1000; */
    display: block; 
    width: 80%; 
    max-width: 900px; 
    
    border: 1px solid rgba(128, 128, 128, 0.79); 
    border-radius: 46px;
    height: 600px;
}


/* Optional, styling for the content inside the popup */
.popup-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 100%; 
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.popup-close {
    /* background: #ff4d4d; */
    stroke: #ddd;
    border: none;
    color: white;
    background-color: transparent;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    position: fixed;
    top: 20px;
    right: 20px;
}

/* Left Section: Segmented Control and Model Viewer or Picture */
.popup-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-right: 15px;
    /* border-right: 2px solid rgba(255, 255, 255, 0.3); */
    overflow: hidden;
}

/* Style the segmented control container */
.segmented-control {
    display: flex;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 30px;
    overflow: hidden;
    width: 220px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Style the buttons */
/* Style the segmented control container */
.segmented-control {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
    border-radius: 40px;
    overflow: hidden;
    width: 270px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    padding: 2px;
}

/* Style the buttons */
.segmented-control button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 40px;
    position: relative;
}

/* Hover effect on buttons */
.segmented-control button:hover {
    background: rgba(255, 255, 255, 0.1);
    /* transform: translateY(-4px);  */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Active button effect */
.segmented-control button.active {
    background: #5c5c5c;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
}

/* Optional: Add a transition for smooth toggle effect */
.segmented-control button:focus {
    outline: none;
}

/* Add a subtle scale effect on the active button */
.segmented-control button:active {
    transform: scale(0.98); /* Slight shrink when clicked */
}



/* Animation for underline */
@keyframes underlineAnimation {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}


.buynow {
    width: 90%; /* Adjust for mobile */
    max-width: 300px; /* Optional: limit max width */
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 35px;
    margin: auto;
    position: sticky; /* Makes the button sticky */
    bottom: 20px; /* Stick 20px from the bottom of the popup */
    z-index: 10; /* Ensure it stays above other content */
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btm_buynow {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    cursor: pointer;
}



/* Model Viewer Section */
.model-viewer-container {
    width: 100%;
    height: 100%; /* Adjust height for the model viewer */
    
    margin-top: 20px;
}

/* Right Section: Heading, Price, Counter */
.popup-right {
    flex: 1;
    /* padding-left: 15px; */
    overflow-y: auto; /* Make this section scrollable */
    scrollbar-width: 0px;
}

/* Heading */
.popup-heading {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
    margin-top: 55px;
}

/* Price */
.popup-price {
    font-size: 26px;
    color: #e1e1e1;
    margin-bottom: 10px;
    font-weight: 500;
    margin-top: 15px;
}

/* Product Size and Counter */
.product-size {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    margin-top: 15px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    overflow-x: auto; 
    white-space: nowrap; 
    gap: 8px; 
    scrollbar-width: thin; 
    scrollbar-color: #787878 transparent; 
}

/* Styling the scrollbar (for WebKit browsers like Chrome, Safari) */
.product-size::-webkit-scrollbar {
    height: 8px; 
}

.product-size::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

.product-size::-webkit-scrollbar-track {
    background: transparent;
}

.size-block, .color-block {
    display: inline-block;
    /* Fixed width for each size block */
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #a49b9b8c;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    white-space: nowrap; 
    flex-shrink: 0; 
    height: 25px;
    align-content: center;
}

.size-block:hover {
    background-color: #aaaaaa;
}

.highlighted{
    background-color: #aaaaaa;
}

.selected{
    background-color: #aaaaaa;
}

.custom-tooltip {
    position: absolute;
    left: 435px;
}

.counter-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 50px;
}

.counter-button {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    cursor: pointer;
}

.counter-number {
    margin: 0 10px;
    font-size: 18px;
    color: white;
}

/* Product Description */
.popup-description {
    font-size: 16px;
    color: #cacaca;
    line-height: 1.5;
    font-weight: 300;
}

/* Scrollable Right Section */
.popup-right {
    max-height: 75vh; /* Set a limit on the height */
    padding: 25px;
    /* overflow-y: auto; */
    scrollbar-width: none;
}

/* Close button inside the popup */
.popup-close {
    /* background: #ff4d4d; */
    /* border: none; */
    /* color: white; */
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Disable background interaction when popup is open */
body.popup-open {
    overflow: hidden;
}



/* Ensure the popup is hidden initially */
#info-popup.hidden {
    display: none;
}

/* When the popup is visible */
#info-popup {
    display: block;
}

.model-viewer-container {
    width: 100%;
    height: 100%; 
    position: relative;
}
#model-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%; /* Ensure the container takes the available height */
    overflow: hidden;
    position: relative;
}

#model-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the image scales properly within the container */
}




:host {
    display: block;
    position: relative;
    contain: strict;
    width: 100%;
    height: 100%;
}

.watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100; 
    opacity: 0.5; /* Make it semi-transparent */
    pointer-events: none; 
}

.watermark img {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
}

/* Add this to your CSS file */
.scroll-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}



div#sizeme-container {
    margin-bottom: 20px;
}

/* .size-block {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    
    border-radius: 4px;
    background-color: #a49b9b8c;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    align-content: center;
    height: 25px;
}
.size-block:hover {
    background-color: #b1b1b1;
} */







/* Tablet (768px and up) */
@media screen and (max-width: 1024px) {
    .popup-content {
        flex-direction: row;
        height: auto;
    }
    .rooms-container {
        top: 10px;
        right: 10px;
    }

    .rooms-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .room-icon, .dropdown-icon {
        width: 16px;
        height: 16px;
    }

    .dropdown-menu {
        width: 150px;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 12px;
    }

    #custom-cursor {
      display: none !important;
    }

    

}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {

     #custom-cursor {
      display: none !important;
    }
    .popup {
        width:80%;
        height: auto;
        max-height: 85%;
        overflow-y: auto;
        z-index: 1000;
    }

    .model-viewer {
        width: 100%;
        height: 100%;
    }
    .model-viewer-container {
        width: 100%;
        height: 300px; 
        position: relative;
    }

    #model-viewer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 300px; /* Ensure the container takes the available height */
        overflow: hidden;
        position: relative;
    }

    #model-viewer img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Ensures the image scales properly within the container */
    }
    
    .popup-content {
        flex-direction: column;
        height: auto;
        z-index: 1001;
    }

    .popup-close {
        /* background: #ff4d4d; */
        stroke: #ddd;
        border: none;
        color: white;
        background-color: transparent;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        font-size: 14px;
        position: fixed;
        top: 8px;
        right: 5px;
        z-index: auto;
    }

    .show {
        display: block;
    }

    .popup-left {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .segmented-control {
        margin-bottom: 15px;
        margin-top: 15px;
    }

    .popup-description {
        font-size: 14px;
        color: #cacaca;
        line-height: 1.5;
        font-weight: 300;
    }

    .popup-right {
        padding: 0px;
    }

    .popup-heading {
        font-size: 20px;
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .popup-price {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .counter-container {
        gap: 20px;
    }

    .buynow {
        width: 100%;
        cursor: pointer;
        bottom: 0; /* Stick to the very bottom */
    }

    .rooms-container {
        top: 10px;
        right: 10px;
    }

    .rooms-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .room-icon, .dropdown-icon {
        width: 16px;
        height: 16px;
    }

    .dropdown-menu {
        width: 150px;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Configurator Button */
.configurator-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.configurator-button:hover {
    background-color: #45a049;
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

