

/* ✅ Style selected size & color */


/* ✅ Style color buttons 
.color-btn {
    width: 70px;
    height: 70px;
    color: black;
    border-radius: 50%;
    border: 1px solid black;
    display: inline-block;
}*/
.color-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin: 5px;
    background: none;
    cursor: pointer;
}

.color-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fallback-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


    /* General styling 
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
*/
/* Product details container */
@media screen and (min-width: 1200px) {
    .product-details2 {
        background: inherit;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 1000px;
        width: 100%;
        align-items: center;
        text-align: center;
        left: 20%;
        border: 2px solid currentColor;
        color: inherit;
        margin-left: 11%;
    }
    .size-btn, .color-btn {
        margin: 5px;
        padding: 10px;
        border: 1px solid #ddd;
        cursor: pointer;
        color:black;
        background-color: white;
    }
    .size-btn, .color-btn :hover{
        background-color: green;
        color: black;
    }
    .size-btn.selected, .color-btn.selected {
        border: 2px solid rgb(255, 60, 0);
    }
}
@media screen and (max-width: 768px) {
    .product-details2 {
        background: inherit;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
        max-width: 90%;
        width: 100%;
        align-items: center;
        text-align: center;
        
        border: 2px solid currentColor;
        color: inherit;
        
    }
    .color-btn {
        margin: 5px;
        padding: 20px;
        border: 1px solid #ddd;
        cursor: pointer;
        color:black;
        font-size: 24px;
        background-color: white;
    }
    .size-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .size-btn {
        width: 100%;
        padding: 12px 8px;
        font-size: 14px;
        border-radius: 8px;
        white-space: normal;
        word-break: break-word;
    }
    .size-btn, .color-btn :hover{
        background-color: green;
        color: black;
    }
    .size-btn.selected, .color-btn.selected {
        border: 2px solid rgb(255, 60, 0);
    }
}
@media screen and (max-width: 480px) {
    .product-details2 {
        background: inherit;
        padding: 10px;
        align-items: center;
        text-align: center;
        justify-content: center;
        border-radius: 5px;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
        max-width: 90%;
        width: 100%;
        align-items: center;
        text-align: center;
        
        border: 2px solid currentColor;
        color: inherit;
        
    }
    .color-btn {
        margin: 5px;
        padding: 20px;
        border: 1px solid #ddd;
        cursor: pointer;
        color:black;
        font-size: 24px;
        background-color: white;
    }
    .size-btn, .color-btn :hover{
        background-color: green;
        color: black;
    }
    .sizes-options {
      display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .size-btn {
        flex: 0 0 calc(50% - 5px);  
        max-width: calc(80% - 5px);
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 8px;
        text-align: center;
        white-space: normal;        
        word-break: break-word;     
    }
    .size-btn.selected, .color-btn.selected {
        border: 2px solid rgb(255, 60, 0);
    }
}

.product-details2 h1 {
    color: inherit;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Product Image */
.product-details2 img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* More Images */
.product-details2 h3 {
    margin-top: 20px;
    font-size: 18px;
    color: inherit;
}
.seller-btn {
    padding: 15px;
    background: rgb(0, 102, 255);
    color: black;
    text-align: center;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    max-width: 250px;
    justify-content: center;
    display: flex;
    align-items: center;   
}
.seller-btn:hover {
    background: rgb(0, 153, 255);
}
.product-details2 img[width="150"] {
    margin: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

/* Product Info */
.product-details2 p {
    color: inherit;
    border: 1px solid currentColor;
    font-size: 16px;
    padding: 15px;
    border-radius: 5px;
    margin: 5px 0;
}
.btn1 {
    background: rgb(255, 115, 0);
    color: black;
    text-align: center;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    max-width: 250px;
    justify-content: center;
    display: flex;
    align-items: center;



}
.btn1:hover {
    background: rgb(0, 255, 0);
}
  /* The switch styling */
  .theme-switch {
    position: absolute;
    top: 1rem;
    left: 2px;
  }
  
  .theme-switch input {
    display: none;
  }

  .theme-switch .slider {
    width: 40px;
    height: 20px;
    background-color: green;
    display: inline-block;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
  }
  
  .theme-switch .slider::before {
    content: '';
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
  }
  
  .theme-switch input:checked + .slider::before {
    transform: translateX(25px);
  }

body {
    font-family: Arial, sans-serif;
    margin-top: 100px;
    padding: 0;
    border: 2px solid currentColor;
    align-items: center;
    text-align: center;
    justify-content: center;
    
    
 
}
body {
    
    
    transition: 0.3s;
  }
  
  /* Dark theme */
  body.dark-mode {
    background-color: #121212;
    color: white;
  }
  


.currency-selector {
    position: fixed;
    top: 0px;
    padding: 14px 10px;
    font-size: 24px;
    right: 0px;
    width: 10%;
}
@media screen and (max-width: 768px) {
    .currency-selector {
    position: fixed;
    top: 1px;
    right: 3px;
    width: 15%;
    font-size: 24px;
}
}
@media screen and (max-width: 480px) {
    .currency-selector {
    position: fixed;
    top: 1px;
    right: 3px;
    width: 20%;
    font-size: 20px;
}
}


/* On small screens, hide the logo and show the text */
@media screen and (max-width: 768px) {

      

        
    

    

    a {
        color: inherit !important;
        text-decoration: none;
        font-size: 0.75rem !important;

        &:hover {
            color: lighten(currentColor, 20%) !important; 
            text-decoration: underline;
        }
    }
}
@media screen and (min-width: 769px) {
    a {
        color: inherit !important;
        text-decoration: none;
        font-size: 1rem !important;

        &:hover {
            color: lighten(currentColor, 20%) !important; 
            text-decoration: underline;
        }
    }
}
@media screen and (max-width: 480px) {
 
 

    a {
    color: inherit !important;
    text-decoration: none;
    font-size: 0.75rem !important;

    &:hover {
        color: lighten(currentColor, 20%) !important; 
        
    }
    }
}
/* Add to Cart Button */
.add-to-cart {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.add-to-cart:hover {
    background: #818821;
}

/* Reviews Link */
.product-details2 a {
    display: block;
    margin-top: 15px;
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.product-details2 a:hover {
    text-decoration: underline;
}

/* Image Zoom Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
/* Responsive Styles for Small Screens */
@media (max-width: 768px) {
    .product-details2 {
        max-width: 100%;
        padding: 15px;
       
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .product-details2 img {
        max-width: 100%;
        height: auto;
    }
    
    .add-to-cart {
        width: 100%;
        padding: 14px 20px;
    }

    .color-options {
        padding: 30px;
        overflow-x: auto;
        font-size: 24px;
    }
 
    
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        max-width: 80%;
        max-height: 80%;
        border-radius: 10px;
    }

    .close {
        position: absolute;
        top: 15px;
        right: 30px;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }
    
    .product-details2 p {
        font-size: 14px;
        margin-left: 5%;
    }

    .color-options {
        padding: 30px;
        overflow-x: auto;
        font-size: 24px;
    }

    
    .add-to-cart {
        font-size: 24px;
        padding: 14px 20px;
    }
    
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        max-width: 80%;
        max-height: 80%;
        border-radius: 10px;
    }

    .close {
        position: absolute;
        top: 15px;
        right: 30px;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }
}
