@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --accent: #f9a825;
    --accent-dark: #f57f17;
    --text: #222;
    --muted: #666;
    --border: #e8e8e8;
    --bg: #fff;
    --bg-soft: #f7f7f7;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }

/* Top bar */
.top-announcement {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-announcement-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-contact { display: flex; gap: 1rem; }
.top-contact a { color: #fff; font-weight: 600; }

/* Header */
.shop-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 800;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.8rem; }

.header-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    cursor: pointer;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-link {
    color: var(--text);
    font-size: 1.2rem;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    position: relative;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-cart:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    color: var(--text);
}

.header-cart.has-items {
    border-color: var(--primary);
    background: #f1f8f1;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-text { display: flex; flex-direction: column; line-height: 1.25; }
.cart-count { font-size: 0.75rem; color: var(--muted); }
.cart-total { font-weight: 800; font-size: 0.95rem; color: var(--primary-dark); }
.cart-view { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.cart-view-muted { font-size: 0.7rem; color: var(--muted); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 22px; height: 2px; background: #333; display: block;
}

/* Nav */
.shop-nav {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.shop-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 48px;
}

.shop-nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: inline-block;
}

.shop-nav-inner ::deep a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.shop-nav-link:hover { color: var(--primary); }

.shop-nav-dropdown { position: relative; }
.shop-nav-dropdown:hover .dropdown-menu-shop { display: block; }

.dropdown-menu-shop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 100;
}

.dropdown-menu-shop ::deep a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text);
    font-weight: 600;
}

.dropdown-menu-shop ::deep a:hover { background: #f0f0f0; color: var(--primary); }

.nav-cta { color: var(--primary) !important; font-weight: 800 !important; }

/* Hero carousel */
.hero-carousel {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-content { max-width: 600px; }
.hero-slide-tag { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; }
.hero-slide h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0.5rem 0; }
.hero-slide p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.95; }

.btn-shop-now {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-shop-now:hover { background: #f5f5f5; color: var(--primary-dark); }

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero-dot.active { background: #fff; }

/* Guarantee strip */
.guarantee-strip {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.guarantee-strip h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.guarantee-strip h2 span { color: var(--primary); }

.guarantee-pills {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.guarantee-pill {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem 2rem;
    min-width: 140px;
}

.guarantee-pill strong { display: block; font-size: 1.1rem; color: var(--primary); }
.guarantee-pill span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; }

.guarantee-sub { color: var(--muted); margin: 0; }

/* Farm section */
.farm-section { padding: 4rem 0; }
.farm-title { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); }
.farm-text { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.farm-visual {
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
    border-radius: 12px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Shop sections */
.shop-section { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}

.section-head h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.section-head a { font-weight: 700; color: var(--primary); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product card - mangonation style */
.shop-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.shop-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-thumb {
    position: relative;
    background: linear-gradient(180deg, #fff8e1, #ffecb3);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mango-emoji { font-size: 5rem; }
.mango-emoji-large { font-size: 8rem; }

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.shop-product-card:hover .product-actions { opacity: 1; }

.action-btn {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.variant-swatches {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem 0;
    flex-wrap: wrap;
}

.swatch {
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--muted);
    background: #fff;
}

.detail-swatches .swatch {
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.detail-swatches .swatch.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem 0;
    margin: 0;
    line-height: 1.4;
}

.product-title a { color: var(--text); }
.product-title a:hover { color: var(--primary); }

.product-rating {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.star { color: #ddd; }
.star.filled { color: #f9a825; }

.rating-text { margin-left: 0.25rem; }

.product-price-range {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
}

.btn-select-options {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-select-options:hover {
    background: var(--primary);
    color: #fff;
}

/* Features */
.features-section { padding: 3rem 0; background: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.feature-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.feature-box h3 { font-size: 1.1rem; font-weight: 800; margin: 0.5rem 0; }
.feature-box p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* Reviews */
.reviews-section {
    padding: 3rem 0;
    background: var(--bg-soft);
}

.reviews-header { text-align: center; margin-bottom: 2rem; }
.reviews-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.review-stars { color: #f9a825; margin-bottom: 0.5rem; }
.review-card p { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.review-card strong { font-size: 0.85rem; }

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 { font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-banner .btn-shop-now { color: var(--primary-dark); }

/* Shop page */
.shop-page { padding: 2rem 0 3rem; }

.breadcrumb-nav {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--primary); }

.shop-page-header { margin-bottom: 2rem; }
.shop-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.shop-page-header p { color: var(--muted); margin: 0; }

.product-detail-image {
    background: linear-gradient(180deg, #fff8e1, #ffecb3);
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.detail-title { font-size: 1.75rem; font-weight: 800; }
.detail-desc { color: var(--muted); line-height: 1.7; }
.detail-price { font-size: 1.75rem; font-weight: 800; color: var(--primary-dark); margin: 1rem 0; }

.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.btn-add-cart:hover { background: var(--primary-dark); }

/* Buttons legacy */
.btn-mango {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
}

.btn-mango:hover { background: var(--primary-dark); color: #fff; }

.text-mango { color: var(--primary) !important; }

/* Auth pages */
.auth-page { min-height: 60vh; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
.auth-visual {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 3rem; display: flex; align-items: flex-end;
}
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-container { width: 100%; max-width: 440px; }
.auth-title { font-weight: 800; font-size: 2rem; }
.modern-input { border-radius: 4px; border: 1px solid var(--border); padding: 0.75rem; }
.modern-label { font-weight: 700; font-size: 0.9rem; }

/* Profile */
.profile-hero { background: var(--bg-soft); padding: 2rem 0; border-bottom: 1px solid var(--border); }
.profile-hero-card { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.profile-avatar-lg {
    width: 80px; height: 80px; border-radius: 12px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
}
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.modern-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }

/* Footer */
.shop-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.footer-contact a { color: #ccc; }
.shop-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.shop-footer a { display: block; color: #999; margin-bottom: 0.4rem; font-size: 0.9rem; }
.shop-footer a:hover { color: var(--accent); }
.footer-cta { margin: 0; font-size: 0.85rem; }
.footer-phone { font-size: 1.2rem; font-weight: 800; color: var(--accent) !important; }
.footer-bottom { border-top: 1px solid #333; padding-top: 1rem; text-align: center; font-size: 0.85rem; }

/* Misc */
.qty-input { width: 80px; }
.order-timeline { padding-left: 2rem; }
.timeline-step { position: relative; padding-bottom: 2rem; padding-left: 1.5rem; border-left: 3px solid #e0e0e0; }
.timeline-step.completed { border-left-color: var(--primary); }
.timeline-marker {
    position: absolute; left: -0.85rem; top: 0;
    width: 24px; height: 24px; border-radius: 50%; background: #e0e0e0;
}
.timeline-step.completed .timeline-marker { background: var(--primary); }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; }

#blazor-error-ui {
    background: lightyellow; bottom: 0; left: 0; right: 0;
    padding: 0.6rem 1.25rem; position: fixed; z-index: 9999; display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .product-grid, .features-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .mobile-menu-btn { display: flex; }
    .header-search { display: none !important; }
    .shop-nav { display: none; }
    .shop-nav.open {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .shop-nav.open .shop-nav-inner { flex-direction: column; align-items: stretch; padding: 1rem; }
    .auth-split { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .product-grid, .features-grid, .reviews-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .hero-carousel { height: 340px; }
    .cart-text { display: none; }
    .guarantee-pills { flex-direction: column; align-items: center; }
}

/* Admin panel */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f4f6f8;
}

.admin-sidebar {
    background: #1b5e20;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
}

.admin-brand small {
    display: block;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 2rem;
    flex: 1;
}

.admin-nav a {
    color: rgba(255,255,255,0.85);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar-footer a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.admin-role-badge {
    background: #e8f5e9;
    color: var(--primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-content {
    padding: 1.5rem;
}

.admin-heading {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.admin-stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.admin-stat-card strong {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.admin-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-toolbar .form-control,
.admin-toolbar .form-select {
    max-width: 320px;
}

.admin-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    border-bottom-width: 1px;
}

.admin-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-status.status-success { background: #e8f5e9; color: #2e7d32; }
.admin-status.status-warning { background: #fff8e1; color: #f57f17; }
.admin-status.status-info { background: #e3f2fd; color: #1565c0; }
.admin-status.status-muted { background: #f5f5f5; color: #757575; }

.admin-variant-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--bg-soft);
}

.admin-order-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-order-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.admin-order-totals .total {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

.admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-timeline-item {
    border-left: 3px solid var(--primary);
    padding-left: 0.9rem;
}

.admin-timeline-item span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-timeline-item p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.search-page-form {
    display: flex;
    gap: 0.75rem;
    max-width: 560px;
    margin-top: 1rem;
}

.search-page-form .form-control {
    flex: 1;
}

.search-results-count {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.mobile-search-bar {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.shop-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-chip {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.admin-image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
    }
}
