/*
 * Mawared storefront theme. Loaded after style.css.
 * Brand colors are set in the page head from Dashboard > Settings > Colors.
 */
:root {
    --ink: var(--primary--color);
    --accent: var(--secondary-color);
    --accent-soft: color-mix(in srgb, var(--secondary-color) 12%, #fff);
    --ink-soft: color-mix(in srgb, var(--primary--color) 8%, #fff);
    --ground: #f4f6fa;
    --line: #d9dfea;
    --muted: #4a5874;
    --radius: 12px;
    --font-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;

    /* Names used by the older stylesheet */
    --blue-color: var(--primary--color);
    --bg--color: var(--ground);
    --light--bg: var(--ground);
    --dark-color: var(--ink);
}

html { scroll-behavior: smooth; }

body {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

body.drawer-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }

a:hover { color: inherit; opacity: .88; }

.page-content { min-height: 40vh; }

.container-xxl { max-width: 1400px; }

/* Buttons */
.btn-main, .btn-accent, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
    text-align: center;
}

.btn-main { width: 100%; background: var(--ink); color: var(--on-primary); }
.btn-main:hover { background: var(--accent); color: var(--on-secondary); opacity: 1; }
.btn-main[disabled] { opacity: .6; cursor: progress; }

.btn-accent { background: var(--accent); color: var(--on-secondary); font-weight: 800; }
.btn-accent:hover { background: var(--ink); color: var(--on-primary); opacity: 1; }
.btn-accent[disabled] { background: #c9d1df; color: #33415e; cursor: not-allowed; }

.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-primary); opacity: 1; }
.btn-ghost.is-disabled { width: 100%; border-color: var(--line); color: var(--muted); cursor: default; }
.btn-ghost.is-disabled:hover { background: transparent; color: var(--muted); }
.btn-ghost--light { border-color: #fff; color: #fff; }

.btn-lg-custom { min-height: 54px; padding: 0 32px; font-size: 17px; border-radius: 28px; }

.link-accent {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
}

.link-plain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

/* Header */
.site-header { background: #fff; position: relative; z-index: 30; }

.site-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding-block: 12px;
}

.site-logo { flex: none; }
.site-logo img { display: block; height: 58px; width: auto; }

.icon-circle {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    border: 0;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 18px;
}

.icon-circle--link { cursor: pointer; }
.icon-circle--link:hover { background: var(--accent); color: var(--on-secondary); opacity: 1; }

.icon-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -2px;
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: var(--on-primary);
    font-size: 11px;
    font-weight: 700;
}

.mega__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.mega__panel {
    width: min(760px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    text-align: start;
    box-shadow: 0 14px 34px rgba(0, 27, 76, .12);
    /* Every category with its sub categories is taller than the screen: the panel scrolls inside itself and the
       page behind stays where it is. */
    max-height: max(260px, calc(100vh - 140px));
    max-height: max(260px, calc(100dvh - 140px));
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    scrollbar-width: thin;
}

.mega__panel.show { display: grid; }

.mega__title {
    display: block;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.mega__link { display: block; padding: 6px 0; color: var(--muted); }

.site-search { flex: 1 1 280px; position: relative; min-width: 220px; }

.site-search__field {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 54px;
    padding-inline: 14px 4px;
    border: 1px solid #c9d1df;
    border-radius: 10px;
    background: #fff;
}

.site-search__field input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.site-search__field:focus-within { border-color: var(--ink); }

.site-search__go, .site-search__clear {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.site-search__go { background: var(--accent); color: var(--on-secondary); font-size: 18px; }
.site-search__clear { display: none; background: transparent; color: var(--muted); }

.site-search .search-content {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: 60vh;
    overflow-y: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 27, 76, .14);
}

.site-search .search-box, .site-search .click-box { display: none; }

/* style.css makes the results absolute, which leaves the scrolling panel without any height. */
.site-search .search-box, .site-search .click-box { position: static; width: auto; padding: 0; box-shadow: none; }
.site-search .search-box .product-sugges { margin-bottom: 4px; padding: 8px; border-radius: 8px; }
.site-search .search-box .product-sugges a { width: 100%; color: var(--ink); font-size: 14px; font-weight: 600; }
.site-search .search-box .product-sugges .product-img img { width: 50px; min-width: 50px; height: 50px; object-fit: contain; }
.site-search .search-box .search-results { padding: 8px; color: var(--muted); font-size: 14px; }
.site-search__field input::-webkit-search-cancel-button { display: none; }

.site-search .title-box { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.site-search .most-search { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; list-style: none; }
.site-search .search-text { display: inline-block; padding: 4px 12px; border-radius: 16px; background: var(--ink-soft); font-size: 13px; }

#overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0, 27, 76, .35); }

.site-actions { display: flex; align-items: center; gap: 6px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--on-primary);
    font-weight: 700;
    font-size: 13px;
}

.lang-switch:hover { color: var(--on-primary); }

/* Main navigation */
.main-nav { background: var(--ink); color: var(--on-primary); position: relative; z-index: 25; }

/* One line: the links take the room left by the bill of quantities button; what does not fit goes under "more". */
.main-nav__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 clamp(14px, 2.4vw, 34px);
}

.main-nav__links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0 clamp(14px, 2.4vw, 34px);
}

.main-nav__links > * { flex: none; white-space: nowrap; }
.main-nav__more-menu .main-nav__more-sub { padding-inline-start: 30px; font-size: 14px; color: var(--muted); }

.main-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    font-weight: 700;
    font-size: 15px;
    color: var(--on-primary);
}

.main-nav__link:hover { color: var(--accent); opacity: 1; }
.main-nav__link.is-active { color: var(--accent); box-shadow: inset 0 -3px 0 currentColor; }

/* This link keeps one fixed colour, whatever the theme colours are. */
.main-nav__link--featured,
.main-nav__link--featured:hover,
.main-nav__link--featured.is-active { color: #ffc400; }

.main-nav .dropdown-item.active,
.main-nav .dropdown-item.active:hover { background: var(--accent); color: var(--on-secondary); }

/* A category with many sub categories: the list scrolls inside itself (up to the bottom of the screen),
   and reaching its end does not carry on scrolling the page behind it. */
.main-nav .dropdown-menu {
    border-radius: 10px;
    border-color: var(--line);
    text-align: start;
    max-height: max(240px, calc(100vh - 200px));
    max-height: max(240px, calc(100dvh - 200px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.main-nav .dropdown-item { padding-block: 8px; }
.main-nav .dropdown-item:active { background: var(--ink); }

/* Sections */
.home-sections {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding-block: 28px 56px;
}

.section-head {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.25;
}

.section-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.section-row .section-head { margin: 0; }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(16px, 2.2vw, 26px);
}

.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.subcat {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-weight: 600;
    color: var(--ink);
}

.subcat:hover { background: var(--accent); border-color: var(--accent); color: var(--on-secondary); opacity: 1; }

/* Banner slider */
.hero-slider { background: var(--ink); position: relative; }
.hero-slider__link { display: block; }
.hero-slider__img { display: block; width: 100%; height: auto; object-fit: cover; }

.hero-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.hero-slider__nav--prev { inset-inline-start: 14px; }
.hero-slider__nav--next { inset-inline-end: 14px; }

html[dir='ltr'] .hero-slider__nav i { transform: scaleX(-1); }

.hero-slider__controls {
    position: absolute;
    inset-block-end: 10px;
    inset-inline: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.hero-slider__pause {
    pointer-events: auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    cursor: pointer;
}

.hero-slider__dots {
    pointer-events: auto;
    position: static !important;
    width: auto !important;
    display: flex;
    gap: 4px;
}

.hero-slider__dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: #fff;
    opacity: .7;
    box-shadow: 0 0 0 1px var(--ink);
    transition: width .2s;
}

.hero-slider__dots .swiper-pagination-bullet-active { width: 30px; border-radius: 5px; opacity: 1; }

.hero-fallback { background: var(--ink); color: var(--on-primary); overflow: hidden; }

.hero-fallback__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(36px, 5vw, 64px);
}

.hero-fallback h1 { font-weight: 900; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.1; max-width: 700px; }
.hero-fallback p { font-size: 18px; max-width: 540px; opacity: .9; margin-bottom: 24px; }
.hero-fallback__mark { width: clamp(180px, 22vw, 300px); }

/* Category circles */
.cat-circles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 18px 10px;
}

.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

.cat-circle__img {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .15s, transform .15s;
}

.cat-circle:hover .cat-circle__img { border-color: var(--accent); transform: translateY(-2px); }
.cat-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle__name { font-weight: 600; font-size: 14px; line-height: 1.3; }

/* Product card */
.p-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .18s, border-color .18s;
}

.p-card:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(0, 27, 76, .1); }

.p-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / .86;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
}

.p-card__img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.p-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 0;
    padding: 3px 12px;
    border-start-end-radius: 6px;
    border-end-end-radius: 6px;
    background: var(--ink);
    color: var(--on-primary);
    font-weight: 700;
    font-size: 12px;
}

.p-badge--sale { background: var(--accent); color: var(--on-secondary); font-weight: 800; }

.p-stock {
    position: absolute;
    inset-block-end: 8px;
    inset-inline-start: 8px;
    padding: 2px 10px;
    border-radius: 6px;
    background: #fff4e5;
    color: #8a3f00;
    font-size: 12px;
    font-weight: 700;
}

.p-stock--out { background: #fbe9e7; color: #a32216; }

.p-card__fav {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    cursor: pointer;
    font-size: 17px;
}

.p-card__fav .fa-solid { color: var(--accent); }

.p-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.p-card__name { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.4; }
.p-card__name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-tag-lowest {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: #7a3a00;
    font-size: 12px;
    font-weight: 700;
}

.p-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 4px; }
.p-card__unit { font-size: 13px; color: var(--muted); }

.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-box .price-now { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); }
.price-box .price-before { font-size: 13px; color: var(--muted); text-decoration: line-through; }

.p-card__min { font-size: 12px; font-weight: 600; color: var(--muted); }
.p-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.p-card__actions form { flex: 1; min-width: 0; margin: 0; }
.p-card__actions > .btn-main, .p-card__actions > .btn-ghost { flex: 1; width: auto; min-width: 0; }

.p-compare {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.p-compare__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c9d1df;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    transition: background-color .15s, color .15s, border-color .15s;
}

.p-compare:hover .p-compare__icon { border-color: var(--accent); color: var(--accent); }

.p-compare input:checked + .p-compare__icon,
.p-compare:hover input:checked + .p-compare__icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-secondary);
}

.p-compare input:focus-visible + .p-compare__icon { outline: 2px solid var(--ink); outline-offset: 2px; }

.p-compare--label .p-compare__icon { width: 36px; height: 36px; font-size: 14px; }
.p-compare--remove input:checked + .p-compare__icon { background: #fff; border-color: #c9d1df; color: var(--ink); }

/* Product rows that slide */
.product-rail__frame { position: relative; }
.product-rail .swiper { padding: 2px; }
/* style.css centres every slide on a white box, which shrinks the cards. */
.product-rail .swiper-slide { display: block; height: auto; background: transparent; font-size: inherit; text-align: start; }

.product-rail__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-primary);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 27, 76, .25);
}

.product-rail__nav:hover { background: var(--accent); color: var(--on-secondary); }
.product-rail__nav.swiper-button-lock { display: none; }
.product-rail__nav--prev { inset-inline-start: -12px; }
.product-rail__nav--next { inset-inline-end: -12px; }
html[dir='ltr'] .product-rail__nav i { transform: scaleX(-1); }

@media (max-width: 767.98px) {
    .product-rail__nav { display: none; }
}

/* Stages */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }

.stage-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-block-start: 6px solid var(--ink);
    border-radius: var(--radius);
}

.stage-card:nth-child(even) { border-block-start-color: var(--accent); }
/* The stage's picture, edge to edge on top of the card (16:10, cropped to fit). */
.stage-card { overflow: hidden; }
.stage-card__img { display: block; margin: -12px -12px 0; aspect-ratio: 3 / 1; background: var(--ink-soft); overflow: hidden; }
.stage-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .3s ease; }
.stage-card:has(.stage-card__img) { gap: 8px; padding: 12px; }
.stage-card:has(.stage-card__img) .stage-card__head strong { font-size: 18px; }
.stage-card:has(.stage-card__img) .stage-card__num { font-size: 24px; }
.stage-card:hover .stage-card__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .stage-card__img img { transition: none; } }
.stage-card:hover { box-shadow: 0 10px 24px rgba(0, 27, 76, .1); opacity: 1; }

.stage-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stage-card__head strong { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.stage-card__num { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; color: #b65200; }
.stage-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-card__chips > * { padding: 3px 10px; border-radius: 6px; background: var(--ink-soft); font-size: 13px; font-weight: 600; }
.stage-card__chips a:hover { background: var(--ink); color: var(--on-primary); opacity: 1; }
.stage-card__chips .stage-card__more { background: var(--accent-soft); color: #9a4600; }
.stage-card__head:hover { opacity: 1; }
.stage-card__head:hover strong { color: var(--accent); }

/* Banners */
.wide-banner { display: block; overflow: hidden; border-radius: 16px; }
.wide-banner img { display: block; width: 100%; height: auto; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.promo-grid__item { display: block; overflow: hidden; border-radius: 16px; }
.promo-grid__item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* BOQ band: a light, compact strip */
.boq-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--accent);
    color: var(--ink);
}
.boq-band__icon { font-size: 26px; color: var(--accent); flex: none; }
.boq-band__text { flex: 1 1 260px; min-width: 0; }
.boq-band h2 { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.3; }
.boq-band p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.boq-band .btn-accent { flex: none; min-height: 42px; padding-inline: 18px; }

/* "Upload BOQ" at the far end of the categories bar */
.main-nav__boq {
    display: inline-flex; align-items: center; gap: 7px; align-self: center; flex: none;
    margin-inline-start: auto; min-height: 38px; padding: 0 16px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none;
}
.main-nav__boq:hover, .main-nav__boq:focus-visible, .main-nav__boq.is-active { color: #fff; filter: brightness(.93); opacity: 1; }
.main-nav__boq:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 991.98px) {
    .main-nav__boq { min-height: 34px; padding: 0 12px; font-size: 13px; }
}

/* Brands */
.brand-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }

.brand-row__item {
    display: grid;
    place-items: center;
    height: 84px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.brand-row__item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Listing page */
.listing { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }

.filters {
    flex: 1 1 250px;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.filters__head h2 { margin: 0; font-weight: 800; font-size: 20px; }
.filters__reset {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 6px 14px; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.filters__reset:hover, .filters__reset:focus-visible { color: #fff; filter: brightness(.92); }
.filters__reset:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.filters__reset:active { transform: scale(.97); }
.filters__reset i { font-size: 13px; }

/* Accordion groups: a bordered row with a chevron; the body opens below it. */
.filters__group { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filters__group > summary {
    display: flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 10px 14px;
    list-style: none; cursor: pointer; user-select: none;
    font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink);
}
.filters__group > summary::-webkit-details-marker { display: none; }
.filters__group > summary::after {
    content: ""; margin-inline-start: auto; width: 9px; height: 9px; flex: none;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; /* physical sides: a down chevron in both directions */
    transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.filters__group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filters__group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.filters__body { padding: 0 14px 12px; border-top: 1px solid #edf0f5; padding-top: 10px; max-height: 340px; overflow-y: auto; }
.filters__badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
}
@media (prefers-reduced-motion: reduce) { .filters__group > summary::after { transition: none; } }

.filter-check { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; }
.filter-check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.filter-check small { color: var(--muted); margin-inline-start: auto; }
.filter-check--child { font-size: 14px; }

.price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.price-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
}

.price-chip:hover { border-color: var(--ink); opacity: 1; }
.price-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }

.price-inputs { display: flex; gap: 8px; margin-bottom: 10px; }
.price-inputs label { flex: 1; min-width: 0; font-size: 13px; }
.price-inputs input { display: block; width: 100%; height: 44px; margin-top: 4px; padding: 0 10px; border: 1px solid #8c9bb8; border-radius: 8px; font: inherit; }

.listing__main { flex: 999 1 560px; min-width: 0; }

.listing__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.listing__sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.listing__sort select { height: 44px; padding: 0 10px; border: 1px solid #c9d1df; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.empty-state i { font-size: 34px; color: var(--muted); }
.empty-state p { margin: 0; font-size: 17px; }

/* Product page */
.product-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.gallery { flex: 0 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.galleryMain { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.galleryMain .swiper-slide { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .8; max-height: 420px; }
.galleryMain .swiper-slide a { display: flex; width: 100%; height: 100%; padding: 12px; align-items: center; justify-content: center; }
.galleryMain img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery__badge { z-index: 2; }
.galleryThumbs { width: 100%; }
.galleryThumbs .swiper-slide { aspect-ratio: 1; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.galleryThumbs .swiper-slide-thumb-active { border-color: var(--accent); }
.galleryThumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 991.98px) {
    .gallery { flex-basis: 100%; }
}
.product-side__cat { font-size: 14px; font-weight: 600; color: var(--muted); }
.product-side__name { margin: 4px 0 6px; font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.product-side__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }

.buy-box__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); }
.buy-box__price .price-now { font-size: 32px; font-weight: 900; line-height: 1.1; }
.buy-box__price .price-before { font-size: 15px; }
.buy-box__unit { font-weight: 600; }
.buy-box__tax { margin: 6px 2px 14px; font-size: 13px; color: var(--muted); }

.buy-box__options { margin: 0 0 14px; padding: 0; border: 0; }
.buy-box__options legend { float: none; margin-bottom: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.buy-box__pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-option { position: relative; cursor: pointer; margin: 0; } /* holds its hidden radio, so it scrolls with the list instead of stretching the page */
.pill-option input { position: absolute; opacity: 0; }

.pill-option span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    min-height: 44px;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #c9d1df;
    border-radius: 8px;
    font-weight: 700;
}

.pill-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }
.pill-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-option__color { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
/* A size with no stock: faded and struck through, still selectable (it then says "out of stock"). */
.pill-option.is-unavailable span { color: #9ca3af; background: #f3f4f6; border-style: dashed; text-decoration: line-through; }
.pill-option.is-unavailable input:checked + span { background: #9ca3af; border-color: #9ca3af; color: #fff; }

.buy-box__limits { margin: 10px 2px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.buy-box__unavailable { margin: 0 0 10px; font-weight: 700; color: #a32216; }
.buy-box__extras { margin-bottom: 12px; }

.buy-box__row { display: flex; flex-wrap: wrap; gap: 10px; }

.qty-box { display: flex; align-items: stretch; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; }
.qty-box button { width: 48px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.qty-box button:hover { background: var(--ink-soft); }
.qty-box input { width: 72px; min-height: 52px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); -moz-appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-box__submit { flex: 1 1 180px; min-height: 54px; border-radius: 10px; font-size: 17px; }
.buy-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 8px; }

.side-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }

.side-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.side-note i { font-size: 22px; color: #b65200; }
.side-note small { display: block; color: var(--muted); }

.detail-tabs { gap: 6px; margin-bottom: 18px; }

.detail-tab {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #c9d1df;
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.detail-tab.active { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }

.rich-text { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.rich-text img { max-width: 100%; height: auto; }

.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 36px; margin: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.spec-list dt { font-weight: 400; color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; }

.price-compare { width: 100%; }
.price-compare th, .price-compare td { padding: 12px 10px; border-top: 1px solid #edf0f5; font-weight: 500; white-space: nowrap; }
.price-compare th { white-space: normal; }
.price-compare tr:first-child th, .price-compare tr:first-child td { border-top: 0; }
.price-compare .is-current { background: var(--ink-soft); }

/* Compare page */
.compare-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.compare-table { width: 100%; min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px; vertical-align: top; border-top: 1px solid #edf0f5; text-align: start; }
.compare-table thead th { border-top: 0; }
.compare-table tbody th { width: 170px; font-weight: 600; color: var(--muted); }
.compare-table__img { display: block; height: 150px; margin-bottom: 8px; }
.compare-table__img img { width: 100%; height: 100%; object-fit: contain; }
.compare-table__name { font-weight: 700; }
.compare-table__price { font-family: var(--font-display); font-size: 20px; font-weight: 800; }

.compare-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    background: var(--ink);
    color: var(--on-primary);
    box-shadow: 0 -6px 20px rgba(0, 27, 76, .2);
}

.compare-bar[hidden] { display: none; }

.compare-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-block: 10px;
}

.compare-bar__actions { display: flex; gap: 8px; }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.cart-drawer.is-open { visibility: visible; }

.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 27, 76, .45);
    opacity: 0;
    transition: opacity .25s;
}

.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 27, 76, .25);
    transform: translateX(100%);
    transition: transform .28s ease;
}

html[dir='ltr'] .cart-drawer__panel { transform: translateX(-100%); }
.cart-drawer.is-open .cart-drawer__panel,
html[dir='ltr'] .cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--ink);
    color: var(--on-primary);
}

.cart-drawer__head h2 { margin: 0; font-weight: 800; font-size: 20px; }

.cart-drawer__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: inherit;
    font-size: 18px;
    cursor: pointer;
}

.cart-drawer__notice { flex: none; padding: 10px 18px; background: var(--accent-soft); font-weight: 700; }
.cart-drawer__notice.is-error { background: #fbe9e7; color: #a32216; }

.cart-drawer__content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cart-drawer__list { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0 18px; list-style: none; }

.drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0f5; }
.drawer-item__img { flex: none; width: 84px; height: 84px; display: block; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.drawer-item__img img { width: 100%; height: 100%; object-fit: contain; }
.drawer-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.drawer-item__name { font-weight: 700; line-height: 1.35; }
.drawer-item__meta { font-size: 13px; color: var(--muted); }
.drawer-item__price { font-family: var(--font-display); font-weight: 800; }
.drawer-item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.qty-mini { display: inline-flex; align-items: center; border: 1px solid #c9d1df; border-radius: 8px; }
.qty-mini button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.qty-mini button[disabled] { color: #b8c4da; cursor: default; }
.qty-mini input { width: 52px; height: 40px; padding: 0 2px; border: 0; border-inline: 1px solid #edf0f5; background: transparent; text-align: center; font: inherit; font-weight: 700; color: var(--ink); }

.drawer-item__remove {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #fbe9e7;
    color: #a32216;
    cursor: pointer;
}

.cart-drawer__foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.cart-drawer__total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; }
.cart-drawer__total strong { font-family: var(--font-display); font-size: 22px; font-weight: 900; }

.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.cart-drawer__empty i { font-size: 44px; color: var(--muted); }
.cart-drawer__empty h3 { margin: 0; font-weight: 800; font-size: 22px; }
.cart-drawer__empty p { margin: 0; color: var(--muted); }
.cart-drawer__empty .btn-main { width: auto; margin-top: 6px; }

/* Quick view */
.quick-view { display: flex; flex-wrap: wrap; gap: 16px; }
.quick-view__img { flex: 0 1 220px; min-width: 0; margin-inline: auto; }
.quick-view__img img { width: 100%; max-height: 260px; object-fit: contain; }
.quick-view__body { flex: 1 1 340px; min-width: 0; }
/* The size popup appears in place (quick fade with a slight zoom) instead of sliding down from the top. */
#quick-view-modal.fade .modal-dialog { transform: scale(.96); opacity: 0; transition: transform .16s ease-out, opacity .16s ease-out; }
#quick-view-modal.show .modal-dialog { transform: none; opacity: 1; }
#quick-view-modal.fade { transition: opacity .12s linear; }
@media (prefers-reduced-motion: reduce) {
    #quick-view-modal.fade .modal-dialog, #quick-view-modal.fade { transition: none; }
}
/* In the size popup the sizes sit side by side in even columns; a long list scrolls inside its own box. */
.quick-view .buy-box__pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: 236px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 2px 6px;
}
/* Quantity on its own line, then "add to cart" (70%) beside "view details" (30%, navy). */
.quick-view .buy-box__row { display: grid; grid-template-columns: 7fr 3fr; }
.quick-view .buy-box__row .qty-box { grid-column: 1 / -1; justify-self: start; }
.quick-view .buy-box__details { width: auto; min-height: 54px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 700; text-align: center; }
.quick-view .pill-option span { display: flex; width: 100%; min-height: 40px; padding: 4px 8px; font-size: 13px; text-align: center; line-height: 1.3; }
@media (max-width: 575.98px) {
    .quick-view__img { flex-basis: 140px; }
    .quick-view .buy-box__pills { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 200px; }
    .quick-view .buy-box__details { padding: 0 4px; font-size: 13px; white-space: nowrap; }
}
.quick-view__name { font-weight: 800; font-size: 22px; }

/* Footer */
.site-footer { margin-top: 24px; background: var(--ink); color: color-mix(in srgb, var(--on-primary) 84%, transparent); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; padding-block: 42px 22px; }
.site-footer__logo { display: block; height: 64px; width: auto; }
.site-footer__title { margin: 0 0 8px; font-weight: 700; font-size: 17px; color: var(--on-primary); }
.site-footer__link { display: flex; align-items: center; min-height: 36px; }
.site-footer__link:hover { color: var(--accent); opacity: 1; }
.site-footer__contact { margin-bottom: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 20px;
    z-index: 50;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.whatsapp-float:hover { color: #fff; }

/* Bottom navigation on phones */
.bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    font-size: 12px;
    font-weight: 700;
    color: var(--on-primary);
}

.bottom-nav__item:hover { color: var(--on-primary); }
.bottom-nav__item.is-active { color: var(--accent); }

/* Existing pages: cart, checkout, account, articles and others keep their markup */
.devolum-title .section-title,
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
}

.devolum-title .section-title::before,
.devolum-title .section-title::after { background: var(--accent) !important; }

.main-btn,
.bg-blue.main-btn,
.main-btn.bg-blue,
.main-btn.ligth-blue,
.main-btn.ligth-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--accent) !important;
    color: var(--on-secondary) !important;
    font-weight: 800;
}

.main-btn:hover { background: var(--ink) !important; color: var(--on-primary) !important; }

.cart-box, .cart-order, .account-form, .devolum-form, .address-box, .acount-sidbar, .my-account {
    border-radius: var(--radius);
}

.account-form, .cart-order, .cart-products .cart-box {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.account-form { padding: clamp(14px, 2vw, 22px); margin-bottom: 14px; }
.cart-order { padding: 18px; }

.oredr-total, .order-title span { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.save-btn { border-radius: 8px; background: var(--ink); color: var(--on-primary); border: 0; min-height: 44px; padding: 0 16px; font-weight: 700; }

.form-control, .form-select {
    min-height: 46px;
    border-color: #8c9bb8;
    border-radius: 8px;
}

textarea.form-control { min-height: 90px; }

.form-control:focus, .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.form-label.required::after { content: ' *'; color: #a32216; }

.quote-form { max-width: 880px; margin-inline: auto; }

.breadcrumb { margin-bottom: 0; font-size: 13px; }
.breadcrumb a { color: var(--muted); }

.pagination .page-link { color: var(--ink); min-width: 42px; min-height: 42px; display: grid; place-items: center; }
.pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }

@media (max-width: 991.98px) {
    body { padding-bottom: 62px; }

    .site-logo img { height: 46px; }
    .site-search { order: 5; flex-basis: 100%; }
    .site-actions { margin-inline-start: auto; }
    .main-nav__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    /* Phones scroll the bar sideways: every link stays on it, "more" is not needed. */
    .main-nav__links { flex: none; }
    .main-nav__more { display: none !important; }
    .main-nav__row::-webkit-scrollbar { display: none; }
    .main-nav__link { white-space: nowrap; min-height: 46px; }
    .main-nav .dropdown { position: static; }
    .compare-bar { bottom: 58px; }
    .whatsapp-float { bottom: 72px; }
    .hero-slider__nav { width: 40px; height: 40px; margin-top: -20px; }
}

@media (max-width: 575.98px) {
    .mega__toggle span:last-child { display: none; }
    .site-actions .icon-circle { width: 42px; height: 42px; }
    .p-card__body { padding: 10px; }
    .p-card__actions { gap: 6px; }
    .p-card__actions .btn-main, .p-card__actions .btn-ghost { padding-inline: 6px; font-size: 13px; line-height: 1.2; }
    .p-card__actions .p-compare__icon { width: 40px; height: 40px; font-size: 15px; }
    .price-box .price-now { font-size: 17px; }
    .cat-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
    .cat-circle__img { width: 66px; height: 66px; }
    .cat-circle__name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Controls that the older stylesheet also targets */
.site-search .site-search__go {
    background: var(--accent) !important;
    border: 0 !important;
    color: var(--on-secondary) !important;
    padding: 0;
    outline-offset: 2px;
}

.buy-box__row { align-items: stretch; }
.qty-box { margin: 0; }
.qty-box button { display: grid; place-items: center; padding: 0; }

.listing__filters { flex: 1 1 250px; min-width: 0; }
.listing__filters .filters { width: 100%; }

/* The older stylesheet draws its own box around these icons */
.site-search .site-search__go i,
.site-search .site-search__clear i {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
    display: inline !important;
}

.cart-drawer { overflow: hidden; }

body:has(.compare-bar:not([hidden])) { padding-bottom: 72px; }

/* Cart page */
.cart-products .cart-box { padding: 14px; margin-bottom: 10px; gap: 14px; }
.cart-products .cart-box .item-img { flex: none; width: 96px; }
.cart-products .cart-box .item-img img { width: 100%; height: auto; object-fit: contain; }
.cart-products .cart-box .item-info { min-width: 0; }
.cart-products .cart-box .brand-img { display: none; }
.cart-products .cart-box .item-text { font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.cart-products .cart-box .fa-trash-can { color: #a32216; cursor: pointer; }
.cart-products .cart-box .price-now { color: var(--ink) !important; }
.cart-products .cart-box .price-before { color: var(--muted) !important; text-decoration: line-through; }
.quantity-selector { flex-wrap: nowrap; width: auto; }
.quantity-selector .qty-input-cart { width: 64px; flex: none; }
.quantity-selector .btn { display: grid; place-items: center; width: 42px; border-color: #8c9bb8; }

@media (max-width: 575.98px) {
    body:has(.compare-bar:not([hidden])) { padding-bottom: 130px; }
    .cart-products .cart-box .item-img { width: 70px; }
    .cart-products .cart-box .order-info { flex-wrap: wrap; gap: 8px; }
}

/* Banners keep their full width and never pass 27.76vw high. Best image size: 1920 x 533. */
.hero-slider .swiper-slide { height: auto; background: var(--ink); }
.hero-slider .hero-slider__img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: 27.76vw;
    object-fit: cover !important;
}

.hero-slider .swiper-slide { display: block; }
.hero-slider .hero-slider__link { width: 100%; }

/* The header is no longer fixed, so the content needs no space reserved for it. */
.devolum-main-content { margin-top: 0; }

/* A phone banner is too short to carry controls: swipe to move, dots sit under the image. */
@media (max-width: 575.98px) {
    .hero-slider__nav { display: none; }
    .hero-slider__controls { position: static; padding-block: 8px; }
}

/* Checkout headings */
.checkout-page .devolum-title { margin-bottom: 12px; }
.checkout-page .devolum-title .section-title { font-size: 18px; }
.checkout-page .order-title span { font-size: 16px; }
.checkout-page .oredr-total { font-size: 17px; }
.checkout-page .check-title { font-size: 15px; }
.checkout-page .check-text { font-size: 14px; }
.checkout-page .order-text { font-size: 14px; }

/* Thin loading line across the top while a page or an action loads. */
.page-progress {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000;
    pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
.page-progress.is-active { opacity: 1; }
.page-progress.is-done { opacity: 0; transition-delay: .15s; }
.page-progress span {
    display: block; height: 100%; background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 3px var(--accent);
    transform: scaleX(0); transform-origin: right center; /* runs from the start of the line in Arabic */
    transition: transform .2s ease;
}
[dir="ltr"] .page-progress span, html:not([dir="rtl"]) .page-progress span { transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .page-progress span { transition: none; } }

/* ===== Quote mode ===== */
.quote-strip {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 7px 16px; background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 600; text-align: center;
}
.quote-strip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.price-hint { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.price-on-request { font-weight: 800; color: var(--ink); font-size: 1.05em; }
.buy-box__quote {
    display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 10px 12px;
    border-radius: 10px; background: #fff4e8; color: #7a3d00; font-size: 14px; font-weight: 600;
}
.buy-box__quote i, .quote-cta__text i { margin-top: 3px; }
.quote-cta__text { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.quote-cart__promise {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 18px;
    border-radius: 12px; background: #fff4e8; border: 1px solid #ffd8ad;
}
.quote-cart__promise > i { font-size: 26px; color: var(--accent); flex: none; }
.quote-cart__promise strong { display: block; color: var(--ink); }
.quote-cart__promise span { color: #6b4a2b; font-size: 14px; }
.quote-cart__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote-cart__items li { display: flex; align-items: center; gap: 12px; }
.quote-cart__items img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: #f3f4f6; }
.quote-cart__submit { min-height: 52px; font-size: 16px; }
.quote-sent { max-width: 620px; }
.quote-sent__icon {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; background: #e8f7ee; color: #16a34a; font-size: 28px;
}
.quote-sent__number { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.quote-sent__steps { margin: 18px auto 24px; padding-inline-start: 20px; display: grid; gap: 8px; max-width: 460px; }

/* ================= New home page sections (home.blade.php; the earlier page is home_classic) ================= */
.section-sub { margin: -8px 0 16px; color: var(--muted); font-size: 15px; }

/* Why Mawared: four promises under the banner */
.why-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: -8px; }
.why-strip__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why-strip__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.why-strip__item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.35; }
.why-strip__item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* How it works: three numbered steps */

/* Ready bundles */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bundle-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bundle-card__head { display: flex; align-items: flex-start; gap: 12px; }
.bundle-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--on-primary); font-size: 19px; }
.bundle-card h3 { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.35; }
.bundle-card__stage { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 6px; background: var(--accent-soft); color: #9a4600; font-size: 12px; font-weight: 700; }
.bundle-card__desc { margin: 0; color: var(--muted); font-size: 14px; }
.bundle-card__items { margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); }
.bundle-card__items li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.bundle-card__items small { color: var(--muted); }
.bundle-card__items b { flex: none; font-weight: 700; white-space: nowrap; }
.bundle-card__more { margin: 0; color: var(--muted); font-size: 13px; }
.bundle-card__form { margin-top: auto; }
.bundle-card__form .btn-accent { width: 100%; min-height: 46px; gap: 8px; }

/* Quantity calculator */
.calc { padding: 26px; background: var(--ink); color: var(--on-primary); border-radius: 16px; }
.calc .section-head { color: var(--on-primary); }
.calc .section-sub { color: color-mix(in srgb, var(--on-primary) 78%, transparent); }
.calc__tabs { display: flex; gap: 8px; margin: 0 0 16px; padding-bottom: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.calc__tab { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent); border-radius: 22px; background: transparent; color: var(--on-primary); font-weight: 700; cursor: pointer; }
.calc__tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-secondary); }
.calc__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.calc__panel[hidden] { display: none; }
.calc__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.calc__fields label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-weight: 700; font-size: 14px; }
.calc__unit { color: color-mix(in srgb, var(--on-primary) 70%, transparent); font-weight: 500; font-size: 12px; }
.calc__fields input, .calc__fields select { width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 17px; }
.calc__fields input:focus-visible, .calc__fields select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.calc__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.calc__results div { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--on-primary) 9%, transparent); }
.calc__results dt { font-weight: 500; font-size: 13px; color: color-mix(in srgb, var(--on-primary) 78%, transparent); }
.calc__results dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--on-primary); }
.calc__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.calc__link:hover { color: var(--accent); }
[dir="ltr"] .calc__link i { transform: scaleX(-1); }
.calc__note { margin: 16px 0 0; font-size: 13px; color: color-mix(in srgb, var(--on-primary) 72%, transparent); }

/* The customer's own: order again */
.reorder-band { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 22px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); border-radius: var(--radius); }
.reorder-band__icon { flex: none; font-size: 24px; color: var(--accent); }
.reorder-band__text { flex: 1 1 260px; min-width: 0; }
.reorder-band h2 { margin: 0; font-weight: 800; font-size: 18px; }
.reorder-band p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.reorder-band .btn-accent { min-height: 44px; padding-inline: 20px; }

/* Real counts and the offer for companies */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.trust__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust__stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.trust__stat i { font-size: 22px; color: var(--accent); }
.trust__stat strong { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.2; }
.trust__stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.trust__business { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 78%, #2b5bb5)); color: var(--on-primary); }
.trust__business h3 { margin: 0 0 6px; font-weight: 800; font-size: 20px; }
.trust__business p { margin: 0 0 14px; color: color-mix(in srgb, var(--on-primary) 82%, transparent); font-size: 14px; }
.trust__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust__actions a { width: auto; min-height: 44px; padding-inline: 18px; gap: 8px; }

.opinion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.opinion { margin: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.opinion__stars { color: #e8a200; font-size: 13px; }
.opinion blockquote { margin: 8px 0; font-size: 14px; }
.opinion figcaption { font-weight: 700; font-size: 14px; }

@media (max-width: 991.98px) {
    .why-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc__panel { grid-template-columns: minmax(0, 1fr); }
    .trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .calc { padding: 18px; }
}
@media (max-width: 575.98px) {
    .why-strip { gap: 8px; }
    .why-strip__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .why-strip__item small { display: none; }
    .trust__stat strong { font-size: 22px; }
}

/* Calculator: the result side, how it is worked out, copy, and its own page */
.calc__intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.calc__intro .section-sub { flex: 1 1 100%; order: 3; }
.calc__open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.calc__open:hover { color: var(--accent); }
.calc__side { display: flex; flex-direction: column; gap: 12px; }
.calc__how { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--on-primary) 75%, transparent); }
.calc__how i { color: var(--accent); }
.calc__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.calc__copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent); border-radius: 20px; background: transparent; color: var(--on-primary); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.calc__copy:hover { background: color-mix(in srgb, var(--on-primary) 10%, transparent); }
.calc__copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-page { padding-top: 18px; }

/* Ready bundles page: a filter by project stage */
.bundle-filter { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.bundle-filter a { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-weight: 700; font-size: 14px; }
.bundle-filter a.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }
.bundle-card__stage:hover { opacity: 1; background: var(--accent); color: var(--on-secondary); }
.bundle-card__items a:hover { color: var(--accent); opacity: 1; }

@media (max-width: 575.98px) {
    .why-strip { grid-template-columns: minmax(0, 1fr); }
    .why-strip__item { flex-direction: row; align-items: center; }
    .why-strip__item small { display: block; }
}
/* Phone: the four stages slide sideways in one row instead of standing one under another. */
@media (max-width: 575.98px) {
    .stages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; }
    .stage-card { scroll-snap-align: start; }
}

/* ================= My orders: quote requests and orders, list and detail ================= */
.my-orders { display: flex; flex-direction: column; gap: 14px; }
.my-orders__title { margin: 0; font-weight: 800; font-size: 24px; }
.my-orders__tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.my-orders__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--muted); white-space: nowrap; }
.my-orders__tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.my-orders__tab:hover { opacity: 1; color: var(--ink); }
.my-orders__count { min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--ink-soft); font-size: 12px; text-align: center; }
.my-orders__tab.is-on .my-orders__count { background: var(--accent); color: var(--on-secondary); }

.order-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.order-card__number { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.order-card__number:hover { color: var(--accent); opacity: 1; }
.order-card__date { margin-inline-start: 10px; color: var(--muted); font-size: 13px; }
.order-card__items { margin: 0 0 6px; font-size: 14px; }
.order-card__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.order-card__facts i { color: var(--accent); margin-inline-end: 4px; }
.order-card__facts svg { width: 13px; height: 13px; vertical-align: -1px; }
.order-card__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-card__actions form { margin: 0; }
.order-card__btn { width: auto; min-height: 40px; padding-inline: 16px; gap: 6px; font-size: 14px; }

.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-badge--info { background: #e6effd; color: #1d4ea1; }
.status-badge--warn { background: #fff4dc; color: #8a5a00; }
.status-badge--accent { background: var(--accent); color: var(--on-secondary); }
.status-badge--ok { background: #e3f6ea; color: #17693a; }
.status-badge--bad { background: #fde8e6; color: #a32216; }
.status-badge--off { background: #eceff3; color: #4a5874; }

.orders-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.orders-empty i { font-size: 36px; color: var(--accent); }
.orders-empty p { margin: 0; font-weight: 600; }

.order-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: 14px; }
[dir="ltr"] .order-back i { transform: scaleX(-1); }
.order-detail__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-detail__head h1 { margin: 0; font-weight: 800; font-size: 24px; }
.order-detail__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.order-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--ink-soft); font-size: 14px; }

/* Progress of a quote request: four steps */
.order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 0; padding: 16px 12px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.order-steps li:not(:first-child)::before { content: ""; position: absolute; top: 16px; inset-inline-end: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.order-steps li.is-done:not(:first-child)::before, .order-steps li.is-now:not(:first-child)::before { background: var(--accent); }
.order-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eceff3; color: var(--muted); font-weight: 800; }
.order-steps li.is-done .order-steps__dot { background: var(--accent); color: var(--on-secondary); }
.order-steps li.is-now .order-steps__dot { background: var(--ink); color: var(--on-primary); box-shadow: 0 0 0 5px var(--ink-soft); }
.order-steps li.is-now, .order-steps li.is-done { color: var(--ink); }

/* The quote once it is sent */
.quote-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 78%, #2b5bb5)); color: var(--on-primary); }
.quote-box h2 { margin: 0 0 4px; font-weight: 800; font-size: 18px; }
.quote-box__total { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.quote-box__total small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; opacity: .8; }
.quote-box__total svg { width: 22px; height: 22px; }
.quote-box__note { margin: 6px 0 0; font-size: 13px; opacity: .9; }

.order-panel { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.order-panel h2 { margin: 0 0 12px; font-weight: 800; font-size: 17px; }
.order-lines { margin: 0; padding: 0; list-style: none; }
.order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; padding-bottom: 0; }
.order-line__img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--ground); }
.order-line__img img { width: 100%; height: 100%; object-fit: contain; }
.order-line__name { font-weight: 600; font-size: 14px; }
.order-line__name small { display: block; color: var(--muted); font-weight: 500; }
.order-line__name a:hover { color: var(--accent); opacity: 1; }
.order-line__qty { font-weight: 800; white-space: nowrap; }
.order-panel--facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.order-panel--facts dl .is-wide { grid-column: 1 / -1; }
.order-panel--facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.order-panel--facts dd { margin: 0; font-weight: 600; }
.order-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.order-sum { grid-template-columns: minmax(0, 1fr) !important; }
.order-sum div { display: flex; justify-content: space-between; gap: 10px; }
.order-sum .is-total { padding-top: 8px; border-top: 1px dashed var(--line); }
.order-sum .is-total dd { font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.order-sum svg { width: 13px; height: 13px; }
.order-reorder { margin: 0; }

/* Status history of an order */
.order-timeline { margin: 0; padding: 0 0 0; list-style: none; }
.order-timeline li { position: relative; padding-inline-start: 26px; padding-bottom: 14px; }
.order-timeline li::before { content: ""; position: absolute; top: 5px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.order-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 19px; bottom: 0; inset-inline-start: 5px; width: 2px; background: var(--line); }
.order-timeline strong { display: block; font-size: 14px; }
.order-timeline time { color: var(--muted); font-size: 12px; }
.order-timeline p { margin: 4px 0 0; font-size: 13px; }

@media (max-width: 767.98px) {
    .order-two, .order-panel--facts dl { grid-template-columns: minmax(0, 1fr); }
    .order-steps { padding: 14px 6px; }
    .order-steps li { font-size: 11px; }
    .order-card__btn { flex: 1 1 auto; }
}
