﻿:root[data-theme="minimal"] {
    /* =========================================================
       Core
       ========================================================= */
    --bg: #f7f7f8;
    --bg-soft: #efeff1;
    --bg-elevated: #ffffff;
    --card: #ffffff;
    --card-2: #f8f8fa;
    --text: #121212;
    --text-muted: rgba(18,18,18,.68);
    --text-soft: rgba(18,18,18,.48);
    --primary: #1f1f1f;
    --primary-soft: rgba(0,0,0,.06);
    --primary-strong: #000000;
    --danger: #d94141;
    --success: #1f9d61;
    --warning: #d28a1d;
    --info: #2a78d1;
    --border: rgba(0,0,0,.10);
    --border-strong: rgba(0,0,0,.16);
    /* =========================================================
       Radius
       ========================================================= */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    /* =========================================================
       Shadow
       ========================================================= */
    --shadow-sm: 0 4px 14px rgba(0,0,0,.05);
    --shadow-md: 0 10px 28px rgba(0,0,0,.08);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.10);
    /* =========================================================
       Buttons
       ========================================================= */
    --btn-text: var(--text);
    --btn-bg: var(--card);
    --btn-border: var(--border);
    --btn-primary-text: #ffffff;
    --btn-primary-bg: #1f1f1f;
    --btn-primary-border: #1f1f1f;
    --btn-secondary-text: var(--text);
    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: var(--border);
    --btn-hover-brightness: 1.02;
    /* =========================================================
       Layout helpers
       ========================================================= */
    --header-h: 64px;
    --footer-h: 56px;
}

    /* =========================================================
   Minimal Theme - Extra Polish
   ========================================================= */

    :root[data-theme="minimal"] body {
        background: var(--bg);
        color: var(--text);
    }

    /* Header / Footer */
    :root[data-theme="minimal"] .site-header,
    :root[data-theme="minimal"] .site-footer {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Promo */
    :root[data-theme="minimal"] .promo-carousel,
    :root[data-theme="minimal"] .hf-card,
    :root[data-theme="minimal"] .hp-card,
    :root[data-theme="minimal"] .product-card,
    :root[data-theme="minimal"] .pd-gal,
    :root[data-theme="minimal"] .pd-info,
    :root[data-theme="minimal"] .ck-card,
    :root[data-theme="minimal"] .mini-cart-drawer,
    :root[data-theme="minimal"] .modal-box {
        background: var(--card);
        border-color: var(--border);
        box-shadow: var(--shadow-md);
    }

    /* 首页大图文字层：白主题下减少暗黑感 */
    :root[data-theme="minimal"] .promo-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.16) 58%, rgba(255,255,255,0));
    }

    :root[data-theme="minimal"] .promo-title,
    :root[data-theme="minimal"] .promo-sub,
    :root[data-theme="minimal"] .promo-btn {
        color: var(--text);
    }

    :root[data-theme="minimal"] .promo-btn {
        background: #ffffff;
        border-color: var(--border);
    }

    /* 各种列表项、表单、抽屉小卡片 */
    :root[data-theme="minimal"] .hf-item,
    :root[data-theme="minimal"] .mini-cart-item,
    :root[data-theme="minimal"] .ck-addr,
    :root[data-theme="minimal"] .pd-spec-item,
    :root[data-theme="minimal"] .p-review,
    :root[data-theme="minimal"] .product-card,
    :root[data-theme="minimal"] .pd-thumb,
    :root[data-theme="minimal"] .os-thumb .media {
        background: var(--bg-elevated);
        border-color: var(--border);
    }

    /* 输入框 */
    :root[data-theme="minimal"] .input,
    :root[data-theme="minimal"] input,
    :root[data-theme="minimal"] select,
    :root[data-theme="minimal"] textarea,
    :root[data-theme="minimal"] .shop-filter__input,
    :root[data-theme="minimal"] .shop-filter__select,
    :root[data-theme="minimal"] .ck-input,
    :root[data-theme="minimal"] .ck-select,
    :root[data-theme="minimal"] .ck-textarea,
    :root[data-theme="minimal"] .p-reviews__textarea,
    :root[data-theme="minimal"] .modal-form input {
        background: #ffffff;
        color: var(--text);
        border-color: var(--border);
    }

    /* hover 稍微克制一点 */
    :root[data-theme="minimal"] .product-card:hover,
    :root[data-theme="minimal"] .hf-item:hover,
    :root[data-theme="minimal"] .mini-cart-close:hover,
    :root[data-theme="minimal"] .mc-qty-btn:hover,
    :root[data-theme="minimal"] .nav-toggle:hover,
    :root[data-theme="minimal"] .site-header .nav-links a:hover {
        background: var(--bg-soft);
    }

    /* 价格统一更清楚 */
    :root[data-theme="minimal"] .hp-price,
    :root[data-theme="minimal"] .product-price,
    :root[data-theme="minimal"] .pd-price,
    :root[data-theme="minimal"] .mini-cart-price,
    :root[data-theme="minimal"] .ck-total__price {
        color: var(--primary);
    }

    /* dots */
    :root[data-theme="minimal"] .dot {
        background: rgba(0,0,0,.14);
    }

        :root[data-theme="minimal"] .dot.is-active {
            background: rgba(0,0,0,.82);
        }


/* =========================
   Minimal Theme - My Orders Page
   ========================= */

body.theme-minimal .orders-title {
    color: #111 !important;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

body.theme-minimal .orders-sub {
    color: #6f6a61 !important;
}

body.theme-minimal .orders-count {
    color: #111 !important;
}

body.theme-minimal .orders-tools {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.06) !important;
}

body.theme-minimal .tool-input,
body.theme-minimal .tool-select {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.14) !important;
}

    body.theme-minimal .tool-input::placeholder {
        color: #8b867d !important;
    }

body.theme-minimal .tool-btn {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.14) !important;
}

body.theme-minimal .tool-btn-secondary {
    background: #eeeae2 !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.12) !important;
}

body.theme-minimal .order-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.07) !important;
}

body.theme-minimal .k {
    color: #8a8175 !important;
}

body.theme-minimal .v,
body.theme-minimal .order-no {
    color: #111 !important;
}

body.theme-minimal .amt-pay {
    color: #b8860b !important;
}

body.theme-minimal .order-badge {
    border: none !important;
    color: #fff !important;
}

body.theme-minimal .order-badge-paid,
body.theme-minimal .order-badge-done {
    background: #16a34a !important;
}

body.theme-minimal .order-badge-ship {
    background: #2563eb !important;
}

body.theme-minimal .order-badge-cancel {
    background: #6b7280 !important;
}

body.theme-minimal .order-badge-pending {
    background: #d97706 !important;
}

body.theme-minimal .act button,
body.theme-minimal .act-btn,
body.theme-minimal .act-btn-mini {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-weight: 900 !important;
}

body.theme-minimal .order-details {
    background: #faf8f3 !important;
}

body.theme-minimal .od-head {
    border-top: 1px solid rgba(0,0,0,.08) !important;
}

body.theme-minimal .od-title {
    color: #111 !important;
}

body.theme-minimal .od-dim {
    color: #6f6a61 !important;
}

body.theme-minimal .od-table {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
}

    body.theme-minimal .od-table th {
        color: #8a8175 !important;
    }

    body.theme-minimal .od-table td {
        color: #111 !important;
        border-bottom: 1px solid rgba(0,0,0,.06) !important;
    }

body.theme-minimal .orders-empty {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    color: #111 !important;
}

/* =========================
   Minimal Theme - Agent Center
   ========================= */

body.theme-minimal .agent-wrap {
    color: #111;
}

body.theme-minimal .agent-hero {
    padding: 32px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 22px 55px rgba(0,0,0,.07);
}

body.theme-minimal .agent-title {
    margin: 0;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: #111;
}

body.theme-minimal .agent-sub {
    margin-top: 10px;
    color: #6f6a61;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

body.theme-minimal .agent-status {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

    body.theme-minimal .agent-status.active {
        background: #dcfce7;
        color: #15803d;
    }

    body.theme-minimal .agent-status.pending {
        background: #fef3c7;
        color: #b45309;
    }

    body.theme-minimal .agent-status.rejected {
        background: #fee2e2;
        color: #b91c1c;
    }

body.theme-minimal .agent-linkbox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 22px;
}

body.theme-minimal .agent-input {
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.12);
    background: #faf8f3;
    color: #111;
    font-weight: 800;
}

body.theme-minimal .agent-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 26px rgba(0,0,0,.14);
    cursor: pointer;
}

body.theme-minimal .agent-actions {
    margin-top: 22px;
}

body.theme-minimal .agent-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-weight: 800;
}

body.theme-minimal .agent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

body.theme-minimal .agent-card {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

body.theme-minimal .agent-card-label {
    color: #8a8175;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.theme-minimal .agent-card-value {
    margin-top: 12px;
    color: #111;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

body.theme-minimal .agent-date {
    font-size: 20px;
}

body.theme-minimal .agent-section-title {
    margin: 0 0 16px;
    color: #111;
    font-size: 24px;
    font-weight: 950;
}

body.theme-minimal .agent-empty {
    padding: 18px;
    border-radius: 18px;
    background: #faf8f3;
    border: 1px dashed rgba(0,0,0,.14);
    color: #6f6a61;
    font-weight: 800;
}

body.theme-minimal .agent-customer-list {
    display: grid;
    gap: 12px;
}

body.theme-minimal .agent-customer {
    border-radius: 20px;
    background: #faf8f3;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

    body.theme-minimal .agent-customer summary {
        list-style: none;
        cursor: pointer;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
        padding: 18px;
    }

        body.theme-minimal .agent-customer summary::-webkit-details-marker {
            display: none;
        }

body.theme-minimal .agent-customer-email {
    color: #111;
    font-weight: 950;
    font-size: 16px;
}

body.theme-minimal .agent-customer-id {
    margin-top: 4px;
    color: #8a8175;
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}

body.theme-minimal .agent-customer-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #6f6a61;
    font-weight: 850;
}

    body.theme-minimal .agent-customer-stats b {
        color: #b8860b;
    }

body.theme-minimal .agent-customer-body {
    padding: 0 18px 18px;
}

body.theme-minimal .agent-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

    body.theme-minimal .agent-table th,
    body.theme-minimal .agent-table td {
        padding: 12px;
        border-bottom: 1px solid rgba(0,0,0,.06);
        color: #111;
    }

    body.theme-minimal .agent-table th {
        color: #8a8175;
        font-size: 12px;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

@media (max-width: 1100px) {
    body.theme-minimal .agent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.theme-minimal .agent-hero {
        padding: 22px;
    }

    body.theme-minimal .agent-title {
        font-size: 30px;
    }

    body.theme-minimal .agent-linkbox,
    body.theme-minimal .agent-customer summary {
        grid-template-columns: 1fr;
    }

    body.theme-minimal .agent-grid {
        grid-template-columns: 1fr;
    }

    body.theme-minimal .agent-btn {
        width: 100%;
    }
}
/* =========================================================
   Minimal Theme - Product Detail SKU / Variant Refinement
   Added for Product/Detail.cshtml SKU support
   ========================================================= */

body.theme-minimal .pd-page,
:root[data-theme="minimal"] .pd-page {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.theme-minimal .pd,
:root[data-theme="minimal"] .pd {
    color: var(--text) !important;
}

body.theme-minimal .pd-info,
:root[data-theme="minimal"] .pd-info {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text) !important;
}

body.theme-minimal .pd-title,
:root[data-theme="minimal"] .pd-title {
    color: var(--text) !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
}

body.theme-minimal .pd-price,
:root[data-theme="minimal"] .pd-price {
    color: var(--primary-strong) !important;
    font-weight: 950 !important;
}

body.theme-minimal .pd-price-row,
body.theme-minimal .pd-price-wrap,
:root[data-theme="minimal"] .pd-price-row,
:root[data-theme="minimal"] .pd-price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

body.theme-minimal .pd-pill,
:root[data-theme="minimal"] .pd-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31,157,97,.10) !important;
    border: 1px solid rgba(31,157,97,.22) !important;
    color: #137144 !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

    body.theme-minimal .pd-pill::before,
    :root[data-theme="minimal"] .pd-pill::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #1f9d61;
    }

body.theme-minimal .pd-pill-out,
:root[data-theme="minimal"] .pd-pill-out {
    background: rgba(217,65,65,.09) !important;
    border-color: rgba(217,65,65,.22) !important;
    color: #b42323 !important;
}

    body.theme-minimal .pd-pill-out::before,
    :root[data-theme="minimal"] .pd-pill-out::before {
        background: #d94141;
    }

body.theme-minimal #pdWholesalePrice,
:root[data-theme="minimal"] #pdWholesalePrice {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 900;
}

body.theme-minimal .pd-meta-grid,
:root[data-theme="minimal"] .pd-meta-grid {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

body.theme-minimal .pd-meta-item,
:root[data-theme="minimal"] .pd-meta-item {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--card-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

body.theme-minimal .pd-meta-label,
:root[data-theme="minimal"] .pd-meta-label {
    color: var(--text-muted) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.theme-minimal .pd-meta-value,
:root[data-theme="minimal"] .pd-meta-value {
    margin-top: 4px;
    color: var(--text) !important;
    font-weight: 900;
}

body.theme-minimal .product-options-panel,
body.theme-minimal .pd-variants,
:root[data-theme="minimal"] .product-options-panel,
:root[data-theme="minimal"] .pd-variants {
    margin: 22px 0 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--card-2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

    body.theme-minimal .product-options-title,
    body.theme-minimal .pd-variants > div:first-child,
    :root[data-theme="minimal"] .product-options-title,
    :root[data-theme="minimal"] .pd-variants > div:first-child {
        color: var(--text) !important;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.02em;
        margin: 0 0 14px;
    }

body.theme-minimal .product-option-group,
body.theme-minimal .pd-variant-group,
:root[data-theme="minimal"] .product-option-group,
:root[data-theme="minimal"] .pd-variant-group {
    margin-top: 14px;
}

    body.theme-minimal .product-option-label,
    body.theme-minimal .pd-variant-group label,
    body.theme-minimal .pd-variant-group > div:first-child,
    :root[data-theme="minimal"] .product-option-label,
    :root[data-theme="minimal"] .pd-variant-group label,
    :root[data-theme="minimal"] .pd-variant-group > div:first-child {
        display: block;
        margin-bottom: 8px;
        color: var(--text-muted) !important;
        font-size: 12px;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

body.theme-minimal .product-option-list,
:root[data-theme="minimal"] .product-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.theme-minimal .product-option-button,
body.theme-minimal .pd-variant-btn,
:root[data-theme="minimal"] .product-option-button,
:root[data-theme="minimal"] .pd-variant-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--border-strong) !important;
    background: #fff !important;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

    body.theme-minimal .product-option-button:hover,
    body.theme-minimal .pd-variant-btn:hover,
    :root[data-theme="minimal"] .product-option-button:hover,
    :root[data-theme="minimal"] .pd-variant-btn:hover {
        transform: translateY(-1px);
        background: var(--bg-soft) !important;
        border-color: rgba(0,0,0,.28) !important;
        box-shadow: var(--shadow-sm);
    }

    body.theme-minimal .product-option-button.is-selected,
    body.theme-minimal .pd-variant-btn.is-selected,
    :root[data-theme="minimal"] .product-option-button.is-selected,
    :root[data-theme="minimal"] .pd-variant-btn.is-selected {
        background: #111 !important;
        border-color: #111 !important;
        color: #fff !important;
        box-shadow: 0 12px 24px rgba(0,0,0,.16);
    }

body.theme-minimal .product-option-color-dot,
:root[data-theme="minimal"] .product-option-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--option-color, #999);
    border: 1px solid rgba(0,0,0,.22);
    margin-right: 7px;
    vertical-align: -1px;
}

body.theme-minimal #pdVariantMeta,
body.theme-minimal .product-variant-meta,
:root[data-theme="minimal"] #pdVariantMeta,
:root[data-theme="minimal"] .product-variant-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted) !important;
    font-size: 14px;
    font-weight: 750;
}

body.theme-minimal .pd-qty,
:root[data-theme="minimal"] .pd-qty {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    min-width: 190px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid var(--border) !important;
    background: #fff !important;
}

body.theme-minimal .mc-qty-btn,
body.theme-minimal .pd-qty-btn,
:root[data-theme="minimal"] .mc-qty-btn,
:root[data-theme="minimal"] .pd-qty-btn {
    width: 54px;
    height: 52px;
    border: 0 !important;
    background: transparent !important;
    color: var(--text) !important;
    font-size: 24px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: none !important;
}

    body.theme-minimal .mc-qty-btn:hover,
    body.theme-minimal .pd-qty-btn:hover,
    :root[data-theme="minimal"] .mc-qty-btn:hover,
    :root[data-theme="minimal"] .pd-qty-btn:hover {
        background: var(--bg-soft) !important;
    }

body.theme-minimal .pd-qty-input,
:root[data-theme="minimal"] .pd-qty-input {
    width: 82px;
    height: 40px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    background: #fff !important;
    color: var(--text) !important;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    outline: none;
}

body.theme-minimal .pd-btns,
body.theme-minimal .pd-actions,
:root[data-theme="minimal"] .pd-btns,
:root[data-theme="minimal"] .pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

body.theme-minimal #pdAddToCartBtn:disabled,
:root[data-theme="minimal"] #pdAddToCartBtn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* =========================================================
   Minimal Theme - Cart SKU / Variant Text
   ========================================================= */

body.theme-minimal .cart2,
:root[data-theme="minimal"] .cart2 {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.theme-minimal .cart2-head,
body.theme-minimal .cart2-item,
body.theme-minimal .cart2-card,
body.theme-minimal .cart2-empty,
:root[data-theme="minimal"] .cart2-head,
:root[data-theme="minimal"] .cart2-item,
:root[data-theme="minimal"] .cart2-card,
:root[data-theme="minimal"] .cart2-empty {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text) !important;
}

body.theme-minimal .cart2-title,
body.theme-minimal .cart2-card__title,
:root[data-theme="minimal"] .cart2-title,
:root[data-theme="minimal"] .cart2-card__title {
    color: var(--text) !important;
    font-weight: 950 !important;
}

body.theme-minimal .cart2-sub,
body.theme-minimal .cart2-dim,
body.theme-minimal .cart2-back,
:root[data-theme="minimal"] .cart2-sub,
:root[data-theme="minimal"] .cart2-dim,
:root[data-theme="minimal"] .cart2-back {
    color: var(--text-muted) !important;
}

body.theme-minimal .cart2-meta,
:root[data-theme="minimal"] .cart2-meta {
    color: var(--text) !important;
}

body.theme-minimal .cart2-unit,
:root[data-theme="minimal"] .cart2-unit {
    color: var(--text) !important;
}

body.theme-minimal .cart2-meta .cart2-unit,
:root[data-theme="minimal"] .cart2-meta .cart2-unit {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--card-2) !important;
    border: 1px solid var(--border) !important;
}

body.theme-minimal .cart2-dim,
:root[data-theme="minimal"] .cart2-dim {
    display: block;
    font-size: 12px;
    font-weight: 950 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

body.theme-minimal .cart2-unit b,
:root[data-theme="minimal"] .cart2-unit b {
    display: inline-block;
    margin-top: 2px;
    color: var(--text) !important;
    font-weight: 950 !important;
    line-height: 1.35;
    opacity: 1 !important;
}

body.theme-minimal .cart2-lineTotal b,
body.theme-minimal .cart2-money,
body.theme-minimal .cart2-line-total-value,
body.theme-minimal #cartSubtotalValue,
:root[data-theme="minimal"] .cart2-lineTotal b,
:root[data-theme="minimal"] .cart2-money,
:root[data-theme="minimal"] .cart2-line-total-value,
:root[data-theme="minimal"] #cartSubtotalValue {
    color: var(--primary-strong) !important;
    font-weight: 950 !important;
}

body.theme-minimal .cart2-qty,
:root[data-theme="minimal"] .cart2-qty {
    background: #fff !important;
    border: 1px solid var(--border) !important;
}

body.theme-minimal .cart2-qbtn,
:root[data-theme="minimal"] .cart2-qbtn {
    background: transparent !important;
    color: var(--text) !important;
    border: 0 !important;
}

body.theme-minimal .cart2-qinput,
:root[data-theme="minimal"] .cart2-qinput {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

body.theme-minimal .cart2-checkout,
body.theme-minimal .btn-gold,
:root[data-theme="minimal"] .cart2-checkout,
:root[data-theme="minimal"] .btn-gold {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: 1px solid var(--btn-primary-border) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.14) !important;
}

body.theme-minimal .cart2-clear .btn-ghost,
body.theme-minimal .btn-ghost,
:root[data-theme="minimal"] .cart2-clear .btn-ghost,
:root[data-theme="minimal"] .btn-ghost {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

/* =========================================================
   Minimal Theme - Checkout / Order Summary SKU display
   ========================================================= */

body.theme-minimal .checkout-page,
:root[data-theme="minimal"] .checkout-page {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.theme-minimal .checkout-card,
body.theme-minimal .checkout-summary-card,
:root[data-theme="minimal"] .checkout-card,
:root[data-theme="minimal"] .checkout-summary-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text) !important;
}

body.theme-minimal .checkout-title,
body.theme-minimal .checkout-card-title,
body.theme-minimal .checkout-summary-title,
:root[data-theme="minimal"] .checkout-title,
:root[data-theme="minimal"] .checkout-card-title,
:root[data-theme="minimal"] .checkout-summary-title {
    color: var(--text) !important;
    font-weight: 950 !important;
}

body.theme-minimal .checkout-back,
body.theme-minimal .checkout-link,
body.theme-minimal .checkout-tip,
body.theme-minimal .checkout-card-sub,
body.theme-minimal .checkout-dim,
body.theme-minimal .checkout-summary-item-sub,
body.theme-minimal .checkout-summary-row span:first-child,
:root[data-theme="minimal"] .checkout-back,
:root[data-theme="minimal"] .checkout-link,
:root[data-theme="minimal"] .checkout-tip,
:root[data-theme="minimal"] .checkout-card-sub,
:root[data-theme="minimal"] .checkout-dim,
:root[data-theme="minimal"] .checkout-summary-item-sub,
:root[data-theme="minimal"] .checkout-summary-row span:first-child {
    color: var(--text-muted) !important;
}

body.theme-minimal .checkout-summary-item-name,
body.theme-minimal .checkout-summary-row span:last-child,
:root[data-theme="minimal"] .checkout-summary-item-name,
:root[data-theme="minimal"] .checkout-summary-row span:last-child {
    color: var(--text) !important;
    font-weight: 900 !important;
}

body.theme-minimal .checkout-summary-row.is-total span,
:root[data-theme="minimal"] .checkout-summary-row.is-total span {
    color: var(--primary-strong) !important;
    font-weight: 950 !important;
}

/* =========================================================
   Minimal Theme - Payment Select / Success / Cancel SKU display
   ========================================================= */

body.theme-minimal .pay-page,
body.theme-minimal .pay-success-page,
body.theme-minimal .pay-cancel-page,
:root[data-theme="minimal"] .pay-page,
:root[data-theme="minimal"] .pay-success-page,
:root[data-theme="minimal"] .pay-cancel-page {
    background: var(--bg) !important;
    color: var(--text) !important;
}

body.theme-minimal .pay-card,
body.theme-minimal .pay-side-card,
body.theme-minimal .pay-method,
body.theme-minimal .pay-success-card,
body.theme-minimal .pay-cancel-card,
:root[data-theme="minimal"] .pay-card,
:root[data-theme="minimal"] .pay-side-card,
:root[data-theme="minimal"] .pay-method,
:root[data-theme="minimal"] .pay-success-card,
:root[data-theme="minimal"] .pay-cancel-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text) !important;
}

body.theme-minimal .pay-title,
body.theme-minimal .pay-side-title,
body.theme-minimal .pay-method-name,
body.theme-minimal .pay-success-title,
body.theme-minimal .pay-cancel-title,
:root[data-theme="minimal"] .pay-title,
:root[data-theme="minimal"] .pay-side-title,
:root[data-theme="minimal"] .pay-method-name,
:root[data-theme="minimal"] .pay-success-title,
:root[data-theme="minimal"] .pay-cancel-title {
    color: var(--text) !important;
    font-weight: 950 !important;
}

body.theme-minimal .pay-sub,
body.theme-minimal .pay-method-desc,
body.theme-minimal .pay-row span:first-child,
body.theme-minimal .pay-item-sub,
body.theme-minimal .pay-success-sub,
body.theme-minimal .pay-success-item-sub,
body.theme-minimal .pay-cancel-sub,
body.theme-minimal .pay-cancel-item-sub,
:root[data-theme="minimal"] .pay-sub,
:root[data-theme="minimal"] .pay-method-desc,
:root[data-theme="minimal"] .pay-row span:first-child,
:root[data-theme="minimal"] .pay-item-sub,
:root[data-theme="minimal"] .pay-success-sub,
:root[data-theme="minimal"] .pay-success-item-sub,
:root[data-theme="minimal"] .pay-cancel-sub,
:root[data-theme="minimal"] .pay-cancel-item-sub {
    color: var(--text-muted) !important;
}

body.theme-minimal .pay-row b,
body.theme-minimal .pay-item-name,
body.theme-minimal .pay-item-money,
body.theme-minimal .pay-success-item-name,
body.theme-minimal .pay-success-item-money,
body.theme-minimal .pay-success-total,
body.theme-minimal .pay-cancel-item-name,
body.theme-minimal .pay-cancel-item-money,
body.theme-minimal .pay-cancel-total,
body.theme-minimal .pay-success-order-id,
body.theme-minimal .pay-cancel-order-id,
:root[data-theme="minimal"] .pay-row b,
:root[data-theme="minimal"] .pay-item-name,
:root[data-theme="minimal"] .pay-item-money,
:root[data-theme="minimal"] .pay-success-item-name,
:root[data-theme="minimal"] .pay-success-item-money,
:root[data-theme="minimal"] .pay-success-total,
:root[data-theme="minimal"] .pay-cancel-item-name,
:root[data-theme="minimal"] .pay-cancel-item-money,
:root[data-theme="minimal"] .pay-cancel-total,
:root[data-theme="minimal"] .pay-success-order-id,
:root[data-theme="minimal"] .pay-cancel-order-id {
    color: var(--text) !important;
}

body.theme-minimal .pay-item,
body.theme-minimal .pay-success-item,
body.theme-minimal .pay-cancel-item,
body.theme-minimal .pay-success-order,
body.theme-minimal .pay-cancel-order,
:root[data-theme="minimal"] .pay-item,
:root[data-theme="minimal"] .pay-success-item,
:root[data-theme="minimal"] .pay-cancel-item,
:root[data-theme="minimal"] .pay-success-order,
:root[data-theme="minimal"] .pay-cancel-order {
    background: var(--card-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

body.theme-minimal .pay-btn,
body.theme-minimal .pay-success-btn-primary,
body.theme-minimal .pay-cancel-btn-primary,
:root[data-theme="minimal"] .pay-btn,
:root[data-theme="minimal"] .pay-success-btn-primary,
:root[data-theme="minimal"] .pay-cancel-btn-primary {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: 1px solid var(--btn-primary-border) !important;
}

body.theme-minimal .pay-success-btn-secondary,
body.theme-minimal .pay-cancel-btn-secondary,
:root[data-theme="minimal"] .pay-success-btn-secondary,
:root[data-theme="minimal"] .pay-cancel-btn-secondary {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

/* =========================================================
   Minimal Theme - Admin/Public order variant text fallback
   ========================================================= */

body.theme-minimal .od-table .muted,
body.theme-minimal .order-details .muted,
:root[data-theme="minimal"] .od-table .muted,
:root[data-theme="minimal"] .order-details .muted {
    color: var(--text-muted) !important;
}

body.theme-minimal .od-table .strong,
body.theme-minimal .order-details .strong,
:root[data-theme="minimal"] .od-table .strong,
:root[data-theme="minimal"] .order-details .strong {
    color: var(--text) !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    body.theme-minimal .pd-btns,
    body.theme-minimal .pd-actions,
    :root[data-theme="minimal"] .pd-btns,
    :root[data-theme="minimal"] .pd-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.theme-minimal .cart2-meta,
    :root[data-theme="minimal"] .cart2-meta {
        display: grid;
        gap: 8px;
    }

        body.theme-minimal .cart2-meta .cart2-unit,
        :root[data-theme="minimal"] .cart2-meta .cart2-unit {
            width: 100%;
        }
}

/* =========================================================
   Minimal Theme - Shopify Catalog Page
   For Views/Shop/Catalog.cshtml
   ========================================================= */

body.theme-minimal .shopify-catalog,
:root[data-theme="minimal"] .shopify-catalog {
    background: radial-gradient(900px 520px at 10% 0%, rgba(0,0,0,.035), transparent 55%), var(--bg) !important;
    color: var(--text) !important;
    min-height: calc(100vh - var(--header-h));
}

body.theme-minimal .shopify-wrap,
:root[data-theme="minimal"] .shopify-wrap {
    max-width: 1560px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* Hero */
body.theme-minimal .shopify-hero,
:root[data-theme="minimal"] .shopify-hero {
    padding: 34px 20px 0;
}

body.theme-minimal .shopify-hero-inner,
:root[data-theme="minimal"] .shopify-hero-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 54px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,248,250,.96)) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
}

body.theme-minimal .shopify-hero h1,
:root[data-theme="minimal"] .shopify-hero h1 {
    margin: 0;
    color: var(--text) !important;
    font-size: clamp(42px, 5vw, 82px);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -0.065em;
}

body.theme-minimal .shopify-hero p,
:root[data-theme="minimal"] .shopify-hero p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--text-muted) !important;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 650;
}

body.theme-minimal .shopify-hero-note,
:root[data-theme="minimal"] .shopify-hero-note {
    display: inline-flex;
    margin-top: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--primary-soft) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 900;
}

/* Mobile search */
body.theme-minimal .shopify-mobile-search,
:root[data-theme="minimal"] .shopify-mobile-search {
    display: none;
    gap: 10px;
    margin-bottom: 16px;
}

    body.theme-minimal .shopify-mobile-search input,
    :root[data-theme="minimal"] .shopify-mobile-search input {
        flex: 1;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 999px;
        background: #fff !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
    }

    body.theme-minimal .shopify-mobile-search button,
    :root[data-theme="minimal"] .shopify-mobile-search button {
        min-height: 48px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid var(--btn-primary-border) !important;
        background: var(--btn-primary-bg) !important;
        color: var(--btn-primary-text) !important;
        font-weight: 950;
    }

/* Top bar */
body.theme-minimal .shopify-topbar,
:root[data-theme="minimal"] .shopify-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

body.theme-minimal .shopify-filter-toggle,
:root[data-theme="minimal"] .shopify-filter-toggle {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    color: var(--text) !important;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

    body.theme-minimal .shopify-filter-toggle:hover,
    :root[data-theme="minimal"] .shopify-filter-toggle:hover {
        background: var(--bg-soft) !important;
    }

body.theme-minimal .shopify-count,
:root[data-theme="minimal"] .shopify-count {
    color: var(--text-muted) !important;
    font-size: 14px;
    font-weight: 850;
}

/* Layout */
body.theme-minimal .shopify-layout,
:root[data-theme="minimal"] .shopify-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.theme-minimal .shopify-sidebar,
:root[data-theme="minimal"] .shopify-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

    body.theme-minimal .shopify-sidebar.is-hidden,
    :root[data-theme="minimal"] .shopify-sidebar.is-hidden {
        display: none;
    }

body.theme-minimal .shopify-layout:has(.shopify-sidebar.is-hidden),
:root[data-theme="minimal"] .shopify-layout:has(.shopify-sidebar.is-hidden) {
    grid-template-columns: 1fr;
}

/* Filter card */
body.theme-minimal .shopify-filter-form,
:root[data-theme="minimal"] .shopify-filter-form {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
}

body.theme-minimal .shopify-filter-block,
:root[data-theme="minimal"] .shopify-filter-block {
    margin-bottom: 18px;
}

    body.theme-minimal .shopify-filter-label,
    body.theme-minimal .shopify-filter-block h3,
    :root[data-theme="minimal"] .shopify-filter-label,
    :root[data-theme="minimal"] .shopify-filter-block h3 {
        display: block;
        margin: 0 0 9px;
        color: var(--text) !important;
        font-size: 13px;
        font-weight: 950;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

body.theme-minimal .shopify-input,
:root[data-theme="minimal"] .shopify-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-md) !important;
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    outline: none;
    font-weight: 750;
}

    body.theme-minimal .shopify-input::placeholder,
    :root[data-theme="minimal"] .shopify-input::placeholder {
        color: var(--text-soft) !important;
    }

    body.theme-minimal .shopify-input:focus,
    :root[data-theme="minimal"] .shopify-input:focus {
        border-color: rgba(0,0,0,.24) !important;
        box-shadow: 0 0 0 4px rgba(0,0,0,.045) !important;
    }

/* Category radio cards */
body.theme-minimal .shopify-category,
:root[data-theme="minimal"] .shopify-category {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: var(--card-2) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

    body.theme-minimal .shopify-category:hover,
    :root[data-theme="minimal"] .shopify-category:hover {
        transform: translateY(-1px);
        background: var(--bg-soft) !important;
        border-color: var(--border-strong) !important;
    }

    body.theme-minimal .shopify-category.is-active,
    :root[data-theme="minimal"] .shopify-category.is-active {
        background: #111 !important;
        border-color: #111 !important;
        color: #fff !important;
    }

    body.theme-minimal .shopify-category input,
    :root[data-theme="minimal"] .shopify-category input {
        accent-color: #111;
    }

    body.theme-minimal .shopify-category.is-active input,
    :root[data-theme="minimal"] .shopify-category.is-active input {
        accent-color: #fff;
    }

    body.theme-minimal .shopify-category span,
    :root[data-theme="minimal"] .shopify-category span {
        font-size: 14px;
        font-weight: 850;
    }

/* Filter actions */
body.theme-minimal .shopify-filter-actions,
:root[data-theme="minimal"] .shopify-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

body.theme-minimal .shopify-btn-primary,
body.theme-minimal .shopify-btn-secondary,
:root[data-theme="minimal"] .shopify-btn-primary,
:root[data-theme="minimal"] .shopify-btn-secondary {
    min-height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
}

body.theme-minimal .shopify-btn-primary,
:root[data-theme="minimal"] .shopify-btn-primary {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: 1px solid var(--btn-primary-border) !important;
}

body.theme-minimal .shopify-btn-secondary,
:root[data-theme="minimal"] .shopify-btn-secondary {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

/* Product grid */
body.theme-minimal .shopify-products,
:root[data-theme="minimal"] .shopify-products {
    min-width: 0;
}

    body.theme-minimal .shopify-products.product-grid,
    :root[data-theme="minimal"] .shopify-products.product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
        gap: 22px;
    }

body.theme-minimal .shopify-product-card,
:root[data-theme="minimal"] .shopify-product-card {
    position: relative;
    overflow: hidden;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    body.theme-minimal .shopify-product-card:hover,
    :root[data-theme="minimal"] .shopify-product-card:hover {
        transform: translateY(-3px);
        border-color: var(--border-strong) !important;
        box-shadow: var(--shadow-lg) !important;
    }

body.theme-minimal .shopify-product-image,
:root[data-theme="minimal"] .shopify-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 16px;
    background: linear-gradient(180deg, #fff, var(--card-2)) !important;
    border-bottom: 1px solid var(--border) !important;
}

    body.theme-minimal .shopify-product-image img,
    :root[data-theme="minimal"] .shopify-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform .22s ease;
    }

body.theme-minimal .shopify-product-card:hover .shopify-product-image img,
:root[data-theme="minimal"] .shopify-product-card:hover .shopify-product-image img {
    transform: scale(1.025);
}

body.theme-minimal .shopify-product-body,
:root[data-theme="minimal"] .shopify-product-body {
    padding: 16px;
}

body.theme-minimal .shopify-product-name,
:root[data-theme="minimal"] .shopify-product-name {
    display: -webkit-box;
    min-height: 44px;
    color: var(--text) !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    body.theme-minimal .shopify-product-name:hover,
    :root[data-theme="minimal"] .shopify-product-name:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

body.theme-minimal .shopify-product-price,
:root[data-theme="minimal"] .shopify-product-price {
    margin-top: 10px;
    color: var(--primary-strong) !important;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

body.theme-minimal .shopify-product-actions,
:root[data-theme="minimal"] .shopify-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

    body.theme-minimal .shopify-product-actions form,
    :root[data-theme="minimal"] .shopify-product-actions form {
        display: contents;
    }

    body.theme-minimal .shopify-product-actions button,
    body.theme-minimal .shopify-product-actions a,
    :root[data-theme="minimal"] .shopify-product-actions button,
    :root[data-theme="minimal"] .shopify-product-actions a {
        min-height: 42px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 14px;
        font-weight: 950;
        cursor: pointer;
        transition: transform .16s ease, background .16s ease, border-color .16s ease;
    }

    body.theme-minimal .shopify-product-actions button,
    :root[data-theme="minimal"] .shopify-product-actions button {
        background: var(--btn-primary-bg) !important;
        color: var(--btn-primary-text) !important;
        border: 1px solid var(--btn-primary-border) !important;
    }

    body.theme-minimal .shopify-product-actions a,
    :root[data-theme="minimal"] .shopify-product-actions a {
        background: #fff !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
    }

        body.theme-minimal .shopify-product-actions button:hover,
        body.theme-minimal .shopify-product-actions a:hover,
        :root[data-theme="minimal"] .shopify-product-actions button:hover,
        :root[data-theme="minimal"] .shopify-product-actions a:hover {
            transform: translateY(-1px);
        }

/* Empty */
body.theme-minimal .shopify-empty,
:root[data-theme="minimal"] .shopify-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--card) !important;
    border: 1px dashed var(--border-strong) !important;
    color: var(--text-muted) !important;
    font-weight: 850;
    text-align: center;
}

/* Pager */
body.theme-minimal .shopify-pager,
:root[data-theme="minimal"] .shopify-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 34px 0 0;
}

    body.theme-minimal .shopify-pager a,
    body.theme-minimal .shopify-pager span,
    :root[data-theme="minimal"] .shopify-pager a,
    :root[data-theme="minimal"] .shopify-pager span {
        min-width: 40px;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 900;
    }

    body.theme-minimal .shopify-pager a,
    :root[data-theme="minimal"] .shopify-pager a {
        background: #fff !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
    }

    body.theme-minimal .shopify-pager .current,
    :root[data-theme="minimal"] .shopify-pager .current {
        background: #111 !important;
        color: #fff !important;
        border: 1px solid #111 !important;
    }

    body.theme-minimal .shopify-pager .muted-inline,
    :root[data-theme="minimal"] .shopify-pager .muted-inline {
        color: var(--text-soft) !important;
    }

/* Responsive */
@media (max-width: 980px) {
    body.theme-minimal .shopify-wrap,
    :root[data-theme="minimal"] .shopify-wrap {
        padding: 20px 14px 52px;
    }

    body.theme-minimal .shopify-mobile-search,
    :root[data-theme="minimal"] .shopify-mobile-search {
        display: flex;
    }

    body.theme-minimal .shopify-layout,
    :root[data-theme="minimal"] .shopify-layout {
        grid-template-columns: 1fr;
    }

    body.theme-minimal .shopify-sidebar,
    :root[data-theme="minimal"] .shopify-sidebar {
        position: static;
    }

        body.theme-minimal .shopify-sidebar.is-hidden,
        :root[data-theme="minimal"] .shopify-sidebar.is-hidden {
            display: none;
        }
}

@media (max-width: 720px) {
    body.theme-minimal .shopify-hero,
    :root[data-theme="minimal"] .shopify-hero {
        padding: 18px 12px 0;
    }

    body.theme-minimal .shopify-hero-inner,
    :root[data-theme="minimal"] .shopify-hero-inner {
        padding: 26px 20px;
        border-radius: 24px;
    }

    body.theme-minimal .shopify-topbar,
    :root[data-theme="minimal"] .shopify-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.theme-minimal .shopify-filter-toggle,
    :root[data-theme="minimal"] .shopify-filter-toggle {
        width: 100%;
    }

    body.theme-minimal .shopify-count,
    :root[data-theme="minimal"] .shopify-count {
        text-align: center;
    }

    body.theme-minimal .shopify-products.product-grid,
    :root[data-theme="minimal"] .shopify-products.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body.theme-minimal .shopify-product-image,
    :root[data-theme="minimal"] .shopify-product-image {
        padding: 10px;
    }

    body.theme-minimal .shopify-product-body,
    :root[data-theme="minimal"] .shopify-product-body {
        padding: 12px;
    }

    body.theme-minimal .shopify-product-name,
    :root[data-theme="minimal"] .shopify-product-name {
        min-height: 40px;
        font-size: 14px;
    }

    body.theme-minimal .shopify-product-actions,
    :root[data-theme="minimal"] .shopify-product-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    body.theme-minimal .shopify-products.product-grid,
    :root[data-theme="minimal"] .shopify-products.product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Minimal Theme - Catalog Refinement v2
   Fix black hero background and remove product image gradients
   ========================================================= */

html[data-theme="minimal"],
html[data-theme="minimal"] body,
body.theme-minimal {
    background: var(--bg) !important;
}

    body.theme-minimal main,
    body.theme-minimal .main,
    body.theme-minimal .page,
    body.theme-minimal .shopify-catalog,
    :root[data-theme="minimal"] main,
    :root[data-theme="minimal"] .main,
    :root[data-theme="minimal"] .page,
    :root[data-theme="minimal"] .shopify-catalog {
        background: var(--bg) !important;
    }

    /* The previous black band comes from page/shop hero wrappers.
   Force the entire catalog top area into the minimal background. */
    body.theme-minimal .shopify-hero,
    body.theme-minimal .shopify-hero::before,
    body.theme-minimal .shopify-hero::after,
    :root[data-theme="minimal"] .shopify-hero,
    :root[data-theme="minimal"] .shopify-hero::before,
    :root[data-theme="minimal"] .shopify-hero::after {
        background: var(--bg) !important;
        background-image: none !important;
    }

    body.theme-minimal .shopify-hero-inner,
    :root[data-theme="minimal"] .shopify-hero-inner {
        background: #fff !important;
        background-image: none !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 18px 44px rgba(0,0,0,.07) !important;
    }

    /* Product list should show product images clearly, without dark gradient overlays. */
    body.theme-minimal .shopify-product-card,
    body.theme-minimal .shopify-product-card.product-card,
    :root[data-theme="minimal"] .shopify-product-card,
    :root[data-theme="minimal"] .shopify-product-card.product-card {
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        background-image: none !important;
        color: var(--text) !important;
        overflow: hidden !important;
    }

        body.theme-minimal .shopify-product-card::before,
        body.theme-minimal .shopify-product-card::after,
        body.theme-minimal .shopify-product-image::before,
        body.theme-minimal .shopify-product-image::after,
        body.theme-minimal .product-card::before,
        body.theme-minimal .product-card::after,
        :root[data-theme="minimal"] .shopify-product-card::before,
        :root[data-theme="minimal"] .shopify-product-card::after,
        :root[data-theme="minimal"] .shopify-product-image::before,
        :root[data-theme="minimal"] .shopify-product-image::after,
        :root[data-theme="minimal"] .product-card::before,
        :root[data-theme="minimal"] .product-card::after {
            content: none !important;
            display: none !important;
            opacity: 0 !important;
            background: none !important;
            background-image: none !important;
        }

    /* Override shop.css if it positions text over images. */
    body.theme-minimal .shopify-product-body,
    :root[data-theme="minimal"] .shopify-product-body {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        background: #fff !important;
        background-image: none !important;
        color: var(--text) !important;
        z-index: auto !important;
    }

    body.theme-minimal .shopify-product-image,
    :root[data-theme="minimal"] .shopify-product-image {
        position: relative !important;
        overflow: hidden !important;
        background: #f8f8fa !important;
        background-image: none !important;
        border-bottom: 1px solid var(--border) !important;
    }

        body.theme-minimal .shopify-product-image img,
        :root[data-theme="minimal"] .shopify-product-image img {
            opacity: 1 !important;
            filter: none !important;
            mix-blend-mode: normal !important;
        }

    body.theme-minimal .shopify-product-name,
    body.theme-minimal .shopify-product-price,
    :root[data-theme="minimal"] .shopify-product-name,
    :root[data-theme="minimal"] .shopify-product-price {
        position: static !important;
        color: var(--text) !important;
        text-shadow: none !important;
    }

    body.theme-minimal .shopify-product-price,
    :root[data-theme="minimal"] .shopify-product-price {
        color: var(--primary-strong) !important;
    }

    /* Sidebar should look like a clean filter card, not a scroll bar column. */
    body.theme-minimal .shopify-sidebar,
    :root[data-theme="minimal"] .shopify-sidebar {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        border-right: 0 !important;
    }

    body.theme-minimal .shopify-filter-form,
    :root[data-theme="minimal"] .shopify-filter-form {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Level-2 category list readability */
    body.theme-minimal .shopify-category,
    :root[data-theme="minimal"] .shopify-category {
        border-radius: 999px !important;
    }

        body.theme-minimal .shopify-category.is-active,
        :root[data-theme="minimal"] .shopify-category.is-active {
            background: #111 !important;
            color: #fff !important;
        }

    /* Make catalog less visually heavy */
    body.theme-minimal .shopify-products.product-grid,
    :root[data-theme="minimal"] .shopify-products.product-grid {
        gap: 22px !important;
    }

@media (max-width: 720px) {
    body.theme-minimal .shopify-hero-inner,
    :root[data-theme="minimal"] .shopify-hero-inner {
        border-radius: 22px !important;
    }

    body.theme-minimal .shopify-products.product-grid,
    :root[data-theme="minimal"] .shopify-products.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

body.theme-minimal .site-policy-bar {
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid rgba(0, 0, 0, .08);
}

    body.theme-minimal .site-policy-bar a {
        color: rgba(18, 18, 18, .70);
    }

        body.theme-minimal .site-policy-bar a:hover {
            color: #111;
        }


.site-footer {
    background: #000 !important;
    color: #fff !important;
}

    .site-footer *,
    .site-footer a,
    .site-footer span,
    .site-footer p,
    .site-footer h4,
    .site-footer .footer-copy {
        color: #fff !important;
    }

    .site-footer a {
        text-decoration-color: #fff !important;
    }

    .site-footer .footer-social-item {
        background: #fff !important;
        color: #000 !important;
    }

        .site-footer .footer-social-item span {
            color: #000 !important;
        }

        .site-footer .footer-social-item img {
            display: block;
        }
/* =========================================
   Minimal Theme - Product Detail Related Products
   Add this block to: wwwroot/css/theme/themes/minimal.css
   ========================================= */

body.theme-minimal .pd-related {
    max-width: 1180px;
    margin: 38px auto 0;
    padding: 0 18px;
    color: #111827;
}

body.theme-minimal .pd-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

body.theme-minimal .pd-related__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: #111827;
}

body.theme-minimal .pd-related__sub {
    margin-top: 5px;
    color: rgba(17,24,39,.58);
    font-size: 14px;
}

body.theme-minimal .pd-related__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

body.theme-minimal .pd-related-card {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 10px 28px rgba(17,24,39,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    body.theme-minimal .pd-related-card:hover {
        transform: translateY(-2px);
        border-color: rgba(17,24,39,.16);
        box-shadow: 0 18px 38px rgba(17,24,39,.10);
    }

body.theme-minimal .pd-related-card__media {
    aspect-ratio: 1 / 1;
    background: #f6f7f9;
    border-bottom: 1px solid rgba(17,24,39,.06);
    overflow: hidden;
}

    body.theme-minimal .pd-related-card__media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        padding: 14px;
        transition: transform .22s ease;
    }

body.theme-minimal .pd-related-card:hover .pd-related-card__media img {
    transform: scale(1.03);
}

body.theme-minimal .pd-related-card__body {
    padding: 13px 13px 15px;
}

body.theme-minimal .pd-related-card__name {
    min-height: 40px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-minimal .pd-related-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

body.theme-minimal .pd-related-card__price {
    font-size: 15px;
    font-weight: 850;
    color: #111827;
}

body.theme-minimal .pd-related-card__original {
    font-size: 12px;
    color: rgba(17,24,39,.42);
    text-decoration: line-through;
    font-weight: 650;
}

@media (max-width: 1100px) {
    body.theme-minimal .pd-related__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body.theme-minimal .pd-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.theme-minimal .pd-related {
        margin-top: 28px;
        padding: 0 14px;
    }

    body.theme-minimal .pd-related__title {
        font-size: 22px;
    }

    body.theme-minimal .pd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
