/* Croccker BLVD Resale - Refined Vintage Aesthetic */

:root {
    --primary-dark: #2c1810;
    --primary-light: #f5e6d3;
    --accent-gold: #d4af37;
    --accent-brown: #8b6f47;
    --text-dark: #3e3e3e;
    --border-light: #e0d5c7;
    --bg-cream: #faf6f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 2rem 0;
    border-bottom: 3px solid var(--accent-gold);
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: normal;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

nav a:hover {
    border-bottom-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px dashed var(--border-light);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.hero p {
    font-size: 1.2rem;
    color: var(--accent-brown);
    font-style: italic;
}

/* Grid Layouts */
.categories,
.featured {
    margin-bottom: 2rem;
}

.categories h3,
.featured h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: normal;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

/* Grid Container */
#category-grid,
#featured-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.category-card,
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
}

.category-card a,
.product-card a {
    display: block;
    text-decoration: none;
    padding: 1.5rem;
    color: inherit;
}

.category-card h3,
.product-card h3,
.product-card h4 {
    font-weight: normal;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: bold;
}

.product-card .condition {
    font-size: 0.85rem;
    color: var(--accent-brown);
    margin-top: 0.5rem;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#main-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

#thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#thumbnail-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#thumbnail-gallery img:hover {
    border-color: var(--accent-gold);
}

.product-info h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: normal;
}

.product-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#product-price {
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Buttons */
button,
.btn-primary,
.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

button:hover,
.btn-primary:hover {
    background-color: var(--accent-brown);
    border-color: var(--accent-gold);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

#add-to-cart-btn,
#checkout-btn,
#submit-payment {
    margin-right: 1rem;
    margin-top: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-brown);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.back-link:hover {
    border-bottom-color: var(--accent-brown);
}

/* Cart */
.cart-view {
    max-width: 900px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: white;
}

.cart-item img {
    flex-shrink: 0;
}

.cart-item div {
    flex: 1;
}

.cart-item h4 {
    font-weight: normal;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    text-align: right;
    margin-top: 2rem;
}

.cart-summary p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

#cart-total {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Tables */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 1rem;
    text-align: left;
    font-weight: normal;
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.orders-table tr:hover {
    background-color: #fef9f3;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-gold);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1rem;
    }

    #category-grid,
    #featured-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .orders-table {
        font-size: 0.9rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }
}
