/* AllOnline.gr — customer UI polish v8
 * Φορτώνεται ΜΕΤΑ το customer-v7.css και διορθώνει μόνο εμφάνιση (χωρίς αλλαγές σε PHP/JS).
 * Για επαναφορά: αφαιρείτε τη γραμμή του αρχείου από το includes/header.php.
 */
.customer-ui {
    --food-bg: #fbf8f5;
    --food-line: #ece4dc;
    --food-radius: 18px;
    --food-shadow: 0 1px 2px rgba(33, 25, 20, .06), 0 8px 24px rgba(33, 25, 20, .07);
    --food-shadow-small: 0 1px 2px rgba(33, 25, 20, .05), 0 4px 14px rgba(33, 25, 20, .06);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }

/* ---------- Header ---------- */
.customer-ui .site-header { background: #17120f; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.customer-ui .brand-mark { width: 38px; height: 38px; border-radius: 12px; transform: none; box-shadow: none; }
.customer-ui .brand-mark span { transform: none; font-size: 1.3rem; }

/* ---------- Αρχική: αναζήτηση & κατηγορίες ---------- */
/* FIX: οι κατηγορίες ξεχείλιζαν οριζόντια σε κινητό (σελίδα 394px σε οθόνη 390px) */
.customer-ui .home-category-row { min-width: 0; max-width: 100%; }
.customer-ui .home-category-filters {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
}
.customer-ui .home-category-filters::-webkit-scrollbar { display: none; }
.customer-ui .home-category-filters .filter-chip { flex: 0 0 auto; scroll-snap-align: start; }
.customer-ui .filter-chip { font-weight: 700; border-color: var(--food-line); }
.customer-ui .filter-chip.active { background: var(--food-dark); border-color: var(--food-dark); color: #fff; }

/* ---------- Carousel ---------- */
.customer-ui .aol-home-carousel-dots { gap: 6px !important; }
.customer-ui .aol-home-carousel-dots button,
.customer-ui .aol-home-carousel-dots span {
    width: 7px !important; height: 7px !important; min-width: 0 !important; min-height: 0 !important; flex: 0 0 auto !important;
    padding: 0 !important; border-radius: 99px !important;
    background: #d9cfc6 !important; border: 0 !important;
    transition: width .2s ease, background .2s ease;
}
.customer-ui .aol-home-carousel-dots .is-active,
.customer-ui .aol-home-carousel-dots .active,
.customer-ui .aol-home-carousel-dots [aria-current="true"] { width: 22px !important; background: var(--food-primary) !important; }
.customer-ui .aol-home-carousel-card { border: 1px solid var(--food-line); box-shadow: var(--food-shadow-small); }

/* ---------- Κάρτες καταστημάτων ---------- */
.customer-ui .restaurant-tile {
    border: 1px solid var(--food-line);
    border-radius: var(--food-radius);
    box-shadow: var(--food-shadow-small);
    transition: transform .18s ease, box-shadow .18s ease;
}
.customer-ui .restaurant-tile:hover { transform: translateY(-3px); box-shadow: var(--food-shadow); }
.customer-ui .restaurant-cover { aspect-ratio: 16 / 9; height: auto; }
.customer-ui .restaurant-cover img { width: 100%; height: 100%; object-fit: cover; }
.customer-ui .restaurant-content h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.customer-ui .restaurant-content p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Τα 5 «κουτάκια» γίνονται μία καθαρή σειρά από chips: λιγότερος θόρυβος, χωρίς ορφανή δεύτερη σειρά */
.customer-ui .restaurant-facts {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px;
}
.customer-ui .restaurant-facts > span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 999px;
    background: #f6f1ec; text-align: left; font-size: .8rem;
}
.customer-ui .restaurant-facts b { display: inline; font-size: .85rem; }
.customer-ui .restaurant-facts small { display: inline; margin: 0; font-size: .76rem; }
.customer-ui .restaurant-facts small::after { content: ':'; }
.customer-ui .restaurant-facts strong { display: inline; font-size: .8rem; white-space: nowrap; }
.customer-ui .restaurant-cta { border-radius: 12px; min-height: 46px; }

/* ---------- Σελίδα καταστήματος: hero ---------- */
.customer-ui .restaurant-banner-copy h1 { letter-spacing: -.035em; }
/* FIX: σε κινητό τα στοιχεία (Take Away, Ελάχιστο, Πληρωμή) κόβονταν στη μέση */
@media (max-width: 720px) {
    .customer-ui .banner-facts {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px;
    }
    .customer-ui .banner-facts > span { min-width: 0; padding: 9px 11px; justify-items: start; text-align: left; grid-template-columns: auto minmax(0, 1fr); }
    .customer-ui .banner-facts strong,
    .customer-ui .banner-facts small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .customer-ui .banner-facts > span:last-child:nth-child(odd) { grid-column: 1 / -1; }

    /* Η κοινοποίηση πιάνει λιγότερο χώρο πάνω από το μενού */
    .customer-ui .restaurant-share-panel { padding: 8px; gap: 8px; }
    .customer-ui .restaurant-share-copy { display: none; }
    .customer-ui .restaurant-share-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
    .customer-ui .social-share-button { min-height: 36px; font-size: .78rem; padding: 6px 8px; }

    /* Λιγότερο κενό πριν το μενού */
    .customer-ui .menu-section { padding-top: 18px; }
    .customer-ui .menu-section .section-kicker + h2,
    .customer-ui .menu-section h2 { margin-bottom: 4px; }
}

/* ---------- Προϊόντα ---------- */
.customer-ui .product-card {
    border: 1px solid var(--food-line);
    border-radius: var(--food-radius);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.customer-ui .product-card:hover { border-color: #dcccbf; box-shadow: var(--food-shadow-small); }
.customer-ui .product-photo-wrap { background: #f3ede7; }
.customer-ui .product-photo { object-fit: cover; }
.customer-ui .product-info h3 { font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.customer-ui .product-info p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.customer-ui .add-circle {
    width: 40px; height: 40px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 90, 50, .28);
}
.customer-ui .add-circle:active { transform: scale(.94); }
.customer-ui .price { font-variant-numeric: tabular-nums; }

/* Κατηγορίες: ενεργή κατηγορία πιο καθαρή */
.customer-ui .category-nav-vertical a { border-radius: 10px; font-weight: 700; }
.customer-ui .category-heading h2 { letter-spacing: -.03em; }

/* ---------- Καλάθι / Checkout ---------- */
.customer-ui .sticky-cart,
.customer-ui .form-card { border: 1px solid var(--food-line); border-radius: var(--food-radius); box-shadow: var(--food-shadow-small); }
.customer-ui input, .customer-ui select, .customer-ui textarea { font-size: 16px; } /* χωρίς zoom στο iPhone */
.customer-ui .btn { border-radius: 12px; }
.customer-ui .btn-primary:focus-visible,
.customer-ui a:focus-visible,
.customer-ui button:focus-visible { outline: 3px solid rgba(255, 90, 50, .45); outline-offset: 2px; }

/* ---------- Footer ---------- */
.customer-ui .site-footer { margin-top: 32px; }

/* ---------- Χαμηλή κίνηση ---------- */
@media (prefers-reduced-motion: reduce) {
    .customer-ui *, .customer-ui *::before, .customer-ui *::after { transition: none !important; animation: none !important; }
}
