:root {
    --bg: #f5f8f2;
    --surface: #ffffff;
    --surface-soft: #eef5ea;
    --surface-dark: #163320;
    --primary: #2e7d32;
    --primary-dark: #1f5a24;
    --accent: #ffb703;
    --text: #17301f;
    --muted: #5c6f63;
    --border: rgba(23, 48, 31, 0.08);
    --shadow: 0 18px 45px rgba(19, 55, 27, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    font-size: 14px;
}

body {
    font-family: "Poppins", sans-serif;
    background: radial-gradient(circle at top left, #d9f1dd 0%, #f5f8f2 42%, #f9fbf7 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
}

.store-header {
    background: linear-gradient(135deg, #173c23, #2e7d32 58%, #549d39);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 12px 24px rgba(12, 31, 18, 0.22);
}

.store-header .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.store-header .nav-link:hover {
    color: #fff;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.3rem;
}

.brand-mark span:last-child {
    display: inline-flex;
    flex-direction: column;
    font-weight: 700;
    line-height: 1.05;
}

.brand-mark small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.75;
}

.store-main,
.dashboard-main {
    padding: 1.5rem 0 2rem;
}

.store-footer {
    background: var(--surface-dark);
    color: #fff;
    margin-top: 2rem;
    padding: 1.25rem 0;
}

.hero-section,
.content-section {
    padding: 1.5rem 0;
}

.hero-section {
    padding-top: 2rem;
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0.4rem 0 1rem;
    max-width: 16ch;
}

.hero-copy,
.lead {
    font-size: 1rem;
    color: var(--muted);
}

.section-kicker {
    display: inline-block;
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-card,
.glass-panel,
.summary-card,
.metric-card,
.feature-card,
.offer-banner,
.mini-card,
.empty-state,
.welcome-banner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card,
.glass-panel,
.summary-card,
.mini-card {
    padding: 1.5rem;
}

.welcome-banner {
    padding: 1.6rem;
    background: linear-gradient(135deg, #20562a, #55a53b);
    color: #fff;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 238, 0.98));
}

.hero-badge,
.offer-chip,
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-badge,
.offer-chip {
    background: rgba(255, 183, 3, 0.2);
    color: #7d5200;
}

.badge-soft {
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary-dark);
}

.badge-soft.danger {
    background: rgba(220, 53, 69, 0.12);
    color: #b42335;
}

.hero-list {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 1.4rem;
}

.hero-pill-grid,
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.9rem;
}

.hero-pill,
.hero-stats div,
.detail-specs div,
.alert-tile {
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: 0.9rem;
}

.hero-pill span,
.hero-stats span,
.detail-specs span,
.metric-card span,
.summary-line span {
    color: var(--muted);
    display: block;
    font-size: 0.85rem;
}

.hero-stats strong,
.metric-card strong {
    display: block;
    font-size: 1.8rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading h2,
.summary-card h2,
.glass-panel h2,
.mini-card h3,
.offer-banner h3,
.product-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-card,
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.feature-card {
    padding: 1rem;
    gap: 0.75rem;
}

.product-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-card-body {
    padding: 1.2rem;
}

.product-card p,
.mini-card p,
.offer-banner p,
.empty-state p,
.alert-tile p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.category-thumb,
.product-thumb,
.detail-image {
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dfeedd, #f4f8ef);
}

.category-thumb {
    height: 110px;
    border-radius: var(--radius-md);
}

.product-thumb {
    height: 210px;
}

.detail-image {
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-row strong {
    font-size: 1.35rem;
}

.price-row span {
    color: var(--muted);
}

.price-row.large strong {
    font-size: 2rem;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.summary-card,
.metric-card {
    height: 100%;
}

.metric-card small {
    color: var(--muted);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-line:last-child {
    border-bottom: 0;
}

.summary-line.total {
    font-size: 1.08rem;
    font-weight: 700;
}

.compact-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    padding: 0.95rem;
}

.table-thumb {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #dfeedd, #f4f8ef);
}

.alert-tile {
    margin-bottom: 0.85rem;
}

.offer-banner {
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.18), rgba(255, 255, 255, 0.98));
}

.mini-card {
    height: 100%;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.list-clean li {
    padding: 0.8rem;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
}

.empty-state i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #163320, #21572a);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-nav {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-chip:hover,
.nav-chip:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dashboard-content {
    background: linear-gradient(180deg, rgba(245, 248, 242, 0.6), #f8faf7);
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.5rem 0;
}

.page-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.dashboard-main {
    padding: 1rem 1.5rem 2rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.table {
    --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
    border-bottom-color: var(--border);
}

.btn,
.form-control,
.form-select {
    border-radius: 14px;
}

.btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-success {
    color: var(--primary);
    border-color: rgba(46, 125, 50, 0.25);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--primary);
    border-color: var(--primary);
}

.form-control,
.form-select {
    border: 1px solid rgba(23, 48, 31, 0.12);
    padding: 0.8rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.12);
}

.alert {
    border-radius: var(--radius-md);
}

@media (max-width: 991.98px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        width: min(320px, 88vw);
    }

    .dashboard-topbar {
        padding: 1rem 1rem 0;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .chart-grid,
    .detail-specs {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-stats,
    .hero-pill-grid {
        grid-template-columns: 1fr;
    }

    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table th,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
        background: var(--surface-soft);
    }

    .responsive-table td {
        padding: 0.5rem 0;
        border-bottom: 1px dashed rgba(23, 48, 31, 0.08);
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        margin-bottom: 0.25rem;
    }

    .price-row,
    .summary-line,
    .section-heading,
    .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-line {
        gap: 0.35rem;
    }

    .product-thumb {
        height: 180px;
    }
}
