/* =========================================================
   NOERP SALES / SHOP
   Product grids, filters, cart drawer, checkout, and Horento shop overrides.
========================================================= */

/* =========================================================
   FILTER BAR
========================================================= */
/* =========================================================
   MODERN FILTER BAR
========================================================= */

.pretty-filters {
    padding: 26px 26px 20px;
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow-soft);
}

.filters-row {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.filter-item label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    padding-left: 6px;
}

.filter-input,
.filter-select {
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: var(--shadow-light);
    transition: 0.15s ease;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-footer {
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}


/* =========================================================
   PRODUCT GRID
========================================================= */
.product-grid {
    margin-top: 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width:900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: linear-gradient(135deg,#ffffff,#f3f6ff);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: var(--shadow-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.15s ease;
    z-index: 1;
    position: relative;
}
.product-card .product-image-wrapper,
.product-card .product-image-img {
    pointer-events: none;
}

.btn-add-to-cart,
.qty-control,
.qty-control * {
    pointer-events: auto; /* deze moeten blijven werken */
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-soft);
}


.product-image-wrapper {
    aspect-ratio: 4/3;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image {
    aspect-ratio: 4/3;
    background: linear-gradient(145deg,#17396a,#264c8e);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e6eeff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}


.product-meta-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.product-bubble {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 30px;
    border: 1px solid rgba(37,99,235,0.16);
    border-radius: 999px;
    padding: 6px 12px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(239,246,255,0.95) 100%);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255,255,255,.9);
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.1;
}

.product-bubble-supplier {
    border-color: rgba(148, 115, 62, .18);
    background: linear-gradient(180deg, #ffffff 0%, #f7efe0 100%);
    color: var(--text-muted);
}

.product-price {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add-to-cart {
    background: var(--primary-soft);
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.15s ease;
}
.btn-add-to-cart:hover {
    background: var(--primary);
    color: white;
}

.stock {
    font-size: 11px;
    color: var(--text-muted);
}

/* simple qty control */
.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    overflow: hidden;
    font-size: 12px;
}
.qty-control button {
    border: none;
    background: transparent;
    padding: 4px 8px;
    cursor: pointer;
}
.qty-control input {
    width: 36px;
    border: none;
    text-align: center;
    font-size: 12px;
    outline: none;
}

/* =========================================================
   FLOATING CART DRAWER
========================================================= */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: flex-end;
    backdrop-filter: blur(0px);
    z-index: 100;
}

.cart-drawer-overlay.open {
    display: flex;
    backdrop-filter: blur(3px);
}

.cart-drawer {
    width: 360px;
    background: white;
    height: 100%;
    border-radius: 20px 0 0 20px;
    padding: 20px;
    box-shadow: -14px 0px 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.cart-drawer.open {
    transform: translateX(0%);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
}

.drawer-close {
    border: 1px solid var(--border);
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
}

/* =========================================================
   CART ITEMS
========================================================= */
.cart-items {
    max-height: calc(100% - 200px);
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 18px;
}
.cart-item {
    padding: 8px 0;
    border-bottom: 1px dashed #d0d6e6;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 600;
}
.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.no-cart-items {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   CHECKOUT BUTTON
========================================================= */
.checkout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37,99,235,0.45);
}

.checkout-info-banner {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.45;
}
.checkout-info-banner strong {
    color: var(--primary-dark);
}
/* =========================================================
   TOAST
========================================================= */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #0f172a;
    color: white;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.6);
    transition: 0.2s ease;
    opacity: 0;
    z-index: 200;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/* ORDER LINES — CHECKOUT GRID */
.order-line-header,
.order-line-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)  /* product flex */
        140px           /* qty */
        120px           /* unit */
        120px;          /* total */

    gap: 12px;
    align-items: center;
}

.order-line-header2,
.order-line-row2 {
  display: grid;
  grid-template-columns:
    1fr        /* product */
    70px       /* qty */
    120px      /* unit */
    110px      /* VAT */
    70px;     /* total */
  gap: 12px;
  align-items: start;
}

.total-label {
  text-align: right;
  font-weight: 600;
}

.total-row .col-total {
  font-weight: 600;
}

.total-grand {
  border-top: 2px solid var(--border-color);
  margin-top: 8px;
}


.order-line-header {
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.order-line-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-line-row:last-child {
    border-bottom: none;
}

.ol-col-unit,
.ol-col-total {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ol-col-qty {
    display: flex;
    justify-content: center;   /* align same as unit/total */
}

.order-line-header div:not(:first-child) {
    text-align: right;
}


.order-lines-box {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

.order-lines-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.order-lines-separator {
    width: 100%;
    height: 1px;
    margin: 26px 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.15),
        transparent
    );
}



/* =========================================================
   USER BUBBLE (topbar user corner)
========================================================= */
.user-bubble {
    display: flex;
    align-items: center;
    gap: 10px;

    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: var(--shadow-light);
    cursor: default;

    transition: 0.15s ease;
}

.user-bubble:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.user-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--primary-dark);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.logout-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* LOGIN / LOGOUT BUTTONS (DESKTOP) */
.login-btn,
.logout-btn {
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--brand-accent);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: opacity .2s ease;
}

.login-btn:hover,
.logout-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   dit is voor de website product pagina, dus wanneer je erop klikt
========================================================= */

.product-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
}

.product-modal-overlay.open {
    display: flex;
}

.product-modal {
    width: 92%;
    max-width: 980px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.product-modal-content {
    display: flex;
    gap: 26px;
}

.product-modal-left {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 10px;
    display: flex;
    justify-content: center;
}

.pm-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.pm-supplier {
    font-size: 12px;
    color: var(--text-muted);
}

.pm-name {
    font-size: 20px;
    font-weight: 700;
}

.pm-category {
    font-size: 13px;
    color: var(--primary-dark);
}

.pm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}

.pm-stock {
    font-size: 13px;
    color: var(--text-muted);
}

.pm-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
}

.pm-qty-control button {
    border: none;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
}

.pm-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 14px;
}

.pm-add-btn {
    margin-top: 8px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}


.orders-th {
    text-align:left;
    padding:14px 18px;
    font-size:14px;
    font-weight:700;
    color:var(--primary-dark);
    border-bottom:1px solid var(--border);
}

.orders-row {
    transition:0.15s ease;
}

.orders-row:hover {
    background:var(--primary-soft);
}

.orders-td {
    padding:14px 18px;
    font-size:14px;
    color:var(--text-main);
    border-bottom:1px solid var(--border);
}

.orders-view-btn {
    color:var(--primary);
    font-weight:600;
    text-decoration:none;
    font-size:13px;
}

.pagination-wrapper {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    box-shadow: var(--shadow-light);
    transition: 0.15s ease;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    cursor: default;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.pagination-bar {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: var(--shadow-light);
    transition: 0.15s ease;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
}

.pagination-number {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}




/* =========================================================
   MOBILE ORDER HISTORY / ORDER DETAIL
========================================================= */
@media (max-width: 760px) {
    .page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .orders-list-card {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 !important;
        overflow: visible !important;
    }

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

    .orders-mobile-table thead {
        display: none;
    }

    .orders-mobile-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .orders-mobile-table .orders-row {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow-light);
        padding: 14px;
    }

    .orders-mobile-table .orders-row:hover {
        background: #fff;
    }

    .orders-mobile-table .orders-td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        border-bottom: 0;
        padding: 7px 0;
        text-align: right !important;
        font-size: 14px;
    }

    .orders-mobile-table .orders-td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: var(--text-muted);
        font-weight: 700;
        text-align: left;
    }

    .orders-mobile-table .orders-td:first-child {
        align-items: center;
        padding-top: 0;
        font-size: 16px;
        font-weight: 800;
        color: var(--primary-dark);
    }

    .orders-mobile-table .orders-action-cell {
        padding-top: 12px;
    }

    .orders-mobile-table .orders-action-cell::before {
        display: none;
    }

    .orders-mobile-table .orders-action-cell a,
    .orders-mobile-table .orders-view-btn,
    .orders-mobile-table .btn-small {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        width: 100%;
        border-radius: 999px;
        background: var(--primary);
        color: #fff !important;
        font-weight: 800;
        text-decoration: none;
        box-shadow: var(--shadow-light);
    }

    .pagination-wrapper,
    .pagination-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-btn,
    .pagination-number {
        min-width: 42px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .order-lines-box {
        padding: 16px;
        margin-top: 20px;
        border-radius: 18px;
    }

    .order-line-header,
    .order-line-header2 {
        display: none;
    }

    .order-line-row,
    .order-line-row2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 14px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .order-line-row .ol-col-name,
    .order-line-row2 .col-name {
        grid-column: 1 / -1;
        font-size: 15px;
    }

    .order-line-row .ol-col-qty,
    .order-line-row .ol-col-unit,
    .order-line-row .ol-col-total,
    .order-line-row2 .col-qty,
    .order-line-row2 .col-unit,
    .order-line-row2 .col-total {
        display: flex;
        flex-direction: column;
        gap: 3px;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        font-variant-numeric: tabular-nums;
    }

    .order-line-row .ol-col-qty::before,
    .order-line-row2 .col-qty::before {
        content: "Qty";
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .order-line-row .ol-col-unit::before,
    .order-line-row2 .col-unit:nth-of-type(3)::before {
        content: "Unit";
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .order-line-row2 .col-unit:nth-of-type(4)::before {
        content: "VAT";
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .order-line-row .ol-col-total::before,
    .order-line-row2 .col-total::before {
        content: "Total";
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .order-line-row2.total-row {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 9px 0;
    }

    .order-line-row2.total-row .col-name,
    .order-line-row2.total-row .col-qty,
    .order-line-row2.total-row > .col-unit:not(.total-label) {
        display: none;
    }

    .order-line-row2.total-row .total-label,
    .order-line-row2.total-row .col-total {
        display: block;
        text-align: left;
    }

    .order-line-row2.total-row .col-total {
        text-align: right;
    }

    .order-line-row2.total-row .total-label::before,
    .order-line-row2.total-row .col-total::before {
        content: none;
    }

    .total-grand {
        margin-top: 12px;
        padding-top: 14px !important;
    }

    .pretty-filters .order-line-card {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .pretty-filters .order-line-card a,
    .pretty-filters .order-line-card button,
    .pretty-filters .order-line-card .btn-add-to-cart {
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
body.brand-food .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body.brand-food .product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 430px;
    box-shadow: 0 10px 28px rgba(0, 49, 40, .07);
}

body.brand-food .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

body.brand-food .product-image-wrapper {
    height: 150px;
    aspect-ratio: auto;
    background: radial-gradient(circle at 40% 35%, rgba(0, 102, 83, .14), transparent 34%), var(--primary-soft);
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    box-shadow: none;
}

body.brand-food .product-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

body.brand-food .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

body.brand-food .product-bubble {
    border-color: rgba(0, 102, 83, .18);
    background: linear-gradient(180deg, #ffffff 0%, rgba(232, 246, 241, .98) 100%);
    color: var(--primary);
}

body.brand-food .product-bubble-supplier {
    border-color: rgba(148, 115, 62, .18);
    background: linear-gradient(180deg, #fffaf2 0%, #f2eadc 100%);
    color: var(--text-muted);
}

body.brand-food .chip {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .75rem;
    font-weight: 900;
}

body.brand-food .chip.muted {
    background: #f2eadc;
    color: var(--text-muted);
}

body.brand-food .product-card h3,
body.brand-food .product-name {
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

body.brand-food .product-card p,
body.brand-food .product-description {
    color: var(--text-muted);
    line-height: 1.55;
    font-size: .94rem;
    margin: 0 0 12px;
}

body.brand-food .product-bottom {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

body.brand-food .stock {
    color: var(--primary);
    font-size: .84rem;
    font-weight: 900;
}

body.brand-food .stock.low { color: #a26300; }
body.brand-food .stock.out { color: #a52222; }

body.brand-food .product-price {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    color: var(--primary-dark);
}

body.brand-food .product-price strong {
    color: var(--primary);
    font-size: 1.45rem;
    font-weight: 900;
}

body.brand-food .product-price small {
    display: block;
    color: var(--text-muted);
    font-size: .82rem;
}

body.brand-food .btn-add-to-cart {
    background: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

body.brand-food .qty-control {
    border-color: var(--border);
    border-radius: 999px;
}

@media (max-width: 900px) {
    body.brand-food .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.brand-food .site-header .logo-mark img {
        width: 150px !important;
    }
}

@media (max-width: 600px) {
    body.brand-food .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Horento shop filters: align webshop filter UI with the concept styling. */
body.brand-food .shop-filters-panel {
    position: sticky;
    top: 118px;
    margin-bottom: 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 49, 40, .08);
}

body.brand-food .shop-filters-panel .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

body.brand-food .shop-filters-panel .filter-header h2 {
    color: var(--text-main);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

body.brand-food .shop-filters-panel .filters-row {
    align-items: stretch;
    gap: 0;
}

body.brand-food .shop-filters-panel .filter-item {
    flex: 1 1 220px;
    gap: 10px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

body.brand-food .shop-filters-panel .filter-item label {
    padding-left: 0;
    color: var(--text-main);
    font-weight: 900;
}

body.brand-food .shop-filters-panel .filter-input,
body.brand-food .shop-filters-panel .filter-select {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: none;
    color: var(--text-main);
}

body.brand-food .shop-filters-panel .filter-input:focus,
body.brand-food .shop-filters-panel .filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

body.brand-food .shop-filters-panel .filter-footer {
    border-top: 1px solid var(--border);
    margin-top: 18px;
    padding-top: 14px;
}

body.brand-food .shop-filters-panel .link-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
}

body.brand-food .category-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 49, 40, .08);
    top: 118px;
}

body.brand-food .category-label:hover,
body.brand-food .category-label.active {
    background: var(--primary-soft);
    color: var(--primary);
}

body.brand-food .product-image,
body.brand-food .product-card .product-image {
    background: radial-gradient(circle at 40% 35%, rgba(0, 102, 83, .14), transparent 34%), var(--primary-soft);
    color: var(--primary);
}

body.brand-food .pm-carousel-item.active {
    border-color: var(--primary);
}

body.brand-food .product-card {
    min-height: 390px;
}

/* Webshop filters: keep all filtering controls as a modern left rail next to products. */
.shop-layout {
    align-items: start;
}

.shop-main {
    min-width: 0;
}

.shop-filters-panel {
    height: fit-content;
    position: sticky;
    top: 118px;
}

.shop-filters-panel .filters-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.shop-filters-panel .filter-item {
    min-width: 0;
}

.shop-filters-panel .category-filter-tree {
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.shop-filters-panel .category-filter-group {
    gap: 10px;
}

.filter-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-filter-toggle,
.mobile-filter-backdrop,
.mobile-filter-close {
    display: none;
}

body.brand-food .shop-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
}

body.brand-food .shop-main {
    min-width: 0;
}

body.brand-food .shop-filters-panel {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(0, 49, 40, .09);
}

body.brand-food .shop-filters-panel .filter-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

body.brand-food .shop-filters-panel .filters-row {
    display: grid;
    grid-template-columns: 1fr;
}

body.brand-food .shop-filters-panel .filter-item {
    flex: none;
    padding-top: 18px;
    margin-top: 0;
}

body.brand-food .shop-filters-panel .category-filter-tree {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

body.brand-food .shop-filters-panel .category-title {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
        position: relative;
    }

    .mobile-filter-toggle {
        position: fixed;
        right: max(16px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
        z-index: 70;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 58px;
        height: 58px;
        margin: 0;
        border: 0;
        border-radius: 999px;
        background: var(--primary, #2563eb);
        color: #fff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
        cursor: pointer;
    }

    .mobile-filter-toggle svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
        display: block;
    }

    .mobile-filter-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        display: block;
    }

    .mobile-filter-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    body.filter-drawer-open {
        overflow: hidden;
    }

    .shop-filters-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 90;
        display: none;
        width: min(88vw, 360px);
        max-height: none;
        overflow-y: auto;
        border-radius: 0 24px 24px 0;
        transform: translateX(-105%);
        transition: transform .24s ease;
        margin: 0;
    }

    .shop-filters-panel.open {
        display: block;
        transform: translateX(0);
    }

    .mobile-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: #fff;
        color: var(--text-main);
        cursor: pointer;
    }

    body.brand-food .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-main {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    body.brand-food .page {
        margin-top: 0;
    }

    body.brand-food .shop-layout {
        margin-top: 0;
    }
}


body.brand-food .frontpage-highlights {
    margin: 48px 0 22px;
}

body.brand-food .frontpage-section + .frontpage-section {
    margin-top: 42px;
}

body.brand-food .frontpage-highlight-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.brand-food .frontpage-highlight-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.brand-food .category-all {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
}

/* Horento public home: mirror the webshop layout while leaving room for curated content. */
body.brand-food .webshop-home-page {
    margin-top: 28px;
}

body.brand-food .home-shop-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding: 30px;
    background: linear-gradient(135deg, #fff, #f2eadc);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(0, 49, 40, .08);
}

body.brand-food .home-shop-intro h1 {
    max-width: 760px;
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .96;
    letter-spacing: -0.065em;
    margin-bottom: 14px;
}

body.brand-food .home-shop-intro p:not(.eyebrow) {
    max-width: 660px;
    color: var(--text-muted);
    line-height: 1.65;
}

body.brand-food .home-shop-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
}

body.brand-food .home-shop-main {
    display: grid;
    gap: 26px;
}

body.brand-food .frontpage-section,
body.brand-food .home-assortment-section {
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 42px rgba(0, 49, 40, .08);
}

body.brand-food .section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

body.brand-food .section-heading-row .eyebrow {
    margin-bottom: 4px;
}

body.brand-food .section-note {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 700;
    text-align: right;
}

body.brand-food .home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.brand-food .home-category-card {
    min-height: 138px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    background: radial-gradient(circle at 82% 18%, rgba(0, 102, 83, .14), transparent 38%), #fff;
    color: var(--text-main);
    box-shadow: 0 10px 28px rgba(0, 49, 40, .07);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .15s ease;
}

body.brand-food .home-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

body.brand-food .home-category-card span,
body.brand-food .home-category-card small {
    color: var(--primary);
    font-weight: 900;
}

body.brand-food .home-category-card strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

body.brand-food .home-assortment-section .product-grid,
body.brand-food .frontpage-section .product-grid {
    margin-top: 0;
}

body.brand-food .home-assortment-section .pagination-bar {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    body.brand-food .home-shop-intro {
        align-items: stretch;
        flex-direction: column;
    }

    body.brand-food .home-shop-layout {
        grid-template-columns: 1fr;
    }

    body.brand-food .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.brand-food .home-category-grid {
        grid-template-columns: 1fr;
    }

    body.brand-food .section-heading-row {
        align-items: start;
        flex-direction: column;
    }

    body.brand-food .section-note {
        text-align: left;
    }
}

/* Horento concept styling for NOERP utility pages (orders, order lists, agreements). */
body.brand-food .noerp-concept-page-hero {
    position: relative;
    overflow: hidden;
    margin: 28px 0 26px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(0, 91, 79, 0.14);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(244, 195, 109, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 239, 0.72));
    box-shadow: var(--shadow-soft);
}

body.brand-food .noerp-concept-page-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(0, 91, 79, 0.09);
    pointer-events: none;
}

body.brand-food .noerp-concept-page-hero h1,
body.brand-food .noerp-concept-page-hero .page-title,
body.brand-food .noerp-concept-page-hero .checkout-title {
    position: relative;
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 950;
    z-index: 1;
}

body.brand-food .noerp-concept-page-hero p:not(.eyebrow-label),
body.brand-food .noerp-concept-page-hero .agreements-intro {
    position: relative;
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    z-index: 1;
}

body.brand-food .orders-list-card,
body.brand-food .agreements-card-block,
body.brand-food .order-category {
    border: 1px solid rgba(0, 91, 79, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

body.brand-food .orders-list-card {
    padding: 0;
    overflow: hidden;
}

body.brand-food .orders-mobile-table {
    width: 100%;
    border-collapse: collapse;
}

body.brand-food .orders-mobile-table thead,
body.brand-food .nice-table thead {
    background: linear-gradient(90deg, rgba(230, 242, 239, 0.95), rgba(251, 246, 236, 0.95));
}

body.brand-food .orders-th,
body.brand-food .nice-table th {
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

body.brand-food .orders-row:hover,
body.brand-food .agreement-summary-row.is-open,
body.brand-food .agreement-summary-row:hover {
    background: rgba(230, 242, 239, 0.72);
}

body.brand-food .orders-view-btn,
body.brand-food .add-category-btn,
body.brand-food .add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg) !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow-light);
}

body.brand-food .orders-view-btn {
    padding: 9px 14px;
}

body.brand-food .orderlist-page {
    max-width: 1240px;
    margin: 0 auto 60px;
    padding: 0 22px 60px;
}

body.brand-food .orderlist-container {
    max-width: 1040px;
}

body.brand-food .orderlist-header {
    padding: 20px;
    border: 1px solid rgba(0, 91, 79, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-light);
}

body.brand-food .rename-list,
body.brand-food .rename-cat {
    color: var(--primary-dark);
    font-weight: 950;
}

body.brand-food .order-category h3 {
    color: var(--primary-dark);
}

body.brand-food .order-items li {
    border: 1px solid rgba(0, 91, 79, 0.1);
    background: rgba(251, 246, 236, 0.56);
}

body.brand-food .order-items li:hover {
    background: var(--primary-soft);
}

body.brand-food .qty-input,
body.brand-food .search-input {
    border-color: rgba(0, 91, 79, 0.18);
    border-radius: 999px;
}

body.brand-food .delete-cat {
    border-radius: 999px;
    background: rgba(0, 91, 79, 0.08);
    color: var(--primary-dark);
}

body.brand-food .delete-item {
    color: var(--primary-dark);
}

body.brand-food .pagination-btn,
body.brand-food .pagination-number {
    border-color: rgba(0, 91, 79, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
}

body.brand-food .pagination-btn:hover,
body.brand-food .pagination-number:hover,
body.brand-food .pagination-btn.active,
body.brand-food .pagination-number.active {
    background: var(--primary);
    color: var(--bg) !important;
    border-color: var(--primary);
}

@media (max-width: 760px) {
    body.brand-food .noerp-concept-page-hero {
        border-radius: 24px;
        margin-top: 18px;
    }

    body.brand-food .orders-mobile-table .orders-row,
    body.brand-food .orderlist-header,
    body.brand-food .order-category {
        border-radius: 22px;
    }
}
