/* Albero Group standard pdoMenu + pdoPage catalog — v147 */

.delivery-catalog-page {
    --catalog-accent: var(--brand-primary, #7a0000);
    --catalog-accent-dark: #5d0000;
    --catalog-text: #111827;
    --catalog-muted: #667085;
    --catalog-line: rgba(16, 24, 40, 0.12);
    background: #f7f8fa;
    color: var(--catalog-text);
    min-height: 65vh;
}

.delivery-catalog-page[data-context="pioppo"] {
    --catalog-accent: var(--brand-primary, #735f36);
    --catalog-accent-dark: #524326;
}

.delivery-catalog-page[data-context="cedro"] {
    --catalog-accent: var(--brand-primary, #466145);
    --catalog-accent-dark: #30432f;
}

.delivery-catalog-hero {
    background: var(--catalog-accent);
    color: #fff;
    padding: 25px 0 29px;
    text-align: center;
}

.delivery-catalog-hero h1 {
    color: inherit;
    font-size: clamp(2rem, 2.45vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
}

.delivery-catalog-docs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    margin-top: 14px;
}

.delivery-catalog-doc {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 8px;
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.delivery-catalog-doc:hover,
.delivery-catalog-doc:focus-visible {
    color: #fff;
    opacity: 0.72;
    transform: translateY(-1px);
}

.delivery-catalog-doc svg {
    flex: 0 0 auto;
}

.delivery-catalog-doc__pdf {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 900;
    height: 19px;
    justify-content: center;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0 4px;
    text-decoration: none;
}

.delivery-catalog-hero__intro {
    margin: 14px auto 0;
    max-width: 760px;
    opacity: 0.86;
}

.albero-catalog-tabs {
    background: #fff;
    border-bottom: 1px solid var(--catalog-line);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.albero-catalog-tabs__viewport {
    cursor: grab;
    margin: 0 auto;
    max-width: 1440px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 14px clamp(16px, 4vw, 40px);
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.albero-catalog-tabs__viewport::-webkit-scrollbar {
    display: none;
}

.albero-catalog-tabs__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.albero-catalog-tabs__track {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.albero-catalog-tab {
    -webkit-user-drag: none;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(122, 0, 0, 0.25);
    border-radius: 999px;
    color: var(--catalog-accent-dark);
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
    user-select: none;
    white-space: nowrap;
}

.albero-catalog-tab:hover {
    border-color: var(--catalog-accent);
    color: var(--catalog-accent);
    transform: translateY(-1px);
}

.albero-catalog-tab.is-active,
.albero-catalog-tab.active {
    background: var(--catalog-accent);
    border-color: var(--catalog-accent);
    color: #fff;
}

.albero-catalog-main {
    margin: 0 auto;
    max-width: 1440px;
    padding:
        clamp(34px, 5vw, 68px)
        clamp(16px, 4vw, 40px)
        clamp(60px, 8vw, 110px);
}

.albero-catalog-count {
    color: var(--catalog-muted);
    margin: 0 0 24px;
}

.albero-catalog-count strong {
    color: inherit;
    font-weight: 500;
}

.albero-catalog-grid {
    display: grid;
    gap: clamp(18px, 2.2vw, 28px);
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.albero-product-card {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.albero-product-card__media {
    aspect-ratio: 4 / 3;
    background: #eceff2;
    display: block;
    overflow: hidden;
}

.albero-product-card__media picture,
.albero-product-card__media img {
    display: block;
    height: 100%;
    width: 100%;
}

.albero-product-card__media img {
    object-fit: cover;
    transition:
        transform 420ms
        cubic-bezier(0.2, 0.7, 0.2, 1);
}

.albero-product-card:hover
.albero-product-card__media img {
    transform: scale(1.035);
}

.albero-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.albero-product-card__title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.albero-product-card__title a {
    color: var(--catalog-text);
    text-decoration: none;
}

.albero-product-card__description {
    color: var(--catalog-muted);
    display: -webkit-box;
    font-size: 0.96rem;
    line-height: 1.45;
    margin: 8px 0 0;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.albero-product-card__weight {
    align-items: center;
    color: #475467;
    display: flex;
    gap: 7px;
    margin-top: 17px;
}

.albero-product-card__weight svg,
.albero-product-card__cart svg {
    display: block;
    flex: 0 0 auto;
}

.albero-product-card__footer {
    align-items: flex-end;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
}

.albero-product-card__prices {
    display: flex;
    flex-direction: column;
    min-width: 86px;
}

.albero-product-card__old-price {
    color: #98a2b3;
    font-size: 0.86rem;
    margin-bottom: 4px;
    text-decoration: line-through;
}

.albero-product-card__price {
    color: var(--catalog-text);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.albero-product-card__actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.albero-product-card__info {
    align-items: center;
    border: 1px solid rgba(122, 0, 0, 0.3);
    border-radius: 50%;
    color: var(--catalog-accent);
    display: inline-flex;
    flex: 0 0 42px;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    text-decoration: none;
}

.albero-product-card__cart {
    margin: 0;
}

.albero-product-card__cart button {
    align-items: center;
    background: #fff;
    border: 2px solid var(--catalog-accent);
    border-radius: 14px;
    color: var(--catalog-accent-dark);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
    white-space: nowrap;
}

.albero-product-card__cart button:hover {
    background: var(--catalog-accent);
    color: #fff;
    transform: translateY(-1px);
}

.albero-catalog-pagination {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.albero-catalog-pagination .pagination {
    margin: 0;
}

.pdopage-loading {
    opacity: 0.58;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .albero-catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .delivery-catalog-hero {
        padding: 22px 0 25px;
    }

    .delivery-catalog-hero h1 {
        font-size: 2rem;
    }

    .delivery-catalog-docs {
        gap: 10px 18px;
        margin-top: 12px;
    }

    .delivery-catalog-doc {
        font-size: 0.92rem;
    }

    .albero-catalog-tabs__viewport {
        padding: 12px 16px;
    }

    .albero-catalog-tab {
        min-height: 40px;
        padding: 0 17px;
    }

    .albero-catalog-main {
        padding: 30px 16px 72px;
    }

    .albero-catalog-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .albero-product-card {
        border-radius: 17px;
    }

    .albero-product-card__body {
        padding: 18px;
    }

    .albero-product-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .albero-product-card__actions {
        justify-content: space-between;
    }

    .albero-product-card__cart {
        flex: 1;
    }

    .albero-product-card__cart button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .delivery-catalog-doc,
    .albero-product-card__media img,
    .albero-catalog-tab,
    .albero-product-card__cart button {
        transition: none;
    }
}

/* ALBERO_CATALOG_TABS_DESKTOP_V3125_START */
@media (min-width: 1400px) {
    .albero-catalog-tabs__viewport {
        max-width: 1440px;
        padding-inline: 24px;
        cursor: default;
        touch-action: auto;
    }

    .albero-catalog-tabs__track {
        width: 100%;
        min-width: 0;
        justify-content: center;
        gap: 8px;
    }

    .albero-catalog-tab {
        padding-inline: 12px;
    }
}
/* ALBERO_CATALOG_TABS_DESKTOP_V3125_END */

/* V785_COMPACT_CATALOG_START: retain original desktop grid, compress 769-1199, and use
   real native add-to-cart buttons (no fake click proxies) in 2-column mobile cards. */
@media (min-width: 769px) and (max-width: 1199.98px) {
  .delivery-catalog-page .albero-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(11px, 1.3vw, 18px);
  }
  .delivery-catalog-page .albero-product-card__body { padding: 14px; }
  .delivery-catalog-page .albero-product-card__title { font-size: 1rem; }
  .delivery-catalog-page .albero-product-card__footer { gap: 6px; }
}
@media (max-width: 768px) {
  .delivery-catalog-page .albero-catalog-main {
    padding-inline: 10px;
    padding-block: 21px 56px;
  }
  .delivery-catalog-page .albero-catalog-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 11px;
    row-gap: 19px;
  }
  .delivery-catalog-page .albero-product-card {
    position:relative;
    container-type:inline-size;
    min-width:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
    overflow:visible;
  }
  .delivery-catalog-page .albero-product-card__media {
    position:relative;
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1;
    border-radius:clamp(12px,3vw,19px);
    overflow:hidden;
  }
  .delivery-catalog-page .albero-product-card__media img {
    width:100%;height:100%;object-fit:cover;
  }
  .delivery-catalog-page .albero-product-card__body {
    display:flex;
    flex-direction:column;
    padding:8px 2px 0;
    gap:0;
  }
  .delivery-catalog-page .albero-product-card__footer {
    order:-2;
    position:static;
    display:block;
    margin:0 0 6px;
    padding:0;
  }
  .delivery-catalog-page .albero-product-card__prices {min-width:0;}
  .delivery-catalog-page .albero-product-card__price {
    white-space:normal;
    font-size:clamp(15px,4.2vw,19px);
    line-height:1.18;
    font-weight:800;
  }
  .delivery-catalog-page .albero-product-card__old-price {
    font-size:11px;margin:0 0 2px;
  }
  .delivery-catalog-page .albero-product-card__title {
    order:-1;
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    font-size:clamp(13px,3.4vw,16px);
    font-weight:700;
    line-height:1.35;
  }
  .delivery-catalog-page .albero-product-card__description {
    font-size:clamp(11px,2.9vw,13px);
    margin:4px 0 0;
    line-height:1.35;
    min-height:0;
    -webkit-line-clamp:2;
  }
  .delivery-catalog-page .albero-product-card__weight {
    margin:4px 0 0;
    font-size:11px;
    line-height:1.25;
    color:#858d96;
    gap:4px;
  }
  .delivery-catalog-page .albero-product-card__weight svg {
    width:12px;height:12px;
  }
  .delivery-catalog-page .albero-product-card__actions {
    display:contents;
  }
  /* Product image/title links stay enabled; only the redundant (i) icon is hidden. */
  .delivery-catalog-page .albero-product-card__info {display:none;}
  .delivery-catalog-page .albero-product-card__cart {
    position:absolute;
    z-index:3;
    inset-inline-end:9px;
    inset-block-start:calc(100cqw - 54px);
    width:44px;
    height:44px;
    flex:none;
  }
  .delivery-catalog-page .albero-product-card__cart button {
    display:flex;
    width:44px;
    height:44px;
    min-height:44px;
    border:1px solid #e2e4e6;
    border-radius:50%;
    padding:0;
    background:#fff;
    color:#172532;
    font-size:0;
    box-shadow:0 2px 12px rgba(22,35,47,.12);
  }
  .delivery-catalog-page .albero-product-card__cart button > * {display:none;}
  .delivery-catalog-page .albero-product-card__cart button::before {
    content:"+";
    font-size:28px;
    font-weight:400;
    line-height:1;
  }
  .delivery-catalog-page .albero-product-card__cart button:focus-visible {
    outline:3px solid var(--catalog-accent);
    outline-offset:3px;
  }
  .delivery-catalog-page .albero-product-card__cart button:hover {
    background:var(--catalog-accent);color:#fff;
  }
}
/* V785_COMPACT_CATALOG_END */

/* V785B_ACTUAL_MS3_CARD_OVERRIDES_START: preserve the photo, suppress duplicate info icon. */
@media (max-width: 768px) {
 .delivery-catalog-page .albero-product-card .albero-product-card__info,
 .delivery-catalog-page .albero-product-card .albero-card-secondary-action { display:none!important; }
 .delivery-catalog-page .albero-product-card .albero-product-card__cart button {
   width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;
   box-sizing:border-box!important;flex:none!important;
 }
}
/* V785B_ACTUAL_MS3_CARD_OVERRIDES_END */
