@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
/* ADD/UPDATE THIS CSS FOR THE THUMBNAIL SLIDER */

/* ========================================= */
/*  PRODUCT PAGE ACTION BUTTONS & WISHLIST   */
/* ========================================= */

.product-actions-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
}

/* Make the main action buttons fill the available space */
.product-actions-container .butn {
    flex-grow: 1;
}

/* The new standalone wishlist icon button */
.wishlist-icon-btn {
    flex-shrink: 0; /* Prevent the icon from shrinking */
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #555;
    font-size: 1.2rem;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-icon-btn:hover {
    border-color: #470B49; /* Theme color */
    color: #470B49;
    transform: scale(1.05);
}

/* Style for when the item IS in the wishlist */
.wishlist-icon-btn.active {
    background-color: #E2264D; /* A nice red color */
    color: #fff;
    border-color: #E2264D;
}

/* This makes the Font Awesome heart icon solid when active */
.wishlist-icon-btn.active .fa-heart {
    font-weight: 900;
}
body{
    font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.products h1{
    font-size: 34px;
    margin-top: 20px;
    font-weight: 700;
    
}
.butn {
    border: 2px solid #470b49 !important;
    background-color: transparent !important;
    color: #470b49 !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-weight: 500;
}

.butn:hover {
    background-color: #470b49 !important;
    color: white !important;
    transform: scale(1.08) !important;
}

#addToCart {
    margin-right: 10px !important;
}

#buyNow {
    margin-left: 10px !important;
}
.d-flex {
    display: flex;
    flex-wrap: wrap;
   

}
.thumbnail-img {
    cursor: pointer;
    width: 70px; 
    height: 70px; 
}
.thumbnail-img:hover {
    border: 2px solid #470b49;
}
.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative; /* Add this line */
}

.color-circle .color-name {
    position: absolute;
    top: 35px; /* Adjust this value as needed */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.color-circle.active {
    border-color: #000;
}

#sizeContainer {
    display: flex;       /* This is the key: it arranges child elements in a row. */
    flex-wrap: wrap;     /* Allows boxes to drop to the next line on small screens. */
    gap: 10px;           /* Creates a nice 10px space between each box. */
    margin-top: 8px;     /* Adds some space below the "Available Sizes:" label. */
}
.size-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 45px;
    text-align: center;
    font-weight: 600;
}
.size-box.active {
    border-color: #470b49;
    background-color: #f8f9fa;
}
.size-box:hover {
    border-color: #470b49;
}

.btn-light {
    background-color: transparent;
    border: none !important;
    padding: 0.5rem;
    font-size: 1.25rem;
}

#quantityDisplay {
    font-size: 1.25rem;
}
#cartMessageContainer {
    display: none;
}

#cartMessage.success {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

#cartMessage.error {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.overlay-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; 
    max-width: 320px;
    width: 320px;
    text-align: center;
    display: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
   
}
.form-group{
    white-space: nowrap;
}

button#decreaseQuantity:focus, button#increaseQuantity:focus {
    outline: none;
    border: 1px solid #fff; /* Keeps the border but prevents focus outline */
}
.product-rating {
    font-size: 14px;
    color: #ffb300; /* Golden color for stars */
    margin-top: 5px;
}

.star {
    font-size: 16px;
}

.star.filled {
    color: #ffb300; /* Fill color for rated stars */
}

.star {
    color: #ccc; /* Empty star color */
}

.category-section {
    position: relative;
    overflow: hidden;
}

.product-list {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-list li {
    flex: 0 0 auto;
    margin-right: 20px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}

@media (max-width: 768px) {
    .thumbnail-img {
        width: 40px; /* Slightly smaller for tablets */
        height: 40px;
    }
    .form-group .d-flex {
        flex-direction: row; /* Ensures items are in a single row */
        align-items: center; /* Vertically centers items */
        justify-content: flex-start; /* Aligns items to the start of the row */
        gap: 60px; /* Adds spacing between items */
    }
 
    .products h1{
        font-size: 20px;
        margin-top: 20px;
        font-weight: 700;
        
    }
    .del h6{
        font-size:13px;
    }
    .products p{
        font-size: 13px;
    }
    .butn {
    border: 2px solid #470b49 !important;
    background-color: transparent !important;
    color: #470b49 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-weight: 500;
}
}