.mobile-category-filter { display: none; }
@media (max-width: 767px) {
  .container.section, .container.section-sm { padding-left: 20px; padding-right: 20px; }
  .mobile-category-filter { display: block; margin-bottom: 20px; }
  .desktop-category-filter { display: none; }
  .shop-layout { gap: 20px; }
  .shop-main { min-width: 0; }
  .shop-main h1 { font-size: 1.8rem; overflow-wrap: anywhere; }
}
:root {
    /* Color Palette */
    --color-bg: #F7F5F0;
    --color-surface: #FFFFFF;
    --color-text: #2C2824;
    --color-text-muted: #5C554D;
    
    --color-leather-light: #D4A373;
    --color-leather-base: #A66B38;
    --color-leather-dark: #6B4226;
    --color-leather-deep: #4A2B18;
    
    --color-accent: #8E3B2B; /* A subtle burgundy hint */
    --color-border: #E6E1D6;
    --color-error: #B00020;
    --color-success: #2E6B38;

    /* Typography */
    --font-heading: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-leather-deep);
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}
.section { padding: var(--space-12) 0; }
.section-sm { padding: var(--space-6) 0; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--transition-base);
}
.btn-primary {
    background-color: var(--color-leather-deep);
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--color-leather-base);
}
.btn-outline {
    border-color: var(--color-leather-deep);
    color: var(--color-leather-deep);
}
.btn-outline:hover {
    background-color: var(--color-leather-deep);
    color: #fff;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group { margin-bottom: var(--space-4); }
.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    transition: border-color var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-leather-base);
}
select.form-control { appearance: none; }

/* Header */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 48px;
    width: auto;
}
.main-nav {
    display: none;
    gap: var(--space-6);
}
@media (min-width: 768px) {
    .main-nav { display: flex; }
}
.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--color-leather-deep);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-leather-base);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}
.main-nav a:hover::after, .main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.cart-link {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-leather-deep);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.mobile-menu-toggle {
    display: block;
    color: var(--color-leather-deep);
}
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
}
.mobile-nav {
    display: none;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4);
}
.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.mobile-nav a {
    font-size: 1.125rem;
    font-family: var(--font-heading);
    color: var(--color-leather-deep);
}

/* Footer */
.site-footer {
    background-color: var(--color-leather-deep);
    color: var(--color-bg);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: auto;
}
.footer-inner {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}
.footer-brand p {
    margin-top: var(--space-4);
    opacity: 0.8;
    max-width: 300px;
}
.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
}
.site-footer h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.footer-links a {
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
}
.footer-contact p {
    opacity: 0.8;
    margin-bottom: var(--space-2);
}
.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Home Page */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-leather-deep);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 600px;
}
.hero-content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}
.product-card {
    group: product;
    transition: transform var(--transition-base);
}
.product-card:hover {
    transform: translateY(-4px);
}
.product-card-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    background-color: var(--color-surface);
    overflow: hidden;
    margin-bottom: var(--space-4);
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image {
    transform: scale(1.05);
}
.product-card-info {
    text-align: center;
}
.product-card-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
    color: var(--color-leather-deep);
}
.product-card-price {
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}
@media (min-width: 768px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
    }
}
.shop-filters h3 {
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
}
.filter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.filter-list a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}
.filter-list a:hover, .filter-list a.active {
    color: var(--color-leather-deep);
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}
@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
.product-gallery {
    display: grid;
    gap: var(--space-4);
}
.product-main-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background-color: var(--color-surface);
}
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}
.product-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    background-color: var(--color-surface);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}
.product-thumbnail:hover, .product-thumbnail.active {
    opacity: 1;
}
.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}
.product-price {
    font-size: 1.5rem;
    color: var(--color-leather-base);
    margin-bottom: var(--space-6);
}
.product-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}
.product-options {
    margin-bottom: var(--space-6);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Cart & Checkout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}
@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-4);
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
@media (min-width: 600px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto;
    }
}
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: var(--color-surface);
}
.cart-item-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
}
.cart-item-options {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.cart-item-quantity input {
    width: 60px;
    text-align: center;
}
.cart-item-price {
    font-weight: 500;
}
.cart-summary {
    background-color: var(--color-surface);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
}
.contact-layout {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-leather-deep);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.toast {
    background-color: var(--color-leather-deep);
    color: #fff;
    padding: var(--space-3) var(--space-4);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-base);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.error {
    background-color: var(--color-error);
}

/* Rich Text Content */
.prose h2, .prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose p { margin-bottom: var(--space-4); }
.prose ul { list-style: disc; margin-left: var(--space-4); margin-bottom: var(--space-4); }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}
.breadcrumbs a:hover {
    color: var(--color-leather-deep);
}
.breadcrumbs span {
    opacity: 0.5;
}
