:root {
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e8e8e8;
    --card-bg: #ffffff;
    --background-color: #f4f7f6;
    --site-primary: #15803d;
    --site-secondary: #ca8a04;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;

    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
    --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.12);

    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: var(--background-color); color: var(--text-color); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
    .category-page { padding: 30px var(--space-md); }
}

/* ===== LAYOUT STYLES ===== */

/* ===== BENTO BOX LAYOUT ===== */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; max-width: 1400px; margin: 10px auto; padding: 0 24px; }
.bento-main { grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; border-radius: 24px; display: block; }
.bento-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bento-main:hover img { transform: scale(1.05); }
.bento-sub { position: relative; overflow: hidden; border-radius: 20px; display: block; }
.bento-sub img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bento-sub:hover img { transform: scale(1.06); }
.bento-sub-1 { grid-column: span 1; grid-row: span 2; }
.bento-sub-2 { grid-column: span 1; grid-row: span 1; }
.bento-sub-3 { grid-column: span 1; grid-row: span 1; }
.bento-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: white; }
.bento-overlay h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.bento-overlay h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.bento-cat { display: inline-block; padding: 3px 10px; background: var(--site-primary); color: white; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 12px; margin-bottom: 8px; }
.section-label { max-width: 1400px; margin: 48px auto 24px; padding: 0 24px; font-size: 1.4rem; font-weight: 800; color: var(--text-color); }
.bento-rest { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto; padding: 0 24px 48px; }
.bento-mini { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease; display: block; }
.bento-mini:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.bento-mini img { width: 100%; height: 160px; object-fit: cover; }
.mini-body { padding: 16px; }
.mini-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--site-primary); margin-bottom: 6px; display: block; }
.mini-body h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--text-color); }
@media (max-width: 900px) { .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .bento-main { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 600px) { .bento-grid { grid-template-columns: 1fr; } .bento-main { grid-column: span 1; } .bento-sub-1 { grid-column: span 1; grid-row: span 1; } }

/* ===== CATEGORY PAGE ===== */
.category-page { padding: 40px 24px; max-width: 1400px; margin: 0 auto; }
.category-header { margin-bottom: 32px; }
.category-badge { display: inline-block; padding: 4px 14px; background: var(--site-primary); color: white; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 20px; margin-bottom: 12px; }

/* ===== MOBILE SPACING FIXES ===== */
@media (max-width: 600px) {
    .bento-grid, .bento-rest, .section-label { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }
    .bento-overlay { padding: 16px; }
}
