/* ==========================================================================
   SERUEV.COM - style.css
   Shared pieces only: topbar, header, mega menu, footer, buttons,

   product card, breadcrumb, pagination, forms.
   Each page's own CSS lives in its own file (home.css, product.css ...).

   Theme colours (no CSS variables in use - plain hex):
     Dark green (topbar)  #0b5e2e
     Primary green        #0f7a3c
     Hover green          #0a5c2d
     Light green tint     #e9f6ed
     Lighter green tint   #f2faf5
     White                #ffffff
     Page background      #f6f8f7
     Text                 #1c2620
     Muted text           #6b7b72
     Border               #e3e8e5
     Star gold            #f5a623
     Discount red         #d92d20
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1c2620;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1c2620;
    line-height: 1.3;
}

a {
    color: #0f7a3c;
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: #0a5c2d;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0f7a3c;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #0f7a3c;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    color: #ffffff;
}

/* --- Buttons ------------------------------------------------------------- */

.btn-brand {
    background: #0f7a3c;
    border: 1px solid #0f7a3c;
    color: #ffffff;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 6px;
    transition: background .15s ease, border-color .15s ease;
    display: inline-block;
    text-align: center;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #0a5c2d;
    border-color: #0a5c2d;
    color: #ffffff;
}

.btn-brand:disabled {
    background: #8dc4a5;
    border-color: #8dc4a5;
    cursor: not-allowed;
}

.btn-brand-outline {
    background: transparent;
    border: 1px solid #0f7a3c;
    color: #0f7a3c;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
    display: inline-block;
    text-align: center;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background: #0f7a3c;
    color: #ffffff;
}

/* --- Section headings ---------------------------------------------------- */

.section {
    padding: 40px 0;
}

.section-tight {
    /* Do not use the shorthand - it zeroes the left/right padding of .container
       and the .row inside then spills out. */
    padding-top: 26px;
    padding-bottom: 26px;
}

.section-light {
    background: #f6f8f7;
}

/* Heading + "View All" on one line (as in the design) */
.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-bar h2 {
    font-size: 22px;
    margin: 0;
}

.section-bar .view-all {
    font-size: 14px;
    font-weight: 600;
    color: #0f7a3c;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.section-head p {
    color: #6b7b72;
    margin: 0;
}

/* Heading left, "View all" link right */
.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #0f7a3c;
    white-space: nowrap;
}

.section-more:hover {
    color: #0a5c2d;
}

/* --- Topbar (the thin green strip at the very top) ---------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.topbar {
    background: #0b5e2e;
    color: #ffffff;
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.topbar-points {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.topbar-points li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.topbar-points svg {
    opacity: .9;
    flex-shrink: 0;
}

/* If the admin enters long text, truncate with "..." on small screens instead of overflowing */
.topbar-points li > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.topbar-links a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.topbar-links a:hover {
    color: #b9e7cb;
}

.topbar-sep {
    opacity: .4;
}

/* --- Header main (logo + search + actions) ------------------------------- */

.header-main {
    border-bottom: 1px solid #e3e8e5;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 74px;
}

.header-burger {
    background: none;
    border: none;
    color: #1c2620;
    padding: 4px;
    line-height: 0;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo-mark {
    width: auto;
    height: 40px;
    flex-shrink: 0;
}

.header-logo-name {
    font-size: 25px;
    font-weight: 800;
    color: #1c2620;
    letter-spacing: -.6px;
    line-height: 1.05;
    display: block;
}

.header-logo-name span {
    color: #0f7a3c;
}

.header-logo-tag {
    display: block;
    font-size: 9px;
    letter-spacing: 1.6px;
    color: #6b7b72;
    font-weight: 600;
    text-transform: uppercase;
}

.header-search {
    flex: 1 1 auto;
    max-width: 560px;
    display: flex;
    border: 1px solid #d7ded9;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.header-search:focus-within {
    border-color: #0f7a3c;
    box-shadow: 0 0 0 3px rgba(15, 122, 60, .1);
}

.header-search-icon {
    display: flex;
    align-items: center;
    padding-left: 13px;
    color: #9aa8a0;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: #1c2620;
    min-width: 0;
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    border: none;
    background: #0f7a3c;
    color: #ffffff;
    padding: 0 20px;
    line-height: 0;
}

.header-search button:hover {
    background: #0a5c2d;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #1c2620;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.header-action:hover {
    color: #0f7a3c;
    background: #f2faf5;
}

.header-action svg {
    flex-shrink: 0;
}

.header-action-label {
    white-space: nowrap;
}

.header-cart-icon {
    position: relative;
    display: inline-flex;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #d92d20;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

/* --- Nav bar + All Categories mega menu ---------------------------------- */

.header-nav {
    background: #eef6f1;
    border-top: 1px solid #e3e8e5;
    border-bottom: 1px solid #e3e8e5;
}

.header-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    /* All links on one line - Contact must not drop to the next line */
    flex-wrap: nowrap;
    width: 100%;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 11px;
    white-space: nowrap;
    color: #1c2620;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a,
.nav-list > li > a.active {
    color: #0f7a3c;
    border-bottom-color: #0f7a3c;
}

.nav-caret {
    transition: transform .15s ease;
    opacity: .6;
}

.nav-list > li:hover .nav-caret {
    transform: rotate(180deg);
}

.mega {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #e3e8e5;
    border-top: 3px solid #0f7a3c;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 1040;
}

.nav-list > li.has-mega:hover .mega,
.nav-list > li.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.mega-item {
    padding: 9px 20px;
    color: #1c2620;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.mega-item:hover {
    background: #f2faf5;
    color: #0f7a3c;
    border-left-color: #0f7a3c;
}

/* --- Mobile drawer ------------------------------------------------------- */

.mobile-nav {
    width: 310px;
}

.mobile-nav .offcanvas-header {
    border-bottom: 1px solid #e3e8e5;
    padding: 18px 20px;
}

.mobile-nav .offcanvas-body {
    padding: 0 0 20px;
}

.drawer-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e9f6ed;
    margin: 14px 16px;
    padding: 14px 16px;
    border-radius: 10px;
}

.drawer-note svg {
    color: #0f7a3c;
    flex-shrink: 0;
}

.drawer-note strong {
    display: block;
    font-size: 15px;
    color: #0b5e2e;
}

.drawer-note span {
    font-size: 12px;
    color: #4a6355;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.mobile-nav-list > li > a,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    color: #1c2620;
    font-weight: 600;
    font-size: 15px;
    background: none;
    border: none;
    text-align: left;
    border-radius: 9px;
}

.mobile-nav-list > li > a.active {
    background: #e9f6ed;
    color: #0b5e2e;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-toggle:hover {
    background: #f2faf5;
    color: #0f7a3c;
}

.mobile-nav-list svg {
    color: #0f7a3c;
    flex-shrink: 0;
}

.mobile-nav-toggle .chev {
    margin-left: auto;
    color: #9aa8a0;
    transition: transform .15s ease;
}

.mobile-nav-toggle.collapsed .chev {
    transform: rotate(-90deg);
}

.mobile-nav-sub {
    display: block;
    padding: 9px 14px 9px 50px;
    color: #6b7b72;
    font-size: 14px;
}

.mobile-nav-sub:hover {
    color: #0f7a3c;
}

.drawer-divider {
    height: 1px;
    background: #e3e8e5;
    margin: 10px 24px;
}

.drawer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 18px 0 4px;
}

.drawer-social a {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.drawer-social .s-fb { background: #1877f2; }
.drawer-social .s-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.drawer-social .s-yt { background: #ff0000; }
.drawer-social .s-in { background: #0a66c2; }

/* --- Mobile bottom bar --------------------------------------------------- */

.bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e3e8e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
    z-index: 1035;
}

.bottom-bar-inner {
    display: flex;
}

.bottom-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px;
    color: #6b7b72;
    font-size: 11px;
    font-weight: 600;
    position: relative;
}

.bottom-bar a.active,
.bottom-bar a:hover {
    color: #0f7a3c;
}

.bottom-bar .cart-badge {
    top: 2px;
    right: 50%;
    margin-right: -22px;
}

/* --- Flash messages ------------------------------------------------------ */

.flash-wrap {
    padding-top: 16px;
}

.flash-wrap .alert {
    border-radius: 7px;
    border: none;
    font-size: 14px;
}

.alert-success {
    background: #e9f6ed;
    color: #0b5e2e;
}

.alert-danger {
    background: #fdeceb;
    color: #b42318;
}

.alert-warning {
    background: #fff8e6;
    color: #8a6100;
}

.alert-info {
    background: #eaf4fd;
    color: #0b4a75;
}

/* --- Product card -------------------------------------------------------- */

.product-card {
    background: #ffffff;
    border: 1px solid #e3e8e5;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(11, 94, 46, .1);
    transform: translateY(-3px);
    border-color: #bfe0cc;
}

.product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .25s ease;
}

.product-card:hover .product-card-media img {
    transform: scale(1.05);
}

/* Wishlist heart */
.wish-btn {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e3e8e5;
    background: #ffffff;
    color: #9aa8a0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    transition: color .15s ease, border-color .15s ease;
}

.wish-btn:hover {
    color: #d92d20;
    border-color: #f3bdb8;
}

.wish-btn.on {
    color: #d92d20;
    border-color: #f3bdb8;
    background: #fdeceb;
}

.product-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: #0f7a3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 5px;
    z-index: 1;
}

.product-badge-out {
    background: #6b7b72;
}

.product-card-body {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 7px;
    min-height: 40px;
}

.product-card-title a {
    color: #1c2620;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a:hover {
    color: #0f7a3c;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.price-now {
    font-size: 17px;
    font-weight: 800;
    color: #0f7a3c;
}

.price-was {
    font-size: 13px;
    color: #9aa8a0;
    text-decoration: line-through;
}

.price-off {
    font-size: 11px;
    font-weight: 700;
    color: #d92d20;
    background: #fdeceb;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Star rating */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6b7b72;
}

.stars svg {
    color: #f5a623;
}

.stars .count {
    margin-left: 4px;
}

.product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: auto;
    background: #0f7a3c;
    border: 1px solid #0f7a3c;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 9px;
    border-radius: 6px;
    transition: background .15s ease;
}

.product-card-btn:hover {
    background: #0a5c2d;
    color: #ffffff;
}

.product-card-btn:disabled {
    background: #e3e8e5;
    border-color: #e3e8e5;
    color: #6b7b72;
    cursor: not-allowed;
}

/* --- Trust strip --------------------------------------------------------- */

.trust-strip {
    display: flex;
    background: #ffffff;
    border: 1px solid #e3e8e5;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.trust-item {
    flex: 1;
    text-align: center;
    padding: 18px 8px;
    border-right: 1px solid #e3e8e5;
}

.trust-item:last-child {
    border-right: none;
}

.trust-item svg {
    color: #0f7a3c;
    margin-bottom: 7px;
}

.trust-item span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1c2620;
    line-height: 1.35;
}

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb-bar {
    background: #f6f8f7;
    border-bottom: 1px solid #e3e8e5;
    padding: 12px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb-list li + li::before {
    content: "/";
    color: #9aa8a0;
    margin-right: 6px;
}

.breadcrumb-list a {
    color: #6b7b72;
}

.breadcrumb-list a:hover {
    color: #0f7a3c;
}

.breadcrumb-list .active {
    color: #1c2620;
    font-weight: 600;
}

/* --- Pagination ---------------------------------------------------------- */

.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 32px;
    list-style: none;
    padding: 0;
}

.pager a,
.pager span {
    display: inline-block;
    min-width: 38px;
    padding: 7px 11px;
    text-align: center;
    border: 1px solid #e3e8e5;
    border-radius: 6px;
    color: #1c2620;
    font-size: 14px;
    font-weight: 600;
}

.pager a:hover {
    border-color: #0f7a3c;
    color: #0f7a3c;
}

.pager .active span {
    background: #0f7a3c;
    border-color: #0f7a3c;
    color: #ffffff;
}

.pager .disabled span {
    color: #c3ccc7;
}

/* --- Empty state --------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: #6b7b72;
}

.empty-state svg {
    color: #d7ded9;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* --- Forms --------------------------------------------------------------- */

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-label .req {
    color: #d92d20;
}

.form-control,
.form-select {
    border: 1px solid #d7ded9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0f7a3c;
    box-shadow: 0 0 0 3px rgba(15, 122, 60, .12);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #d92d20;
}

.invalid-feedback {
    font-size: 13px;
    color: #d92d20;
}

.field-hint {
    font-size: 12px;
    color: #6b7b72;
    margin-top: 4px;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
    background: #f2faf5;
    border-top: 1px solid #d9ece1;
    color: #4a6355;
    font-size: 14px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-col {
    margin-bottom: 26px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo-mark {
    width: auto;
    height: 38px;
    flex-shrink: 0;
}

.footer-logo-name {
    font-size: 23px;
    font-weight: 800;
    color: #1c2620;
    line-height: 1.05;
    display: block;
}

.footer-logo-name span {
    color: #0f7a3c;
}

.footer-logo-tag {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #6b7b72;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-tagline {
    font-style: italic;
    color: #0f7a3c;
    font-size: 15px;
    margin: 6px 0 14px;
}

.footer-about {
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-title {
    color: #1c2620;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #4a6355;
}

.footer-links a:hover {
    color: #0f7a3c;
    padding-left: 3px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.footer-social .s-fb { background: #1877f2; }
.footer-social .s-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.footer-social .s-yt { background: #ff0000; }
.footer-social .s-in { background: #0a66c2; }

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact svg {
    color: #0f7a3c;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: #4a6355;
}

.footer-contact a:hover {
    color: #0f7a3c;
}

.footer-bottom {
    border-top: 1px solid #d9ece1;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
}

/* --- Badges (admin + order status) --------------------------------------- */

.badge-soft {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green  { background: #e9f6ed; color: #0b5e2e; }
.badge-red    { background: #fdeceb; color: #b42318; }
.badge-amber  { background: #fff8e6; color: #8a6100; }
.badge-blue   { background: #eaf4fd; color: #0b4a75; }
.badge-grey   { background: #f1f3f2; color: #4a6355; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .topbar-points li:nth-child(4) {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .header-main-inner {
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-action-label {
        display: none;
    }

    .topbar-points li:nth-child(n+3) {
        display: none;
    }

    /* The bottom bar shows on mobile, so the page needs room below */
    .bottom-bar {
        display: block;
    }

    body {
        padding-bottom: 62px;
    }

    .trust-strip {
        flex-wrap: wrap;
    }

    .trust-item {
        flex: 0 0 33.333%;
        border-bottom: 1px solid #e3e8e5;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .topbar-inner {
        gap: 10px;
    }

    /* Only one point is shown, and the text is cut off if needed */
    .topbar-points {
        gap: 14px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar-points li {
        min-width: 0;
        max-width: 100%;
    }

    .topbar-points li:nth-child(n+2) {
        display: none;
    }

    .topbar-links {
        gap: 10px;
        flex: 0 0 auto;
    }

    .header-logo-name {
        font-size: 21px;
    }

    .header-logo-mark {
        height: 34px;
    }

    .section {
        padding: 28px 0;
    }

    .section-bar h2 {
        font-size: 18px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .trust-item {
        flex: 0 0 50%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 409.98px) {
    /* There is not enough room - drop the line below the logo, otherwise
       the account/cart icons wrap onto a second line. */
    .header-logo-tag {
        display: none;
    }

    .header-logo-name {
        font-size: 20px;
    }
}

/* --- Category icon when the admin picked their own image ----------------- */

.cat-icon-img {
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

/* Slightly larger looks better in the mobile drawer and the "All Categories" panel */
.mobile-nav-list .cat-icon-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

/* --- Checkout progress bar (Cart > Address > Payment > Confirm) ---------- */

.flow-steps {
    list-style: none;
    margin: 0;
    padding: 18px 16px 16px;
    background: #f6f8f7;
    border-bottom: 1px solid #e3e8e5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.flow-step {
    position: relative;
    flex: 0 1 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

/* The line between two steps */
.flow-step::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #dbe4de;
}

.flow-step:first-child::before {
    display: none;
}

.flow-step.is-done::before,
.flow-step.is-now::before {
    background: #0f7a3c;
}

.flow-step-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #dbe4de;
    color: #9aa8a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step.is-done .flow-step-dot {
    background: #0f7a3c;
    border-color: #0f7a3c;
    color: #ffffff;
}

.flow-step.is-now .flow-step-dot {
    background: #ffffff;
    border-color: #0f7a3c;
    color: #0f7a3c;
    box-shadow: 0 0 0 4px rgba(15, 122, 60, .13);
}

.flow-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #9aa8a0;
    letter-spacing: .2px;
}

.flow-step.is-done .flow-step-label {
    color: #33503f;
}

.flow-step.is-now .flow-step-label {
    color: #0b5e2e;
}

/* --- Trust strip on the checkout / payment page ------------------------- */


.checkout-trust {
    list-style: none;
    margin: 30px 0 8px;
    padding: 18px 0 0;
    border-top: 1px solid #e3e8e5;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.checkout-trust li {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.checkout-trust svg {
    color: #0f7a3c;
    flex-shrink: 0;
}

.checkout-trust span {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #6b7b72;
    line-height: 1.45;
}

.checkout-trust strong {
    font-size: 13px;
    color: #1c2620;
}

@media (max-width: 575.98px) {
    .flow-steps {
        padding: 14px 8px 12px;
    }

    .flow-step {
        flex: 1 1 0;
    }

    .flow-step-label {
        font-size: 11px;
    }

    .checkout-trust li {
        flex: 1 1 calc(50% - 14px);
    }
}
