/**
 * a4w_recipe – Front-office styles
 * BEM naming with a4w- prefix
 * Compatible with Hummingbird & Classic themes (PS 8/9)
 */

/* ──────────────────────────────────────────────
 * 0. Common / Shared
 * ────────────────────────────────────────────── */

.a4w-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

.a4w-tag {
    display: inline-block;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-transform: uppercase;
    background: #888;
}

/* Buttons */
.a4w-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.a4w-btn--primary {
    background: #1a1a1a;
    color: #fff;
}

.a4w-btn--primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.a4w-btn--primary svg {
    flex-shrink: 0;
}

.a4w-btn--outline {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ccc;
}

.a4w-btn--outline:hover {
    border-color: #999;
    background: #fafafa;
}

/* Collapse component */
.a4w-collapse__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.a4w-collapse__trigger:hover {
    opacity: 0.8;
}

.a4w-collapse__chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #999;
}

.a4w-collapse__trigger[aria-expanded="false"] .a4w-collapse__chevron {
    transform: rotate(-90deg);
}

.a4w-collapse__content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ──────────────────────────────────────────────
 * 1. Recipe Card (.a4w-card)
 * Used in: listing grid, home carousel, product page
 * ────────────────────────────────────────────── */

.a4w-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.a4w-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.a4w-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.a4w-card__link:hover {
    color: inherit;
    text-decoration: none;
}

/* Image wrapper – 4:3 ratio */
.a4w-card__image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

@supports not (aspect-ratio: 4 / 3) {
    .a4w-card__image-wrapper {
        padding-top: 75%;
    }
    .a4w-card__image-wrapper .a4w-card__image {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.a4w-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.a4w-card:hover .a4w-card__image {
    transform: scale(1.06);
}

.a4w-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4w-card__image--placeholder::after {
    content: '';
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.5;
}

/* Tags overlay on image */
.a4w-card__tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

/* Body */
.a4w-card__body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.a4w-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: #222;
}

.a4w-card__meta {
    display: flex;
    flex-direction: row;
    gap: 14px;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    align-items: center;
}

.a4w-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.a4w-card__meta-item svg {
    color: #999;
}

.a4w-card__description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 auto;
}

.a4w-card__cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s;
}

.a4w-card__cta::after {
    content: ' \2192';
    transition: transform 0.2s;
    display: inline-block;
}

.a4w-card:hover .a4w-card__cta {
    color: #555;
}

.a4w-card:hover .a4w-card__cta::after {
    transform: translateX(4px);
}

/* Compact variant (product page) */
.a4w-card--compact .a4w-card__body {
    padding: 12px 14px 14px;
}

.a4w-card--compact .a4w-card__title {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ──────────────────────────────────────────────
 * 2. Listing Page (.a4w-recipes)
 * ────────────────────────────────────────────── */

.a4w-recipes {
    padding: 20px 0 40px;
}

.a4w-recipes__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #222;
}

.a4w-recipes__count {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 24px;
}

.a4w-recipes__empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
}

.a4w-recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    list-style: none;
    margin: 0;
}

@media (max-width: 992px) {
    .a4w-recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .a4w-recipes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ──────────────────────────────────────────────
 * 3. Homepage Carousel (.a4w-home-recipes)
 * ────────────────────────────────────────────── */

.a4w-home-recipes {
    padding: 60px 0;
    position: relative;
}

.a4w-home-recipes__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.a4w-home-recipes__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
}

.a4w-home-recipes__view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.a4w-home-recipes__view-all:hover {
    color: #555;
    text-decoration: underline;
}

.a4w-home-recipes__swiper {
    position: relative;
    overflow: hidden;
}

.a4w-home-recipes__swiper .swiper-slide {
    height: auto;
}

/* Navigation buttons */
.a4w-home-recipes__nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.a4w-home-recipes__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: border-color 0.2s, color 0.2s;
}

.a4w-home-recipes__nav:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.a4w-home-recipes__nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

/* Hide Swiper default arrows */
.a4w-home-recipes__nav::after {
    display: none;
}

/* ──────────────────────────────────────────────
 * 4. Product Page Recipe Block (.a4w-product-recipes)
 * ────────────────────────────────────────────── */

.a4w-product-recipes {
    padding: 35px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.a4w-product-recipes__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: #222;
}

.a4w-product-recipes__swiper {
    position: relative;
    overflow: hidden;
    padding: 4px 0 10px;
}

.a4w-product-recipes__slide {
    height: auto;
}

.a4w-product-recipes__slide .a4w-card {
    margin: 0 2px;
}

.a4w-product-recipes__nav {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.a4w-product-recipes__nav::after {
    font-size: 14px;
    font-weight: 700;
}

.a4w-product-recipes__nav:hover {
    background: #1a1a1a;
    color: #fff;
}

.a4w-product-recipes__swiper--scroll-fallback {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.a4w-product-recipes__swiper--scroll-fallback .swiper-slide {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ──────────────────────────────────────────────
 * 5. Detail Page (.a4w-detail)
 * ────────────────────────────────────────────── */

.a4w-detail {
    margin: 0 auto;
    padding: 30px 0 60px;
}

/* --- 5a. Hero: 2 colonnes (info gauche, image droite) --- */

.a4w-detail__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 50px;
}

.a4w-detail__hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8px;
}

.a4w-detail__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 12px;
}

.a4w-detail__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 28px;
    color: #1a1a1a;
}

.a4w-detail__meta {
    display: flex;
    gap: 36px;
    margin-bottom: 28px;
}

.a4w-detail__meta-item {
    display: flex;
    flex-direction: column;
}

.a4w-detail__meta-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.a4w-detail__meta-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
    margin-top: 2px;
}

.a4w-detail__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 32px;
}

.a4w-detail__description p {
    margin: 0 0 12px;
}

.a4w-detail__description p:last-child {
    margin-bottom: 0;
}

.a4w-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

/* Image wrapper (droite) */
.a4w-detail__hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 4 / 5;
}

@supports not (aspect-ratio: 4 / 5) {
    .a4w-detail__hero-image-wrapper {
        padding-top: 125%;
    }
    .a4w-detail__hero-image-wrapper .a4w-detail__hero-image {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.a4w-detail__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.a4w-detail__hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a4w-detail__hero-placeholder::after {
    content: '';
    width: 64px;
    height: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.6;
}

.a4w-detail__tags {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.a4w-detail__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- 5b. Body: 2 colonnes (main gauche, sidebar droite) --- */

.a4w-detail__body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    margin-bottom: 50px;
}

.a4w-detail__main {
    min-width: 0;
}

.a4w-detail__sidebar {
    min-width: 0;
}

/* Section title */
.a4w-detail__section {
    margin-bottom: 40px;
}

.a4w-detail__section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

/* --- 5c. Ingredients (colonne gauche) --- */

.a4w-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.a4w-ingredients__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.a4w-ingredients__item:last-child {
    border-bottom: none;
}

.a4w-ingredients__item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    margin-top: 6px;
    align-self: flex-start;
}

.a4w-ingredients__qty {
    font-weight: 400;
    white-space: nowrap;
}

.a4w-ingredients__sep {
    color: #999;
}

.a4w-ingredients__name {
    color: #333;
}

.a4w-ingredients__product-link {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.a4w-ingredients__product-link:hover {
    color: #555;
}

/* --- 5d. Sidebar blocks --- */

.a4w-detail__sidebar-block {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.a4w-detail__sidebar-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.a4w-detail__sidebar-header {
    padding: 4px 0;
}

.a4w-detail__sidebar-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a1a;
}

.a4w-detail__sidebar-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.3;
}

.a4w-collapse__content {
    padding-top: 16px;
}

/* Allergens in sidebar */
.a4w-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.a4w-allergens__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.a4w-allergens__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff3f3;
    flex-shrink: 0;
    color: #d63031;
}

.a4w-allergens__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Utilisation in sidebar */
.a4w-utilisation {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.a4w-utilisation__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.a4w-utilisation__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
    color: #555;
}

.a4w-utilisation__icon--cooking {
    background: #fff8f0;
    color: #e17055;
}

.a4w-utilisation__icon--storage {
    background: #f0f7ff;
    color: #0984e3;
}

.a4w-utilisation__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Tip in sidebar */
.a4w-detail__tip-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.a4w-detail__tip-content p {
    margin: 0 0 10px;
}

.a4w-detail__tip-content p:last-child {
    margin-bottom: 0;
}

/* --- 5e. Steps (procédé) — pleine largeur --- */

.a4w-detail__steps-section {
    margin-bottom: 50px;
}

.a4w-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.a4w-steps__item {
    counter-increment: step-counter;
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
}

.a4w-steps__item:last-child {
    border-bottom: none;
}

.a4w-steps__item::before {
    content: counter(step-counter) '.';
    position: absolute;
    left: 0;
    top: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
}

/* --- 5f. Associated products --- */

.a4w-detail__products-section {
    margin-bottom: 40px;
}

.a4w-products-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.a4w-products-scroll::-webkit-scrollbar {
    height: 6px;
}

.a4w-products-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.a4w-products-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.a4w-products-scroll__card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.a4w-products-scroll__link {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.a4w-products-scroll__link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.a4w-products-scroll__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.a4w-products-scroll__info {
    padding: 12px 14px;
}

.a4w-products-scroll__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.3;
}

.a4w-products-scroll__price {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ──────────────────────────────────────────────
 * 6. Add all to cart button
 * ────────────────────────────────────────────── */

.a4w-add-all-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.a4w-add-all-to-cart:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.a4w-add-all-to-cart:active {
    transform: translateY(0);
}

.a4w-add-all-to-cart:disabled,
.a4w-add-all-to-cart--loading {
    opacity: 0.65;
    pointer-events: none;
}

.a4w-add-all-to-cart__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: a4w-spin 0.6s linear infinite;
}

.a4w-add-all-to-cart--loading .a4w-add-all-to-cart__spinner {
    display: inline-block;
}

@keyframes a4w-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ──────────────────────────────────────────────
 * 7. Pagination
 * ────────────────────────────────────────────── */

.a4w-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 0 10px;
    margin: 0;
}

.a4w-pagination__list {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.a4w-pagination__item {
    display: inline-block;
}

.a4w-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.a4w-pagination__link:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
}

.a4w-pagination__item--active .a4w-pagination__link,
.a4w-pagination__link--current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    pointer-events: none;
    font-weight: 600;
}

.a4w-pagination__item--disabled .a4w-pagination__link {
    opacity: 0.35;
    pointer-events: none;
}

/* ──────────────────────────────────────────────
 * 8. Toast notification
 * ────────────────────────────────────────────── */

.a4w-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    padding: 16px 22px;
    background: #333;
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.a4w-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.a4w-toast--success {
    background: #27ae60;
}

.a4w-toast--error {
    background: #e74c3c;
}

.a4w-toast--warning {
    background: #e67e22;
}

/* ──────────────────────────────────────────────
 * 9. Responsive
 * ────────────────────────────────────────────── */

@media (max-width: 992px) {
    .a4w-detail__hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* On mobile, image first */
    .a4w-detail__hero-info {
        order: 2;
    }

    .a4w-detail__hero-image-wrapper {
        order: 1;
        aspect-ratio: 16 / 9;
    }

    .a4w-detail__body {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .a4w-detail__title {
        font-size: 1.6rem;
    }

    .a4w-detail__meta-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .a4w-detail {
        padding: 16px 0 40px;
    }

    .a4w-detail__hero {
        margin-bottom: 32px;
    }

    .a4w-detail__title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .a4w-detail__meta {
        gap: 24px;
        margin-bottom: 20px;
    }

    .a4w-home-recipes {
        padding: 30px 0;
    }

    .a4w-home-recipes__title {
        font-size: 1.25rem;
    }

    .a4w-add-all-to-cart {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .a4w-detail__hero-image-wrapper {
        border-radius: 10px;
    }

    .a4w-card__body {
        padding: 12px 14px 16px;
    }

    .a4w-home-recipes__view-all {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .a4w-detail__actions {
        flex-direction: column;
    }

    .a4w-btn {
        width: 100%;
        justify-content: center;
    }
}
