/* =====================================================================
   GONCLOVIL - Web pública
   Paleta de marca (colors del logotip main-logo-dark): blanc + granat/lila.
   ===================================================================== */
:root {
    --web-wine: #6b1c40;
    --web-wine-dark: #4e1430;
    --web-pink: #e364a9;
    --web-lilac: #b7658e;
    --web-lilac-soft: #efa5ce;
    --web-tint: #fbf1f6;
    --web-text: #2b2230;
    --web-muted: #7a6d76;
    --web-border: #ece3e8;
    --web-white: #ffffff;
    --web-radius: 6px;
    --web-shadow: 0 10px 30px rgba(78, 20, 48, 0.08);
}

body.web {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--web-text);
    background: var(--web-white);
    font-size: 15px;
    line-height: 1.6;
}

.web a { color: var(--web-wine); }
.web a:hover { color: var(--web-pink); text-decoration: none; }

.web-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--web-wine);
    color: var(--web-white) !important;
    padding: 8px 16px;
}
.web-skip:focus { left: 8px; top: 8px; }

/* ---------- Botons ---------- */
.web-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--web-radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.web-btn--primary { background: var(--web-wine); color: var(--web-white) !important; }
.web-btn--primary:hover { background: var(--web-wine-dark); }
.web-btn--light { background: var(--web-white); color: var(--web-wine) !important; }
.web-btn--light:hover { background: var(--web-tint); }
.web-btn--block { width: 100%; }
.web-btn.is-loading { opacity: .7; pointer-events: none; }
.web-btn.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: web-spin .7s linear infinite;
}
@keyframes web-spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.web-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--web-white);
    transition: box-shadow .2s;
}
.web-header.is-scrolled { box-shadow: 0 4px 18px rgba(78, 20, 48, 0.08); }

.web-topbar {
    background: var(--web-wine);
    color: var(--web-white);
    font-size: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
}
.web-topbar__tagline { letter-spacing: .04em; opacity: .9; }
.web-topbar__actions { gap: 18px; }
.web-topbar__user { opacity: .9; }
.web .web-topbar__link { color: var(--web-white); font-weight: 500; }
.web .web-topbar__link:hover { color: var(--web-lilac-soft); }

.web-lang {
    display: flex;
    border-left: 1px solid rgba(255, 255, 255, .3);
    padding-left: 14px;
    gap: 4px;
}
.web .web-lang__item {
    color: var(--web-white);
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: .75;
}
.web .web-lang__item:hover { opacity: 1; color: var(--web-white); }
.web .web-lang__item.is-active { opacity: 1; background: rgba(255, 255, 255, .18); }

.web-mainbar { border-bottom: 1px solid var(--web-border); }
.web-mainbar > .container:first-child { min-height: 84px; gap: 32px; }

.web-logo img { height: 52px; width: auto; display: block; }

.web-search {
    flex: 1;
    max-width: 560px;
    display: flex;
    border: 1px solid var(--web-border);
    border-radius: 40px;
    background: var(--web-tint);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.web-search:focus-within { border-color: var(--web-lilac); box-shadow: 0 0 0 3px rgba(227, 100, 169, .15); }
.web-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--web-text);
    outline: none;
    min-width: 0;
}
.web-search button {
    border: 0;
    background: var(--web-wine);
    color: var(--web-white);
    width: 48px;
    margin: 4px;
    border-radius: 40px;
    transition: background .2s;
}
.web-search button:hover { background: var(--web-pink); }
.web-search--mobile { max-width: none; }

.web-icons { display: flex; align-items: center; gap: 8px; }
.web-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 19px;
    transition: background .2s;
}
.web-icon:hover { background: var(--web-tint); }
.web-icon__badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--web-pink);
    color: var(--web-white);
    font-size: 11px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .web-mainbar > .container:first-child { min-height: 70px; gap: 12px; }
    .web-logo img { height: 40px; }
}

/* ---------- Banner ---------- */
.web-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, var(--web-wine-dark) 0%, var(--web-wine) 45%, var(--web-lilac) 100%);
    background-size: cover;
    background-position: center;
    color: var(--web-white);
    overflow: hidden;
}
.web-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(78, 20, 48, .82) 0%, rgba(78, 20, 48, .45) 50%, rgba(78, 20, 48, 0) 100%);
}
.web-banner__inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.web-banner__content { max-width: 540px; }
.web-banner__pretitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--web-lilac-soft);
    margin-bottom: 12px;
}
.web-banner__title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.web-banner__text { font-size: 16px; opacity: .92; margin-bottom: 28px; }

@media (max-width: 767.98px) {
    .web-banner { min-height: 340px; }
    .web-banner__title { font-size: 32px; }
    .web-banner__overlay { background: rgba(78, 20, 48, .6); }
}

.web-usps { background: var(--web-tint); border-bottom: 1px solid var(--web-border); }
.web-usps__list {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px 24px;
    font-size: 14px;
    font-weight: 500;
}
.web-usps__list i { color: var(--web-pink); margin-right: 10px; }

/* ---------- Seccions ---------- */
.web-section { padding: 64px 0; }
.web-section__head { text-align: center; margin-bottom: 36px; }
.web-section__title {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--web-wine);
    margin-bottom: 8px;
}
.web-section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--web-pink);
    margin: 14px auto 0;
}
.web-section__text { color: var(--web-muted); margin: 0; }
.web-section__text a { font-weight: 600; }

.web-placeholder {
    border: 2px dashed var(--web-border);
    border-radius: var(--web-radius);
    padding: 60px 20px;
    text-align: center;
    color: var(--web-muted);
}

/* ---------- Accés / registre ---------- */
.web-auth { padding: 56px 0 72px; background: var(--web-tint); }
.web-auth__card {
    display: flex;
    max-width: 920px;
    margin: 0 auto;
    background: var(--web-white);
    border-radius: 10px;
    box-shadow: var(--web-shadow);
    overflow: hidden;
}
.web-auth__card--wide { max-width: 760px; }
.web-auth__form { flex: 1; padding: 48px; min-width: 0; }
.web-auth__title { font-size: 26px; font-weight: 600; color: var(--web-wine); margin-bottom: 8px; }
.web-auth__subtitle { color: var(--web-muted); margin-bottom: 28px; }
.web-auth__extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 24px;
}
.web-auth__switch { margin: 24px 0 0; font-size: 14px; color: var(--web-muted); }
.web-auth__switch a { font-weight: 600; }
.web-auth__aside {
    flex: 0 0 340px;
    padding: 48px 40px;
    color: var(--web-white);
    background: linear-gradient(160deg, var(--web-wine) 0%, var(--web-wine-dark) 60%, var(--web-lilac) 140%);
}
.web-auth__aside h2 { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.web-auth__aside ul { list-style: none; padding: 0; margin: 0; }
.web-auth__aside li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.web-auth__aside i {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--web-lilac-soft);
}

@media (max-width: 767.98px) {
    .web-auth { padding: 24px 0 40px; }
    .web-auth__card { flex-direction: column; }
    .web-auth__form { padding: 32px 22px; }
    .web-auth__aside { flex-basis: auto; padding: 28px 22px; }
}

.web-field { margin-bottom: 18px; }
.web-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.web-field input,
.web-field select,
.web-field textarea {
    width: 100%;
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--web-text);
    background: var(--web-white);
    transition: border-color .2s, box-shadow .2s;
}
.web-field select { height: 45px; padding-top: 0; padding-bottom: 0; }
.web-field input:focus,
.web-field select:focus,
.web-field textarea:focus {
    outline: none;
    border-color: var(--web-lilac);
    box-shadow: 0 0 0 3px rgba(227, 100, 169, .15);
}

.web-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; margin-bottom: 0; }
.web-check input { margin-top: 4px; accent-color: var(--web-wine); }

.web-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formulari d'alta: seccions, opcions S/N i estat de la comprovació del NIF */
.web-form-section { font-size: 15px; font-weight: 600; color: var(--web-wine); margin: 10px 0 14px; padding-top: 14px; border-top: 1px solid var(--web-border); }
.web-form-section:first-of-type { border-top: 0; padding-top: 0; }
.web-radios { display: flex; gap: 22px; padding-top: 8px; }

/* Select2 (selects amb cercador del formulari d'alta) amb l'aspecte dels camps de la web */
.web-field .select2-container--default .select2-selection--single {
    height: 45px;
    border: 1px solid var(--web-border);
    border-radius: var(--web-radius);
}
.web-field .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 43px; padding-left: 14px; font-size: 14px; color: var(--web-text); }
.web-field .select2-container--default .select2-selection--single .select2-selection__arrow { height: 43px; right: 6px; }
.web-field .select2-container--default.select2-container--focus .select2-selection--single,
.web-field .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--web-lilac); box-shadow: 0 0 0 3px rgba(227, 100, 169, .15); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--web-wine); }
.select2-dropdown { border-color: var(--web-border); font-size: 14px; }
.select2-search--dropdown .select2-search__field { border-radius: var(--web-radius); }
/* Camp amb error (formulari d'alta): vora i missatge en vermell */
.web-field.is-invalid input,
.web-field.is-invalid select,
.web-field.is-invalid textarea,
.web-field.is-invalid .select2-container--default .select2-selection--single { border-color: #c4314b !important; box-shadow: 0 0 0 3px rgba(196, 49, 75, .12); }
.web-field.is-invalid > label,
.web-check.is-invalid { color: #c4314b; }
.web-field__error { display: block; margin-top: 6px; font-size: 12px; color: #c4314b; }
.web-field__help.is-ok { color: #2e7d4f; }
.web-field__help.is-error { color: #c4314b; }

/* ---------- Missatges (toast) ---------- */
.web-toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.web-toast {
    --toast-color: var(--web-wine);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 44px 16px 16px;
    background: var(--web-white);
    border-radius: 10px;
    border-left: 4px solid var(--toast-color);
    box-shadow: 0 14px 40px rgba(78, 20, 48, .18);
    font-size: 14px;
    color: var(--web-text);
    overflow: hidden;
    pointer-events: auto;
    animation: web-toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.web-toast.is-leaving { animation: web-toast-out .25s ease-in forwards; }
.web-toast--success { --toast-color: #2e9d5b; }
.web-toast--error { --toast-color: #c4314b; }
.web-toast--info { --toast-color: var(--web-pink); }
.web-toast__icon {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--web-white);
    background: var(--toast-color);
    font-size: 15px;
}
.web-toast__msg { flex: 1; padding-top: 6px; line-height: 1.45; }
.web-toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--web-muted);
    font-size: 13px;
}
.web-toast__close:hover { background: var(--web-tint); color: var(--web-wine); }
.web-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--toast-color);
    opacity: .35;
    transform-origin: left;
    animation: web-toast-bar linear forwards;
}
@keyframes web-toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes web-toast-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes web-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 575.98px) {
    .web-toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; max-width: none; }
}

/* ---------- Footer ---------- */
.web-footer { font-size: 14px; }
.web-footer__main { background: var(--web-tint); padding: 56px 0 40px; border-top: 1px solid var(--web-border); }
.web-footer__logo img { height: 48px; width: auto; margin-bottom: 18px; }
.web-footer__desc { color: var(--web-muted); margin-bottom: 10px; }
.web-footer__motto { font-weight: 600; color: var(--web-wine); }
.web-footer__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--web-wine);
    margin-bottom: 16px;
}
.web-footer__links,
.web-footer__contact { list-style: none; padding: 0; margin: 0; }
.web-footer__links li { margin-bottom: 8px; }
.web .web-footer__links a { color: var(--web-text); }
.web .web-footer__links a:hover { color: var(--web-pink); }
.web-footer__contact li { display: flex; gap: 12px; margin-bottom: 12px; }
.web-footer__contact i { color: var(--web-pink); width: 16px; margin-top: 4px; }
.web .web-footer__contact a { color: var(--web-text); }
.web-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.web .web-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--web-wine);
    color: var(--web-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.web .web-footer__social a:hover { background: var(--web-pink); }

.web-footer__bottom {
    background: var(--web-wine);
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    padding: 16px 0;
    gap: 8px;
}
.web-footer__bottom > .container { gap: 8px; }
.web .web-footer__bottom a { color: var(--web-white); font-weight: 600; }
.web .web-footer__bottom a:hover { color: var(--web-lilac-soft); }

/* ---------- Botó tornar a dalt ---------- */
.web-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--web-wine);
    color: var(--web-white);
    box-shadow: var(--web-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, background .2s;
    z-index: 1020;
}
.web-top.is-visible { opacity: 1; visibility: visible; }
.web-top:hover { background: var(--web-pink); }

/* ---------- Capçalera de pàgina interior ---------- */
.web-pagehead { background: var(--web-tint); border-bottom: 1px solid var(--web-border); padding: 36px 0 32px; }
.web-pagehead__title { font-size: 32px; font-weight: 600; color: var(--web-wine); margin: 0; }
.web-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 10px; font-size: 13px; color: var(--web-muted); }
.web-breadcrumb li + li::before { content: '/'; margin: 0 8px; color: var(--web-lilac); }

/* ---------- Pàgines legals ---------- */
.web-legal { padding: 48px 0 72px; }
.web-legal__content { color: #44394a; }
.web-legal__content h2 {
    font-size: 21px;
    font-weight: 600;
    color: var(--web-wine);
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--web-border);
}
.web-legal__content h2:first-child { margin-top: 0; }
.web-legal__content h3 { font-size: 16px; font-weight: 600; color: var(--web-text); margin: 28px 0 10px; }
.web-legal__content h4 { font-size: 14px; font-weight: 600; color: var(--web-wine); margin: 0 0 10px; }
.web-legal__content p { margin-bottom: 14px; }
.web-legal__content ul { padding-left: 0; list-style: none; margin-bottom: 18px; }
.web-legal__content ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.web-legal__content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--web-pink);
}
.web-legal__content a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.web-legal__cols { columns: 2; column-gap: 32px; }
.web-legal__cols li { break-inside: avoid; }
@media (max-width: 767.98px) { .web-legal__cols { columns: 1; } }

.web-legal__data { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 18px; }
.web-legal__data > div { background: var(--web-tint); border-radius: var(--web-radius); padding: 14px 16px; }
.web-legal__data dt { font-size: 12px; font-weight: 500; color: var(--web-muted); text-transform: uppercase; letter-spacing: .06em; }
.web-legal__data dd { margin: 4px 0 0; font-weight: 600; color: var(--web-text); }

.web-legal__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.web-legal__card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--web-border); border-top: 3px solid var(--web-wine); border-radius: var(--web-radius); }
.web-legal__card-label { font-size: 12px; font-weight: 500; color: var(--web-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.web-legal__card strong { color: var(--web-wine); font-size: 16px; }

.web-legal__browsers { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 24px; }
.web-legal__browser { border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-white); }
.web-legal__browser summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--web-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.web-legal__browser summary::-webkit-details-marker { display: none; }
.web-legal__browser summary::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--web-pink); transition: transform .2s; }
.web-legal__browser[open] summary { color: var(--web-wine); border-bottom: 1px solid var(--web-border); }
.web-legal__browser[open] summary::after { transform: rotate(180deg); }
.web-legal__browser-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px; }
.web-legal__browser-body ol { padding-left: 20px; margin: 0; font-size: 14px; }
.web-legal__browser-body ol li { margin-bottom: 6px; }
@media (max-width: 767.98px) { .web-legal__browser-body { grid-template-columns: 1fr; } }

.web-auth__legal { margin: 12px 0 0; font-size: 12px; color: var(--web-muted); }
.web-auth__legal a { color: var(--web-muted); text-decoration: underline; }

/* ---------- Graella de productes ---------- */
.web-products__loading,
.web-products__empty { padding: 70px 16px; text-align: center; color: var(--web-muted); }
.web-products__loading i { font-size: 28px; color: var(--web-lilac); }
.web-products__empty i { display: block; font-size: 30px; color: var(--web-lilac-soft); margin-bottom: 12px; }

.web-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--web-white);
    border: 1px solid var(--web-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.web-card:hover { box-shadow: var(--web-shadow); transform: translateY(-3px); }
.web-card__img { position: relative; aspect-ratio: 1 / 1; background: var(--web-tint); overflow: hidden; }
.web-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.web-card:hover .web-card__img img { transform: scale(1.05); }
.web-card__noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--web-lilac-soft); font-size: 34px; }
.web-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.web-card__code { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--web-muted); }
.web-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--web-text);
    margin: 4px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.web-card__price { margin-top: auto; font-size: 19px; font-weight: 700; color: var(--web-wine); }
.web-card__price--none { font-size: 13px; font-weight: 500; color: var(--web-muted); }
.web .web-card__login { margin-top: auto; font-size: 12px; font-weight: 500; color: var(--web-muted); }
.web .web-card__login i { color: var(--web-lilac); margin-right: 4px; }
.web .web-card__login:hover { color: var(--web-wine); }

.web-card__buy { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--web-border); background: #fdf8fb; }
.web-card__formats { width: 100%; flex-wrap: nowrap; }
.web-card__formats .format-qty { flex: 1 1 0; }
.web-card__formats .format-stepper input { flex-basis: 30px; width: 30px; }
.web-card__add { flex: 1; padding: 8px 10px; font-size: 11px; letter-spacing: .05em; }

.web-qty { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-white); overflow: hidden; }
.web-qty__btn { width: 30px; height: 100%; border: 0; background: transparent; color: var(--web-muted); font-size: 10px; }
.web-qty__btn:hover { background: var(--web-tint); color: var(--web-wine); }
.web-qty__input { width: 34px; height: 100%; border: 0; text-align: center; font-weight: 600; font-size: 13px; color: var(--web-text); -moz-appearance: textfield; }
.web-qty__input::-webkit-outer-spin-button,
.web-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 575.98px) {
    .web-card__body { padding: 12px; }
    .web-card__buy { padding: 10px 12px 12px; }
    .web-card__add { flex-basis: 100%; }
}

.web-pagination { margin-top: 16px; }
.web-pagination__list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.web-pagination__list a,
.web-pagination__list span,
.web-pagination__list .is-gap { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; font-weight: 500; }
.web .web-pagination__list a { color: var(--web-text); border: 1px solid var(--web-border); }
.web .web-pagination__list a:hover { border-color: var(--web-pink); color: var(--web-wine); }
.web .web-pagination__list .is-active a { background: var(--web-wine); border-color: var(--web-wine); color: var(--web-white); }
.web-pagination__list .is-disabled span { color: var(--web-border); border: 1px solid var(--web-border); }
.web-pagination__list .is-gap { color: var(--web-muted); }

/* ---------- Nova contrasenya ---------- */
.web-auth__card--narrow { max-width: 520px; }
.web-auth__state { text-align: center; }
.web-auth__state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--web-tint);
    color: var(--web-pink);
    font-size: 24px;
}
.web-field__help { display: block; margin-top: 6px; font-size: 12px; color: var(--web-muted); }
.web-password { position: relative; }
.web-password input { padding-right: 46px; }
.web-password__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--web-muted);
}
.web-password__toggle:hover { background: var(--web-tint); color: var(--web-wine); }

/* Enllaços de la targeta a la fitxa */
a.web-card__img { display: block; }
.web .web-card__title a { color: inherit; }
.web .web-card__title a:hover { color: var(--web-wine); }

/* ---------- Fitxa de producte (vista compartida amb el panell: admin/cataleg/includes/fitxa) ---------- */
.web-pagehead--compact { padding: 16px 0 14px; }
.web-pagehead--compact .web-breadcrumb { margin: 0; }
.web-producte { padding: 32px 0 72px; }
.web-producte__card { background: var(--web-white); border: 1px solid var(--web-border); border-radius: 10px; padding: 30px; }
.web .cataleg-fitxa-add-btn { background: var(--web-wine); border: 0; color: var(--web-white); font-size: 14px; }
.web .cataleg-fitxa-add-btn:hover { background: var(--web-wine-dark); color: var(--web-white); }
.web .cataleg-fitxa-add-btn:disabled { opacity: .7; }
@media (max-width: 767.98px) { .web-producte__card { padding: 18px; } }
/* La regla general d'enllaços (.web a) no ha de trepitjar els de la fitxa compartida */
.web .cataleg-fitxa-pdf,
.web .cataleg-fitxa-pdf:hover { color: var(--web-white); }
.web .cataleg-fitxa-back { color: #6c7293; }
.web .cataleg-fitxa-back:hover { color: #9E3560; }
.web .cataleg-fitxa-prevnext a { color: #252533; }
.web .cataleg-fitxa-prevnext a:hover { color: var(--web-white); }

/* ---------- Web més ampla (2026-10-19): espai per als filtres i 4 productes per fila ---------- */
@media (min-width: 1200px) { .web .container { max-width: 1320px; } }
@media (min-width: 1500px) { .web .container { max-width: 1440px; } }

/* ---------- Filtres del lateral (home) ---------- */
.web-filters { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 22px; padding: 20px; background: var(--web-white); border: 1px solid var(--web-border); border-radius: 10px; }
.web-filters__title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--web-wine); margin: 0 0 12px; }
.web-filters__search { position: relative; }
.web-filters__search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--web-muted); font-size: 13px; }
.web-filters__search input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--web-border); border-radius: var(--web-radius); font-size: 13px; color: var(--web-text); background: var(--web-tint); outline: none; transition: border-color .2s, box-shadow .2s; }
.web-filters__search input:focus { border-color: var(--web-lilac); box-shadow: 0 0 0 3px rgba(227, 100, 169, .15); background: var(--web-white); }
.web-filters__clear { display: none; align-self: flex-start; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--web-pink); }
.web-filters__clear:hover { color: var(--web-wine); }
.web-filters__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-white); font-weight: 600; color: var(--web-wine); }
.web-filters__toggle i.fa-sliders-h { margin-right: 8px; color: var(--web-pink); }
.web-filters__unit { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--web-muted); }
.web-filters__range { display: flex; align-items: center; gap: 8px; color: var(--web-muted); }
.web-filters__range input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--web-border); border-radius: var(--web-radius); font-size: 13px; color: var(--web-text); background: var(--web-tint); outline: none; transition: border-color .2s, box-shadow .2s; }
.web-filters__range input:focus { border-color: var(--web-lilac); box-shadow: 0 0 0 3px rgba(227, 100, 169, .15); background: var(--web-white); }
.web-filters__checks { display: flex; flex-direction: column; gap: 8px; }
.web-filters__check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--web-text); cursor: pointer; line-height: 1.35; }
.web-filters__check input { margin-top: 3px; accent-color: var(--web-wine); }

.web-cats { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.web-cats__row { display: flex; align-items: center; }
.web-cats__item { flex: 1; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: var(--web-radius); font-size: 14px; color: var(--web-text); line-height: 1.35; transition: background .15s, color .15s; }
.web-cats__item:hover { background: var(--web-tint); color: var(--web-wine); }
.web-cats__item.is-active { background: var(--web-wine); color: var(--web-white); font-weight: 500; }
.web-cats__item--sub { font-size: 13px; padding: 6px 10px; }
.web-cats__expand { flex: 0 0 30px; height: 30px; border: 0; background: none; border-radius: 50%; color: var(--web-muted); font-size: 11px; transition: transform .2s, background .15s; }
.web-cats__expand:hover { background: var(--web-tint); color: var(--web-wine); }
.web-cats__subs { list-style: none; margin: 2px 0 6px 12px; padding: 0 0 0 8px; border-left: 2px solid var(--web-border); display: none; }
.web-cats__group.is-open > .web-cats__subs { display: block; }
.web-cats__group.is-open .web-cats__expand { transform: rotate(180deg); }

@media (max-width: 991.98px) {
    .web-filters { position: static; margin-bottom: 8px; }
    .web-cats { max-height: none; }
}

.web-products__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--web-muted); }
.web-products__active { font-weight: 500; color: var(--web-wine); }

/* ---------- Àrea de client: carret, les meves comandes i pagament (2026-10-21) ---------- */
.web-area { padding: 32px 0 72px; }
.web-area__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; color: var(--web-wine); margin-bottom: 6px; }
.web-area__subtitle { color: var(--web-muted); margin-bottom: 20px; }
.web-area__title + .row,
.web-area__title + .web-box,
.web-area__title + .web-area__empty,
.web-area__title ~ #web-carret { margin-top: 20px; }
.web-area__empty { padding: 60px 16px; text-align: center; color: var(--web-muted); background: var(--web-tint); border-radius: 10px; }
.web-area__empty i { display: block; font-size: 34px; color: var(--web-lilac-soft); margin-bottom: 12px; }
.web .web-area__back { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; }
.web-area__back i { margin-right: 6px; }

.web-box { background: var(--web-white); border: 1px solid var(--web-border); border-radius: 10px; padding: 20px; }
.web-box--table { padding: 0; overflow-x: auto; }

.web-btn--sm { padding: 7px 14px; font-size: 12px; }

.web-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.4; }
.web-badge--neutral { background: var(--web-tint); color: var(--web-wine); }
.web-badge--danger { background: #fbe7eb; color: #c4314b; }
.web-badge--success { background: #e3f4ea; color: #2e7d4f; }

/* Línies del carret */
.web-cart-line { display: grid; grid-template-columns: 72px 1fr auto 110px 36px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--web-border); }
.web-cart-line:first-child { padding-top: 0; }
.web-cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.web-cart-line__img { width: 72px; height: 72px; border-radius: var(--web-radius); background: var(--web-tint); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--web-lilac-soft); font-size: 22px; }
.web-cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.web-cart-line__info { min-width: 0; }
.web-cart-line__name { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.web-cart-line__format,
.web-cart-line__price { font-size: 13px; color: var(--web-muted); }
.web-cart-line__subtotal { text-align: right; font-weight: 600; color: var(--web-wine); }
.web-cart-line__remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--web-muted); }
.web-cart-line__remove:hover { background: #fbe7eb; color: #c4314b; }
@media (max-width: 575.98px) {
    .web-cart-line__img { width: 56px; height: 56px; }
    /* Graella de mòbil: al final del fitxer ("Àrea de client en tauleta i mòbil") */
}

/* Resum (carret i comanda) */
.web-summary { position: sticky; top: 140px; }
.web-summary__title { font-size: 16px; font-weight: 600; color: var(--web-wine); margin-bottom: 14px; }
.web-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--web-border); font-size: 14px; }
.web-summary__row--main strong { font-size: 20px; color: var(--web-wine); }
.web-summary__note { font-size: 12px; color: var(--web-muted); margin: 10px 0; }
.web-summary__note--alert { background: var(--web-tint); border-radius: var(--web-radius); padding: 10px 12px; }
.web-summary .web-field { margin-top: 14px; }
.web-summary .web-btn i { margin-right: 6px; }

/* Direcció d'entrega del carret (Select2 amb cercador): opció amb icona, nom, etiqueta i adreça en dues línies */
.web-address__title { font-size: 16px; font-weight: 600; color: var(--web-wine); margin-bottom: 14px; }
.web-address__title i { margin-right: 6px; color: var(--web-pink); }
.web-address .select2-container--default .select2-selection--single { height: auto; min-height: 64px; display: flex; align-items: center; padding: 8px 36px 8px 12px; }
.web-address .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding: 0; white-space: normal; }
.web-address .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }
.web-address__form { margin-top: 18px; padding: 18px; border-radius: var(--web-radius); background: var(--web-tint); }
.web-address__form .web-field input { background: var(--web-white); }
.web-address-opt { display: flex; align-items: center; gap: 12px; }
.web-address-opt__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--web-tint); color: var(--web-wine); font-size: 14px; }
.web-address-opt--new .web-address-opt__icon { background: var(--web-wine); color: var(--web-white); }
.web-address-opt__text { display: flex; flex-direction: column; min-width: 0; }
.web-address-opt__name { font-weight: 600; font-size: 14px; color: var(--web-text); }
.web-address-opt__line { font-size: 12px; color: var(--web-muted); }
.web-address-opt__tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; background: var(--web-border); color: var(--web-muted); vertical-align: middle; }
.web-address-opt__tag.is-main { background: var(--web-lilac-soft); color: var(--web-wine-dark); }
.web-address-dropdown .select2-results__option { padding: 10px 12px; }
.web-address-dropdown .select2-results__option--highlighted[aria-selected] .web-address-opt__name,
.web-address-dropdown .select2-results__option--highlighted[aria-selected] .web-address-opt__line { color: var(--web-white); }
.web-address-dropdown .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) { background: var(--web-tint); }

/* Taula (les meves comandes, detall): en mòbil, una targeta per fila */
.web-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.web-table th { padding: 12px 16px; background: var(--web-tint); color: var(--web-wine); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.web-table td { padding: 12px 16px; border-top: 1px solid var(--web-border); vertical-align: middle; }
.web-table__actions { text-align: right; white-space: nowrap; }
@media (max-width: 767.98px) {
    .web-table thead { display: none; }
    .web-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--web-border); }
    .web-table tr:first-child { border-top: 0; }
    .web-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 16px; border-top: 0; text-align: right !important; }
    .web-table td[data-label]::before { content: attr(data-label); font-weight: 500; color: var(--web-muted); text-align: left; }
    .web-table__actions { justify-content: flex-end !important; padding-top: 8px !important; }
}

/* ---------- Menú principal (header, al costat de les icones del compte i el carret) ---------- */
.web-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; }
.web .web-nav__link { display: block; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--web-text); border-bottom: 2px solid transparent; }
.web .web-nav__link:hover { color: var(--web-wine); }
.web .web-nav__link.is-active { color: var(--web-wine); border-bottom-color: var(--web-pink); }
/* Mòbil: logo i icones a dalt, menú a sota en una fila sencera */
@media (max-width: 767.98px) {
    .web-mainbar > .container:first-child { gap: 0 16px; }
    .web-mainbar .web-icons { margin-left: auto; }
    .web-nav { order: 3; width: 100%; margin-left: 0 !important; padding: 6px 0 10px; }
    .web-nav__list { gap: 0 20px; }
    .web .web-nav__link { font-size: 13px; }
}

/* ---------- Les meves comandes (2026-10-23): targetes, comandes per revisar i edició des de la web ---------- */
.web-orders__section { margin-top: 28px; }
.web-orders__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--web-wine); margin-bottom: 6px; }
.web-orders__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--web-pink); color: var(--web-white); font-size: 12px; }
.web-orders__info { font-size: 13px; color: var(--web-muted); margin-bottom: 14px; }
.web-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.web-order { display: flex; flex-direction: column; background: var(--web-white); border: 1px solid var(--web-border); border-radius: 10px; padding: 18px 20px; transition: box-shadow .2s; min-width: 0; }
.web-order:hover { box-shadow: var(--web-shadow); }
.web-order--revisar { border-color: var(--web-lilac-soft); border-left: 4px solid var(--web-pink); background: linear-gradient(180deg, var(--web-tint) 0, var(--web-white) 70px); }
.web-order__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.web-order__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.web .web-order__num { font-size: 17px; font-weight: 700; color: var(--web-wine); }
.web-order__gp5 { font-size: 12px; font-weight: 600; color: var(--web-lilac); }
.web-order__date { width: 100%; font-size: 12px; color: var(--web-muted); }
.web-order__date i { margin-right: 4px; }
.web-order__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.web-order__dot { font-size: 7px; }
.web-order__note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: var(--web-radius); background: #fff6e5; color: #8a5a00; font-size: 12px; }
.web-order__note i { color: #e0a100; }
.web-order__note--page { margin: 0 0 12px; font-size: 13px; }
.web-order__note--page a { margin-left: auto; font-weight: 600; }
.web-order__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin-top: 14px; }
.web-order__items { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.web-order__items li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--web-border); min-width: 0; }
.web-order__items li:last-child { border-bottom: 0; }
/* Nom sencer fins a 2 línies (el final, el color, és el que distingeix els articles); la quantitat sempre a la dreta */
.web-order__item-name { flex: 1; min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.web-order__item-qty { flex-shrink: 0; max-width: 45%; text-align: right; color: var(--web-muted); }
.web-order__more { color: var(--web-muted); font-style: italic; }
.web-order__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--web-border); font-size: 13px; color: var(--web-muted); }
.web-order__total strong { font-size: 18px; color: var(--web-wine); }
.web-order__foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.web-order__foot .web-btn i { margin-right: 6px; }
@media (max-width: 575.98px) { .web-orders { grid-template-columns: 1fr; } }

/* Detall de la comanda: línies editables (com el carret) o de només lectura */
.web-cart-line--readonly { grid-template-columns: 72px 1fr auto 110px; }
.web-cart-line__qty { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.web-cart-line.is-removed .web-cart-line__img,
.web-cart-line.is-removed .web-cart-line__info,
.web-cart-line.is-removed .web-cart-line__subtotal { opacity: .4; text-decoration: line-through; }
.web-cart-line.is-removed .web-cart-line__remove { color: var(--web-wine); }
.web-qty-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.web-qty-wrap__meta { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; }
.web-qty-wrap__unit { font-size: 11px; color: var(--web-muted); }
/* Metres totals de la línia (peces x metres del format) */
.web-qty-wrap__metres { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--web-tint); color: var(--web-wine); font-size: 12px; font-weight: 600; white-space: nowrap; }
.web-qty-wrap .web-qty__input { width: 48px; }
.web-order-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.web-order-actions .web-btn i { margin-right: 6px; }
.web-btn--danger-link { background: none; color: #c4314b !important; padding-left: 0; padding-right: 0; }
.web-btn--danger-link:hover { color: #9b1f36 !important; text-decoration: underline; }
.web-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Client pendent de validar (sector 000, 2026-10-26): avís al resum del carret i de la comanda, en lloc de fer la comanda o pagar */
.web-validar { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: var(--web-radius); background: #fff6e5; border: 1px solid #f3dca8; color: #8a5a00; font-size: 13px; line-height: 1.45; }
.web-validar > i { margin-top: 2px; font-size: 18px; color: #e0a100; }
.web-validar strong { display: block; margin-bottom: 2px; color: #6b4600; }
.web-validar p { margin: 0; }
.web-validar__chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 55%; padding: 8px 12px; border-radius: var(--web-radius); background: #fff6e5; color: #8a5a00; font-size: 12px; font-weight: 600; line-height: 1.25; }
.web-validar__chip i { color: #e0a100; }

/* Comanda servida: demanat / servit / pendent (2026-10-23) */
.web-servei__nom { font-weight: 600; line-height: 1.35; }
.web-servei__estat { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 600; }
.web-servei__estat--complet { color: #2e7d4f; }
.web-servei__estat--parcial { color: #b7791f; }
.web-servei__estat--res { color: #c4314b; }
.web-servei td { white-space: nowrap; }
.web-servei td:first-child { white-space: normal; }
.web-servei__servit { font-weight: 600; color: #2e7d4f; }
.web-servei__pendent { font-weight: 600; color: #b7791f; }
.web-order__item-qty--parcial { color: #b7791f; font-weight: 600; }
.web-order__item-qty .fa-check { color: #2e7d4f; font-size: 10px; }
@media (max-width: 767.98px) { .web-servei td { white-space: normal; } }

/* ---------- Àrea de client en tauleta i mòbil (2026-10-23): carret, les meves comandes i detall ---------- */
/* Barra inferior (només mòbil i tauleta): import i botó principal del resum, que queda al final de la pàgina */
.web-mobilebar { display: none; }
@media (max-width: 991.98px) {
    .web-summary { position: static; }
    .web-mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--web-white); border-top: 1px solid var(--web-border); box-shadow: 0 -6px 20px rgba(78, 20, 48, .08);
    }
    .web-mobilebar__total { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
    .web-mobilebar__total span { font-size: 11px; color: var(--web-muted); }
    .web-mobilebar__total strong { font-size: 18px; color: var(--web-wine); }
    .web-mobilebar .web-btn { flex-shrink: 0; padding: 11px 16px; font-size: 13px; }
    .web-mobilebar .web-btn i { margin-right: 6px; }
    .has-mobilebar .web-area { padding-bottom: 110px; }
    .has-mobilebar .web-top { bottom: 84px; }
}

@media (max-width: 767.98px) {
    .web-area { padding: 20px 0 48px; }
    .web-area__title { font-size: 21px; gap: 8px; }
    .web-area__title .web-badge { font-size: 11px; }
    .web-box { padding: 14px; }
    .web-box--table { padding: 0; }
    .web-orders__section { margin-top: 20px; }
    .web-order { padding: 14px 16px; }
    .web-order__foot .web-btn { width: 100%; }
    .web-order__note--page { flex-wrap: wrap; }
    .web-order__note--page span { flex: 1; min-width: 0; }

    /* Detall servit: l'article ocupa tota la fila (sense etiqueta) i a sota demanat / servit / pendent / import */
    .web-servei td:first-child { display: block; text-align: left !important; padding-bottom: 6px; }
    .web-servei td:first-child::before { display: none; }

    /* Botons de desar / eliminar: un a sota de l'altre, desar a dalt */
    .web-order-actions { flex-direction: column-reverse; align-items: stretch; }
    .web-order-actions .web-btn { width: 100%; }
    .web-btn--danger-link { padding: 10px 0; }

    /* Camps a 16px: l'iPhone no fa zoom en tocar-los */
    .web-qty__input,
    .web-field textarea { font-size: 16px; }
}

/* Línies (carret i comanda) en mòbil: imatge a l'esquerra; a la dreta el nom i, a sota, la quantitat i l'import a la mateixa fila */
@media (max-width: 575.98px) {
    .web-cart-line,
    .web-cart-line--readonly {
        grid-template-columns: 56px 1fr auto;
        grid-template-areas: "img info remove" "img qty subtotal";
        gap: 8px 12px;
        align-items: start;
    }
    .web-cart-line--readonly { grid-template-areas: "img info info" "img qty subtotal"; }
    .web-cart-line__img { grid-area: img; }
    .web-cart-line__info { grid-area: info; min-width: 0; }
    .web-cart-line .web-qty,
    .web-cart-line .web-qty-wrap,
    .web-cart-line__qty { grid-area: qty; grid-column: auto; align-self: center; }
    .web-cart-line__subtotal { grid-area: subtotal; grid-column: auto; text-align: right; align-self: center; }
    .web-cart-line__remove { grid-area: remove; grid-row: auto; grid-column: auto; margin: -6px -6px 0 0; }
    /* Quantitat i, al costat (o a sota si no hi cap), "peces" i els metres totals en una fila */
    .web-cart-line .web-qty-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
    .web-qty-wrap__meta { flex-direction: row; align-items: center; gap: 6px; }
    .web-cart-line__qty { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; white-space: normal; }
    .web-qty { height: 40px; }
    .web-qty__btn { width: 38px; font-size: 11px; }
    .web-qty__input,
    .web-qty-wrap .web-qty__input { width: 44px; }
}
/* Mòbil gran / tauleta petita: línies en una fila, però més estretes */
@media (min-width: 576px) and (max-width: 767.98px) {
    .web-cart-line { grid-template-columns: 60px 1fr auto 90px 36px; gap: 12px; }
    .web-cart-line--readonly { grid-template-columns: 60px 1fr auto 90px; }
    .web-cart-line__img { width: 60px; height: 60px; }
}
