/* ===== Order Online (order-online.blade.php) =====
   โทนเดียวกับหน้า home: พื้นครีม + ทอง / การ์ดขาว รูปสาขาด้านบน
   ลำดับปุ่ม: Pick Up (หลัก) -> โลโก้เดลิเวอรี -> Reservation / Group Party
   class ขึ้นต้น ooc- กันชนกับ component อื่น */

/* ---------- HERO (components/carousel-promo) ----------
   ความสูงตามรูปแบนเนอร์ (1920x622) ที่ component กำหนดเอง — ห้ามล็อก height ที่นี่
   ไม่งั้นรูปไม่เต็มกรอบ เหลือแถบเทาด้านล่าง */
.orderonline-hero {
    position: relative;
    overflow: hidden;
}

.orderonline-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 6px;
    background: #FFC600;
    z-index: 2;
}

.order-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 100%);
    pointer-events: none;
}

/* ---------- SECTION ---------- */
.ooc-section {
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(255, 198, 0, .12), transparent 70%),
        #faf6ee;
    padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px);
    font-family: 'Prompt', sans-serif;
    color: #1a1206;
}

/* ---------- หัวข้อ ---------- */
.ooc-head {
    margin: 0 auto clamp(28px, 4vw, 52px);
    text-align: center;
}

.ooc-eyebrow {
    margin: 0 0 10px;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 500;
    color: #6b5e4e;
}

.ooc-title-row {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    max-width: 900px;
    margin: 0 auto;
}

.ooc-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 154, 0, .6));
}

.ooc-head-line:last-child {
    background: linear-gradient(to left, transparent, rgba(201, 154, 0, .6));
}

.ooc-title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    color: #2a1a0c;
    text-transform: uppercase;
}

/* ---------- GRID ---------- */
.ooc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

/* ---------- CARD ---------- */
.ooc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(201, 154, 0, .18);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(60, 40, 10, .08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ooc-photo {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #2a1d10;
}

.ooc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.ooc-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 12, 8, .85) 0%, rgba(18, 12, 8, .25) 45%, rgba(18, 12, 8, 0) 70%);
    pointer-events: none;
}

.ooc-name {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #FFC600;
    text-transform: uppercase;
}

/* สถานะเปิด/ปิด มุมบนรูป */
.ooc-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.ooc-status[hidden] {
    display: none;
}

.ooc-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ooc-status.is-open {
    color: #1f7a33;
}

.ooc-status.is-open::before {
    box-shadow: 0 0 0 3px rgba(46, 160, 67, .25);
    animation: ooc-pulse 2s ease-in-out infinite;
}

.ooc-status.is-closed {
    color: #a12a2a;
}

@keyframes ooc-pulse {
    50% { box-shadow: 0 0 0 5px rgba(46, 160, 67, .08); }
}

/* ---------- BODY ---------- */
.ooc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 20px;
}

.ooc-info {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ooc-info li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14px;
    line-height: 1.55;
    color: #4a3f33;
}

.ooc-info i {
    margin-top: 2px;
    color: #c99a00;
}

/* address_en มาจาก API เป็น HTML (มีลิงก์ tel) */
.ooc-addr,
.ooc-addr p {
    margin: 0;
}

.ooc-addr a {
    color: #1a1206;
    font-weight: 500;
    text-decoration: none;
}

.ooc-addr a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ooc-addr .tel-label {
    color: #6b5e4e;
}

/* ---------- BUTTONS ---------- */
.ooc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid #1a1206;
    border-radius: 999px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 19px;
    letter-spacing: 1.2px;
    line-height: 1;
    color: #1a1206;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.ooc-btn i {
    font-size: 15px;
}

.ooc-btn--solid {
    min-height: 52px;
    background: #FFC600;
    border-color: #FFC600;
    font-size: 21px;
    box-shadow: 0 8px 20px rgba(201, 154, 0, .28);
}

.ooc-btn:hover {
    background: #1a1206;
    border-color: #1a1206;
    color: #FFC600;
    transform: translateY(-2px);
}

.ooc-btn:focus-visible,
.ooc-logo:focus-visible {
    outline: 3px solid #FFC600;
    outline-offset: 2px;
}

/* ---------- DELIVERY ---------- */
.ooc-delivery {
    padding: 14px;
    border-radius: 16px;
    background: #faf6ee;
    border: 1px solid rgba(201, 154, 0, .16);
}

.ooc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #8a6400;
}

/* ปุ่มเดลิเวอรีใหญ่ แบ่งเต็มความกว้างกล่อง — กดง่ายบนมือถือ */
.ooc-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ooc-logo {
    flex: 1 1 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 12px 8px 10px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid rgba(120, 90, 40, .14);
    box-shadow: 0 4px 12px rgba(60, 40, 10, .08);
    color: #1a1206;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ooc-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.ooc-logo-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.ooc-logo:hover {
    transform: translateY(-3px);
    border-color: #FFC600;
    box-shadow: 0 10px 20px rgba(60, 40, 10, .16);
    color: #1a1206;
}

/* Reservation / Group Party ชิดล่างการ์ดเสมอ ให้การ์ดในแถวเดียวกันตรงกัน */
.ooc-secondary {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.ooc-secondary .ooc-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
}

@media (hover: hover) {
    .ooc-card:hover {
        transform: translateY(-6px);
        border-color: rgba(201, 154, 0, .45);
        box-shadow: 0 20px 44px rgba(60, 40, 10, .16);
    }

    .ooc-card:hover .ooc-photo img {
        transform: scale(1.05);
    }
}

/* ---------- reveal ---------- */
.ooc-reveal-ready .ooc-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease var(--ooc-delay, 0ms), transform .6s ease var(--ooc-delay, 0ms);
}

.ooc-reveal-ready .ooc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* หลัง reveal เสร็จ ให้ hover ยกการ์ดได้ทันที (ไม่ติด delay) */
@media (hover: hover) {
    .ooc-reveal-ready .ooc-reveal.is-visible:hover {
        transform: translateY(-6px);
        transition-delay: 0ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ooc-reveal-ready .ooc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ooc-status.is-open::before {
        animation: none;
    }

    .ooc-photo img,
    .ooc-btn,
    .ooc-logo {
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .ooc-grid {
        grid-template-columns: 1fr;
    }

    .ooc-body {
        padding: 16px 16px 18px;
    }
}
