:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #ff4081; /* Pink */
    --primary-hover: #f50057;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    grid-column: 2;
    text-align: center;
}

nav {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    header .container {
        display: flex; /* Revert to flex on mobile for simpler layout or keep grid */
        justify-content: space-between;
    }
    
    .logo {
        grid-column: auto;
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        grid-column: auto;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 15px 0;
    }
}

/* Hero Section */
/* ... (Hero styles unchanged, skipping for brevity in this replacement block if possible, but tool requires contiguous replacement. Since changes are at top and bottom, I might need multiple calls or one big one. I'll stick to the changed parts.) */

/* ... skipping hero/products ... */

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-select {
    padding: 10px 40px 10px 15px; /* Extra padding right for arrow */
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    min-width: 250px;
    outline: none;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4081'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.category-select:focus {
    box-shadow: 0 0 5px var(--primary-color);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('joyas/Gemini_Generated_Image_1jv9q51jv9q51jv9.png') no-repeat center center/cover;
    margin-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Products Section */
.products {
    padding: 100px 0;
}

.products h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer; /* Added cursor pointer */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.btn-card-add {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 5px;
    width: 100%;
}

.btn-card-add:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 10% auto; 
    padding: 0;
    border: 1px solid #333;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-body {
    display: flex;
    align-items: flex-start; /* Prevent stretching columns to match height */
}

/* Make sure the image container itself doesn't stretch */
.modal-body > div:first-child {
    background-color: transparent;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7); /* Darker background for visibility */
    color: white;
    border: 2px solid rgba(255,255,255,0.2); /* Slight border */
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    user-select: none;
    z-index: 1010; /* Very high z-index */
    display: block !important; /* Force display to debug */
}

.nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.prev { left: 10px; }
.next { right: 10px; }

.close-btn {
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    line-height: 1; 
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 2001; 
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.close-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

#modal-image {
    width: 100%;
    height: 400px; /* Fixed height to keep modal size consistent */
    object-fit: cover; /* Image will fill the entire container gracefully */
    border-radius: 10px 0 0 0;
    display: block;
    background-color: var(--surface-color); 
    border-right: 1px solid #333; /* Separator between image and text */
}

.modal-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    background-color: var(--surface-color);
    border-top: 1px solid #333;
    border-radius: 0 0 0 10px;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.6;
    flex-shrink: 0;
}

.modal-thumbnail:hover, .modal-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.modal-info {
    padding: 30px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.modal-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .product-image {
        height: 180px; /* Reduced height for smaller cards */
    }
    
    .product-info {
        padding: 10px; /* Reduced padding */
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .modal-body {
        flex-direction: column;
    }

    #modal-image {
        width: 100%;
        height: 300px; /* Fixed height for mobile */
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        background-color: var(--surface-color);
        border-right: none;
        border-bottom: 1px solid #333; /* Separator for mobile */
    }
    
    .modal-body > div:first-child {
        width: 100% !important; /* Force image container to full width on mobile */
    }

    .modal-info {
        width: 100%;
        padding: 20px;
    }

    .modal-content {
        margin: 20% auto;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-select {
    padding: 10px 40px 10px 15px; /* Extra padding right for arrow */
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    min-width: 250px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4081'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.category-select:focus {
    box-shadow: 0 0 5px var(--primary-color);
}

/* Ensure Footer Visibility */
footer {
    position: relative;
    z-index: 10;
    padding-bottom: 60px; /* Add extra padding for mobile browsers */
}

/* Cart Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.remove-item-btn:hover {
    color: red;
}
