/*
Theme Name: Foodiepress Theme
Description: Custom WooCommerce-synchronized theme for Foodiepress plugin.
Author: Your Name
Version: 1.0.0
Text Domain: foodiepress
*/

:root {
    --fp-red: #e4002b;
    --fp-black: #000000;
    --fp-white: #ffffff;
    --fp-bg-light: #f4f5f7;
    --fp-border: #e2e2e2;
    --fp-font: 'Inter', sans-serif;
}

a, button, .fp-cat-nav-btn, .fp-order-btn, .fp-burger-btn, .fp-sidebar-close, .fp-theme-toggle button {
	-webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--fp-font);
    background-color: #f0f1f5;
    color: var(--fp-black);
    overflow-x: hidden;
}

/* Inter — free alternative to KFC's paid "National 2" font.
   Loaded here as the theme's main font (--fp-font) so Foodiepress
   matches KFC's typography style. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   HEADER STYLES
   ========================================= */
.fp-header {
    background: var(--fp-white);
    padding: 0 20px;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fp-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    gap: 24px;
}

/* Header Left: Burger & Logo */
.fp-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.fp-burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 24px;
}

.fp-burger-btn .bar {
    display: block;
    height: 4px;
    background-color: var(--fp-black);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.fp-burger-btn .bar-full  { width: 24px; }
.fp-burger-btn .bar-short { width: 18px; }

.fp-logo {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: var(--fp-red);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.fp-logo img {
    height: 100px;
    width: auto;
    max-width: 220px;
    min-width: 80px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

/* Header Center: Order Types */
.fp-header-center {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.fp-order-types {
    display: flex;
    gap: 6px;
}

.fp-order-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 4px;
    background-color: #f4f5f7;
    color: var(--fp-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.fp-order-btn.active {
    border-color: var(--fp-red);
    background-color: var(--fp-white);
}

.fp-order-btn img {
    height: 20px;
    width: 20px;
    object-fit: contain;
}

/* Header Right: Cart & Login */
.fp-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fp-cart-icon {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: var(--fp-black);
}

.fp-cart-icon i {
    font-size: 32px;
}

.fp-cart-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    font-size: 12px;
    font-weight: 700;
}

.fp-login-btn {
    background-color: var(--fp-red);
    color: var(--fp-white);
    padding: 12px 9px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--fp-font);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 0 #a3001f;
    transition: box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.fp-login-btn:hover {
    background-color: var(--fp-red);
    box-shadow: 0 6px 0 #a3001f;
}

.fp-login-btn:active {
    background-color: var(--fp-red);
    box-shadow: 0 1px 0 #a3001f;
    transform: translateY(3px);
}

/* Mobile Bottom Row */
.fp-mobile-order-types {
    display: none;
}

/* =========================================
   SIDEBAR (OFFCANVAS)
   ========================================= */
.fp-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.fp-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fp-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--fp-white);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
}

.admin-bar .fp-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

.admin-bar .fp-sidebar-overlay {
    top: 32px;
}

.fp-sidebar.active {
    left: 0;
}

.fp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid var(--fp-border);
}

/* Day/Night Toggle */
.fp-theme-toggle {
    display: flex;
    background: var(--fp-white);
    border-radius: 20px;
    padding: 3px;
    border: 1px solid var(--fp-border);
}

.fp-theme-toggle button {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--fp-font);
    cursor: pointer;
    color: var(--fp-black);
    transition: all 0.2s;
}

.fp-theme-toggle button.active {
    background: var(--fp-red);
    color: var(--fp-white);
}

/* Sidebar Top Nav */
.fp-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-sidebar-nav li {
    border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-nav li:last-child {
    border-bottom: none;
}

.fp-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--fp-black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.fp-sidebar-nav a:hover {
    background: #fafafa;
}

.fp-sidebar-nav a i {
    color: var(--fp-red);
    font-size: 20px;
    margin-right: 14px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.fp-sidebar-nav .fp-nav-icon {
    width: 34px;
    height: 34px;
    background-color: var(--fp-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.fp-sidebar-nav .fp-nav-icon i {
    color: var(--fp-white);
    font-size: 16px;
    margin: 0;
    width: auto;
}

.fp-sidebar-divider {
    height: 1px;
    background: var(--fp-border);
    margin: 4px 0;
}

.fp-sidebar-nav-bottom {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-sidebar-nav-bottom li {
    border-bottom: none;
}

.fp-sidebar-nav-bottom a {
    display: block;
    padding: 13px 18px;
    color: var(--fp-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s;
}

.fp-sidebar-nav-bottom a:hover {
    background: #fafafa;
    color: var(--fp-red);
}

.fp-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--fp-black);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: background 0.15s;
}

.fp-sidebar-close:hover {
    background: var(--fp-border);
}

/* =========================================
   RESPONSIVE LAYOUT (MOBILE)
   ========================================= */
@media (max-width: 991px) {
    .fp-header {
        padding: 0 15px;
    }

    .fp-header-center {
        display: none;
    }

    .fp-cart-icon {
        display: none;
    }

    .fp-mobile-order-types {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 15px;
        background: var(--fp-white);
        border-bottom: 1px solid var(--fp-border);
    }

    .fp-mobile-order-types .fp-order-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 5px;
        font-size: 12px;
    }

    .fp-logo {
        font-size: 28px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.fp-footer {
    background: #fff;
    border-top: 1px solid var(--fp-border);
    padding: 40px 20px 0;
    font-family: var(--fp-font);
}

.fp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.fp-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.fp-footer-logo {
    text-decoration: none;
}

.fp-footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
}

.fp-footer-logo-text {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: var(--fp-red);
    letter-spacing: -1px;
}

.fp-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--fp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-black);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.fp-social-icon:hover {
    background: var(--fp-red);
    color: #fff;
    border-color: var(--fp-red);
}

.fp-social-yt {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
}
.fp-social-yt:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

.fp-footer-middle {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.fp-footer-col {
    min-width: 160px;
}

.fp-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-footer-col ul li {
    margin-bottom: 12px;
}

.fp-footer-col ul li a {
    color: var(--fp-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.15s;
}

.fp-footer-col ul li a:hover {
    color: var(--fp-red);
}

.fp-footer-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: auto;
}

.fp-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 16px;
    min-width: 155px;
    transition: background 0.2s;
}

.fp-app-badge:hover {
    background: #333;
    color: #fff;
}

.fp-app-badge i {
    font-size: 26px;
    flex-shrink: 0;
}

.fp-app-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--fp-font);
}

.fp-app-badge span small {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--fp-border);
    padding: 18px 0 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.fp-footer-copy {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-black);
}

.fp-footer-powered {
    margin: 0;
    text-align: right;
    font-size: 12px;
    color: var(--fp-black);
    line-height: 1.4;
}

.fp-footer-powered strong {
    color: var(--fp-red);
    font-size: 13px;
}

.fp-footer-powered a,
.fp-footer-powered span {
    color: var(--fp-black);
    font-size: 13px;
}

.fp-footer-powered a {
    text-decoration: underline;
    transition: color 0.15s;
}

.fp-footer-powered a:hover {
    color: var(--fp-red);
}

@media (max-width: 768px) {
    .fp-footer-middle {
        flex-direction: column;
        gap: 24px;
    }

    .fp-footer-apps {
        margin-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .fp-footer-powered {
        text-align: center;
    }
}

/* =========================================
   ADMIN BAR — HEADER & SIDEBAR OFFSET
   ========================================= */
.admin-bar .fp-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fp-header {
        top: 46px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .fp-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }
    .admin-bar .fp-sidebar-overlay {
        top: 46px;
    }
}

/* =========================================
   SCROLL PROGRESS SIDEBAR
   ========================================= */
.fp-scroll-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    z-index: 9999;
    pointer-events: none;
}

.fp-scroll-track {
    position: absolute;
    inset: 0;
    background: #d0d0d0;
    border-radius: 3px;
}

.fp-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--fp-red);
    border-radius: 3px;
    transition: height 0.08s linear;
    will-change: height;
}

.admin-bar .fp-scroll-sidebar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fp-scroll-sidebar {
        top: 46px;
    }
}

/* =========================================
   HIDE NATIVE BROWSER SCROLLBAR
   ========================================= */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* =========================================
   FOODIEPRESS CATEGORY NAV BAR
   (single, de-duplicated block — replaces
   every earlier #fp-cat-nav / #fp-cat-nav-inner
   / .fp-cat-nav-btn definition)
   ========================================= */
#fp-cat-nav {
    display: none; /* shown by JS when headings are detected */
    position: sticky;
    top: 100px;
    z-index: 999;
    background: #f0f1f5;
    border-bottom: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#fp-cat-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 15px 20px 8px;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#fp-cat-nav-inner::-webkit-scrollbar {
    display: none;
}

.fp-cat-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--fp-white);
    border: 0;
    border-radius: 6px;
    padding: 10px 15px;
    color: var(--fp-black);
    font-family: var(--fp-font);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fp-cat-nav-btn:hover {
    background: #e8e9ec;
}

.fp-cat-nav-btn.active {
    background-color: var(--fp-red) !important;
    color: #fff !important;
}

/* Admin bar offset for the category nav */
.admin-bar #fp-cat-nav {
    top: 132px; /* 100px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar #fp-cat-nav {
        top: 146px; /* 100px header + 46px admin bar */
    }
}

@media (max-width: 991px) {
    #fp-cat-nav-inner {
        padding: 8px 15px;
        gap: 6px;
        justify-content: flex-start; /* allow natural scroll-from-left when crowded on mobile */
    }

    .fp-cat-nav-btn {
		padding: 7px 14px;
		font-size: 12px;
}
}

/* =========================================
OVERFLOW / SCROLL FIX — MOBILE & DESKTOP
========================================= */

/* Fix root scroll container */
html {
	overflow-x: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar {
	display: none;
}

/* Remove overflow-x from body — it breaks position:sticky */
body {
	overflow-x: unset;
}

/* Contain any overflowing children without breaking scroll */
body > * {
	max-width: 100vw;
	overflow-x: hidden;
}

/* Header should never cause horizontal scroll */
.fp-header,
.fp-header-container {
	max-width: 100%;
	overflow: hidden;
}

/* Mobile order types row */
.fp-mobile-order-types {
	max-width: 100%;
	overflow-x: auto;
	box-sizing: border-box;
}

/* Footer overflow guard */
.fp-footer,
.fp-footer-inner,
.fp-footer-middle {
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

/* Sidebar must not push layout */
.fp-sidebar {
	max-width: 85vw;
}

/* Category nav inner scroll (pills) — X scroll allowed intentionally */
#fp-cat-nav {
	max-width: 100%;
	overflow-x: hidden;
}

#fp-cat-nav-inner {
	overflow-x: auto;
	max-width: 100%;
}

/* Global box-sizing safety net */
*, *::before, *::after {
	box-sizing: border-box;
}

/* Images and embeds should never exceed their container */
img, iframe, video, embed {
	max-width: 100%;
	height: auto;
}

/* =========================================
   CATEGORY NAV — CUSTOM FAKE SCROLLBAR
   Native scrollbars (incl. styled ones) get
   auto-hidden by Chrome/macOS after ~1s as an
   "overlay scrollbar" — no CSS can stop that.
   So we hide the native one completely and
   draw our own always-visible track + thumb,
   synced to scroll position via JS below.
   ========================================= */
#fp-cat-nav-inner {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
#fp-cat-nav-inner::-webkit-scrollbar {
	display: none;
}

.fp-cat-scroll-track {
	display: none; /* JS sets to 'block' only when content actually overflows */
	height: 4px;
	background: #e2e2e2;
	border-radius: 3px;
	margin: 0 20px 12px;
	position: relative;
}

.fp-cat-scroll-thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: #000000;
	border-radius: 3px;
}

@media (max-width: 991px) {
	.fp-cat-scroll-track {
		margin: 0 15px 8px;
	}
}

.fp-header-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 1440px;
	height: 100%;
	margin: 0 auto;
	gap: 24px;
	padding-left: 20px; /* placeholder — replace with the real content edge value once you share it */
}

.fp-header-right {
	margin-left: auto;
}

/* === HEADER + CATEGORY NAV: ALIGN TO .fp-container WIDTH === */

.fp-header-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 1140px;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	gap: 24px;
	padding: 0 15px;
	box-sizing: border-box;
}

.fp-header-right {
	margin-left: auto;
}

#fp-cat-nav-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 10px;
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	padding: 15px 15px 8px;
	box-sizing: border-box;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#fp-cat-nav-inner::-webkit-scrollbar {
	display: none;
}

@media (min-width: 576px) {
	.fp-header-container,
	#fp-cat-nav-inner {
		max-width: 540px;
		padding-left: 8px;
		padding-right: 8px;
	}
}
@media (min-width: 768px) {
	.fp-header-container,
	#fp-cat-nav-inner {
		max-width: 720px;
	}
}
@media (min-width: 992px) {
	.fp-header-container,
	#fp-cat-nav-inner {
		max-width: 960px;
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media (min-width: 1200px) {
	.fp-header-container,
	#fp-cat-nav-inner {
		max-width: 1140px;
	}
}

/* === FOOTER: CENTER-ALIGN CONTENT === */

.fp-footer-middle {
	display: flex;
	gap: 40px;
	justify-content: center;   /* was: flex-start */
	align-items: flex-start;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.fp-footer-apps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-left: 0;            /* was: auto — that's what pinned it to the far right */
}

.fp-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: center;   /* was: space-between */
	gap: 24px;
	border-top: 1px solid var(--fp-border);
	padding: 18px 0 20px;
	flex-wrap: wrap;
}

.fp-footer-powered {
	text-align: left;          /* was: right — no longer needed once centered as a group */
}

@media (max-width: 768px) {
	.fp-footer-middle {
		flex-direction: row;       /* was: column — let columns sit side by side */
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-start;
		gap: 24px 32px;             /* row-gap, column-gap */
	}

	.fp-footer-col {
		text-align: center;
		min-width: 0;
		flex: 0 1 auto;
	}

	.fp-footer-col ul li {
		margin-bottom: 6px;
	}

	.fp-footer-apps {
		margin-left: 0;
		flex-direction: row;        /* badges side by side too, not stacked */
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}

	.fp-footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 6px;
		padding: 14px 16px 16px;
	}

	.fp-footer-copy {
		word-break: break-word;
		max-width: 100%;
	}

	.fp-footer-powered {
		text-align: center;
	}
}

/* === SIDEBAR LOGIN BUTTON === */
.fp-sidebar-login {
	padding: 16px 16px 0;
}

.fp-sidebar-login .fp-login-btn {
	display: inline-flex;
}

/* === SIDEBAR BOTTOM NAV HOVER FILL === */
.fp-sidebar-nav-bottom a:hover {
	background: #9d9d9d;
	color: var(--fp-black);
}

/* === SIDEBAR HEADER — MATCH KFC STRUCTURE === */

.fp-sidebar-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 16px 16px 12px 16px;
	border-bottom: none;
}

/* Login sits in its own row, top-left, above the toggle row */
.fp-sidebar-login {
	padding: 16px 16px 0;
	order: -1; /* not needed if markup order is already login-first */
}

.fp-sidebar-login .fp-login-btn {
	display: inline-flex;
	padding: 10px 24px;
	border-radius: 4px;
}

/* Divider directly under the toggle row */
.fp-sidebar-divider-top {
	height: 1px;
	background: var(--fp-border);
	margin: 12px 0 4px;
}

/* === TOP ICON NAV === */
.fp-sidebar-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fp-sidebar-nav li {
	border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-nav li:last-child {
	border-bottom: none;
}

.fp-sidebar-nav a {
	display: flex;
	align-items: center;
	padding: 16px 18px;
	color: var(--fp-black);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: background 0.15s;
}

.fp-sidebar-nav a:hover {
	background: #fafafa;
}

/* === DIVIDER BETWEEN TOP NAV AND BOTTOM NAV === */
.fp-sidebar-divider {
	height: 1px;
	background: var(--fp-border);
	margin: 8px 0;
}

/* === BOTTOM TEXT NAV — generous spacing, no dividers, full-row hover fill === */
.fp-sidebar-nav-bottom {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fp-sidebar-nav-bottom li {
	border-bottom: none;
}

.fp-sidebar-nav-bottom a {
	display: block;
	padding: 16px 18px;
	color: var(--fp-black);
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	transition: background 0.15s;
}

.fp-sidebar-nav-bottom a:hover {
	background: #9d9d9d;
	color: var(--fp-black);
}

/* === TOP ICON NAV === */
.fp-sidebar-nav {
    list-style: none;
    padding: 0 10px; /* ← add horizontal padding so items don't touch edges */
    margin: 0;
}

.fp-sidebar-nav li {
    border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-nav li:last-child {
    border-bottom: none;
}

.fp-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    color: var(--fp-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px; /* ← rounded corners now that there's space */
    transition: background 0.15s, transform 0.18s ease; /* ← add transform transition */
    transform: translateX(0);
}

.fp-sidebar-nav a:hover {
    background: #fafafa;
    transform: translateX(5px); /* ← slides right on hover */
}

/* === BOTTOM TEXT NAV === */
.fp-sidebar-nav-bottom {
    list-style: none;
    padding: 0 10px; /* ← add horizontal padding */
    margin: 0;
}

.fp-sidebar-nav-bottom li {
    border-bottom: none;
}

.fp-sidebar-nav-bottom a {
    display: block;
    padding: 16px 12px;
    color: var(--fp-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 8px; /* ← rounded corners */
    transition: background 0.15s, transform 0.18s ease; /* ← add transform transition */
    transform: translateX(0);
}

.fp-sidebar-nav-bottom a:hover {
    background: #e8e9ec; /* ← softer than #9d9d9d */
    color: var(--fp-black);
    transform: translateX(5px); /* ← slides right on hover */
}

.fp-sidebar-divider {
    height: 1px;
    background: var(--fp-border);
    margin: 8px 10px; /* ← match the 10px side padding of the nav lists */
}

.fp-sidebar-login {
    padding: 20px 16px 16px;  /* was: 16px 16px 0 */
    order: -1;
}

.fp-sidebar-login .fp-login-btn {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: 4px;
}

.fp-sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 16px 20px 16px;  /* was: 16px 16px 12px 16px */
    border-bottom: none;
}

.fp-sidebar-login {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--fp-border);  /* ← separates login from toggle */
}

.fp-sidebar-login {
    padding: 20px 16px 16px;
    order: -1;
    border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-login .fp-login-btn {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: 4px;
}

.fp-sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 16px 20px 16px;
    border-bottom: 1px solid var(--fp-border);  /* ← line under toggle row */
}

.fp-login-btn {
    background-color: var(--fp-red);
    color: var(--fp-white);
    padding: 13px 20px;          /* was: 11px 18px — taller button */
    box-shadow: 0 5px 0 0 #6b0014;  /* was: #8a0019 — deeper/richer shadow */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--fp-font);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* 3D press effect — hard shadow, no blur */
    transform: translateY(0px);
    transition: box-shadow 0.1s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.fp-login-btn:hover {
    background-color: var(--fp-red);
    box-shadow: 0 7px 0 0 #6b0014;
transform: translateY(-2px);     /* floats up a touch more */
    transform: translateY(-1px);
    color: var(--fp-white);
    text-decoration: none;
}

.fp-login-btn:active {
    background-color: #c8001f;
    box-shadow: 0 1px 0 0 #8a0019;
    transform: translateY(4px);  /* physically presses down */
    color: var(--fp-white);
}

.fp-login-btn {
    background-color: #ea002a;
    color: var(--fp-white);
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-family: var(--fp-font);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* KFC's exact MUI shadow — three soft layers, no hard offset */
    box-shadow: rgba(0,0,0,0.2) 0px 3px 1px -2px,
                rgba(0,0,0,0.14) 0px 2px 2px 0px,
                rgba(0,0,0,0.12) 0px 1px 5px 0px;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.fp-login-btn:hover {
    background-color: #c8001f;
    color: var(--fp-white);
    text-decoration: none;
    /* MUI hover lifts the shadow */
    box-shadow: rgba(0,0,0,0.2) 0px 2px 4px -1px,
                rgba(0,0,0,0.14) 0px 4px 5px 0px,
                rgba(0,0,0,0.12) 0px 1px 10px 0px;
}

.fp-login-btn:active {
    background-color: #a8001a;
    color: var(--fp-white);
    /* MUI press flattens the shadow */
    box-shadow: rgba(0,0,0,0.2) 0px 5px 5px -3px,
                rgba(0,0,0,0.14) 0px 8px 10px 1px,
                rgba(0,0,0,0.12) 0px 3px 14px 2px;
}

.fp-login-btn:hover {
    background-color: rgb(198, 40, 40);
    color: var(--fp-white);
    text-decoration: none;
    box-shadow: rgba(0,0,0,0.2) 0px 2px 4px -1px,
                rgba(0,0,0,0.14) 0px 4px 5px 0px,
                rgba(0,0,0,0.12) 0px 1px 10px 0px;
}