@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
    --primary: #c5a880; /* Vintage brass/gold */
    --primary-rgb: 197, 168, 128;
    --primary-hover: #b3946a;
    --secondary: #1e2d24; /* Deep Forest Green */
    --bg-base: #f5eedc; /* Vintage Parchment/Cream */
    --bg-surface: #fbf9f4; /* Light Warm Paper */
    --bg-surface-solid: #e8e0cc; /* Darker paper accents */
    --border-color: #1e2d24; /* Deep forest green solid lines */
    --text-main: #1c2721; /* Charcoal off-black */
    --text-muted: #576b61; /* Muted forest green/grey */
    --shadow-md: 0 10px 30px rgba(30, 45, 36, 0.08);
    --font-primary: 'Outfit', sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(var(--bg-surface-solid) 1px, transparent 0), radial-gradient(var(--bg-surface-solid) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    color: var(--text-main);
    font-family: var(--font-primary);
}

/* Site Header Override */
.site-header {
    background: var(--secondary) !important;
    border-bottom: 4px solid var(--primary) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.site-header .logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-style: italic;
    color: var(--primary) !important;
    font-size: 1.8rem;
    letter-spacing: 1px;
}
.site-header .nav-link {
    color: var(--bg-base) !important;
    font-weight: 500;
}
.site-header .nav-link:hover, .site-header .nav-link.active {
    color: var(--primary) !important;
}
.site-header .icon-btn {
    color: var(--bg-base) !important;
}
.site-header .cart-badge {
    background: var(--primary) !important;
    color: var(--secondary) !important;
}

/* Hero Section */
.store-hero {
    background: linear-gradient(135deg, #1e2d24 0%, #0c140f 100%);
    padding: 120px 0 110px;
    border-bottom: 4px solid var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.store-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 15px, var(--secondary) 15px, var(--secondary) 30px);
}
.hero-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--bg-base);
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.35rem;
    color: var(--bg-surface-solid);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Catalog Filter Bar */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.category-tab {
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    border: 3px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 var(--border-color);
}
.category-tab:active {
    transform: translateY(4px);
    box-shadow: none;
}
.category-tab.active, .category-tab:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--border-color);
}

/* Product Cards Overhaul */
.prod-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 3px solid var(--border-color);
    background: var(--bg-surface);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 0 var(--border-color);
    display: flex;
    flex-direction: column;
}
.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 var(--border-color);
    border-color: var(--border-color);
}
.prod-img-wrap {
    padding: 12px;
    background: var(--bg-surface);
    height: 280px;
    overflow: hidden;
    border-bottom: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.prod-img-wrap img, .prod-img-wrap svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.prod-card:hover .prod-img-wrap img {
    transform: scale(1.05);
}
.prod-info {
    padding: 24px;
    background: var(--bg-surface);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.prod-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.prod-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.2;
}
.prod-price {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}
.prod-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b8860b;
    font-size: 0.95rem;
    font-weight: 700;
}
.prod-btn-add {
    width: 100%;
    margin-top: 24px;
    border-radius: var(--border-radius-sm);
    border: 3px solid var(--border-color);
    background: var(--secondary);
    color: var(--bg-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    box-shadow: 0 3px 0 var(--border-color);
    cursor: pointer;
    transition: all 0.1s ease;
}
.prod-btn-add:hover {
    background: var(--primary);
    color: var(--secondary);
}
.prod-btn-add:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Details Page Redesign */
.details-image-panel {
    background: var(--bg-surface) !important;
    border: 3px solid var(--border-color) !important;
    border-radius: var(--border-radius-md) !important;
    padding: 24px !important;
    overflow: hidden;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 0 var(--border-color);
}
.details-image-panel img, .details-image-panel svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.specs-table {
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-surface);
}
.specs-table tr {
    border-bottom: 2px solid var(--bg-surface-solid) !important;
}
.specs-table tr:last-child {
    border-bottom: none !important;
}
.specs-table td {
    padding: 14px 20px !important;
}
.specs-table td.label {
    color: var(--text-muted) !important;
    font-weight: 700;
}
.specs-table td.val {
    color: var(--text-main) !important;
    font-weight: 500;
}

/* Glass Panels to Retro Paper Panels */
.glass-panel, .glass-card {
    background: var(--bg-surface) !important;
    border: 3px solid var(--border-color) !important;
    box-shadow: 0 8px 0 var(--border-color) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: var(--border-radius-md) !important;
}

/* Site Footer Override */
.site-footer {
    background: var(--secondary) !important;
    color: var(--bg-base) !important;
    border-top: 4px solid var(--primary) !important;
    padding: 60px 0 20px !important;
}
.site-footer .footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--primary) !important;
}
.site-footer .footer-desc, .site-footer .footer-bottom p {
    color: var(--bg-surface-solid) !important;
}
.site-footer .footer-col-title {
    color: var(--primary) !important;
    font-family: 'Playfair Display', serif;
}
.site-footer .footer-link {
    color: var(--bg-base) !important;
}
.site-footer .footer-link:hover {
    color: var(--primary) !important;
}
.site-footer .corp-badge {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(197, 168, 128, 0.08) !important;
}

/* Form Inputs Override for Parchment Theme */
.form-control {
    background: var(--bg-surface) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: inset 0 2px 4px rgba(30,45,36,0.05) !important;
}
.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}
.form-control:focus {
    border-color: var(--primary) !important;
    outline: none;
}
.coupon-input {
    background: var(--bg-surface) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-main) !important;
}
.summary-card {
    border: 3px solid var(--border-color) !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 8px 0 var(--border-color) !important;
}
.summary-row {
    border-bottom: 1px dashed var(--bg-surface-solid) !important;
}

/* Grid 5 for single row catalog layout */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 40px;
}
@media (max-width: 1200px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

