/* Base Styles */
:root {
    --gold: #D4AF37;
    --light-gold: #E6C567;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --black: #000000;
    --gray: #333333;
    --light-gray: #E0E0E0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray);
    line-height: 1.6;
    background-color: var(--off-white);
}

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

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/brand/work.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

/* Products Section */
.products {
    padding: 100px 0;
    background-color: var(--white);
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--gray);
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--light-gray);
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--light-gray);
    position: relative;
}

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

.product-image .quick-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.product-image:hover .quick-view {
    opacity: 1;
}

.product-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.product-modal.hidden {
    display: none;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.product-modal-content {
    position: relative;
    width: min(90vw, 900px);
    max-height: 90vh;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: grid;
    gap: 20px;
    padding: 24px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: var(--gray);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
}

.product-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    max-height: 60vh;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-details h3 {
    margin: 0;
    color: var(--gray);
}

.modal-details p {
    margin: 0;
    color: #555;
}

.modal-details span {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray);
}

.product-card p {
    padding: 0 15px;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.product-colors {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    cursor: pointer;
    transition: border-color 0.3s;
}

.color-dot:hover {
    border-color: var(--gold);
}

.product-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--light-gray);
}

.price {
    font-weight: 600;
    color: var(--gold);
    font-size: 1.2rem;
}

.add-to-cart {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--light-gold);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 10px;
}

.product-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.stock-status {
    display: inline-flex;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 110px;
}

.stock-in-stock {
    background: #e8f8ef;
    color: #1a7f4f;
    border: 1px solid #b5e5c6;
}

.stock-low-stock {
    background: #fff4e5;
    color: #a25a0b;
    border: 1px solid #f2d6a0;
}

.stock-sold-out {
    background: #f8e1e1;
    color: #a12f2f;
    border: 1px solid #f0c1c1;
}

.order-section {
    padding: 100px 0;
    background-color: var(--off-white);
}

.order-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--gray);
}

.order-section p {
    text-align: center;
    margin-bottom: 45px;
    color: #666;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.product-selector,
.cart-column {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 30px;
}

.product-selector h3,
.cart-column h3 {
    margin-top: 0;
    color: var(--gray);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.selector-form .form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-form label,
.order-form label {
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
}

.selector-form input,
.selector-form select,
.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--white);
}

.payment-notice {
    background: #fff8e6;
    border-left: 4px solid var(--gold);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #333;
    font-size: 0.95rem;
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--light-gold);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-items {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.cart-item {
    background: #f9f9f9;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-thumb {
    width: 90px;
    min-width: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--light-gray);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--gray);
    margin: 0 0 4px 0;
}

.cart-item-details {
    font-size: 0.9rem;
    color: #666;
    margin: 2px 0;
}

.cart-item-remove {
    background: #f8e1e1;
    color: #a12f2f;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.cart-item-remove:hover {
    background: #e8c1c1;
}

.cart-total {
    border-top: 2px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
    text-align: right;
    color: var(--gray);
    font-size: 1.1rem;
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 30px;
}

.checkout-section h3 {
    margin-top: 0;
    color: var(--gray);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.order-form .form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-form textarea {
    resize: vertical;
    min-height: 100px;
}

.order-message {
    min-height: 1.6rem;
    margin-bottom: 18px;
    color: #444;
}

@media (max-width: 900px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--off-white);
    text-align: center;
}

.about h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--gray);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}