/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    --color-gold: #C0C0C0; /* Renamed visually to Silver, keeping var name for compat */
    --color-gold-hover: #A9A9A9;
    --color-black: #002447; /* Deep Ocean Blue */
    --color-dark-grey: #1B2F3B;
    --color-off-white: #F0F8FF;
    --color-white: #ffffff;
    --color-text-body: #333333;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-off-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   TYPOGRAPHY & UTILS
=========================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-body);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-black);
    color: var(--color-gold);
    border: 1px solid var(--color-black);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-black);
    color: var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-gold);
}

/* ===========================
   HEADER & NAV
=========================== */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-black);
}

.logo span {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-gold);
    color: var(--color-black);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.4)), url('https://images.unsplash.com/photo-1484581400079-58a319a15a2a?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    margin-top: -80px; /* Offset header height if needed, but header is sticky so maybe not needed unless transparent */
}
/* If header is sticky and opaque, we don't need margin-top. But if we want hero to be behind header... lets stick to sticky opaque for now */
.hero { margin-top: 0; height: calc(100vh - 80px); }

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-off-white);
    font-weight: 300;
}

/* ===========================
   COLLECTIONS PREVIEW
=========================== */
.collections-preview {
    padding: 80px 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 4px;
    cursor: pointer;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background 0.3s;
}

.collection-card:hover .collection-overlay {
    background: rgba(0,0,0,0.5);
}

.collection-title {
    color: var(--color-white);
    font-size: 1.8rem;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ===========================
   PRODUCT GRID
=========================== */
.products-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

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

.product-card {
    background: var(--color-off-white);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.product-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-body);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--color-gold);
    font-size: 1.1rem;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
    padding: 80px 0;
    background-color: var(--color-dark-grey);
    color: var(--color-white);
}

.testimonials .section-title {
    color: var(--color-white);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ccc;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-gold);
}

.stars {
    color: var(--color-gold);
    margin-bottom: 10px;
}

/* ===========================
   NEWSLETTER
=========================== */
.newsletter {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-gold);
    color: var(--color-black);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    background-color: var(--color-black);
    color: var(--color-gold);
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 4px;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--color-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

/* ===========================
   PAGES SPECIFIC
=========================== */
/* Product Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.detail-description {
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: var(--color-off-white);
    font-weight: 700;
}

.cart-total {
    text-align: right;
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Contact Page */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: var(--color-black);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .newsletter form {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-container {
    overflow: hidden;
}
.zoom-container img {
    transition: transform 0.5s ease;
}
.zoom-container:hover img {
    transform: scale(1.5);
    cursor: zoom-in;
}
