/* --- Global Styles & Variables --- */
:root {
    --gold: #C5B358;
    --dark-charcoal: #222222;
    --off-white: #F9F9F7;
    --grey: #a0a0a0;
    --light-grey-border: #e5e5e5;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-charcoal);
    background-color: var(--off-white);
    margin: 0;
    line-height: 1.6;
}

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

a {
    color: var(--dark-charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1, h2, .logo {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--light-grey-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-style: italic;
    color: var(--gold);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a.active, nav a:hover {
    color: var(--dark-charcoal);
    border-bottom-color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.cart-icon {
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-count {
    background-color: var(--gold);
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1588117260148-b47818741c74?q=80&w=2070') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 5vw;
    font-style: italic;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--gold);
    color: white;
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* --- Info Bar --- */
.info-bar {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid var(--light-grey-border);
}

.info-bar .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.info-title {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    color: var(--grey);
    margin: 0;
}

/* --- Product Section --- */
.product-section {
    padding: 60px 0;
}

.product-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

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

.product-card {
    background-color: #ffffff;
    border: 1px solid var(--light-grey-border);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--grey);
    letter-spacing: 1px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 18px;
    margin: 5px 0;
}

.product-seller {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-add-to-bag {
    background: var(--dark-charcoal);
    color: white;
    border: 1px solid var(--dark-charcoal);
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
}

.btn-add-to-bag:hover {
    background: white;
    color: var(--dark-charcoal);
}

/* --- Footer --- */
footer {
    background-color: #ffffff;
    color: var(--dark-charcoal);
    padding: 50px 0 0;
    border-top: 1px solid var(--light-grey-border);
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 28px;
    color: var(--gold);
}

footer h4 {
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    font-size: 14px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex-grow: 1;
    border: 1px solid var(--light-grey-border);
    padding: 10px;
    background: var(--off-white);
}

.footer-newsletter button {
    background: var(--dark-charcoal);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--light-grey-border);
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: var(--grey);
}

/* --- Shopping Cart Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 450px;
    max-width: 90vw;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { right: -450px; }
    to { right: 0; }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-grey-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-btn {
    color: var(--grey);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey-border);
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 100px;
    height: 120px;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details .item-name {
    font-family: var(--font-serif);
    font-size: 18px;
    margin: 0;
}

.cart-item-details .item-seller {
    font-size: 13px;
    color: var(--grey);
    margin: 5px 0;
}

.cart-item-details .item-price {
    font-weight: 700;
    margin-top: 10px;
}

.cart-item-remove {
    font-size: 12px;
    color: var(--grey);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
}
.cart-item-remove:hover {
    color: red;
}

.cart-empty-message {
    color: var(--grey);
    text-align: center;
    margin-top: 50px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-grey-border);
    background: var(--off-white);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-line:first-child span:last-child {
    font-weight: 700;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    margin-top: 15px;
}