/* Mirenn — Broadleaf Heat Clinic classic storefront */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@400;600&display=swap');

:root {
    --mr-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mr-serif: "Roboto Slab", Georgia, serif;
    --mr-text: #3c4858;
    --mr-dark: #232323;
    --mr-muted: #777;
    --mr-line: #ddd;
    --mr-bg: #fafafa;
    --mr-white: #fff;
    --mr-accent: #e53935;
    --mr-accent-dark: #c62828;
    --mr-max: 1170px;
    --mr-shadow: 0 2px 2px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.06);
}

body.mirenn-theme {
    margin: 0;
    font-family: var(--mr-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--mr-text);
    background: var(--mr-bg);
    -webkit-font-smoothing: antialiased;
}

body.mirenn-theme * { box-sizing: border-box; }
body.mirenn-theme img { max-width: 100%; display: block; }
body.mirenn-theme a { color: inherit; text-decoration: none; }

body.mirenn-theme .container-wide {
    width: min(var(--mr-max), 100% - 32px);
    margin: 0 auto;
}

/* Announcement */
body.mirenn-theme .announcement {
    background: var(--mr-dark);
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 9px 16px;
}

/* Header — Broadleaf 3-tier */
body.mirenn-theme .mr-header {
    background: var(--mr-white);
    box-shadow: var(--mr-shadow);
    position: sticky;
    top: 0;
    z-index: 200;
}

body.mirenn-theme .mr-header-util {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--mr-max);
    margin: 0 auto;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #eee;
}

body.mirenn-theme .mr-search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 3px;
    padding: 4px 10px;
    min-width: 240px;
}

body.mirenn-theme .mr-search-form input {
    border: 0;
    background: transparent;
    padding: 6px 8px;
    font-size: 14px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

body.mirenn-theme .mr-search-form button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--mr-muted);
}

body.mirenn-theme .mr-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

body.mirenn-theme .mr-header-actions a,
body.mirenn-theme .mr-header-actions button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--mr-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.mirenn-theme .mr-cart-badge {
    background: var(--mr-accent);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.mirenn-theme .mr-header-logo {
    text-align: center;
    padding: 16px;
}

body.mirenn-theme .mirenn-wordmark {
    font-family: var(--mr-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--mr-dark);
}

body.mirenn-theme .mr-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 32px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--mr-line);
    max-width: var(--mr-max);
    margin: 0 auto;
}

body.mirenn-theme .mr-nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mr-text);
    padding: 4px 0;
}

body.mirenn-theme .mr-nav a:hover,
body.mirenn-theme .mr-nav a.active {
    color: var(--mr-accent);
}

body.mirenn-theme .menu-toggle { display: none; }

/* Homepage */
body.mirenn-theme .mr-banner {
    position: relative;
    min-height: 380px;
    background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

body.mirenn-theme .mr-banner.has-image {
    background: #333;
}

body.mirenn-theme .mr-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

body.mirenn-theme .mr-banner-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    max-width: 640px;
}

body.mirenn-theme .mr-banner h1 {
    font-family: var(--mr-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.2;
}

body.mirenn-theme .mr-banner p {
    font-size: 16px;
    opacity: 0.92;
    margin: 0 0 24px;
    line-height: 1.6;
}

body.mirenn-theme .mr-btn {
    display: inline-block;
    background: var(--mr-accent);
    color: #fff;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(229,57,53,.35);
    transition: background 0.2s;
}

body.mirenn-theme .mr-btn:hover {
    background: var(--mr-accent-dark);
}

body.mirenn-theme .mr-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
    margin-left: 12px;
}

body.mirenn-theme .mr-btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

body.mirenn-theme .mr-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--mr-max);
    margin: -40px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

body.mirenn-theme .mr-feature-card {
    background: var(--mr-white);
    border-radius: 4px;
    box-shadow: var(--mr-shadow);
    padding: 28px 24px;
    text-align: center;
}

body.mirenn-theme .mr-feature-card h3 {
    font-family: var(--mr-serif);
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--mr-dark);
}

body.mirenn-theme .mr-feature-card p {
    font-size: 13px;
    color: var(--mr-muted);
    margin: 0;
    line-height: 1.55;
}

body.mirenn-theme .mr-section {
    max-width: var(--mr-max);
    margin: 0 auto;
    padding: 56px 16px;
}

body.mirenn-theme .mr-section-head {
    text-align: center;
    margin-bottom: 32px;
}

body.mirenn-theme .mr-section-head h2 {
    font-family: var(--mr-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--mr-dark);
    margin: 0 0 8px;
}

body.mirenn-theme .mr-section-head p {
    color: var(--mr-muted);
    margin: 0;
}

/* Product grid */
body.mirenn-theme .product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

body.mirenn-theme .product-card {
    background: var(--mr-white) !important;
    border-radius: 4px !important;
    box-shadow: var(--mr-shadow) !important;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.mirenn-theme .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

body.mirenn-theme .product-thumb {
    background: #f0f0f0 !important;
    aspect-ratio: 1;
    margin-bottom: 0 !important;
}

body.mirenn-theme .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.mirenn-theme .product-thumb .hover-img { display: none !important; }

body.mirenn-theme .product-card-body {
    padding: 16px !important;
}

body.mirenn-theme .product-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--mr-dark) !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
}

body.mirenn-theme .product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--mr-accent) !important;
}

body.mirenn-theme .product-meta,
body.mirenn-theme .color-swatches,
body.mirenn-theme .quick-add { display: none !important; }

/* Collection */
body.mirenn-theme .page-title-bar h1 {
    font-family: var(--mr-serif);
    font-size: 28px;
    color: var(--mr-dark);
}

body.mirenn-theme .filter-panel { display: none !important; }

body.mirenn-theme .mr-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 20px 0 8px;
}

body.mirenn-theme .mr-filter-bar select {
    padding: 10px 14px;
    border: 1px solid var(--mr-line);
    border-radius: 3px;
    font-family: inherit;
    min-width: 220px;
    background: var(--mr-white);
}

body.mirenn-theme .mr-cat-picker {
    position: relative;
    width: min(360px, 100%);
}

body.mirenn-theme .mr-cat-picker__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mr-muted);
    margin-bottom: 8px;
}

body.mirenn-theme .mr-cat-picker__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--mr-line);
    border-radius: 3px;
    background: var(--mr-white);
    font: inherit;
    color: var(--mr-text);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--mr-shadow);
}

body.mirenn-theme .mr-cat-picker.is-open .mr-cat-picker__btn {
    border-color: var(--mr-accent);
}

body.mirenn-theme .mr-cat-picker__value {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

body.mirenn-theme .mr-cat-picker__meta {
    font-size: 12px;
    color: var(--mr-muted);
}

body.mirenn-theme .mr-cat-picker__chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

body.mirenn-theme .mr-cat-picker.is-open .mr-cat-picker__chevron {
    transform: rotate(225deg) translateY(-1px);
}

body.mirenn-theme .mr-cat-picker__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--mr-white);
    border: 1px solid var(--mr-line);
    border-radius: 3px;
    box-shadow: var(--mr-shadow);
}

body.mirenn-theme .mr-cat-picker__search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--mr-line);
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

body.mirenn-theme .mr-cat-picker__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 320px;
    overflow: auto;
}

body.mirenn-theme .mr-cat-picker__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    font-size: 13px;
}

body.mirenn-theme .mr-cat-picker__option span:last-child {
    color: var(--mr-muted);
    font-variant-numeric: tabular-nums;
}

body.mirenn-theme .mr-cat-picker__option:hover,
body.mirenn-theme .mr-cat-picker__option.is-current {
    background: #f5f5f5;
}

body.mirenn-theme .mr-cat-picker__option.is-current {
    font-weight: 500;
    color: var(--mr-accent);
}

body.mirenn-theme .mr-cat-picker__empty {
    padding: 16px 14px;
    color: var(--mr-muted);
    font-size: 13px;
}

body.mirenn-theme .collection-toolbar {
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--mr-line);
    margin-bottom: 24px;
    color: var(--mr-muted);
    font-size: 13px;
}

/* Footer */
body.mirenn-theme .mr-footer {
    background: var(--mr-dark);
    color: #bbb;
    padding: 48px 16px 24px;
    margin-top: 48px;
}

body.mirenn-theme .mr-footer-grid {
    max-width: var(--mr-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

body.mirenn-theme .mr-footer-grid h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

body.mirenn-theme .mr-footer-grid a,
body.mirenn-theme .mr-footer-grid p {
    display: block;
    color: #aaa;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

body.mirenn-theme .mr-footer-grid a:hover { color: #fff; }

body.mirenn-theme .mr-footer-bottom {
    max-width: var(--mr-max);
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 12px;
    color: #888;
}

body.mirenn-theme .cart-drawer .cart-panel { font-family: var(--mr-font); }

body.mirenn-theme .btn-shop,
body.mirenn-theme .add-to-cart-btn {
    background: var(--mr-accent) !important;
    border-color: var(--mr-accent) !important;
    border-radius: 3px !important;
}

@media (max-width: 960px) {
    body.mirenn-theme .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
    body.mirenn-theme .mr-features { grid-template-columns: 1fr; margin-top: 24px; }
    body.mirenn-theme .mr-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body.mirenn-theme .mr-search-form { display: none; }
    body.mirenn-theme .mr-nav { display: none; }
    body.mirenn-theme .menu-toggle { display: inline-flex; }
    body.mirenn-theme .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
    body.mirenn-theme .mr-footer-grid { grid-template-columns: 1fr; }
}
