:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #2c2c2c; /* Charcoal */
    --bg-color: #fdfbf7; /* Cream */
    --text-color: #006a4e;
    --white: #ffffff;
    --transition: all 0.4s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 5px 5%;
    align-items: center;
    min-height: 8vh;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-nav {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.selective-bar {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-color);
    background: var(--white);
}

#navSearch {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .active-link {
    color: var(--primary-color);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
/* Brands Bar */
.brands-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brands-scroll {
    display: flex;
    gap: 40px;
    color: var(--primary-color);
}

/* Search Results Grid */
.search-results {
    padding: 20px 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Header */
.collections-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.collections-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Product Rows */
.row-container {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.row-title {
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 50px;
}

.product-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card {
    min-width: 300px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available { background-color: #e8f5e9; color: #2e7d32; }
.status-unavailable { background-color: #ffebee; color: #c62828; }

.price { color: var(--primary-color); font-size: 1.2rem; font-weight: 600; }
.qty { font-size: 0.75rem; color: #777; margin-bottom: 15px; }

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover { background: var(--primary-color); color: var(--white); }
.prev { left: 5px; }
.next { right: 5px; }

/* Buttons */
.btn {
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary { background-color: var(--primary-color); color: var(--white); }

/* Simplified Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}
/* Footer */
footer {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    width: 100%;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

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

.loader-text {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* Product Details Mini & Card Actions */
.product-details-mini {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 40px;
}

.product-details-mini p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.card-actions .btn {
    flex: 1;
    padding: 8px 5px;
}

.btn.secondary.info-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* Info Modal Styles */
.info-modal-content {
    max-width: 800px !important;
    width: 90% !important;
    padding: 30px !important;
    position: relative;
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

/* Hide input but keep it focusable for browser validation */
.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    font-size: 30px; /* Slightly larger */
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--primary-color);
}

.star-rating label:hover:before,
.star-rating label:hover ~ label:before,
.star-rating input:checked ~ label:before {
    content: "★";
}

.star-rating label:before {
    content: "☆";
}

.product-info-modal {
    padding: 10px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.info-grid img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.info-text {
    text-align: left;
}

.info-text h2 {
    margin: 0 0 5px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.info-brand {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.info-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.info-section {
    margin-top: 20px;
}

.info-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 8px;
}

.info-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    z-index: 10;
}

@media screen and (max-width: 980px) {
    .nav-links {
        width: 50%;
    }

    .nav-links {
        position: absolute;
        right: 30px;
        height: 50vh;
        top: 12vh;
        background-color: rgb(226, 226, 226);
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        width: 30%;
        transform: translateX(10%);
        transition: transform 0.9s ease-in, visibility 0.5s;
        z-index: 999;
        visibility: hidden;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
        visibility: visible;
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    
    }
    .nav-links.nav-active li {
        opacity: 1;
        animation: navLinkFade 0.9s ease forwards;
    }

    .nav-links a {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 400;
    }

    .nav-links a:hover, .active-link {
        color: var(--primary-color) !important;
    }
    .brands-bar {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 10px 20px;
        gap: 20px;
    }
    
    .brands-scroll{
        gap: 30px;
        font-size: 0.7rem;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }
    
}

@media screen and (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
    .nav-links {
        position: absolute;
        right: 20px;
        height: 50vh;
        top: 12vh;
        background-color: rgb(226, 226, 226);
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        width: 40%;
        transform: translateX(10%);
        transition: transform 0.9s ease-in, visibility 0.5s;
        z-index: 999;
        visibility: hidden;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
        visibility: visible;
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    
    }
    .nav-links.nav-active li {
        opacity: 1;
        animation: navLinkFade 0.9s ease forwards;
    }

    .nav-links a {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 400;
    }
    
    .nav-links a:hover, .active-link {
        color: var(--primary-color) !important;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .brands-bar {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 10px 20px;
        gap: 10px;
    }

    .brands-scroll{
        gap: 20px;
        font-size: 0.7rem;
    }
    
    .search-nav {
        max-width: 200px;
        margin: 0 10px;
    }

    .search-container {
        flex-direction: column;
        gap: 5px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid img {
        max-height: 300px;
    }

    .selective-bar, #navSearch {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        margin: 5px;
        transition: all 0.3s ease;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .product-card { min-width: 260px; }
}

.nav-active {
    transform: translateX(0%) !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 500px) {
    .brands-bar {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 10px 6px;
        gap: 10px;
    }
    .brands-scroll{
        gap: 20px;
        font-size: 0.7rem;
    }
    .nav-links {
        right: 30px;
        top: 12vh;
        width: 50%;
    }
    .nav-links a {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 400;
    }
    .nav-links a:hover, .active-link {
        color: var(--primary-color) !important;
    }
    .collections-header h1 {
        font-size: 1.8rem;
    }

    .row-title {
        padding-left: 20px;
        font-size: 1.4rem;
    }

    .slider-wrapper {
        padding: 10px 20px;
    }

    .product-card {
        min-width: 280px;
        padding: 15px;
    }

    .search-results {
        padding: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .search-nav {
        max-width: 150px;
    }

    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
    }

    .footer-bottom {
        width: 70%;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 20px;
        padding-top: 20px;
        font-size: 0.8rem;
        color: #777;
    }
}

