:root {
    /* Brand */
    --brand: #EA332D;
    --brand-hover: #c83630;
    --brand-deep: #a82b25;
    --brand-light: rgba(234, 51, 45, 0.08);
    --brand-glow: rgba(234, 51, 45, 0.20);

    /* Surfaces */
    --app-bg: #f6f5f3;
    --app-card: #ffffff;
    --app-elev: #f0eeec;
    --app-border: #e8e6e3;

    /* Text */
    --app-fg: #171717;
    --app-fg2: #525252;
    --app-fg3: #737373;
    --app-fg4: #a3a3a3;

    /* Functional */
    --app-scrim: rgba(0, 0, 0, 0.45);
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 2px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-brand: 0 8px 22px var(--brand-glow);

    /* Radius */
    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-full: 9999px;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;

    /* Typography */
    --font: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

#footer-light .row.pt-1.pb-1 {
    padding: 0 15px;
    line-height: 1.5;
    font-size: 12px;
}

.eco-landing-section:last-of-type {
    padding-bottom: 20px;
}

.checkout-to-pay.orderNoteDiv {
    font-size: 14px;
}

/* All-menu submenu: desktop and mobile */
#main-menu-all.main-menu-all-sub-open .menu-all-sub-view {
    padding: 56px 24px 24px;
}

body #main-menu-all.main-menu-all-sub-open .menu-all-submenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--app-border, #e8e6e3);
}

#main-menu-all.main-menu-all-sub-open .menu-all-back-btn {
    width: 40px;
    height: 40px;
    min-width: 40px !important;
    flex: 0 0 40px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5 !important;
    color: var(--app-fg2, #525252) !important;
    font-size: 14px;
}

#main-menu-all.main-menu-all-sub-open .menu-all-back-btn:hover {
    background: var(--brand-light, rgba(234, 51, 45, 0.08)) !important;
    color: var(--brand, #EA332D) !important;
    text-decoration: none;
}

#main-menu-all.main-menu-all-sub-open .menu-all-submenu-title {
    flex: 1;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--app-fg, #171717);
    overflow-wrap: anywhere;
}

#main-menu-all.main-menu-all-sub-open .menu-all-sub-view ul.menu-all-list {
    display: block;
}

#main-menu-all.main-menu-all-sub-open .menu-all-sub-view ul.menu-all-list li a {
    display: block;
    min-height: 0;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--app-border, #e8e6e3);
    border-radius: 0;
    background: transparent;
    color: var(--app-fg, #171717);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

#main-menu-all.main-menu-all-sub-open .menu-all-sub-view ul.menu-all-list li a::after {
    content: none;
}

#main-menu-all.main-menu-all-sub-open .menu-all-sub-view ul.menu-all-list li a:hover {
    background: transparent;
    color: var(--brand, #EA332D);
}

/* Header: tablet landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar.header-3 {
        min-height: 68px;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .navbar.header-3 .container-fluid {
        min-height: 50px;
    }

    .navbar.header-3 .navbar-brand.left-logo {
        display: flex;
        align-items: center;
        height: 50px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar.header-3 .form-inline.order_1 .search-center {
        display: block !important;
        margin-right: 12px;
    }

    .navbar.header-3 .form-inline .header-search {
        width: clamp(280px, 34vw, 420px);
    }

    .navbar.header-3 .form-inline.order_1 .header-search > a {
        top: 0;
        right: 16px;
        bottom: 0;
        width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .navbar.header-3 .eco-mobile-search-row {
        display: none !important;
    }
}

/* Logged-in username: retain the desktop text styling */
.u-n-circle .u-n-name {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Checkout shipping-option alignment: desktop and mobile */
.cc-images {
    display: inline-block;
}

/* Checkout payment methods: vertically center labels and radio controls */
.saved__card.flex__cener .form-check.form-check__new > .form-check2 {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.saved__card.flex__cener .form-check.form-check__new > .form-check2 > .custome-checkbox-lable {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding-left: 52px;
}

.saved__card.flex__cener .custome-checkbox-lable-chind {
    padding-bottom: 0 !important;
    line-height: 1.4;
}

.saved__card.flex__cener .container-radio-btn-online-ordering {
    position: absolute !important;
    top: 50%;
    left: 0 !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

.saved__card.flex__cener .container-radio-btn-online-ordering input {
    inset: 0;
    width: 44px;
    height: 44px;
}

.saved__card.flex__cener .checkmark-radio-btn-online-ordering {
    top: 12px;
    left: 12px;
}

[id="sippingoptiontab"].flex__cener.border__btm {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    column-gap: 16px;
    min-height: 72px;
    margin: 0 0 10px !important;
    padding: 12px 24px 12px 16px !important;
    box-sizing: border-box;
}

[id="sippingoptiontab"] > .delivery__add {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

[id="sippingoptiontab"] .form-check,
[id="sippingoptiontab"] .form-check2 {
    width: 100%;
    margin: 0;
    padding: 0;
}

[id="sippingoptiontab"] .custome-checkbox-lable {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding-left: 52px;
}

[id="sippingoptiontab"] .container-radio-btn-online-ordering {
    position: absolute !important;
    top: 50%;
    left: 0 !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}

[id="sippingoptiontab"] .container-radio-btn-online-ordering input {
    inset: 0;
    width: 44px;
    height: 44px;
}

[id="sippingoptiontab"] .checkmark-radio-btn-online-ordering {
    top: 12px;
    left: 12px;
}

[id="sippingoptiontab"] > .delivery__add.text-right {
    padding-right: 16px !important;
    text-align: right !important;
}

[id="sippingoptiontab"] .cart_link {
    display: block;
    padding-top: 0 !important;
    line-height: 1.4;
    white-space: nowrap;
}

/* Product gallery thumbnails: mobile and tablet */
@media (max-width: 1199px) {
    .gallery-thumb-mob {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        overflow-x: auto;
        padding: 4px 0 8px;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumb-mob .slideshow-thumbnails {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
        object-fit: cover;
        margin-bottom: 0;
    }
}

/* Checkout summary: use the full row on mobile and tablet */
@media (max-width: 991px) {
    /* Keep category listings full-width when the shop layout stacks. */
    .eco-shop-main {
        width: 100%;
    }

    #checkoutcontainer > .cart-right-part {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #checkoutcontainer #cartajaxdata {
        width: 100%;
    }
}

/* Tablet header: remove the legacy 50px logo offset */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar.header-3 .navbar-brand.left-logo {
        margin-left: 8px;
    }
}

/* Responsive viewport: mobile */
@media (max-width: 767px) {
    span.card__name.col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Logged-in user initial and account dropdown */
    .u-n-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0 !important;
        line-height: 1;
    }

    .u-n-circle .u-n-name {
        display: block;
        font-size: 0;
        line-height: 1;
    }

    .u-n-circle .u-n-name::first-letter {
        font-size: 20px;
        color: #fff;
    }

    #dropdownMenuLink + .dropdown-menu {
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 180px;
        max-width: calc(100vw - 24px);
        transform: none !important;
    }

    #dropdownMenuLink + .dropdown-menu .dropdown-item {
        white-space: nowrap;
    }

    .cc-images {
        display: block;
    }

    [id="sippingoptiontab"].flex__cener.border__btm {
        column-gap: 12px;
        padding: 10px 18px 10px 12px !important;
    }

    /* Checkout radio controls */
    .custome-checkbox-lable {
        position: relative;
        justify-content: flex-start !important;
        min-height: 44px;
        padding-left: 44px;
    }

    .container-radio-btn-online-ordering {
        position: absolute !important;
        top: 50%;
        left: 0 !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        transform: translateY(-50%);
    }

    .container-radio-btn-online-ordering input {
        inset: 0;
        width: 44px;
        height: 44px;
    }

    .checkmark-radio-btn-online-ordering {
        top: 12px;
        left: 12px;
    }

    /* Checkout discount code: keep input and button on one line */
    .cart_bottom_s .apply-discount-sec {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .cart_bottom_s .apply-discount-sec .col-md-7 {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
    }

    .cart_bottom_s .apply-discount-sec .col-md-5 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
    }

    .cart_bottom_s .apply-discount-sec .btn {
        margin-top: 0;
        width: auto !important;
        min-width: 88px;
    }

    .eco-toolbar {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 10px;
    }

    .eco-sort-by {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .eco-toolbar-label {
        display: block;
        white-space: nowrap;
    }

    .eco-toolbar-select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .eco-toolbar-count {
        display: block;
        white-space: nowrap;
        font-size: 12px;
    }

    .eco-view-toggle {
        margin-left: 0;
        flex-shrink: 0;
    }

    .ajax-cart-data-item-name {
        width: 100%;
    }

    .ajax-cart-data-item-price {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    #main-menu-all.main-menu-all-sub-open .menu-all-sub-view {
        padding: 52px 20px 20px;
    }

    #main-menu-all.main-menu-all-sub-open .menu-all-submenu-header {
        padding-bottom: 12px;
    }

    #main-menu-all.main-menu-all-sub-open .menu-all-submenu-title {
        font-size: 18px;
    }
}

/* Order confirmation */
.order_confirmation .order__confirmed__top p {
    margin: 0 0 4px 15px;
}

.order_confirmation .order__confirmed__top h1 {
    padding: 0 15px 15px;
}

.order_confirmation .order__confirmed__top h1::before {
    content: "\f00c";
    display: inline-block;
    font-family: FontAwesome;
    font-weight: normal;
    margin-right: 20px;
}

.order_confirmation .shopping-cart.full__view .shopping-cart-items li > .col-9 {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
}

.order_confirmation .shopping-cart.full__view .shopping-cart-items img {
    grid-column: 1;
    grid-row: 1;
    float: none;
    margin-right: 12px;
}

.order_confirmation .shopping-cart.full__view .shopping-cart-items .item-name,
.order_confirmation .shopping-cart.full__view .shopping-cart-items .item-quantity {
    grid-column: 2;
}

.order_confirmation .shopping-cart.full__view .shopping-cart-items .item-quantity {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
}

.order_confirmation .orderNoteRow td > div > span,
.order_confirmation .orderNoteRow .order-note-text {
    font-size: 14px;
}

.order_confirmation .orderNoteRow .order-note-text {
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .order_confirmation .order__confirmed__top h1 {
        display: flex;
        align-items: center;
        font-size: 30px;
        line-height: 1.2;
    }
}

@media (max-width: 575px) {
    .order_confirmation .order__confirmed__top p {
        margin-left: 0;
    }

    .order_confirmation .order__confirmed__top h1 {
        padding-right: 0;
        padding-left: 0;
        font-size: 28px;
    }

    .order_confirmation .order__confirmed__top h1::before {
        margin-right: 12px;
    }
}

.header-search a {
    top: 10px;
}
