/* PINERPRO — Layout */
.site-header { position: sticky; top: 0; z-index: var(--pp-z-header); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem 1rem; padding: 0.8rem max(1rem, calc((100% - var(--pp-container-lg)) / 2 + 1rem)); background: rgba(10,10,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pp-color-border); box-shadow: none; color: var(--pp-color-text); }
@media (prefers-color-scheme: dark) { .site-header { background: rgba(10,10,11,.92); border-bottom-color: var(--pp-color-border); } }
[data-theme="dark"] .site-header, [data-theme="light"] .site-header { background: rgba(10,10,11,.92); border-bottom-color: var(--pp-color-border); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.brand:hover { text-decoration: none; color: var(--pp-color-secondary); }
.brand-name { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.3rem; font-weight: 600; font-style: normal; letter-spacing: -0.02em; line-height: 1; color: var(--pp-color-text); }
.main-nav { display: flex; gap: .15rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.main-nav a { color: var(--pp-color-text-muted); padding: .5rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 500; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--pp-color-text); background: transparent; border: 1px solid rgba(212,175,55,.35); text-decoration: none; }
.header-actions { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.menu-toggle { display: none; min-height: var(--pp-button-height); padding: 0 .9rem; border: 1px solid var(--pp-color-border); border-radius: 999px; background: transparent; color: var(--pp-color-text); }
.header-search { position: relative; display: inline-flex; align-items: center; min-width: 0; flex: 0 1 240px; width: 240px; max-width: 100%; margin: 0 auto; }
.header-search-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; color: var(--pp-color-text-muted); pointer-events: none; z-index: 1; }
.header-search input { width: 100%; min-width: 0; padding-left: 2rem; background: transparent; border: 1px solid var(--pp-color-border-strong); color: var(--pp-color-text); }
.header-search input::placeholder { color: var(--pp-color-text-muted); }
.header-search input:focus { border-color: rgba(212,175,55,.55); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.search-suggestions { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 220; background: #121214; border: 1px solid var(--pp-color-border); box-shadow: 0 12px 30px rgba(0,0,0,.4); max-height: 320px; overflow: auto; border-radius: 12px; }
.search-suggestions[hidden] { display: none !important; }
.search-suggestion-group { padding: .5rem .8rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-color-text-muted); border-bottom: 1px solid var(--pp-color-border); }
.search-suggestion { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; width: 100%; padding: .65rem .8rem; border: 0; border-bottom: 1px solid var(--pp-color-border); background: transparent; color: var(--pp-color-text); text-align: left; text-decoration: none; cursor: pointer; }
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion:focus { background: rgba(212,175,55,.08); outline: none; text-decoration: none; }
.search-suggestion-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.search-suggestion-title { font-size: .88rem; line-height: 1.3; color: var(--pp-color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-sub { font-size: .74rem; color: var(--pp-color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestion-logo { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--pp-color-surface-alt); border: 1px solid var(--pp-color-border); overflow: hidden; }
.search-suggestion-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-suggestion-logo-emoji, .search-suggestion-logo-initial { font-size: .95rem; line-height: 1; }
.search-suggestion-logo-initial { font-size: .78rem; font-weight: 600; color: var(--pp-color-secondary); }
.search-suggestion-icon { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--pp-color-accent); }
.search-suggestion-item .search-suggestion-title { font-weight: 500; }
.header-address { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; width: fit-content; max-width: min(100%, 220px); min-width: 0; padding: .25rem .35rem; background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: var(--pp-color-text-muted); text-align: left; }
.header-address:hover, .header-address:focus-visible { background: transparent; color: var(--pp-color-text); outline: none; }
.header-address-icon { color: var(--pp-color-accent); font-size: .95rem; line-height: 1; flex-shrink: 0; }
.header-address-text { min-width: 0; font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pp-color-text); }
.site-header-compact { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: nowrap; }
.site-header-compact .brand { order: 1; flex: 0 0 auto; }
.site-header-compact .header-address { order: 2; flex: 0 0 auto; }
.site-header-compact .header-search { order: 3; flex: 1 1 320px; max-width: 520px; width: min(100%, 520px); margin: 0 auto; }
.site-header-compact .header-actions { order: 4; flex: 0 0 auto; margin-left: auto; }
.header-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-width: 0; padding: .25rem; border: 0; border-radius: 0; background: transparent; color: var(--pp-color-text-muted); text-decoration: none; box-shadow: none; line-height: 1; transition: color var(--pp-transition-fast); }
.header-icon-btn:hover, .header-icon-btn:focus-visible { background: transparent; color: var(--pp-color-primary); text-decoration: none; outline: none; }
.header-icon-btn svg { display: block; }
.cart-icon-btn .cart-badge, .nav-cart-icon .cart-badge { position: absolute; top: -6px; right: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 1rem; height: 1rem; padding: 0 .25rem; font-size: .62rem; font-weight: 700; line-height: 1; background: var(--pp-color-primary); color: var(--pp-color-primary-contrast); border: 0; border-radius: 4px; z-index: 1; }
.nav-cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; padding: .2rem; border: 0; border-radius: 0; background: transparent; }
.site-footer { border-top: 1px solid var(--pp-color-border); margin-top: var(--pp-space-xl); padding: var(--pp-space-lg) 1rem; color: var(--pp-color-text-muted); background: transparent; }
.site-footer nav, .footer-content nav { display: flex; gap: var(--pp-space-md); flex-wrap: wrap; margin-top: var(--pp-space-sm); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--pp-space-xl); align-items: center; padding: .5rem 0 var(--pp-space-lg); }
.hero-media img { border-radius: 28px; box-shadow: none; aspect-ratio: 4 / 3; object-fit: cover; }
.location-search { display: grid; gap: var(--pp-space-sm); margin-top: var(--pp-space-md); padding: 1rem; background: transparent; border: 1px solid var(--pp-color-border); border-radius: 20px; box-shadow: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.results, .offers-grid { display: grid; gap: var(--pp-space-md); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--pp-space-sm); align-items: end; padding: var(--pp-space-md); background: transparent; border: 1px solid var(--pp-color-border); border-radius: 18px; margin-bottom: var(--pp-space-md); box-shadow: none; }
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: var(--pp-space-xs) var(--pp-space-md); }
.auth-page { width: min(100%, 520px); margin: var(--pp-space-lg) auto; }
.auth-card { background: transparent; border: 1px solid var(--pp-color-border); border-radius: 22px; padding: var(--pp-space-lg); box-shadow: none; }
.restaurant-hero .cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 24px; }
.restaurant-meta { display: flex; gap: var(--pp-space-md); align-items: flex-start; margin-top: var(--pp-space-md); }
.restaurant-meta .logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 3px solid #000; margin-top: -2.5rem; box-shadow: none; }
.menu-categories { display: flex; gap: var(--pp-space-sm); flex-wrap: wrap; margin-bottom: var(--pp-space-md); }
.menu-categories a { padding: .45rem .85rem; background: transparent; border: 1px solid var(--pp-color-border); border-radius: var(--pp-radius-pill); color: var(--pp-color-text); font-weight: 600; font-size: .875rem; }
.product-page article { display: grid; gap: var(--pp-space-md); max-width: var(--pp-container-sm); }
.product-page article > img { border-radius: 22px; aspect-ratio: 16 / 10; object-fit: cover; }
.timeline { list-style: none; padding: 0; display: grid; gap: var(--pp-space-sm); }
.map-placeholder, .payment-element { min-height: 180px; border: 1px dashed var(--pp-color-border); border-radius: 16px; display: grid; place-items: center; padding: var(--pp-space-md); background: transparent; color: var(--pp-color-text-muted); }
.actions { display: flex; gap: var(--pp-space-sm); flex-wrap: wrap; margin-top: var(--pp-space-sm); }
.delivery-bar form { display: grid; grid-template-columns: auto 1.2fr 1.6fr auto; gap: var(--pp-space-sm); align-items: end; background: transparent; padding: 1rem; border-radius: 18px; border: 1px solid var(--pp-color-border); box-shadow: none; }
.banner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--pp-space-md); }
.banner { padding: var(--pp-space-lg); border-radius: 20px; background: transparent; border: 1px solid var(--pp-color-border); box-shadow: none; }
[data-theme="dark"] .banner { background: transparent; border-color: var(--pp-color-border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pp-space-md); }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.password-wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--pp-space-xs); }
.social-auth { display: grid; gap: var(--pp-space-sm); margin-top: var(--pp-space-md); padding-top: var(--pp-space-md); border-top: 1px solid var(--pp-color-border); }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
/* Map/address */
.address-map-wrap { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(280px, .9fr); gap: 1rem; align-items: start; }
#delivery-map, .pp-map { height: 320px; width: 100%; min-height: 260px; border-radius: 16px; border: 1px solid var(--pp-color-border); overflow: hidden; background: transparent; position: relative; z-index: 0; }
.address-fields { display: grid; gap: .45rem; }
.address-suggestions { list-style: none; padding: 0; margin: .25rem 0 0; border: 1px solid var(--pp-color-border); border-radius: 14px; background: transparent; box-shadow: none; max-height: 240px; overflow: auto; position: relative; z-index: 5; }
.address-suggestions button { width: 100%; text-align: left; padding: .7rem .85rem; border: 0; background: transparent; border-bottom: 1px solid var(--pp-color-border); }
.address-suggestions li:last-child button { border-bottom: 0; }
.address-suggestions button:hover { background: transparent; }
.address-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.map-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.address-summary { padding: 1rem; border: 1px solid var(--pp-color-border); border-radius: 16px; background: transparent; margin-bottom: .75rem; }
.address-summary-text { font-size: 1rem; color: var(--pp-color-text); margin: .35rem 0 0; }
#address-editor[hidden], #address-summary[hidden] { display: none !important; }
/* Addresses page */
.address-page { max-width: 760px; width: 100%; margin: 0 auto; padding: 1.5rem 1.5rem 5rem; box-sizing: border-box; }
.address-page-head { display: flex; align-items: center; gap: 1.5rem; margin: 1.25rem 0 3.5rem; min-width: 0; }
.address-page-head h1 { margin: 0; font-size: 2.1rem; font-weight: 700; line-height: 1.2; color: var(--pp-color-text); letter-spacing: -.02em; }
.back-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--pp-color-border); background: transparent; color: var(--pp-color-text); font-size: 1.7rem; line-height: 1; text-decoration: none; }
.back-link:hover { text-decoration: none; background: transparent; }
.add-address-row { width: 100%; display: flex; align-items: center; gap: 1.25rem; padding: 1.85rem 1.1rem; margin: 0 0 2.75rem; border: 0; border-radius: 20px; background: transparent; color: var(--pp-color-text); font: inherit; font-size: 1.2rem; font-weight: 500; text-align: left; cursor: pointer; }
.add-address-row:hover { background: transparent; }
.add-address-plus { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; font-size: 2rem; font-weight: 400; line-height: 1; color: var(--pp-color-text); }
.address-group { margin-top: 0; clear: both; }
.address-group + .address-group { margin-top: 3.5rem; }
.address-group-label { display: block; margin: 0 0 1.5rem; padding: 0 .15rem; font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--pp-color-text-muted); }
.address-cards { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.address-card-wrap { margin: 0; border: 1px solid var(--pp-color-border); border-radius: 22px; background: transparent; overflow: hidden; box-shadow: none; }
.address-card { display: block; width: 100%; padding: 1.9rem 1.5rem; border: 0; background: transparent; text-align: left; font: inherit; color: var(--pp-color-text); cursor: pointer; box-sizing: border-box; }
.address-card:hover { background: transparent; }
.address-card-body { display: block; min-width: 0; }
.address-card-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin: 0; font-size: 1.18rem; font-weight: 600; line-height: 1.3; color: var(--pp-color-text); }
.address-card-icon { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 1.1rem; line-height: 1; color: var(--pp-color-text-muted); }
.address-card-sub { display: block; margin: .8rem 0 0; font-size: 1.04rem; font-weight: 400; line-height: 1.65; color: var(--pp-color-text-muted); word-break: break-word; overflow-wrap: anywhere; }
.address-page .empty-state { margin: 0; padding: 1.75rem; border-radius: 20px; }
.address-page .hint { margin: 1rem 0 0; }
.address-editor-panel { margin-top: 3.5rem; padding: 2.5rem; border: 1px solid var(--pp-color-border); border-radius: 26px; background: transparent; box-shadow: none; clear: both; }
.address-editor-panel h2 { margin: 0 0 1.25rem; font-size: 1.55rem; font-weight: 700; }
.address-editor-panel .hint { margin-bottom: 2.25rem; line-height: 1.6; }
.address-editor-panel label { margin-top: 1.85rem; margin-bottom: .65rem; display: block; }
.address-editor-panel .map-actions { margin: 2.25rem 0; gap: 1.25rem; }
.address-editor-panel .address-map-wrap { margin-top: 1.75rem; gap: 2.25rem; }
.address-editor-panel .address-fields { gap: .65rem; }
#map-loading-msg { margin: 0; min-height: 60px; display: flex; align-items: center; padding: 1.5rem; }
[data-theme="dark"] .add-address-row:hover, [data-theme="dark"] .address-card:hover { background: transparent; }
@media (max-width: 767px) { .address-map-wrap { grid-template-columns: 1fr; } .address-meta { grid-template-columns: 1fr; } #delivery-map,.pp-map { height: 260px; } }
