/* =========================================================================
   Motyw MODERN (UberEats-like). Scoped pod .theme-modern. Classic NIETKNIĘTY.
   Restyl PEŁNEJ zawartości klasycznej (nic nie ginie) — celujemy w oryginalne klasy.
   ========================================================================= */
.theme-modern, .theme-modern * { box-sizing: border-box; }
.theme-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased; background: #f6f6f7; color: #11181c; margin: 0;
}
.theme-modern { --m-accent: #06c167; --m-ink: #11181c; --m-muted: #6b7280; --m-line: #e9e9ee; }

/* isotope: zostawiamy tylko klasę-hook, układ robi nasz grid */
.theme-modern .isotope-item, .theme-modern .isotope-wrapper {
    position: static !important; height: auto !important; transform: none !important; left: auto !important; top: auto !important;
}

/* ---------- HEADER / FOOTER (własne) ---------- */
.theme-modern .m-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--m-line); }
.theme-modern .m-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--m-ink); text-decoration: none; }
.theme-modern .m-brand img { height: 34px; border-radius: 8px; }
.theme-modern .m-nav { display: flex; gap: 20px; }
.theme-modern .m-nav a { color: var(--m-muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.theme-modern .m-nav a:hover { color: var(--m-ink); }
.theme-modern .m-footer { background: #fff; border-top: 1px solid var(--m-line); margin-top: 30px; }
.theme-modern .m-footer-in { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; color: var(--m-muted); font-size: 13px; }
.theme-modern .m-footer-links { display: flex; gap: 18px; } .theme-modern .m-footer-links a { color: var(--m-muted); text-decoration: none; }

/* ---------- HERO (banner klasyczny) ---------- */
.theme-modern .hero_in, .theme-modern .background-image { border-radius: 0 !important; }
.theme-modern .shop-main { max-width: 1200px; margin: 0 auto !important; padding: 0 16px; }
.theme-modern .container.margin_detail { max-width: 1200px !important; padding: 0 !important; }

/* ===== MODERN: czysty kafelek (zdjęcie u góry, tekst pod spodem) ===== */
.theme-modern .strip.ue-card { padding: 0 !important; }
.theme-modern .ue-img { width: 100%; height: 168px; background-size: cover; background-position: center; background-color: #ececed; }
.theme-modern .ue-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.theme-modern .ue-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--m-ink); letter-spacing: -.01em; }
.theme-modern .ue-desc { font-size: 13px; color: var(--m-muted); margin: 0 0 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* stopka = ul.product-data-info.ue-foot (cena + przycisk w rzędzie) — nadpisuje układ kolumnowy */
.theme-modern .ue-foot {
    margin: auto 0 0 !important; padding: 0 !important; display: flex !important; flex-direction: row !important;
    align-items: center !important; justify-content: space-between !important; gap: 10px; list-style: none;
}
.theme-modern .ue-foot > li { order: 0 !important; list-style: none; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
.theme-modern .ue-foot .miniature-image { display: none !important; }
.theme-modern .ue-foot .price { background: transparent !important; padding: 0 !important; font-weight: 800 !important; font-size: 16px; color: var(--m-ink) !important; white-space: nowrap; }
.theme-modern .ue-foot .only-price { color: var(--m-ink) !important; }
.theme-modern .ue-add { background: var(--m-accent) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    font-weight: 700 !important; padding: 9px 18px !important; font-size: 13.5px; cursor: pointer; white-space: nowrap;
    height: auto !important; box-shadow: 0 2px 8px rgba(6,193,103,.3); width: auto !important; }
.theme-modern .ue-add:hover { filter: brightness(.96); }
.theme-modern .ue-add.btn-block-order { background: #e9e9ee !important; color: var(--m-muted) !important; cursor: not-allowed; box-shadow: none; }
.theme-modern .margin_detail { margin-top: 24px !important; }

/* ---------- ZAKŁADKI → podkreślane linki, do lewej (UberEats) ---------- */
.theme-modern .nav-tabs {
    border: 0 !important; border-bottom: 1px solid var(--m-line) !important;
    gap: 26px; margin: 0 0 18px !important; padding: 0 !important; flex-wrap: wrap; justify-content: flex-start !important;
}
.theme-modern .nav-tabs .nav-item { margin: 0; }
.theme-modern .nav-tabs .nav-link {
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    color: var(--m-muted) !important; font-weight: 700 !important;
    padding: 10px 2px 16px !important; font-size: 16px; line-height: 1.3; display: inline-block;
    border-bottom: 3px solid transparent !important; margin-bottom: -1px;
}
.theme-modern .nav-tabs .nav-link:hover { color: var(--m-ink) !important; }
.theme-modern .nav-tabs .nav-link.active {
    background: transparent !important; color: var(--m-ink) !important; border-bottom: 3px solid var(--m-ink) !important;
}

/* ---------- FILTRY KATEGORII (switch-field) → pigułki ---------- */
.theme-modern .switch-field { display: flex; flex-wrap: wrap; gap: 8px; border: 0 !important; justify-content: center; }
.theme-modern .switch-field label {
    border: 1px solid var(--m-line) !important; border-radius: 999px !important; background: #fff !important;
    color: var(--m-ink) !important; font-weight: 600 !important; padding: 7px 15px !important; box-shadow: none !important;
}
.theme-modern .switch-field input:checked + label,
.theme-modern .switch-field .selected { background: var(--m-ink) !important; color: #fff !important; border-color: var(--m-ink) !important; }

/* ---------- PRZEŁĄCZNIK WIDOKU (Lista/Opis/Miniaturka/Grupa) — ukryty, jeden spójny widok ---------- */
.theme-modern .tabs_detail .grid { display: none !important; }

/* ---------- TYTUŁ KATEGORII ---------- */
.theme-modern .category-title, .theme-modern .subcategory-title {
    font-weight: 800 !important; letter-spacing: -.02em; color: var(--m-ink) !important; font-size: 22px !important;
    background: transparent !important; padding: 14px 0 6px !important; margin: 0; display: block;
}
/* ikona-link / kotwica przy tytule kategorii */
.theme-modern .category-title .material-icons-outlined,
.theme-modern .category-title > a, .theme-modern .category-title i { display: none !important; }
.theme-modern .category-item-container { margin-bottom: 8px; }

/* ---------- KARTY PRODUKTÓW (równa wysokość) ---------- */
.theme-modern .products-cs, .theme-modern .isotope-wrapper {
    display: flex !important; flex-wrap: wrap; align-items: stretch !important; margin: 0 -8px !important;
}
.theme-modern .isotope-item { padding: 8px !important; display: flex !important; }
.theme-modern .strip {
    background: #fff !important; border: 1px solid var(--m-line) !important; border-radius: 16px !important;
    overflow: hidden !important; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 22px rgba(16,24,40,.05) !important;
    transition: box-shadow .16s, transform .16s;
    width: 100%; display: flex !important; flex-direction: column;
}
/* stopka zawsze na dole karty → wyrównane przyciski i ceny w rzędzie */
.theme-modern .strip .product-data-info { margin-top: auto; }
.theme-modern .strip:hover { box-shadow: 0 10px 30px rgba(16,24,40,.1) !important; transform: translateY(-3px); }

/* ikonka „kopiuj link" w rogu karty — zbędna w modern */
.theme-modern .link-to-product { display: none !important; }

/* zdjęcie produktu + tytuł jako czytelna nakładka */
.theme-modern .strip figure, .theme-modern .products-cs figure {
    height: 150px !important; margin: 0 !important; border-radius: 0 !important; position: relative !important;
}
.theme-modern .strip .cover-bg:before { background: linear-gradient(transparent 40%, rgba(0,0,0,.62)) !important; }
.theme-modern .strip_info {
    position: absolute !important; left: 0; right: 0; bottom: 0; top: auto !important;
    padding: 10px 14px !important; background: transparent !important;
}
.theme-modern .strip_info .item_title { background: transparent !important; }
.theme-modern .item_title p { font-weight: 700 !important; color: #fff !important; letter-spacing: -.01em; font-size: 15px; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.theme-modern .item_title small { color: rgba(255,255,255,.85) !important; font-weight: 400; }

/* STOPKA karty: cena u góry, jeden przycisk „DO KOSZYKA" pełnej szerokości */
.theme-modern .product-data-info {
    padding: 12px 14px 14px !important; display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 0;
}
.theme-modern .product-data-info > li { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
.theme-modern .product-data-info .product-desc-view-content,
.theme-modern .product-data-info .miniature-image,
.theme-modern .product-data-info .btn-info-product { display: none !important; }
/* kolejność: cena (ostatnie li) na górze, przyciski (pierwsze li) pod spodem */
.theme-modern .product-data-info > li:last-child { order: 1; justify-content: flex-start; }
.theme-modern .product-data-info > li:first-child { order: 2; }
/* ukryj zdublowany przycisk-ikonę przy cenie */
.theme-modern .product-data-info > li:last-child .btn-add-to-cart { display: none !important; }

/* cena */
.theme-modern .price, .theme-modern .product-data-info .price {
    background: transparent !important; color: var(--m-ink) !important; font-weight: 800 !important; padding: 0 !important; font-size: 17px;
}
.theme-modern .price .only-price { color: var(--m-ink) !important; }

/* przycisk DO KOSZYKA — pełna szerokość, zielony */
.theme-modern .btn-cs-1, .theme-modern .btn-add-to-cart, .theme-modern .btn-block-order {
    border-radius: 12px !important; font-weight: 700 !important; border: 0 !important; height: 42px; font-size: 14px;
}
.theme-modern .product-data-info > li:first-child { display: block; }
.theme-modern .product-data-info > li:first-child .btn-add-to-cart,
.theme-modern .product-data-info > li:first-child .btn-block-order { width: 100% !important; }
.theme-modern .btn-add-to-cart { background: var(--m-accent) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(6,193,103,.3) !important; }
.theme-modern .btn-add-to-cart:hover { filter: brightness(.96); }
.theme-modern .btn-block-order { background: #e9e9ee !important; color: var(--m-muted) !important; cursor: not-allowed; }

/* ---------- KOSZYK po prawej (sticky), jak UberEats ---------- */
.theme-modern .container.margin_detail .row { display: flex; flex-wrap: wrap; align-items: flex-start; }
.theme-modern .basket-summary { padding-left: 18px !important; }
.theme-modern .basket-summary .box_booking { position: sticky; top: 84px; }
@media (max-width: 991px){
    .theme-modern .basket-summary { padding-left: 0 !important; margin-top: 18px; }
    .theme-modern .basket-summary .box_booking { position: static; }
}
.theme-modern .box_booking { border-radius: 16px !important; border: 1px solid var(--m-line) !important; background: #fff;
    box-shadow: 0 8px 28px rgba(16,24,40,.06); overflow: hidden; }
.theme-modern .box_booking .head { background: var(--m-ink) !important; color: #fff !important; }
.theme-modern .box_booking .head h3, .theme-modern .box_booking .head * { color: #fff !important; }
.theme-modern .box_booking .main { padding: 16px 18px !important; }
.theme-modern .box_booking .btn, .theme-modern .box_booking button { border-radius: 999px !important; font-weight: 700 !important; }
.theme-modern .total { font-weight: 800 !important; }

/* ---------- OPENING / banner status ---------- */
.theme-modern .opening-time, .theme-modern .open-info { border-radius: 12px !important; }
