/* This is only for the Product Styling page */

/* Ensure the mobile navbar dropdown has the highest stacking order */
@media (max-width: 768px) {
    /* Make the navbar fixed at the top of the screen */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050; /* Bootstrap's highest z-index for navbars */
        background-color: #fff; /* Ensure it has a background color to cover content */
    }

    /* Add padding to the body so content isn't hidden behind the fixed navbar */
    body {
        padding-top: 70px; /* Adjust this value if your navbar height is different */
    }
    
    /* Ensure the dropdown menu expands correctly */
    .navbar-collapse {
        z-index: 1040;
        width: 100%;
        position: absolute;
        top: 100%; /* Position it right below the navbar */
        left: 0;
        background-color: #fff; /* Match your navbar background */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb-content {
    padding: 1rem 0; /* Add top/bottom padding */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: #2980b9;
}

.breadcrumb-content span {
    color: #666;
}

.breadcrumb-content span:last-child {
    color: #333;
    font-weight: 500;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    font-size: 1rem;
    color: #666;
}

/* Image Section */
/* Update your CSS to create a vertical container */

/* The main image container */
.main-image {
    width: 100%;
    /* Remove fixed height */
    padding-top: 130%; /* This creates a vertical aspect ratio (e.g., 100% width, 130% height) */
    position: relative; /* Essential for positioning the background image */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

/* The element that holds the background image */
.main-placeholder {
    width: 100%;
    height: 100%;
    position: absolute; /* Positions the element relative to its parent (.main-image) */
    top: 0;
    left: 0;
    background-color: #f8f9fa; /* Background color for empty space */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
}

/* The thumbnail containers can also be fixed with the same method */
.thumbnail {
    width: 80px;
    padding-top: 130%; /* Creates a vertical thumbnail */
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7rem;
}

/* .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #3498db;
} */

.thumbnail:hover {
    border-color: #3498db;
}

/* Product Details */
.product-details {
    padding-left: 2rem; /* Add some space between image and details */
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.product-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Color Options */
.color-options .color-option {
    width: 25px; /* Adjust size to match the provided image */
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ccc; /* Lighter border */
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-option.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; /* Add a ring effect */
}

/* Delivery and Returns */
.delivery-info {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.delivery-info .fa-shipping-fast,
.delivery-info .fa-undo {
    color: #3498db;
}

/* Enquire Button */
#enquire-btn {
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#enquire-btn:hover {
    background: #c0392b;
}

/* Error Container */
.error-container {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-container h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-container a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid #3498db;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.error-container a:hover {
    background: #3498db;
    color: white;
}

/* Responsive Design (still applies) */
@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    .product-details {
        padding-left: 0;
        padding-top: 1.5rem;
    }
}
@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    #enquire-btn {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse .nav-link {
        color: #000; /* Set the link color to black */
    }
}