/* --- VINTAGE LUXURY THEME & RESPONSIVE STYLES --- */
:root {
    --bg-color: #fdfcf8;
    --text-color: #2c2c2c;
    --accent-color: #a67c52;
    --accent-hover: #8c6642;
    --border-color: #e6e1d8;
}

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* --- HEADER LAYOUT --- */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.top-bar {
    background: var(--bg-color);
    padding: 10px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.header-main {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Context for absolute icons */
}

/* --- DESKTOP LAYOUT (Default > 768px) --- */

/* 1. Logo */
.logo {
    display: block;
    font-size: 32px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    margin: 0 auto 20px auto;
    width: fit-content;
}

/* 2. Navigation */
.main-nav {
    text-align: center;
    border-top: 1px solid transparent;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 30px;
}

.main-nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    font-weight: 500;
}

/* 3. User Actions (Cart/Login) */
.user-actions {
    position: absolute;
    top: 30px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 4. Hamburger (Hidden on Desktop) */
.mobile-toggle {
    display: none;
}

/* --- MOBILE LAYOUT (< 768px) --- */
@media (max-width: 768px) {
    .header-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }

    /* 1. Hamburger: Visible */
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        color: #333;
        width: 40px;
    }

    /* 2. Logo: Smaller & Flex */
    .logo {
        font-size: 20px;
        margin: 0;
        flex: 1;
    }

    /* 3. Icons: Static */
    .user-actions {
        position: static;
        width: 40px;
        justify-content: flex-end;
    }

    /* 4. Navigation: Dropdown */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #f9f9f9;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        text-align: center;
    }
}

/* --- GLOBAL COMPONENTS --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grid System - Fixed Syntax */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* Consistent gap */
    width: 100%;
    justify-content: center; /* Ensures the whole grid stays centered */
}

.product-card {
    text-align: center;
    transition: opacity 0.3s;
}

.product-card:hover {
    opacity: 0.9;
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 2px;
}

.product-title {
    font-size: 15px;
    margin: 10px 0 5px;
    font-weight: normal;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-color);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 0.9em;
}

.sale-price {
    color: #d63031;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

input,
textarea {
    background-color: #fff;
    border: 1px solid #ddd;
    transition: border 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- FOOTER STYLES --- */
.inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icons {
    margin-bottom: 30px;
}

.payment-icons svg {
    height: 32px;
    width: auto;
    fill: #e0e0e0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons svg:hover {
    fill: #fff;
    opacity: 1;
    transform: translateY(-2px);
}
