@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --green-dark: #1a3c2a;
    --green-primary: #2e7d32;
    --green-light: #4caf50;
    --green-pale: #e8f5e9;
    --green-bg: #f1f8e9;
    --text-dark: #1a1a1a;
    --text-body: #555;
    --text-muted: #888;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --border-light: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Roboto', sans-serif;
}

[data-theme="dark"] {
    --green-dark: #a5d6a7;
    --green-primary: #66bb6a;
    --green-light: #81c784;
    --green-pale: #1b2e1f;
    --green-bg: #121a12;
    --text-dark: #e0e0e0;
    --text-body: #b0b0b0;
    --text-muted: #757575;
    --bg-white: #1e1e1e;
    --bg-light: #121212;
    --border-light: #333333;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

[data-theme="dark"] body {
    background: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] .botanical-header {
    background: #1e1e1e;
    border-bottom-color: #333;
}

[data-theme="dark"] .botanical-footer {
    background: #0d1f12;
}

[data-theme="dark"] .botanical-brand .brand-text,
[data-theme="dark"] .botanical-nav .nav-link {
    color: #e0e0e0;
}

[data-theme="dark"] .botanical-nav .nav-link:hover,
[data-theme="dark"] .botanical-nav .nav-link.active {
    color: #66bb6a;
}

[data-theme="dark"] .botanical-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0d1f12 0%, #1b2e1f 50%, #0d1f12 100%);
}

[data-theme="dark"] .admin-sidebar {
    background: #1a1a1a;
    border-right-color: #333;
}

[data-theme="dark"] .admin-topbar {
    background: #1a1a1a;
    border-bottom-color: #333;
}

[data-theme="dark"] .admin-main-area {
    background: #121212;
}

[data-theme="dark"] .admin-panel {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .kpi-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .sidebar-brand-name,
[data-theme="dark"] .sidebar-brand-sub {
    color: #e0e0e0;
}

[data-theme="dark"] .sidebar-link {
    color: #b0b0b0;
}

[data-theme="dark"] .sidebar-link:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .sidebar-link.active {
    background: rgba(102, 187, 106, 0.15);
    color: #66bb6a;
}

[data-theme="dark"] .admin-tabs {
    background: #1a1a1a;
}

[data-theme="dark"] .admin-tab {
    color: #b0b0b0;
}

[data-theme="dark"] .admin-tab.active {
    background: #1e1e1e;
    color: #66bb6a;
}

[data-theme="dark"] .mud-table {
    background: #1e1e1e;
}

[data-theme="dark"] .mud-table-head .mud-table-cell {
    background: #1a1a1a;
    color: #b0b0b0;
    border-bottom-color: #333;
}

[data-theme="dark"] .mud-table-body .mud-table-cell {
    border-bottom-color: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .mud-input-outlined .mud-input-outlined-border {
    border-color: #444 !important;
}

[data-theme="dark"] .mud-input {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-input-label {
    color: #b0b0b0 !important;
}

[data-theme="dark"] .store-sidebar {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .detail-layout {
    color: #e0e0e0;
}

[data-theme="dark"] .card-body {
    color: #e0e0e0;
}

[data-theme="dark"] .card-title {
    color: #e0e0e0;
}

[data-theme="dark"] .lang-toggle {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

/* ── MudBlazor global dark overrides ── */
[data-theme="dark"] .mud-paper {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-paper.mud-elevation-3 {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .mud-input-root,
[data-theme="dark"] .mud-input-root-text,
[data-theme="dark"] .mud-input-root-outlined {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .mud-input-root input,
[data-theme="dark"] .mud-input-root textarea {
    color: #e0e0e0 !important;
    caret-color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-input-outlined-field,
[data-theme="dark"] .mud-input-outlined .mud-input-outlined-border,
[data-theme="dark"] fieldset.mud-input-outlined-border {
    border-color: #555 !important;
}

[data-theme="dark"] .mud-input-label,
[data-theme="dark"] .mud-input-label-animated,
[data-theme="dark"] .mud-input-label-inputcontrol {
    color: #aaa !important;
}

[data-theme="dark"] .mud-typography,
[data-theme="dark"] .mud-text {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-container {
    color: #e0e0e0;
}

[data-theme="dark"] .mud-select-input,
[data-theme="dark"] .mud-select .mud-input-root {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-popover-paper {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-list-item,
[data-theme="dark"] .mud-menu-item {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-list-item:hover,
[data-theme="dark"] .mud-menu-item:hover {
    background-color: #333 !important;
}

[data-theme="dark"] .mud-snackbar {
    background-color: #2a2a2a !important;
}

[data-theme="dark"] .mud-dialog {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-dialog-title,
[data-theme="dark"] .mud-dialog-content {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-overlay-dialog {
    background-color: rgba(0,0,0,0.7) !important;
}

[data-theme="dark"] .mud-chip {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-switch-track {
    background-color: #555 !important;
}

[data-theme="dark"] .mud-table-container {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .mud-table-row:hover td {
    background-color: #2a2a2a !important;
}

[data-theme="dark"] .mud-table-pagination-toolbar {
    background-color: #1a1a1a !important;
    color: #b0b0b0 !important;
}

[data-theme="dark"] .mud-table-pagination-toolbar .mud-input-root {
    color: #b0b0b0 !important;
}

[data-theme="dark"] .mud-tabs .mud-tab {
    color: #aaa !important;
}

[data-theme="dark"] .mud-tabs .mud-tab.mud-tab-active {
    color: #66bb6a !important;
}

[data-theme="dark"] .mud-tabs-tabbar {
    background-color: #1a1a1a !important;
    border-bottom-color: #333 !important;
}

[data-theme="dark"] .mud-tabs-panels {
    background-color: #121212 !important;
}

/* dark hero handled by the rule in the main dark-mode block above */

[data-theme="dark"] .home-section,
[data-theme="dark"] .about-strip,
[data-theme="dark"] .contact-strip {
    background: #1a1a1a;
}

[data-theme="dark"] .category-card {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .category-card:hover {
    background: #252525;
    border-color: #66bb6a;
}

[data-theme="dark"] .contact-card {
    background: #1e1e1e;
    color: #e0e0e0;
}

[data-theme="dark"] .section-title {
    color: #e0e0e0;
}

[data-theme="dark"] .see-all {
    color: #66bb6a;
}

/* ======================== */
/* DIALOG SECTION HEADERS   */
/* ======================== */
.dialog-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #777;
    background: #f4f4ef;
    border-radius: 5px;
    padding: 6px 12px;
    margin: 1rem 0 0.6rem;
}

.dialog-section-header:first-child {
    margin-top: 0.25rem;
}

/* Language code badge inside section header (e.g. "TR") */
.dialog-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #388e3c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 3px;
    padding: 1px 5px;
    line-height: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .dialog-section-header {
    background: #2a2a2a;
    color: #aaa;
}

[data-theme="dark"] .dialog-lang-badge {
    background: #2e7d32;
}

/* ======================== */
/* DATE FIELD COMPONENT     */
/* ======================== */
.date-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 200px;
}

.date-field-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #888;
    padding-left: 2px;
    line-height: 1;
}

/* Remove MudBlazor's floating label space when we use our own label above */
.date-field-wrap .mud-input-label,
.date-field-wrap .mud-input-label-animated,
.date-field-wrap .mud-input-label-inputcontrol {
    display: none !important;
}

/* Remove the legend gap in the outlined fieldset that MudBlazor adds for the floating label */
.date-field-wrap fieldset.mud-input-outlined-border legend {
    display: none !important;
}

/* Tighten the input height and remove top padding reserved for floating label */
.date-field-wrap .mud-input-outlined .mud-input-root {
    padding-top: 0 !important;
}

.date-field-wrap .mud-input-control .mud-input-outlined-field {
    padding-top: 0 !important;
}

/* Adornment icon color */
.date-field-wrap .mud-input-adornment .mud-icon-root {
    color: #555;
    font-size: 18px;
}

/* Dark mode */
[data-theme="dark"] .date-field-label {
    color: #aaa;
}

[data-theme="dark"] .date-field-wrap .mud-input-adornment .mud-icon-root {
    color: #bbb;
}

/* DatePicker calendar popup – ensure full width regardless of parent constraints */
.mud-overlay-dialog .mud-picker,
.mud-overlay-dialog .mud-picker-container {
    min-width: 320px !important;
    width: auto !important;
    max-width: none !important;
}

/* DatePicker / Picker – green theme (all modes) */
.mud-picker-toolbar {
    background: #2e7d32 !important;
    color: #fff !important;
}

.mud-picker-toolbar .mud-typography {
    color: #fff !important;
}

.mud-picker .mud-selected {
    background: #2e7d32 !important;
    color: #fff !important;
}

.mud-picker .mud-current {
    border-color: #2e7d32 !important;
    color: #2e7d32;
}

.mud-picker .mud-picker-action-buttons .mud-button-root {
    color: #2e7d32 !important;
}

.mud-picker-calendar-header-switch > .mud-button-root {
    color: #333 !important;
}

/* DatePicker / Picker dark mode */
[data-theme="dark"] .mud-picker,
[data-theme="dark"] .mud-picker-container {
    background: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .mud-picker-toolbar {
    background: #1b5e20 !important;
    color: #fff !important;
}

[data-theme="dark"] .mud-picker-toolbar .mud-typography {
    color: #fff !important;
}

[data-theme="dark"] .mud-picker-calendar-header,
[data-theme="dark"] .mud-picker-calendar-header-switch {
    color: #e0e0e0;
}

[data-theme="dark"] .mud-picker-calendar-header-switch > .mud-button-root {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-picker-calendar-day,
[data-theme="dark"] .mud-picker-calendar .mud-button-root {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-picker-calendar-day:hover {
    background: #444 !important;
}

[data-theme="dark"] .mud-picker .mud-selected {
    background: #2e7d32 !important;
    color: #fff !important;
}

[data-theme="dark"] .mud-picker .mud-current {
    border-color: #66bb6a !important;
}

[data-theme="dark"] .mud-picker-calendar-day.mud-disabled {
    color: #555 !important;
}

[data-theme="dark"] .mud-picker .mud-picker-action-buttons {
    background: #2a2a2a;
}

[data-theme="dark"] .mud-picker .mud-picker-action-buttons .mud-button-root {
    color: #66bb6a !important;
}

[data-theme="dark"] .mud-picker-year-container,
[data-theme="dark"] .mud-picker-month-container {
    background: #2a2a2a;
}

[data-theme="dark"] .mud-picker-year-container .mud-button-root,
[data-theme="dark"] .mud-picker-month-container .mud-button-root {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .mud-picker-inline-paper,
[data-theme="dark"] .mud-picker-popover-paper {
    background: #2a2a2a !important;
    border: 1px solid #444;
}

[data-theme="dark"] .mud-picker-input .mud-input-adornment .mud-icon-root {
    color: #aaa;
}

/* Numeric field spinner dark mode */
[data-theme="dark"] .mud-numeric-field .mud-input-adornment .mud-icon-root {
    color: #aaa;
}

/* Checkbox dark mode */
[data-theme="dark"] .mud-checkbox .mud-icon-root {
    color: #aaa;
}

[data-theme="dark"] .mud-checkbox-true .mud-icon-root {
    color: #66bb6a !important;
}

/* File upload dark mode */
[data-theme="dark"] .mud-file-upload {
    border-color: #555;
    color: #e0e0e0;
}

/* Admin filter bar / button dark mode */
[data-theme="dark"] .admin-btn.outline {
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .admin-btn.outline:hover {
    background: #333;
}

[data-theme="dark"] .admin-btn.primary {
    background: #2e7d32;
}

[data-theme="dark"] .admin-btn.primary:hover {
    background: #388e3c;
}

/* Helper text dark mode */
[data-theme="dark"] .mud-input-helper-text {
    color: #999 !important;
}

html, body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
}

/* ======================== */
/* LAYOUT                   */
/* ======================== */
.botanical-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.botanical-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ======================== */
/* HEADER                   */
/* ======================== */
.botanical-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.botanical-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 64px;
    gap: 2rem;
}

.botanical-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.botanical-brand .brand-icon {
    font-size: 1.5rem;
}

.botanical-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: -0.5px;
}

.botanical-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.botanical-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.botanical-nav .nav-link:hover {
    color: var(--green-primary);
    background: var(--green-pale);
}

.botanical-nav .nav-link.active {
    color: var(--green-primary);
    font-weight: 600;
}

.botanical-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

/* ======================== */
/* FOOTER                   */
/* ======================== */
.botanical-footer {
    background: var(--green-dark);
    color: #ccc;
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    font-size: 1.3rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--green-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.footer-bottom p {
    margin: 0;
}

/* ======================== */
/* HERO SECTION             */
/* ======================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--green-pale) 0%, #c8e6c9 50%, #a5d6a7 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    margin-bottom: 3rem;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

/* Semi-transparent scrim when a banner photo is set */
.hero-section.has-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    border-radius: inherit;
    z-index: 0;
}
.hero-section.has-banner .hero-content { position: relative; z-index: 1; }
.hero-section.has-banner .hero-visual  { position: relative; z-index: 1; }
.hero-section.has-banner .hero-title   { color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-section.has-banner .hero-subtitle { color: rgba(255,255,255,0.9); }
.hero-section.has-banner .btn-hero-secondary { color: white; border-color: rgba(255,255,255,0.8); }

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 12px 28px;
    background: var(--green-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-hero-secondary {
    padding: 12px 28px;
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    background: var(--green-dark);
    color: white;
}

.hero-visual {
    flex-shrink: 0;
}

.hero-plant {
    font-size: 8rem;
    opacity: 0.3;
}

/* ======================== */
/* HOME SECTIONS            */
/* ======================== */
.home-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green-dark);
    margin: 0 0 1.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.see-all {
    color: var(--green-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--green-dark);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark);
}

/* About & Contact strips */
.about-strip {
    background: var(--green-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid #c8e6c9;
}

.about-strip h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin: 0 0 1rem;
}

.about-strip p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}

.contact-strip {
    margin-bottom: 3rem;
}

.contact-strip h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin: 0 0 1.5rem;
}

.contact-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #25D366;
    color: white !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.whatsapp-btn:hover {
    background: #1da851;
}

/* ======================== */
/* STORE LAYOUT             */
/* ======================== */
.store-layout {
    display: flex;
    gap: 2rem;
    min-height: 60vh;
}

.store-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green-pale);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-body);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.category-list li:hover {
    background: var(--green-pale);
    color: var(--green-primary);
}

.category-list li.active {
    background: var(--green-primary);
    color: white;
    font-weight: 500;
}

.category-list li .cat-icon {
    font-size: 1.1rem;
}

.store-content {
    flex: 1;
    min-width: 0;
}

.store-header {
    margin-bottom: 1.5rem;
}

.store-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--green-dark);
    margin: 0 0 0.25rem;
}

.store-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.store-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.store-search {
    flex: 1;
    max-width: 400px;
}

/* Match MudSelect to MudTextField in store toolbar */
.store-toolbar .mud-select .mud-input-outlined-border,
.store-toolbar .mud-input-control .mud-input-outlined-border {
    border-radius: 24px !important;
    border-color: #e0ddd7 !important;
    background: transparent !important;
}

.store-toolbar .mud-select:hover .mud-input-outlined-border,
.store-toolbar .mud-input-control:hover .mud-input-outlined-border {
    border-color: var(--green-primary) !important;
}

.store-toolbar .mud-input-control {
    margin: 0 !important;
}

.store-toolbar .mud-select .mud-input-slot,
.store-toolbar .mud-input-control .mud-input-slot {
    background: transparent !important;
}

.product-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.store-loading, .store-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* ======================== */
/* PRODUCT GRID             */
/* ======================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    color: var(--text-body);
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

/* Mobile navigation dropdown */
.botanical-nav-mobile {
    display: none;
}

/* ═══ RESPONSIVE BREAKPOINTS ═══ */

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .store-sidebar { width: 200px; }

    /* Footer 2-col */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Header: hide desktop nav, show hamburger */
    .botanical-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .botanical-nav-mobile {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 1.5rem 1rem;
        border-top: 1px solid var(--border-light);
        background: var(--bg-white);
    }
    .botanical-nav-mobile .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-body);
        text-decoration: none;
        border-bottom: 1px solid var(--border-light);
        cursor: pointer;
    }
    .botanical-nav-mobile .nav-link:last-child { border-bottom: none; }
    .botanical-nav-mobile .nav-link.active {
        color: var(--green-primary);
        font-weight: 600;
    }

    /* Main content padding */
    .botanical-main { padding: 1.25rem 1rem; }

    /* Hero */
    .hero-section { flex-direction: column; padding: 2rem 1.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }

    /* Store */
    .store-layout { flex-direction: column; }
    .store-sidebar { width: 100%; }
    .category-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .category-list li { flex: none; font-size: 0.82rem; padding: 0.5rem 0.75rem; }
    .store-title { font-size: 1.4rem; }
    .store-toolbar { flex-direction: column; align-items: stretch; }
    .store-search { max-width: 100%; }

    /* Home sections */
    .section-title { font-size: 1.3rem; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .category-card { padding: 1rem 0.5rem; }
    .category-icon { font-size: 1.5rem; }
    .category-name { font-size: 0.78rem; }
    .about-strip { padding: 1.5rem; }
    .contact-cards { flex-direction: column; }

    /* Footer single column */
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem 1.5rem; }

    /* About page */
    .about-hero { padding: 2.5rem 1.5rem; }
    .about-hero-title { font-size: 1.8rem; }
    .about-cards-section { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: 1fr; }
    .about-values-section { padding: 1.5rem; }
    .about-cta-section { padding: 2rem 1.25rem; }
    .about-cta-actions { flex-direction: column; align-items: center; }

    /* Contact page */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map-col { min-height: 280px; }

    /* Product detail */
    .detail-layout { flex-direction: column; gap: 1.5rem; }
    .detail-image-section { flex: none; width: 100%; }
    .detail-title { font-size: 1.5rem; }
    .detail-price { font-size: 1.4rem; }
    .detail-image-placeholder { height: 250px; font-size: 4rem; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* Header */
    .botanical-header-inner { padding: 0 1rem; gap: 0.75rem; height: 56px; }
    .botanical-brand .brand-text { font-size: 1.2rem; }
    .botanical-brand .brand-icon { font-size: 1.2rem; }

    /* Hero */
    .hero-section { padding: 1.5rem 1rem; margin-bottom: 2rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .btn-hero-primary, .btn-hero-secondary { padding: 10px 20px; font-size: 0.85rem; width: 100%; text-align: center; justify-content: center; }

    /* Store */
    .store-title { font-size: 1.2rem; }
    .store-subtitle { font-size: 0.8rem; }
    .category-list li { font-size: 0.78rem; padding: 0.4rem 0.6rem; }

    /* Categories grid */
    .categories-grid { grid-template-columns: repeat(2, 1fr); }

    /* About */
    .about-hero { padding: 1.75rem 1rem; }
    .about-hero-title { font-size: 1.4rem; }
    .about-hero-desc { font-size: 0.85rem; }
    .about-card { padding: 1.25rem; }
    .about-section-title { font-size: 1.25rem; }
    .about-cta-inner h2 { font-size: 1.2rem; }

    /* Contact */
    .contact-social-row { flex-direction: column; }
    .contact-social-btn { justify-content: center; }
    .contact-map-col { min-height: 220px; }

    /* Product detail */
    .detail-breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
    .detail-title { font-size: 1.3rem; }
    .detail-price { font-size: 1.25rem; }
    .detail-description { padding: 0.75rem; }
    .btn-whatsapp { width: 100%; justify-content: center; }

    /* Footer */
    .footer-inner { padding: 1.5rem 1rem; }
    .footer-bottom { padding: 1rem; }
}

@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 1.3rem; }
    .botanical-main { padding: 1rem 0.75rem; }
}

/* ======================== */
/* PRODUCT CARD             */
/* ======================== */
.botanical-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-light);
}

.botanical-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-herbal { background: #e8f5e9; color: #2e7d32; }
.badge-natural { background: #e0f2f1; color: #00695c; }
.badge-pure { background: #fff3e0; color: #e65100; }
.badge-healing { background: #fce4ec; color: #c62828; }
.badge-culinary { background: #fff8e1; color: #f57f17; }
.badge-organic { background: #f1f8e9; color: #558b2f; }
.badge-error { background: #ffebee; color: #c62828; }

/* Product tag badges — custom color from admin */
.product-tag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.65);
    background: var(--green-light);
    border: 1px solid rgba(0,0,0,0.07);
}

.card-image {
    height: 180px;
    overflow: hidden;
    background: var(--green-pale);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.botanical-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.6;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 auto;
    padding-bottom: 0.75rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-primary);
}

.card-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-details {
    padding: 6px 14px;
    background: var(--green-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-details:hover {
    background: var(--green-dark);
}

/* ======================== */
/* PRODUCT DETAIL           */
/* ======================== */
.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-breadcrumb a {
    color: var(--green-primary);
    text-decoration: none;
    cursor: pointer;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.detail-breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--green-primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.detail-back-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.detail-whatsapp-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.detail-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.detail-image-section {
    flex: 0 0 45%;
}

.detail-image {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.detail-image-placeholder {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    opacity: 0.5;
}

.detail-info {
    flex: 1;
}

.detail-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-primary);
    font-weight: 600;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-primary);
}

.detail-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.detail-stock.in-stock {
    background: var(--green-pale);
    color: var(--green-primary);
}

.detail-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.detail-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green-primary);
}

.detail-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: #25D366;
    color: white !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.btn-whatsapp:hover {
    background: #1da851;
}


/* ======================== */
/* ADMIN LAYOUT             */
/* ======================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f3ee;
}

.admin-sidebar {
    width: 200px;
    background: #faf9f6;
    border-right: 1px solid #e8e5df;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
}

.sidebar-brand-icon {
    font-size: 1.5rem;
}

.sidebar-brand-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.sidebar-brand-sub {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background: var(--green-pale);
    color: var(--green-primary);
}

.sidebar-link.active {
    background: var(--green-primary);
    color: white;
    font-weight: 500;
}

.sidebar-bottom {
    padding: 1rem;
}

.sidebar-sale-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--green-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-sale-btn:hover {
    background: var(--green-dark);
}

.admin-main-area {
    flex: 1;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #faf9f6;
    border-bottom: 1px solid #e8e5df;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e0ddd7;
    border-radius: 24px;
    padding: 0.4rem 1rem;
    min-width: 280px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-body);
    transition: background 0.15s;
}

.topbar-icon-btn:hover {
    background: var(--green-pale);
    color: var(--green-primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e0ddd7;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-logout {
    font-size: 0.7rem;
    color: var(--green-primary);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Admin page header pattern */
.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.admin-page-header .page-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-page-header .page-breadcrumb {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-page-header .page-breadcrumb span {
    color: var(--text-body);
}

/* Admin KPI Cards */
.admin-kpi-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-kpi-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.admin-kpi-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-kpi-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.admin-kpi-grid.cols-2-1 {
    grid-template-columns: 2fr 1fr;
}

.kpi-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid #e8e5df;
    transition: box-shadow 0.2s;
}

.kpi-card:hover {
    box-shadow: var(--shadow-sm);
}

.kpi-card.compact {
    padding: 0.75rem 1rem;
}

.kpi-card.compact .kpi-label {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.kpi-card.compact .kpi-value {
    font-size: 1.1rem;
}

.kpi-card.compact .kpi-sub {
    font-size: 0.65rem;
    margin-top: 3px;
}

.kpi-card.compact.featured .kpi-value {
    font-size: 1.2rem;
}

.kpi-card.featured {
    background: linear-gradient(135deg, #2e7d32, #1a3c2a);
    color: white;
    border: none;
    grid-row: span 1;
}

.kpi-card.featured .kpi-label {
    color: rgba(255,255,255,0.8);
}

.kpi-card.featured .kpi-value {
    color: white;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: var(--green-pale);
    color: var(--green-primary);
}

.kpi-card.featured .kpi-icon {
    background: rgba(255,255,255,0.15);
    color: white;
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-sub.positive {
    color: var(--green-primary);
}

.kpi-sub.negative {
    color: #c62828;
}

/* Admin Panel / Card */
.admin-panel {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e8e5df;
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0ede8;
}

.admin-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.admin-panel-body {
    padding: 1rem 1.25rem;
}

/* Admin filter bar */
.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #faf9f6;
    border-bottom: 1px solid #f0ede8;
    flex-wrap: wrap;
}

/* Admin table overrides */
.admin-panel .mud-table {
    box-shadow: none !important;
}

.admin-panel .mud-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-panel .mud-table .mud-table-cell {
    display: table-cell !important;
}

.admin-panel .mud-table .mud-table-head {
    display: table-header-group !important;
}

.admin-panel .mud-table .mud-table-head .mud-table-row {
    display: table-row !important;
}

.admin-panel .mud-table .mud-table-cell::before {
    display: none !important;
}

.admin-panel .mud-table-body .mud-table-cell {
    white-space: nowrap;
}

.admin-panel .mud-table-head .mud-table-cell {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: #faf9f6;
    border-bottom: 1px solid #e8e5df;
}

.admin-panel .mud-table-body .mud-table-cell {
    font-size: 0.85rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f3ee;
}

/* Admin btn styles */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.admin-btn.primary {
    background: var(--green-primary);
    color: white;
}

.admin-btn.primary:hover {
    background: var(--green-dark);
}

.admin-btn.outline {
    background: white;
    color: var(--text-body);
    border: 1px solid #e0ddd7;
}

.admin-btn.outline:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.admin-btn.danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.admin-btn.danger:hover {
    background: #ffcdd2;
}

/* Admin status chips */
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-chip.completed { background: #e8f5e9; color: #2e7d32; }
.status-chip.processing { background: #fff3e0; color: #e65100; }
.status-chip.pending { background: #e3f2fd; color: #1565c0; }
.status-chip.voided, .status-chip.cancelled, .status-chip.refunded { background: #ffebee; color: #c62828; }

/* Admin grid layouts */
.admin-grid {
    display: grid;
    gap: 1.5rem;
}

.admin-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.admin-grid.cols-7-5 {
    grid-template-columns: 7fr 5fr;
}

.admin-grid.cols-8-4 {
    grid-template-columns: 8fr 4fr;
}

.admin-grid.cols-5-7 {
    grid-template-columns: 5fr 7fr;
}

@media (max-width: 900px) {
    .admin-sidebar { width: 60px; }
    .sidebar-brand-name, .sidebar-brand-sub, .sidebar-link span, .sidebar-sale-btn span { display: none; }
    .sidebar-nav { padding: 0.5rem 0.25rem; }
    .sidebar-link { justify-content: center; padding: 0.6rem; }
    .admin-main-area { margin-left: 60px; }
    .admin-grid.cols-2, .admin-grid.cols-7-5, .admin-grid.cols-8-4, .admin-grid.cols-5-7 { grid-template-columns: 1fr; }
    .admin-kpi-grid.cols-3, .admin-kpi-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .admin-kpi-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .admin-kpi-grid.cols-2-1 { grid-template-columns: 1fr 1fr; }
    .admin-filter-bar { flex-wrap: wrap; }
    .admin-filter-bar .mud-picker { max-width: none !important; flex: 1 1 140px; }
    .admin-panel .mud-table-root { min-width: 520px; }
}

@media (max-width: 768px) {
    .admin-content { padding: 1rem; }
    .admin-kpi-grid.cols-3, .admin-kpi-grid.cols-2-1 { grid-template-columns: repeat(2, 1fr); }
    .admin-kpi-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .admin-kpi-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .kpi-card { padding: 0.85rem; }
    .kpi-card.compact { padding: 0.65rem 0.75rem; }
    .kpi-card.compact .kpi-value { font-size: 1rem; }
    .kpi-card.compact.featured .kpi-value { font-size: 1.05rem; }
    .kpi-value { font-size: 1.15rem; }
    .kpi-card.featured .kpi-value { font-size: 1.3rem !important; }
    .kpi-label { font-size: 0.72rem; }
    .kpi-sub { font-size: 0.65rem; flex-wrap: wrap; }
    .kpi-icon { width: 32px; height: 32px; margin-bottom: 0.4rem; }
    .admin-filter-bar { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }
    .admin-filter-bar .mud-picker { max-width: none !important; flex: 1 1 120px; min-width: 0; }
    .admin-filter-bar .admin-btn { flex: 1 1 auto; justify-content: center; }
    .admin-filter-bar > div[style*="flex:1"] { display: none; }
    .admin-panel .mud-table-root { min-width: 600px; }
    .admin-page-header h1 { font-size: 1.25rem; }
    .admin-page-header .page-desc { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .admin-content { padding: 0.65rem; }
    .admin-kpi-grid { gap: 0.5rem; }
    .admin-kpi-grid.cols-3, .admin-kpi-grid.cols-2-1, .admin-kpi-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .kpi-card { padding: 0.65rem; }
    .kpi-card.compact { padding: 0.5rem 0.6rem; }
    .kpi-card.compact .kpi-value { font-size: 0.9rem; }
    .kpi-card.compact.featured .kpi-value { font-size: 0.95rem; }
    .kpi-value { font-size: 1rem; }
    .kpi-card.featured .kpi-value { font-size: 1.1rem !important; }
    .kpi-label { font-size: 0.68rem; }
    .kpi-sub { font-size: 0.6rem; }
    .kpi-icon { width: 28px; height: 28px; margin-bottom: 0.3rem; }
    .admin-filter-bar { gap: 0.4rem; padding: 0.6rem 0.75rem; }
    .admin-filter-bar .admin-btn { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
    .admin-panel .mud-table-root { min-width: 500px; }
    .admin-panel .mud-table-head .mud-table-cell { font-size: 0.65rem; padding: 0.4rem 0.5rem; }
    .admin-panel .mud-table-body .mud-table-cell { font-size: 0.78rem; padding: 0.45rem 0.5rem; }
    .admin-page-header { padding: 0.75rem 1rem; }
    .admin-page-header h1 { font-size: 1.1rem; }
}

/* ======================== */
/* ABOUT & CONTACT PAGES    */
/* ======================== */
.about-hero {
    background: linear-gradient(135deg, #1a3c2a 0%, #2e7d32 100%);
    color: white;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '\1F33F';
    position: absolute;
    right: 5%;
    bottom: -10%;
    font-size: 8rem;
    opacity: 0.08;
}

.about-hero-inner {
    position: relative;
    z-index: 1;
}

.about-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.about-hero-desc {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.about-section-text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
}

.about-cards-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-card {
    background: white;
    border: 1px solid #e8e5df;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.about-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

.about-values-section {
    background: white;
    border: 1px solid #e8e5df;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-value-item {
    text-align: center;
}

.about-value-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.about-value-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.about-value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.about-cta-section {
    background: var(--green-pale);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 0.5rem 0;
}

.about-cta-inner p {
    color: var(--text-body);
    margin: 0 0 1.5rem 0;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About page responsive */
@media (max-width: 768px) {
    .about-hero { padding: 2.5rem 1.5rem; }
    .about-hero-title { font-size: 1.8rem; }
    .about-cards-section { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-values-section { padding: 1.5rem; }
    .about-cta-section { padding: 2rem 1.25rem; }
    .about-cta-actions { flex-direction: column; align-items: center; }
    .about-section-inner { padding: 0 0.5rem; }
}

@media (max-width: 480px) {
    .about-hero { padding: 1.75rem 1rem; }
    .about-hero-title { font-size: 1.4rem; }
    .about-hero-desc { font-size: 0.85rem; }
    .about-card { padding: 1.25rem; }
    .about-section-title { font-size: 1.25rem; }
    .about-cta-inner h2 { font-size: 1.2rem; }
    .about-icon-circle { width: 48px; height: 48px; }
    .about-value-icon { font-size: 2rem; }
}

/* Contact Page */
.contact-main-section {
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 1px solid #e8e5df;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.contact-card:hover {
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.5;
}

.contact-social-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    color: white;
}

.contact-social-btn:hover { opacity: 0.85; }
.contact-social-btn.whatsapp { background: #25D366; }
.contact-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-btn.facebook { background: #1877F2; }
.contact-social-btn.twitter { background: #1a1a1a; }

.contact-map-col {
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e8e5df;
}

/* Contact page responsive */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map-col { min-height: 280px; }
}

@media (max-width: 480px) {
    .contact-social-row { flex-direction: column; }
    .contact-social-btn { justify-content: center; }
    .contact-map-col { min-height: 220px; }
}

/* POS Search & Filters */
.pos-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e0ddd7;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s;
}

.pos-search-bar:focus-within {
    border-color: var(--green-primary);
}

.pos-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
}

.pos-search-input::placeholder {
    color: var(--text-muted);
}

.pos-search-clear {
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pos-search-clear:hover {
    color: var(--text-dark);
}

.pos-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #e0ddd7;
    border-radius: var(--radius-sm);
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-body);
    cursor: pointer;
    transition: border-color 0.15s;
}

.pos-filter-select:focus {
    outline: none;
    border-color: var(--green-primary);
}

.pos-filter-select:hover {
    border-color: var(--green-primary);
}

/* ═══ Admin MudBlazor Input Overrides ═══ */
.admin-main-area .mud-input-control .mud-input-outlined-border {
    border-radius: 24px !important;
    border-color: #e0ddd7 !important;
}

.admin-main-area .mud-input-control .mud-input.mud-input-outlined {
    background: white !important;
    border-radius: 24px !important;
}

.admin-main-area .mud-input-control:hover .mud-input-outlined-border {
    border-color: var(--green-primary) !important;
}

.admin-main-area .mud-input-control.mud-input-control-focused .mud-input-outlined-border,
.admin-main-area .mud-input-control .mud-input.mud-input-adorned-start {
    border-color: var(--green-primary) !important;
}

.admin-main-area .mud-input-outlined .mud-input-slot {
    padding: 0.45rem 1rem !important;
}

.admin-main-area .mud-input-outlined.mud-input-adorned-start .mud-input-slot {
    padding-left: 0.5rem !important;
}

.admin-main-area .mud-select .mud-input-outlined-border {
    border-radius: 24px !important;
    border-color: #e0ddd7 !important;
}

.admin-main-area .mud-select .mud-input.mud-input-outlined {
    background: white !important;
    border-radius: 24px !important;
}

.admin-main-area .mud-select .mud-input-slot,
.admin-main-area .mud-select .mud-input-root {
    font-family: inherit !important;
    font-size: 0.875rem !important;
    color: var(--text-primary, #333) !important;
}

.admin-main-area .mud-select:hover .mud-input-outlined-border {
    border-color: var(--green-primary) !important;
}

.admin-main-area .mud-input-label-outlined {
    background: white;
    padding: 0 4px;
}

.admin-main-area .mud-picker .mud-input-outlined-border {
    border-radius: 24px !important;
    border-color: #e0ddd7 !important;
}

.admin-main-area .mud-picker .mud-input.mud-input-outlined {
    background: white !important;
    border-radius: 24px !important;
}

.admin-main-area .mud-picker:hover .mud-input-outlined-border {
    border-color: var(--green-primary) !important;
}

/* ═══ Admin Tabs (standard for all admin pages) ═══ */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    background: #f5f3ee;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted, #8c8578);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.admin-tab:hover {
    background: rgba(255,255,255,0.6);
    color: var(--green-dark, #1a3c2a);
}

.admin-tab.active {
    background: white;
    color: var(--green-primary, #2e7d32);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-weight: 600;
}

.admin-tab .mud-icon-root {
    font-size: 1.1rem !important;
}

@media (max-width: 600px) {
    .admin-tabs {
        gap: 0.15rem;
        padding: 3px;
    }
    .admin-tab {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        gap: 4px;
    }
    .admin-tab span {
        display: none;
    }
    .admin-tab .mud-icon-root {
        font-size: 1.25rem !important;
    }
}

/* POS Product Cards */
.pos-product-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.pos-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pos-product-card.pos-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-product-card.pos-in-cart {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 1px var(--green-primary);
}

.pos-cart-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pos-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--green-primary);
    background: white;
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.pos-add-btn:hover {
    background: var(--green-primary);
    color: white;
}

.pos-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.pos-qty-btn:hover {
    border-color: #c62828;
    color: #c62828;
}

.pos-qty-btn-add:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.pos-unit-switch {
    display: inline-flex;
    border: 1px solid var(--green-primary);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pos-unit-opt {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border: none;
    background: transparent;
    color: var(--green-primary);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.pos-unit-opt.active {
    background: var(--green-primary);
    color: white;
}

.pos-unit-opt:not(.active):hover {
    background: var(--green-pale);
}

.pos-qty-input {
    width: 52px;
    padding: 2px 4px;
    border: 1px solid #d5d0c8;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.pos-qty-input:focus {
    border-color: var(--green-primary);
}

.pos-qty-input::-webkit-outer-spin-button,
.pos-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ======================== */
/* DEFAULT BLAZOR STYLES    */
/* ======================== */
h1:focus { outline: none; }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ── Language Menu ────────────────────────────────────────────── */

.lang-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    font-size: 0.875rem;
}

.lang-menu-check {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Admin Panel Button (Public Layout) ───────────────────────── */

.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-panel-btn:hover {
    background: var(--green-primary);
    color: white;
}

.admin-mobile-link {
    color: var(--green-primary) !important;
    font-weight: 600 !important;
}

/* ── Sidebar Brand Logo ──────────────────────────────────────── */

.sidebar-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.brand-logo-img {
    width: auto;
    height: 60px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Appearance Settings ─────────────────────────────────────── */

.appearance-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.appearance-preview img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.appearance-preview .default-icon {
    font-size: 2.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCT EDIT DIALOG  (ped-*)
   ══════════════════════════════════════════════════════════════════ */

/* Dialog container */
.product-edit-dialog .mud-dialog-content {
    padding: 0 1.25rem 0.5rem;
}

/* ── Title area ─────────────────────────────────────────────────── */
.ped-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ped-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green-light, #e8f5e9);
    color: var(--green-primary, #388e3c);
    flex-shrink: 0;
}

.ped-title-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark, #1a1a1a);
}

.ped-title-sub {
    font-size: 12px;
    color: var(--text-muted, #888);
    margin-top: 1px;
}

/* ── Language selector row ──────────────────────────────────────── */
.ped-lang-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0.75rem 0 0.25rem;
}

/* ── Section headers (scoped to this dialog) ────────────────────── */
.product-edit-dialog .ped-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-primary, #388e3c);
    background: var(--green-light, #e8f5e9);
    border-left: 3px solid var(--green-primary, #388e3c);
    border-radius: 0 4px 4px 0;
    padding: 5px 12px;
    margin: 1rem 0 0.6rem;
}

.product-edit-dialog .ped-section-header:first-of-type {
    margin-top: 0.5rem;
}

/* ── Fields block ────────────────────────────────────────────────── */
.ped-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

/* ── Pricing card ────────────────────────────────────────────────── */
.ped-pricing-card {
    background: var(--bg-light, #f9f9f6);
    border: 1px solid var(--border-light, #e5e5e0);
    border-radius: var(--radius-sm, 6px);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

/* ── Toggles row ─────────────────────────────────────────────────── */
.ped-toggles {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.25rem 0;
    flex-wrap: wrap;
}

/* ── Dark mode overrides ─────────────────────────────────────────── */
[data-theme="dark"] .ped-title-icon {
    background: #1b3a1e;
    color: #66bb6a;
}

[data-theme="dark"] .ped-title-text {
    color: #e0e0e0;
}

[data-theme="dark"] .ped-title-sub {
    color: #888;
}

[data-theme="dark"] .product-edit-dialog .ped-section-header {
    color: #66bb6a;
    background: #1b3a1e;
    border-left-color: #66bb6a;
}

[data-theme="dark"] .ped-pricing-card {
    background: #1e1e1e;
    border-color: #333;
}

/* ── Image section ───────────────────────────────────────────────── */
.ped-image-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light, #f9f9f6);
    border: 1px solid var(--border-light, #e5e5e0);
    border-radius: var(--radius-sm, 6px);
}

.ped-image-preview {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light, #e5e5e0);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ped-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ped-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-light, #f4f4ef);
}

.ped-image-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
}

.ped-file-upload {
    display: contents;
}

.ped-image-filename {
    font-size: 11px;
    color: var(--text-muted, #888);
    word-break: break-all;
    max-width: 220px;
}

[data-theme="dark"] .ped-image-section {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .ped-image-preview {
    background: #2a2a2a;
    border-color: #444;
}
