:root {
    --dwd-brand: #148a58;
    --dwd-brand-dark: #0d5e3d;
    --dwd-ink: #16211c;
    --dwd-muted: #65736c;
    --dwd-surface: #ffffff;
    --dwd-canvas: #f4f7f5;
    --dwd-border: #dce5e0;
    --dwd-danger: #c73d4a;
    --dwd-warning: #d99518;
    --dwd-radius: 16px;
    --dwd-shadow: 0 12px 30px rgba(19, 62, 43, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dwd-canvas);
    color: var(--dwd-ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#main-content {
    min-height: 60vh;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    color: #fff;
    background: var(--dwd-brand-dark);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(20, 138, 88, .32);
    outline-offset: 2px;
}

.section {
    padding: 32px 0;
}

.card {
    border-color: var(--dwd-border);
    border-radius: var(--dwd-radius);
    overflow: hidden;
}

.card.shadow,
.card.shadow-sm {
    box-shadow: var(--dwd-shadow) !important;
}

.card-header {
    padding: 14px 18px;
    border-bottom-color: var(--dwd-border);
}

.card-body {
    padding: 18px;
}

.btn {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-sm {
    min-height: 34px;
}

.btn-fill-out {
    background-color: var(--dwd-brand);
    border-color: var(--dwd-brand);
}

.btn-fill-out:hover,
.btn-fill-out:focus {
    background-color: var(--dwd-brand-dark);
    border-color: var(--dwd-brand-dark);
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid #cbd8d1;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dwd-brand);
    box-shadow: 0 0 0 .2rem rgba(20, 138, 88, .14);
}

.category-picker__toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border: 1px solid #cbd8d1;
    border-radius: 10px;
    background: #fff;
    color: var(--dwd-ink);
    text-align: left;
}

.category-picker__toggle:hover,
.category-picker__toggle:focus-visible {
    border-color: var(--dwd-brand);
}

.category-picker__chevron {
    flex: 0 0 auto;
    color: var(--dwd-muted);
    font-size: 1.25rem;
}

.category-picker__dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 560px);
    max-width: none;
    max-height: min(78vh, 620px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 44, 30, .24);
}

.category-picker__dialog::backdrop {
    background: rgba(8, 28, 20, .5);
    backdrop-filter: blur(2px);
}

.category-picker__surface {
    display: flex;
    max-height: min(78vh, 620px);
    flex-direction: column;
}

.category-picker__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--dwd-border);
}

.category-picker__header strong,
.category-picker__header small {
    display: block;
}

.category-picker__header strong {
    font-size: 1.1rem;
}

.category-picker__header small {
    margin-top: 3px;
    color: var(--dwd-muted);
}

.category-picker__close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #edf3f0;
    color: var(--dwd-ink);
    font-size: 1.5rem;
    line-height: 1;
}

.category-picker__search {
    padding: 12px 20px;
    background: #f8faf9;
}

.category-picker__options {
    max-height: min(48vh, 360px);
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.category-picker__option {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--dwd-ink);
    text-align: left;
}

.category-picker__option:hover,
.category-picker__option:focus-visible,
.category-picker__option[aria-selected="true"] {
    background: #e7f4ed;
    color: var(--dwd-brand-dark);
}

.category-picker__empty,
.sale-products__status {
    margin: 0;
    padding: 28px 16px;
}

.category-picker-open {
    overflow: hidden;
}

.sale-products {
    max-height: min(58vh, 620px);
    margin-right: -4px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.header_wrap .navbar-brand img {
    width: clamp(128px, 42vw, 190px);
    height: auto;
    object-fit: contain;
}

.header_wrap .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
}

.header_wrap .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
}

.nav-svg-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-right: 5px;
}

.cart_box {
    max-width: min(92vw, 360px);
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: 100%;
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shop_container .product.card {
    border: 1px solid var(--dwd-border) !important;
    border-radius: 14px;
    background: var(--dwd-surface);
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop_container .product.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(19, 62, 43, .12) !important;
}

.shop_container .product-img {
    padding: 10px;
    object-fit: contain;
    background: #fff;
}

.shop_container .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.shop_container .card-body h6 {
    min-height: 38px;
    margin: 0;
    line-height: 1.35;
}

.shop_container .card-body .btn {
    width: 100%;
    white-space: normal;
}

.table-responsive {
    border: 1px solid var(--dwd-border);
    border-radius: 12px;
}

.table {
    margin-bottom: 0;
    background: var(--dwd-surface);
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--dwd-border);
    color: #3f4d46;
    background: #eef4f1;
    font-size: .78rem;
    letter-spacing: .025em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.table td {
    border-top-color: #e7eeea;
    vertical-align: middle;
}

.table td .btn,
.table td form {
    margin: 2px;
}

.smart-table {
    min-width: 0;
}

.smart-table__toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.smart-table__search {
    position: relative;
    flex: 1 1 260px;
}

.smart-table__search input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #cbd8d1;
    border-radius: 10px;
    background: #fff;
}

.smart-table__search::before {
    position: absolute;
    top: 9px;
    left: 13px;
    color: var(--dwd-muted);
    content: "\2315";
    font-size: 19px;
}

.smart-table__page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dwd-muted);
    font-size: .88rem;
}

.smart-table__page-size select {
    min-height: 42px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #cbd8d1;
    border-radius: 10px;
    background: #fff;
}

.smart-table__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--dwd-muted);
    font-size: .88rem;
}

.smart-table__pagination {
    display: flex;
    gap: 6px;
}

.smart-table__pagination button {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--dwd-border);
    border-radius: 9px;
    background: #fff;
    color: var(--dwd-ink);
}

.smart-table__pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.smart-table th[data-smart-sort] {
    cursor: pointer;
    user-select: none;
}

.smart-table th[data-smart-sort]::after {
    margin-left: 7px;
    color: #91a099;
    content: "\2195";
}

.smart-table th[data-sort-direction="asc"]::after {
    color: var(--dwd-brand);
    content: "\2191";
}

.smart-table th[data-sort-direction="desc"]::after {
    color: var(--dwd-brand);
    content: "\2193";
}

.smart-table__empty td {
    padding: 28px 16px;
    color: var(--dwd-muted);
    text-align: center;
}

.dashboard-page,
.inventory-page {
    padding: 20px 16px 48px;
}

.management-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.management-heading h1,
.management-heading h2,
.management-heading h3 {
    margin: 0;
}

.management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.metric-card {
    min-width: 0;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--dwd-border);
    border-radius: var(--dwd-radius);
    background: #fff;
    box-shadow: var(--dwd-shadow);
}

.metric-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--dwd-muted);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.metric-card__value {
    display: block;
    max-width: 100%;
    color: var(--dwd-ink);
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric-card--brand { border-top: 4px solid var(--dwd-brand); }
.metric-card--info { border-top: 4px solid #2980b9; }
.metric-card--warning { border-top: 4px solid var(--dwd-warning); }
.metric-card--danger { border-top: 4px solid var(--dwd-danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.chart-bars {
    display: grid;
    gap: 12px;
}

.chart-bars__row {
    display: grid;
    grid-template-columns: minmax(92px, 150px) minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
}

.chart-bars__track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eeea;
}

.chart-bars__fill {
    display: block;
    width: var(--bar-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dwd-brand), #35b577);
}

.chart-bars__fill--secondary {
    background: linear-gradient(90deg, #2980b9, #62a9dc);
}

.chart-bars__value {
    min-width: 68px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dashboard_menu {
    border: 1px solid var(--dwd-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.dashboard_content .card {
    border-color: var(--dwd-border);
    box-shadow: var(--dwd-shadow);
}

.dashboard_content .card-header {
    background: var(--dwd-brand) !important;
}

.dashboard_content .card-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

/* Public storefront */
.breadcrumb_section {
    border-bottom: 1px solid var(--dwd-border);
    background: linear-gradient(135deg, #f8fbf9 0%, #eef7f2 100%);
}

.breadcrumb_section h1 {
    margin: 0;
    color: var(--dwd-brand-dark);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.025em;
    text-transform: none;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
    margin: 0;
    color: var(--dwd-ink);
    font-weight: 800;
    letter-spacing: -.025em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--dwd-muted);
}

.section-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--dwd-brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.home-hero {
    padding: 76px 0 !important;
    background:
        radial-gradient(circle at 85% 15%, rgba(70, 176, 123, .2), transparent 32%),
        linear-gradient(135deg, #f7fbf9 0%, #e9f6ef 100%);
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--dwd-ink);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.home-hero p {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--dwd-muted);
    font-size: 1.08rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-products-section .tab-style1 {
    margin-bottom: 28px;
}

.product-card {
    border: 1px solid var(--dwd-border) !important;
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(19, 62, 43, .12) !important;
}

.product-card-image-link {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.product-card-image-link img {
    padding: 12px;
    background: #fff;
    object-fit: contain;
    transition: transform .25s ease;
}

.product-card:hover .product-card-image-link img {
    transform: scale(1.025);
}

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
}

.product-card__title {
    min-height: 42px !important;
    margin: 0 !important;
    font-size: .95rem !important;
    font-weight: 750 !important;
    line-height: 1.35;
}

.product-card__title a {
    color: var(--dwd-ink);
}

.product-card__price {
    margin: auto 0 0;
    color: var(--dwd-brand-dark);
    font-size: 1rem;
    font-weight: 800;
}

.product-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.product-card__actions .btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    white-space: normal;
}

.product-detail-card,
.product-information {
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--dwd-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--dwd-shadow);
}

.product-detail-summary h1 {
    margin: 12px 0 8px;
    color: var(--dwd-ink);
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.product-detail-price {
    margin: 0 0 22px;
    color: var(--dwd-brand-dark);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 850;
}

.product-detail-description,
.product-information__content {
    color: #4c5b53;
    line-height: 1.75;
}

.stock-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.stock-badge--available { color: #0b6c41; background: #dff3e8; }
.stock-badge--empty { color: #9c2f3a; background: #f9e4e7; }

.product-benefits {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 14px;
    background: #f4f8f6;
}

.product-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-benefits i {
    color: var(--dwd-brand);
    font-size: 1.2rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.product-categories a {
    padding: 6px 10px;
    border: 1px solid var(--dwd-border);
    border-radius: 999px;
    color: var(--dwd-brand-dark);
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.product-information,
.related-products {
    margin-top: 34px;
}

.auth-page {
    background: linear-gradient(180deg, var(--dwd-canvas), #eef5f1);
}

.auth-card {
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid var(--dwd-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(19, 62, 43, .1);
}

.auth-card--wide { max-width: 900px; margin: 0 auto; }
.auth-card__logo { display: block; width: 170px; height: auto; margin: 0 auto 24px; object-fit: contain; }
.auth-card__options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: .9rem; }
.auth-card__actions { display: grid; gap: 9px; }
.auth-card__footer { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--dwd-border); text-align: center; }

.contact_wrap.contact_style3 {
    height: calc(100% - 24px);
    margin-bottom: 24px;
    border: 1px solid var(--dwd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--dwd-shadow);
}

.contact-map { padding: 0 0 56px; }
.contact-map__frame { overflow: hidden; border: 1px solid var(--dwd-border); border-radius: 18px; box-shadow: var(--dwd-shadow); }
.contact-map__frame iframe { display: block; border: 0; }

.site-footer { margin-top: 0; }
.site-footer .footer_top { padding: 54px 0 30px; }
.site-footer .widget_title { font-size: 1rem; }
.site-footer__brand p { max-width: 420px; line-height: 1.7; }
.site-footer .footer_logo { display: inline-block; margin-bottom: 18px; }
.site-footer .footer_logo img { width: 180px; height: auto; object-fit: contain; }
.site-footer .contact_info a { color: #fff; }

.management-footer {
    margin-top: 28px;
    border-top: 1px solid var(--dwd-border);
    background: #fff;
    color: var(--dwd-muted);
    font-size: .86rem;
}

.management-footer__inner {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.management-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.management-footer a { color: var(--dwd-brand-dark); font-weight: 700; }

.empty-state {
    padding: 36px 20px;
    border: 1px dashed #bfd0c7;
    border-radius: 14px;
    color: var(--dwd-muted);
    background: #f8faf9;
    text-align: center;
}

.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-details div { padding: 14px; border-radius: 12px; background: #f4f8f6; }
.profile-details dt { margin-bottom: 4px; color: var(--dwd-muted); font-size: .78rem; text-transform: uppercase; }
.profile-details dd { margin: 0; color: var(--dwd-ink); font-weight: 700; overflow-wrap: anywhere; }
.account-welcome { padding: clamp(24px, 5vw, 52px); }
.dashboard_content .card-header h2 { margin: 0; color: #fff; font-size: 1.15rem; }

.close-search {
    padding: 0;
    border: 0;
    background: transparent;
}

.fw-bold { font-weight: 700 !important; }
.fs-5 { font-size: 1.25rem !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.gap-2 { gap: .5rem !important; }
.align-middle td, .align-middle th { vertical-align: middle !important; }
.form-select { display: block; width: 100%; padding: .375rem .75rem; background: #fff; }
.badge.bg-success { background: #198754 !important; color: #fff; }
.badge.bg-warning { background: #ffc107 !important; color: #212529; }
.badge.bg-danger { background: #dc3545 !important; color: #fff; }
.badge.bg-info { background: #17a2b8 !important; color: #fff; }

.row.g-3,
.row.gy-3,
.row.gy-4 {
    row-gap: 1rem;
}

@media (max-width: 767.98px) {
    .header_wrap nav.navbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        min-height: 56px;
    }

    .header_wrap .navbar-brand {
        flex: 0 0 auto;
        padding: 4px 0;
    }

    .header_wrap .navbar-brand img {
        width: 108px;
        max-width: 108px;
        max-height: 42px;
    }

    .header_wrap .navbar .navbar-nav.attr-nav {
        display: flex;
        float: none;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header_wrap .navbar-nav.attr-nav li .nav-link,
    .header_wrap .navbar-nav.attr-nav li .nav-link.search_trigger,
    .header_wrap .navbar-nav.attr-nav li .nav-link.cart_trigger {
        min-height: 44px;
        padding: 8px 6px;
    }

    .header_wrap .navbar-toggler {
        flex: 0 0 40px;
        min-width: 40px;
        min-height: 40px;
        margin-left: 4px;
        padding: 4px 8px;
    }

    .header-account-label {
        display: none;
    }

    .header_wrap .nav-svg-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        margin-right: 0;
    }

    .breadcrumb_section {
        padding: 34px 0 22px !important;
    }

    .breadcrumb_section h1,
    .breadcrumb_section h2 {
        font-size: 1.45rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 720px;
        font-size: .88rem;
    }

    .chart-bars__row {
        grid-template-columns: 92px minmax(90px, 1fr);
    }

    .chart-bars__value {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .dashboard_menu .nav-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard_menu .nav-link {
        min-height: 48px;
        padding: 10px;
        font-size: .83rem;
    }

    .home-hero {
        padding: 46px 0 !important;
    }

    .home-hero p {
        font-size: .98rem;
    }

    .product-detail-actions .btn {
        width: 100%;
    }

    .section-heading--row,
    .management-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .management-footer__inner {
        padding: 18px 0;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .home-products-section .tab-style1 .nav-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .home-products-section .tab-style1 .nav-tabs .nav-item {
        margin: 0;
    }

    .home-products-section .tab-style1 .nav-tabs .nav-link {
        height: 100%;
        padding: 10px 5px;
        font-size: .72rem;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .category-picker__dialog {
        inset: auto 12px 12px;
        width: auto;
        max-height: 78dvh;
        margin: 0;
        border-radius: 18px 18px 14px 14px;
    }

    .category-picker__surface {
        max-height: 78dvh;
    }

    .category-picker__options {
        max-height: 52dvh;
    }

    .sale-products {
        max-height: 52vh;
    }

    .shop_container {
        display: block !important;
    }

    .shop_container::after {
        display: table;
        clear: both;
        content: "";
    }

    .shop_container > .col-6 {
        display: block;
        float: left;
        width: 50%;
        max-width: 50% !important;
        padding-right: 6px;
        padding-left: 6px;
    }

    .shop_container .card-body {
        padding: 10px 8px;
    }

    .shop_container .card-body h6 {
        min-height: 52px;
        font-size: .88rem;
    }

    .product-card__title {
        min-height: 46px !important;
        font-size: .84rem !important;
    }

    .product-card__body {
        padding: 10px 8px;
    }

    .product-card__actions {
        grid-template-columns: 1fr;
    }

    .product-card__actions .btn {
        min-height: 38px;
        font-size: .76rem;
    }

    .shop_container .card-body .btn {
        min-height: 40px;
        padding: 7px 5px;
        font-size: .78rem;
    }

    .shop-heading {
        align-items: stretch !important;
        flex-direction: column;
        gap: 14px;
    }

    .shop-category-filter {
        width: 100%;
    }

    .tab-style1 .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .tab-style1 .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 576px) {
    .smart-table__toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .management-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .section {
        padding: 64px 0;
    }

    .dashboard-page,
    .inventory-page {
        padding: 28px 32px 56px;
    }

    .metric-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .management-shell .dashboard_menu {
        position: sticky;
        top: 92px;
    }
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 3px 1px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.product-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e3e7e5;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: start;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:focus-visible {
    border-color: #2fac68;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 172, 104, .16);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Catalogue, promotions, avis et annonces de la communauté. */
.catalog-filters {
    box-shadow: 0 10px 28px rgba(19, 62, 43, .06);
}

.catalog-filters .card-header {
    background: #eef6f2;
}

.catalog-heading {
    margin-bottom: 22px;
}

.catalog-heading p {
    margin-bottom: 0;
    color: var(--dwd-muted);
}

.product-card__promotion-badge,
.promotion-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #dff5e8;
    color: #09603b;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.product-detail-price del {
    margin-right: 8px;
    color: var(--dwd-muted);
    font-size: 1rem;
}

.product-detail-brand {
    margin: -8px 0 12px;
    color: var(--dwd-muted);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8b6512;
}

.product-rating a {
    color: var(--dwd-brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-reviews {
    padding-top: 42px;
    scroll-margin-top: 96px;
}

.review-card,
.review-form {
    box-shadow: 0 8px 24px rgba(19, 62, 43, .05);
}

.review-card p {
    overflow-wrap: anywhere;
}

.listing-page form[role="search"] {
    display: flex;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--dwd-border);
    border-radius: var(--dwd-radius);
    background: #fff;
}

.listing-page form[role="search"] .form-control {
    min-width: 0;
    margin-right: 0 !important;
}

.external-listing-card {
    border: 1px solid var(--dwd-border);
    box-shadow: 0 10px 28px rgba(19, 62, 43, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.external-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dwd-shadow);
}

.external-listing-card__image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #e9f2ed;
}

.external-listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.external-listing-card:hover .external-listing-card__image img {
    transform: scale(1.025);
}

.external-listing-card__placeholder,
.listing-detail-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e0f1e8, #f7faf8);
    color: var(--dwd-brand-dark);
    font-weight: 800;
    letter-spacing: .08em;
}

.listing-detail-placeholder {
    min-height: 360px;
    padding: 24px;
    border: 1px solid var(--dwd-border);
    border-radius: var(--dwd-radius);
    text-align: center;
}

.listing-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (min-width: 992px) {
    .catalog-filters {
        position: sticky;
        top: 96px;
    }
}

@media (max-width: 575.98px) {
    .catalog-page {
        padding-top: 20px;
    }

    .catalog-filters .card-body {
        padding: 14px;
    }

    .catalog-heading {
        margin-top: 4px;
    }

    .listing-page form[role="search"] {
        align-items: stretch;
        flex-direction: column;
    }

    .external-listing-card__image {
        height: 190px;
    }

    .listing-detail-placeholder {
        min-height: 220px;
    }
}
