.livraison-hero {
    position: relative;
    min-height: 430px;
    padding: 96px 0 88px;
    background: url('/Origami/static/images/livraison-banner.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.livraison-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.62));
}

.livraison-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    color: #fff;
}

.livraison-hero h1,
.section-heading h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.04;
}

.livraison-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 4.35rem);
}

.livraison-hero p {
    margin: 16px auto 0;
    max-width: 680px;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 600;
}

.livraison-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    margin-top: 34px;
    padding: 14px 28px;
    border-radius: 12px;
    background: #ef1e23;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 20px 30px rgba(239, 30, 35, 0.28);
}

.livraison-hero-cta:hover,
.livraison-hero-cta:focus {
    color: #fff;
    background: #d9151a;
    transform: translateY(-2px);
    box-shadow: 0 22px 32px rgba(239, 30, 35, 0.34);
}

.livraison-content-shell,
.emporter-showcase {
    padding: 56px 0 72px;
}

.livraison-intro-section {
    display: grid;
    grid-template-areas: "copy visual";
    grid-template-columns: minmax(0, 1fr) 514px;
    gap: 72px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 58px;
}

.livraison-intro-copy {
    grid-area: copy;
    max-width: 520px;
    padding-left: 18px;
    justify-self: start;
}

.livraison-intro-copy p {
    margin: 0 0 28px;
    color: #141414;
    font-size: 20px;
    line-height: 1.42;
    font-weight: 400;
}

.livraison-intro-copy p:last-child {
    margin-bottom: 0;
}

.livraison-intro-copy strong {
    font-weight: 800;
    color: #0f0f0f;
}

.livraison-intro-visual {
    grid-area: visual;
    display: flex;
    justify-content: flex-end;
    justify-self: end;
}

.livraison-intro-visual-placeholder {
    width: 514px;
    height: 501px;
    border-radius: 34px;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #df272d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: #e02228;
    font-size: clamp(2.3rem, 4.1vw, 3.7rem);
}

.section-heading p {
    margin: 12px auto 0;
    max-width: 760px;
    color: #111;
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 700;
}

.delivery-zones-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.delivery-zone-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(196, 32, 38, 0.12);
    box-shadow: 0 18px 38px rgba(48, 24, 8, 0.08);
}

.delivery-zone-card-header {
    padding: 15px 18px;
    background: #ef1e23;
    color: #fff;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
}

.delivery-zone-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-zone-column {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid #ece5dd;
}

.delivery-zone-column.has-note {
    min-height: 292px;
}

.delivery-zone-column:last-child {
    border-right: 0;
}

.delivery-zone-column:nth-child(even) {
    background: #fbf9f7;
}

.delivery-zone-name {
    padding: 12px 10px;
    border-bottom: 1px solid #ece5dd;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1b1511;
}

.delivery-zone-note {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px 12px;
    background: #8f3fa0;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 0.08em;
}

.delivery-zone-body {
    flex: 1;
    padding: 18px 16px 20px;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.7;
    color: #2a221c;
}

.delivery-zone-price {
    padding: 12px 10px;
    background: #ef1e23;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.o_origami_restaurants {
    padding: 0;
}

.pickup-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.pickup-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.restaurant-card {
    display: block;
    padding: 28px 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(80, 48, 24, 0.12);
    box-shadow: 0 18px 36px rgba(48, 24, 8, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(48, 24, 8, 0.12);
}

.restaurant-card.selected {
    background: #ed1f24;
    border-color: #ed1f24;
}

.restaurant-info h4 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #19130f;
}

.restaurant-info p {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #5f5145;
}

.restaurant-card.selected .restaurant-info h4,
.restaurant-card.selected .restaurant-info p {
    color: #fff;
}

.pickup-map-wrap {
    min-width: 0;
}

.restaurants-map {
    width: 100%;
    min-height: 430px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(80, 48, 24, 0.12);
    box-shadow: 0 22px 44px rgba(48, 24, 8, 0.12);
    background: #f4ede4;
}

.restaurants-map .leaflet-control-zoom a {
    color: #1a1512;
}

@media (max-width: 1199px) {
    .delivery-zone-body {
        font-size: 0.8rem;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 991px) {
    .livraison-hero {
        min-height: 380px;
        padding: 84px 0 72px;
    }

    .livraison-intro-section {
        grid-template-areas: "copy visual";
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 40px;
        padding-bottom: 46px;
    }

    .livraison-intro-copy {
        padding-left: 0;
    }

    .livraison-intro-visual-placeholder {
        width: 420px;
        height: 410px;
        border-radius: 28px;
        font-size: 2.7rem;
    }

    .livraison-content-shell,
    .emporter-showcase {
        padding: 46px 10px 60px;
    }
    .emporter-showcase {
        padding: 0px 10px 60px;
    }
}

@media (max-width: 767px) {
    .livraison-intro-section {
        grid-template-areas:
            "copy"
            "visual";
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 38px;
    }

    .livraison-intro-copy {
        max-width: none;
        width: 100%;
        padding-left: 0;
    }

    .livraison-intro-copy p {
        margin-bottom: 20px;
        font-size: 0.98rem;
    }

    .livraison-intro-visual {
        justify-content: center;
        justify-self: stretch;
        width: 100%;
    }

    .livraison-intro-visual-placeholder {
        width: min(100%, 340px);
        height: 340px;
        border-radius: 24px;
        font-size: 2.2rem;
        margin: 0 auto;
    }

    .delivery-zones-grid,
    .pickup-layout {
        grid-template-columns: 1fr;
    }

    .pickup-layout {
        gap: 22px;
    }

    .livraison-hero {
        min-height: 340px;
        padding: 76px 0 66px;
    }

    .livraison-hero h1 {
        font-size: 2.65rem;
    }

    .livraison-hero p {
        font-size: 1rem;
    }

    .livraison-hero-cta {
        min-width: 0;
        width: 100%;
        max-width: 260px;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .delivery-zone-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .delivery-zone-column {
        min-height: 190px;
        border-bottom: 1px solid #ece5dd;
    }

    .delivery-zone-column.has-note {
        min-height: 238px;
    }

    .delivery-zone-column:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .delivery-zone-column:nth-child(2n) {
        border-right: 0;
    }

    .restaurant-card {
        padding: 24px 22px;
    }

    .restaurant-info h4 {
        font-size: 1.2rem;
    }

    .restaurant-info p,
    .delivery-zone-body {
        font-size: 0.92rem;
    }

    .restaurants-map {
        min-height: 360px;
    }
}

@media (max-width: 479px) {
    .origami-livraison-page {
        background-size: 620px;
    }

    .livraison-intro-section {
        gap: 22px;
        padding-bottom: 30px;
    }

    .livraison-intro-copy p {
        margin-bottom: 18px;
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .livraison-intro-visual-placeholder {
        width: min(100%, 300px);
        height: 280px;
        border-radius: 20px;
        font-size: 1.9rem;
        margin: 0 auto;
    }

    .livraison-hero {
        min-height: 320px;
    }

    .livraison-hero h1 {
        font-size: 2.2rem;
    }

    .section-heading h2 {
        font-size: 2.35rem;
    }

    .section-heading p {
        font-size: 0.95rem;
    }

    .delivery-zone-table {
        grid-template-columns: 1fr;
    }

    .delivery-zone-column,
    .delivery-zone-column:nth-child(2n) {
        border-right: 0;
    }

    .delivery-zone-column {
        min-height: 0;
    }

    .delivery-zone-column:nth-last-child(-n + 2) {
        border-bottom: 1px solid #ece5dd;
    }

    .delivery-zone-column:last-child {
        border-bottom: 0;
    }

    .restaurants-map {
        min-height: 300px;
    }
}
.origami-livraison-page .delivery-zones-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 16px !important;
}

.origami-livraison-page .delivery-zone-card {
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
}

.origami-livraison-page #origami_restaurants .pickup-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 22px !important;
}

.origami-livraison-page #origami_restaurants .pickup-list {
    flex: 0 0 44% !important;
    width: 44% !important;
    max-width: 44% !important;
}

.origami-livraison-page #origami_restaurants .pickup-map-wrap {
    flex: 0 0 56% !important;
    width: 56% !important;
    max-width: 56% !important;
}

.origami-livraison-page #origami_restaurants .restaurants-map {
    min-height: 430px !important;
    height: 430px !important;
}

@media (max-width: 767px) {
    .origami-livraison-page .delivery-zones-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .origami-livraison-page .delivery-zone-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .origami-livraison-page #origami_restaurants .pickup-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .origami-livraison-page #origami_restaurants .pickup-list,
    .origami-livraison-page #origami_restaurants .pickup-map-wrap {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 479px) {

  .delivery-zone-column {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "body body";
    gap: 6px 10px;
    padding: 10px 14px;
  }

  .delivery-zone-name {
    grid-area: name;
    text-align: left !important;
    padding: 0 !important;
  }

  .delivery-zone-column.has-note {
    grid-template-areas:
      "note note"
      "name price"
      "body body";
  }

  .delivery-zone-note {
    grid-area: note;
    min-height: 0;
    padding: 8px 10px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .delivery-zone-price {
    grid-area: price;
    background: none !important;
    color: #ef1e23 !important;
    padding: 0 !important;
    font-weight: 800;
  }

  .delivery-zone-body {
    grid-area: body;
    padding: 0 !important;
    text-align: left !important;
  }
  .delivery-zone-column {
    background: #ffffff !important;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .delivery-zone-column:last-child {
    margin-bottom: 0;
  }
}
/* MENZAH: price block redesign */
.delivery-zones-grid .delivery-zone-card:nth-child(2) .delivery-zone-price {
    background: #BF0810; /* your requested red */
    color: #fff;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 800;
}

/* Price text (4 TND, 5 TND...) */
.delivery-zones-grid .delivery-zone-card:nth-child(2) .delivery-zone-price {
    font-size: 1rem;
}

/* Add the "livraison gratuite" line visually */
.delivery-zones-grid .delivery-zone-card:nth-child(2) .delivery-zone-column.has-note .delivery-zone-price::after {
    content: attr(data-note);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
}
.livraison-intro-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.livraison-intro-image {
    width: 586px;
    height: 573px;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}
/* Tablet */
@media (max-width: 991px) {
    .livraison-intro-visual {
        width: 100%;
        margin-top: 32px;
    }

    .livraison-intro-image {
        width: 100%;
        max-width: 586px;
        height: auto;
        aspect-ratio: 586 / 573;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .livraison-intro-visual {
        margin-top: 24px;
    }

    .livraison-intro-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }
}