/* Tindahan Natin Online — PC layout for the website.
   Only active on wide screens (tn-web.js adds class "tn-pc" to <html> at 1024px and wider).
   Phones and tablets keep the app layout. */

html.tn-pc body { padding-top: 68px !important; padding-bottom: 32px !important; background: #eef2ea !important; }
html.tn-pc #floatingBottomNav, html.tn-pc .tn-awning { display: none !important; }

/* ---------- top menu bar ---------- */
#tnPcBar { display: none; }
html.tn-pc #tnPcBar {
    display: block; position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 55;
    background: #006e1c; color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.14);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
#tnPcBar .in { max-width: 1240px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
#tnPcBar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
#tnPcBar .brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
#tnPcBar .brand b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
#tnPcBar .brand small { display: block; font-size: 11.5px; font-weight: 600; color: #FFC93C; }
#tnPcBar nav { display: flex; gap: 4px; margin-left: 8px; }
#tnPcBar nav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 12px; }
#tnPcBar nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
#tnPcBar nav a.on { background: #fff; color: #006e1c; }
#tnPcBar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#tnPcBar .cart { position: relative; display: flex; align-items: center; gap: 8px; background: #FFC93C; color: #14201a; border: 0;
    border-radius: 12px; height: 42px; padding: 0 16px; font: 800 14px inherit; cursor: pointer; font-family: inherit; }
#tnPcBar .cart .n { background: #14201a; color: #fff; border-radius: 10px; font-size: 11.5px; padding: 1px 7px; }
#tnPcBar .who { font-size: 13.5px; font-weight: 700; color: #fff; opacity: .92; }
#tnPcBar .out { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; border-radius: 12px; height: 40px; padding: 0 14px;
    font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
#tnPcBar .out:hover { background: rgba(255,255,255,.12); }

/* ---------- page width ---------- */
html.tn-pc #tnPcPage { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 24px 0; position: relative; box-sizing: border-box; align-self: center; flex-grow: 1; }
html.tn-pc #tnPcPage.narrow { max-width: 880px; }
html.tn-pc #tnPcPage > .tn-header { border-radius: 24px; position: relative !important; top: auto !important; }
html.tn-pc #tnPcPage main, html.tn-pc #tnPcPage .max-w-md, html.tn-pc #tnPcPage .max-w-lg,
html.tn-pc #tnPcPage .max-w-xl, html.tn-pc #tnPcPage .max-w-2xl { max-width: none !important; }

/* pop-up sheets become centered windows */
html.tn-pc .fixed.inset-0.justify-end, html.tn-pc .fixed.inset-0.items-end { justify-content: center !important; align-items: center !important; }
html.tn-pc .fixed.inset-0 > .rounded-t-3xl, html.tn-pc .fixed.inset-0 > [class*="rounded-t-[28px]"] {
    border-radius: 24px !important; max-width: 560px !important; width: 92% !important; max-height: 86vh !important; height: auto !important; }
html.tn-pc .tn-sheet-overlay { align-items: center !important; }
html.tn-pc .tn-sheet { border-radius: 24px !important; max-width: 440px !important; }
html.tn-pc .rq-overlay { align-items: center !important; }
html.tn-pc .rq-sheet { border-radius: 24px !important; max-width: 640px !important; max-height: 86vh !important; }

/* ---------- home ---------- */
html.tn-pc .pc-dashboard > header.tn-header { padding: 28px 32px 30px !important; }
html.tn-pc .pc-dashboard > header.tn-header #welcomeHeader { font-size: 30px !important; }
html.tn-pc .pc-dashboard > header.tn-header > .relative { max-width: 720px; }
html.tn-pc .pc-dashboard main { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 20px; padding: 20px 0 0 !important; }
html.tn-pc .pc-dashboard main > * { grid-column: 1 / -1; margin-top: 0 !important; }
html.tn-pc .pc-dashboard main > * + * { margin-top: 18px !important; }
html.tn-pc .pc-dashboard main > .tn-banners { grid-column: 1; grid-row: 1 / span 1; }
html.tn-pc .pc-dashboard main > .tn-banners + button { grid-column: 2; grid-row: 1; margin-top: 0 !important; align-self: stretch;
    flex-direction: column; justify-content: center; text-align: center; padding: 28px 22px !important; gap: 14px !important; }
html.tn-pc .pc-dashboard main > .tn-banners + button > span:first-child { width: 64px !important; height: 64px !important; }
html.tn-pc .pc-dashboard main > .tn-banners + button span.block:first-child { font-size: 19px !important; }
html.tn-pc .pc-dashboard main > .tn-banners + button span.block + span.block { font-size: 14px !important; margin-top: 6px; }
html.tn-pc .pc-dashboard .tn-banner-slide { aspect-ratio: 16 / 8 !important; }
html.tn-pc .pc-dashboard #dashboardCategoriesGrid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
html.tn-pc .pc-dashboard #storeCategoryButtonsContainer { flex-wrap: wrap !important; overflow: visible !important; }
html.tn-pc .pc-dashboard #storesContainer { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px !important; overflow: visible !important; }
html.tn-pc .pc-dashboard #storesContainer > div { min-width: 0 !important; max-width: none !important; cursor: pointer; }
html.tn-pc .pc-dashboard #storesContainer > div:hover, html.tn-pc .pc-dashboard #recommendedContainer > div:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
html.tn-pc .pc-dashboard #recommendedContainer { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 16px !important; }
html.tn-pc .pc-dashboard #recommendedContainer > .col-span-2 { grid-column: 1 / -1; }
html.tn-pc .pc-dashboard #modalStoresGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html.tn-pc .pc-dashboard #modalCategoriesGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
html.tn-pc .pc-dashboard #searchDropdown { max-height: 60vh; overflow-y: auto; }

/* ---------- store page ---------- */
html.tn-pc .pc-products > div:first-child { height: 240px !important; border-radius: 24px; overflow: hidden; }
html.tn-pc .pc-products > div:first-child .absolute.top-9 { top: 16px !important; }
html.tn-pc .pc-products > .tn-card { margin: -40px 32px 0 !important; }
html.tn-pc .pc-products #productGrid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
html.tn-pc .pc-products #productGrid > * { margin: 0 !important; }
html.tn-pc .pc-products #productGrid > .col-span-full { grid-column: 1 / -1; }
html.tn-pc .pc-products .sticky.top-0 { top: 68px !important; }
html.tn-pc #bottomCartBar { max-width: 560px; left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: 24px !important; }

/* ---------- checkout: two columns ---------- */
html.tn-pc .pc-checkout main { display: grid !important; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px !important;
    align-items: start; padding: 20px 0 0 !important; }
html.tn-pc .pc-checkout #checkout-action { position: sticky; top: 88px; }
html.tn-pc .pc-checkout #checkout-action > .fixed { position: static !important; border: 0 !important; padding: 0 !important; background: transparent !important; }
html.tn-pc .pc-checkout #checkout-view .tn-card [class*="h-[220px]"], html.tn-pc .pc-checkout #map { min-height: 320px; }

/* ---------- wallet: two columns ---------- */
html.tn-pc .pc-wallet > header.tn-header { padding: 28px 32px !important; }
html.tn-pc .pc-wallet main { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px !important;
    align-items: start; padding: 20px 0 0 !important; }

/* ---------- narrow pages (orders, chats, profile, requests, help) ---------- */
html.tn-pc #tnPcPage.narrow main { padding-left: 0 !important; padding-right: 0 !important; }
html.tn-pc .pc-chat > header.fixed, html.tn-pc .pc-tech_support > header.fixed { position: sticky !important; top: 68px !important; border-radius: 18px; }
html.tn-pc .pc-chat main { padding-top: 12px !important; }
html.tn-pc .pc-chat section.sticky { top: 136px !important; }
html.tn-pc .pc-chat .fixed.bottom-0, html.tn-pc .pc-tech_support nav.fixed.bottom-0 { left: 50% !important; right: auto !important; width: 880px; max-width: calc(100vw - 48px); transform: translateX(-50%); border-radius: 18px 18px 0 0; }
html.tn-pc .pc-tech_support main { padding-top: 16px !important; }

/* ---------- login / sign up: brand panel + form ---------- */
html.tn-pc body.tn-auth { padding-top: 0 !important; }
#tnAuthBrand { display: none; }
html.tn-pc #tnAuthBrand { display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 560px; color: #fff; }
html.tn-pc #tnAuthBrand img { width: 100%; border-radius: 26px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
html.tn-pc #tnAuthBrand h2 { font: 800 34px/1.15 'Plus Jakarta Sans', system-ui, sans-serif; margin: 0; letter-spacing: -.02em; }
html.tn-pc #tnAuthBrand p { font: 500 16px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; margin: 0; opacity: .92; }
html.tn-pc #tnAuthBrand ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font: 700 15px 'Plus Jakarta Sans', system-ui, sans-serif; }
html.tn-pc #tnAuthBrand li::before { content: '✓'; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #FFC93C; color: #14201a;
    align-items: center; justify-content: center; margin-right: 10px; font-size: 13px; }
html.tn-pc body.tn-auth { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important;
    gap: 64px; background: linear-gradient(135deg, #006e1c 0%, #00521a 60%, #003d14 100%) !important; }
html.tn-pc body.tn-auth > div.relative:not(#tnAuthBrand) { flex-shrink: 0; }

/* bottom bars on the narrow pages (profile Save, chat and help message boxes) sit under the page column */
html.tn-pc #tnPcPage.narrow [class*="fixed"][class*="bottom-"]:not(.inset-0):not(nav) {
    left: 50% !important; right: auto !important; width: 880px; max-width: calc(100vw - 48px); transform: translateX(-50%);
    bottom: 0 !important; border-radius: 18px 18px 0 0; }
html.tn-pc .pc-tech_support > nav.fixed { display: none !important; }
html.tn-pc .pc-tech_support main { padding-bottom: 110px !important; }
html.tn-pc .pc-profile main { padding-bottom: 110px !important; }
