/*
Theme Name: Kayan
Theme URI: https://example.com/kayan
Author: Kayan Team
Author URI: https://example.com
Description: Single-page WordPress theme using the Sanam design as-is. WordPress acts purely as backend via REST.
Version: 1.0.0
Text Domain: kayan
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
--primary: var(--primary, #ffb300);
--primary-light: rgba(255, 179, 0, .08);
--primary-dark: #ffa000;
--accent: var(--primary-gradient-start, #ffd54f);
--bg: #fafafa; /* Premium bright near-white background instead of annoying gray */
--card: #ffffff; /* Stark pure white */
--card-soft: #faf9fb; /* Warm cream/light grey border / hover bg */
--text: #1e2330;
--muted: #8b919e;
--light-grey: #f2f3f5;
--radius: 16px;
--radius-lg: 24px;
--nav-h: 68px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin-top: 0 !important; /* Force completely zero top margin to destroy WP spacing! */
}

#wpadminbar {
    display: none !important; /* Hide WordPress admin bar completely to restore premium web-app feel */
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    margin-top: 0 !important;
    padding-top: 0 !important;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile blue highlight */
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

input {
    font-family: inherit;
}

/* ===== SPLASH ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s ease;
    overflow: hidden;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-circle-theme,
.splash-circle-white,
.splash-circle-theme-2 {
    display: none !important;
}

.splash-logo {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0; /* Hidden initially */
    animation: logoFadeInSplash 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    width: 100%;
    max-width: 400px;
}

#splash-logo-img {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 20px var(--logo-glow-color, rgba(255, 179, 0, 0.2)));
}

@keyframes splashThemeExpand {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(4000);
    }
}

@keyframes splashWhiteExpand {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(4000);
    }
}

@keyframes splashTheme2Expand {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(4000);
    }
}

@keyframes logoFadeInSplash {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(.7);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

/* ===== APP CONTAINER ===== */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 10px 18px; /* High luxury padding */
    margin: 0;
    border-bottom: 1.5px solid transparent;
}

.app-header.scrolled {
    background: rgba(250, 251, 252, 0.85) !important; /* matches var(--bg) with glass transparency */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.035) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015) !important;
    padding: 10px 18px !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0; /* Let inline layout handle padding */
    background: transparent !important; /* Flat transparent */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0;
    box-shadow: none !important; /* No shadow */
    border: none !important; /* No borders */
    min-height: 50px;
    transition: all 0.3s ease;
}

.header-inner:hover {
    border-color: transparent !important;
    box-shadow: none !important;
}

.header-logo-img {
    height: 36px !important;
    width: 36px !important;
    background-color: var(--primary) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner:hover .header-logo-img {
    transform: scale(1.1) rotate(6deg);
    filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.65));
}

.app-header.hidden-header {
    display: none;
}

.app-header .icon-btn {
    color: var(--text); /* Dark/gold icons instead of white */
    background: transparent !important;
    box-shadow: none !important;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    border-radius: 12px; /* Smooth rounded square for modern feel */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-header .icon-btn:hover {
    color: var(--primary);
    background: rgba(255, 179, 0, 0.12) !important;
    transform: scale(1.08);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    flex: 0;
}

/* Integrated Search Bar inside Header Inner */
.header-search-bar {
    position: absolute;
    inset: 4px; /* Perfectly overlays the header inner card */
    background: rgba(255, 255, 255, 0.94); /* Glassmorphism search overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 179, 0, 0.35);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-bar.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.search-input-wrapper i {
    color: var(--primary);
    font-size: 1.2rem;
}

.search-input-wrapper input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 0.95rem;
    color: var(--text);
    height: 100%;
}

.search-clear-btn {
    color: var(--muted);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ===== DRAWER MENU ===== */
.category-drawer {
    position: absolute;
    top: 60px;
    right: 24px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    min-width: 180px;
}

.drawer-item {
    padding: 10px 14px;
    text-align: right;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.2s;
}

.drawer-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== CUSTOM SELECT ===== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-btn {
    width: 100%;
    height: 42px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s;
}

.custom-select-btn:hover,
.custom-select-btn.open {
    border-color: var(--primary);
}

.custom-select-btn.error {
    border-color: #e53935;
}

.custom-select-btn i {
    transition: transform .2s;
    color: var(--muted);
}

.custom-select-btn.open i {
    transform: rotate(180deg);
}

.custom-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    z-index: 500;
    list-style: none;
    padding: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.custom-select-list.open {
    display: block;
}

.custom-select-list li {
    padding: 9px 12px;
    border-radius: 7px;
    font-size: .9rem;
    cursor: pointer;
    color: var(--text);
    transition: background .15s;
}

.custom-select-list li:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.custom-select-list li.selected {
    background: var(--primary);
    color: #fff;
}

/* ===== ICON BUTTON ===== */
.icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px; /* Prevent squishing */
    min-height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    color: var(--text);
    font-size: 1.3rem;
    transition: all .2s;
    padding: 0; /* Override any inherited padding that breaks perfect circle */
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== PAGES ===== */
.pages-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--nav-h) + 20px);
}

.page {
    display: none;
    padding: 0 20px 20px;
}

.page.active {
    display: block;
    animation: fadeUp .45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Scroll Animation Class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Horizontal Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== CAROUSEL ===== */
#detail-media-container {
    direction: ltr !important;
    /* Force LTR for predictable sliding */
}

.home-carousel {
    direction: ltr !important;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 26px; /* High premium radius matching Dribbble screenshot */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.035); /* Elegant, clean, flat shadow */
    margin: 12px 0 20px !important;
    border: none; /* Removed the gold border for a 100% clean flat look */
    position: relative;
    background: #fbfbfb;
}

/* Luxury clean overlay for text readability */
.home-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.4s ease;
}

.home-carousel:hover::after {
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 8s cubic-bezier(0.25, 1, 0.50, 1); /* Ultra smooth slow Ken Burns effect */
    transform: scale(1.01);
}

/* Beautiful zoom-in effect when the slide is active */
.carousel-slide.active img {
    transform: scale(1.08);
}

.promo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.promo-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.promo-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
    box-shadow: none;
}

.promo-slide h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    text-shadow: none;
}

.promo-slide h3 {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
    text-shadow: none;
}

.promo-slide p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 2px 0 0;
    line-height: 1.35;
    text-shadow: none;
}

.carousel-dots {
    z-index: 5;
    background: rgba(24, 25, 31, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

/* Premium Dribbble Banner Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(24, 25, 31, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.home-carousel:hover .carousel-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.carousel-arrow:hover {
    background: var(--primary, var(--primary, #ffb300)) !important;
    border-color: var(--primary, var(--primary, #ffb300)) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(255, 179, 0, 0.4);
}
.carousel-arrow.prev {
    right: 16px;
}
.carousel-arrow.next {
    left: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--accent, var(--primary-gradient-start, #ffd54f)) 0%, var(--primary, var(--primary, #ffb300)) 100%) !important; /* Dynamic gradient pill */
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(var(--primary-rgb, 255, 179, 0), 0.7);
}

/* ===== CATEGORIES ===== */
.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 20px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* ===== CATEGORY CHIPS - Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â³ÃƒËœÃ‚Â·ÃƒËœÃ‚Â­ÃƒËœÃ‚Â© Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â¯ÃƒËœÃ‚Â³Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© 11+12) ===== */
.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 16px; /* Sleek, rounded corner matching search bar and banner */
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text, #1e2330);
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.045);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.category-chip i {
    font-size: 0.95rem;
    color: var(--muted, #8b919e);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ÃƒËœÃ‚Â­ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¨Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â¨ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â®ÃƒËœÃ‚ÂªÃƒËœÃ‚Â§ÃƒËœÃ‚Â± - Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â³ÃƒËœÃ‚Â·ÃƒËœÃ‚Â­ Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â±ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¡Ãƒâ„¢Ã…Â  ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¯Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Â¡ÃƒËœÃ‚Â¬ ÃƒÂ¨Ã‚Â¨Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â³Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚ÂªÃƒËœÃ‚Â·ÃƒËœÃ‚Â¨Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Å¡Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â© */
.category-chip.active {
    background: var(--primary, #ffb300) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.15) !important; /* Soft premium shadow, no glow */
    border-color: var(--primary, #ffb300) !important;
    transform: translateY(-2px);
    padding: 8px 10px 8px 18px !important; /* Perfect space with white circle overlap */
    border-radius: 16px !important;
}

.category-chip.active i {
    width: 28px;
    height: 28px;
    border-radius: 10px; /* Perfect rounded square matching the theme */
    background: #ffffff !important;
    color: var(--primary, #ffb300) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px; /* Space between white circle and text in RTL */
    margin-right: 0px; /* Balanced, no negative margin pushing it to the edge! */
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.category-chip:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(255, 179, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 179, 0, 0.04);
}

.category-chip:hover:not(.active) i {
    color: var(--primary);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    border-right: 4.5px solid var(--primary);
    padding-right: 12px;
    line-height: 1.25;
    border-radius: 2px;
}

.see-all-btn {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 500;
    background: none;
    transition: opacity .2s;
}

.see-all-btn:hover {
    opacity: .7;
}

/* ===== LOADING ===== */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    gap: 12px;
    color: var(--muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== BOOK CARDS ===== */
.books-horizontal-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 20px;
    scrollbar-width: none;
    cursor: grab;
}

.books-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.books-horizontal-scroll:active {
    cursor: grabbing;
}

.book-card {
    min-width: 155px;
    width: 155px;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--card, #ffffff) 0%, var(--bg, #fafafa) 100%);
    padding: 12px;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(var(--primary-rgb, 255, 179, 0), 0.02);
    border: 1.5px solid rgba(var(--primary-rgb, 255, 179, 0), 0.12);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(var(--primary-rgb, 255, 179, 0), 0.1);
    border-color: rgba(var(--primary-rgb, 255, 179, 0), 0.35);
}

.book-cover {
    width: 100%;
    height: 190px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--card-soft);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    /* ÃƒËœÃ‚Â­Ãƒâ„¢Ã¢â‚¬Å¾ Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â´Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â­Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â±ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â© ÃƒËœÃ‚Â£ÃƒËœÃ‚Â«Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¡ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â­ÃƒËœÃ‚Â±Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â© Ãƒâ„¢Ã‚ Ãƒâ„¢Ã…Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚ÂªÃƒËœÃ‚ÂµÃƒâ„¢Ã‚ ÃƒËœÃ‚Â­ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.book-card:hover .book-cover {
    transform: scale(1.04) rotate(-2.5deg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* ÃƒËœÃ‚ÂªÃƒËœÃ‚Â·ÃƒËœÃ‚Â¨Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¡ Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â§ÃƒËœÃ‚Â´ÃƒËœÃ‚Â± ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â° ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂµÃƒâ„¢Ã‹â€ ÃƒËœÃ‚Â±ÃƒËœÃ‚Â© Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â¹ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â²Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â±ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â© Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã¢â‚¬Â¡ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â©Ãƒâ„¢Ã¢â‚¬Â¹ */
    transition: transform 0.4s ease;
    transform: translate3d(0, 0, 0);
}

.book-card:hover .book-cover img {
    transform: scale(1.05) translate3d(0, 0, 0);
}

.book-card h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
    margin-top: 8px;
}

.book-card .book-author {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 3px;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

/* ÃƒËœÃ‚ÂªÃƒËœÃ‚Â§ÃƒËœÃ‚Âº ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â³ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‚ ÃƒËœÃ‚Â§ÃƒËœÃ‚Â®ÃƒËœÃ‚Â± */
.book-price-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 255, 179, 0), 0.03);
    transition: all 0.25s ease;
}

.book-card:hover .book-price-tag {
    background: linear-gradient(135deg, var(--accent, var(--primary-gradient-start, #ffd54f)) 0%, var(--primary, var(--primary, #ffb300)) 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 255, 179, 0), 0.2);
}

/* Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â³Ãƒâ„¢Ã¢â‚¬Â¦ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒâ„¢Ã¢â‚¬Å¡Ãƒâ„¢Ã…Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Â¦ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â·ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚ Ãƒâ„¢Ã…Â  Ãƒâ„¢Ã‚ Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂºÃƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚  */
.book-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
    transition: all 0.3s ease;
}

.book-card:hover .book-rating-badge {
    transform: translateY(-2px);
    background: #ffffff;
}

.book-rating-badge i {
    color: #f5c518;
    font-size: 0.76rem;
}

/* Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â³Ãƒâ„¢Ã¢â‚¬Â¦ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ Ãƒâ„¢Ã‚ ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â·ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚ Ãƒâ„¢Ã…Â  Ãƒâ„¢Ã‚ Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂºÃƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚  (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â³Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‚ ÃƒËœÃ‚Â§ÃƒËœÃ‚Â®ÃƒËœÃ‚Â±ÃƒËœÃ‚Â©) */
.book-availability-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.book-availability-badge.avail {
    background: rgba(40, 167, 69, 0.9) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.book-availability-badge.unavail {
    background: rgba(220, 53, 69, 0.9) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.book-card:hover .book-availability-badge {
    transform: translateY(-2px);
}

/* ÃƒËœÃ‚ÂªÃƒËœÃ‚Â£ÃƒËœÃ‚Â«Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â± ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â·Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™ÃƒËœÃ‚ÂªÃƒËœÃ‚Â§ÃƒËœÃ‚Â¨ (Book Spine) ÃƒËœÃ‚Â«Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§ÃƒËœÃ‚Â«Ãƒâ„¢Ã…Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¯ */
.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; /* Spine on the right side for Arabic RTL books */
    width: 6px;
    background: linear-gradient(to left, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== CONTINUE READING (BEST SELLER REDESIGN) ===== */
.continue-reading {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 26px;
    padding: 20px;
    margin-bottom: 28px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(255, 179, 0, 0.04);
    border: 1.5px solid rgba(255, 179, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible; /* To allow the cover to pop nicely */
}

.continue-reading:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255, 179, 0, 0.1);
    border-color: rgba(255, 179, 0, 0.3);
}

.cr-cover-wrapper {
    position: relative;
    width: 80px;
    height: 115px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.continue-reading:hover .cr-cover-wrapper {
    transform: scale(1.05) rotate(-3deg);
}

.cr-cover {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.cr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.cr-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(255, 179, 0, 0.15);
}

.cr-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.cr-author {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 4px;
}

.cr-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cr-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.cr-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary, #ffb300);
    background: rgba(255, 179, 0, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
}

.cr-rating i {
    color: #f5c518;
}

.cr-action-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.continue-reading:hover .cr-action-arrow {
    transform: scale(1.1) translateX(-3px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.35);
}

/* ===== BOOKS GRID ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

/* ===== BOTTOM NAV ===== */
/* ===== FLOATING BOTTOM NAV (PREMIUM DESIGN) ===== */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 450px;
    height: 74px;
    background: #ffffff;
    border-radius: 37px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.015);
    box-sizing: border-box;
}

.bottom-nav.hidden-nav {
    display: none !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 14px;
    color: #cbd2e0; /* Clean light outline gray */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    font-size: 1.65rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    color: #1e2330; /* Bold dark active state */
}

.nav-item.active i {
    transform: scale(1.1) translateY(-2px);
}

/* Center FAB Cart Item */
.bottom-nav .cart-nav-item {
    padding: 0;
    width: 60px;
    height: 60px;
    margin-top: -36px; /* Floating look */
    background: var(--nav-plus-btn-bg, linear-gradient(135deg, var(--primary-gradient-start, var(--primary-gradient-start, #ffd54f)) 0%, var(--primary-gradient-end, var(--primary, #ffb300)) 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 255, 179, 0), 0.35);
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav .cart-nav-item i {
    font-size: 1.85rem;
    color: #ffffff;
}

.bottom-nav .cart-nav-item:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 255, 179, 0), 0.45);
}

.bottom-nav .cart-nav-item.active {
    background: var(--nav-plus-btn-bg, linear-gradient(135deg, var(--primary-gradient-start, #ffca28) 0%, var(--primary-gradient-end, #ff8f00) 100%));
    box-shadow: 0 12px 28px rgba(var(--primary-rgb, 255, 179, 0), 0.45);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4d4f;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(255, 77, 79, 0.3);
    line-height: 1;
}

/* ===== iOS LUXURY DETAILS PAGE ===== */
#page-detail.page {
    padding: 0 !important;
    background: #faf9f6;
    display: none; /* Hidden by default */
    flex-direction: column;
    min-height: calc(100vh - 68px);
}

#page-detail.page.active {
    display: flex;
}

.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px; /* Elegant margin left & right for back/share buttons */
    background: transparent;
    width: 100%;
}

.detail-top-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

#page-detail .detail-cover-area {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: 0 auto 20px;
    height: fit-content;
    max-height: 350px;
    background: var(--card-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#page-detail .detail-cover-img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

#page-detail .detail-cover-area:hover .detail-cover-img {
    transform: scale(1.03);
}

#page-detail .detail-body {
    background: #ffffff;
    border-radius: 36px 36px 0 0;
    padding: 32px 24px 40px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 179, 0, 0.04);
    border-bottom: none;
    flex-grow: 1; /* Stretches the sheet white container all the way down */
    display: flex;
    flex-direction: column;
}

#page-detail .detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#page-detail .detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

#page-detail .bookmark-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--text);
    font-size: 1.25rem;
    border: 1.5px solid rgba(255, 179, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-detail .bookmark-circle.bookmarked {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.25);
    transform: scale(1.05);
}

#page-detail .detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
}

#page-detail .detail-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 22px;
}

#page-detail .detail-stats {
    background: #faf9f6;
    border-radius: 18px;
    padding: 16px 12px;
    margin-bottom: 24px;
    border: 1px dashed rgba(255, 179, 0, 0.15);
    display: flex;
    align-items: stretch;
}

#page-detail .stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#page-detail .stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

#page-detail .stat-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

#page-detail .stat-divider {
    width: 1px;
    background: rgba(255, 179, 0, 0.15);
}

#page-detail .detail-desc {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.85;
    margin-bottom: 28px;
    flex-grow: 1;
}

#page-detail {
    padding-bottom: 100px !important;
}

.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top: 1px solid rgba(255, 179, 0, 0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.detail-bottom-bar .qty-box {
    background: #faf9f6;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 27px; /* Matches fully rounded theme */
    padding: 10px 18px;
    height: 54px; /* Chunky height */
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-bottom-bar .qty-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    min-width: 20px;
    text-align: center;
}

.detail-bottom-bar .qty-btn {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.detail-bottom-bar .qty-btn:active {
    transform: scale(0.85);
}

.detail-bottom-bar .add-cart-btn {
    flex: 1;
    height: 54px; /* Chunky height */
    border-radius: 27px; /* Fully rounded theme */
    background: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.2);
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-detail .add-cart-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.3);
}

/* ===== LUXURY FEATHER ICONS BOLD PRESENCE ===== */
i.feather-icon, .feather-icon {
    font-size: 1.15em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    -webkit-text-stroke: 0.35px currentColor;
}

/* ===== MORE BOOKS PAGE ===== */
.more-hero {
    margin-bottom: 24px;
}

.more-hero h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.more-hero p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
}

.more-featured {
    display: flex;
    align-items: stretch;
    gap: 16px;
    background: var(--card); /* Pure white */
    border-radius: 24px; /* Chunky, rounded */
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03); /* Premium card shadow */
    border: 1px solid rgba(0, 0, 0, 0.008);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.more-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.01);
}

.more-featured .mf-cover {
    width: 90px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.more-featured .mf-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.more-featured .mf-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.more-featured .mf-info .mf-author {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.more-featured .mf-info .mf-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.more-featured .mf-info .detail-btn {
    padding: 8px 18px;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    transition: all 0.2s;
    align-self: flex-start;
}

.more-featured .mf-info .detail-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== FAVORITES AND CART REDESIGN ===== */
.cart-empty,
.fav-empty {
    display: none; /* Controlled dynamically by JavaScript */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 28px;
    border: 1.5px dashed rgba(255, 179, 0, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02);
    margin: 24px 0;
    box-sizing: border-box;
    width: 100%;
}

.cart-empty h3,
.fav-empty h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 16px;
    color: var(--text);
}

.cart-empty p,
.fav-empty p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
    max-width: 280px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--card); /* Pure white card */
    border-radius: 20px; /* Chunky, rounded */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03); /* Soft floating shadow */
    border: 1px solid rgba(0, 0, 0, 0.008);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 12px;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.06);
}

.cart-item-img {
    width: 70px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-info h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}

.cart-item-info .ci-author {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.cart-item-info .ci-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 0;
}

.cart-item-actions .delete-btn {
    color: #ff4d4f;
    font-size: 1.15rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 77, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-actions .delete-btn:hover {
    background: #ff4d4f;
    color: #ffffff;
    transform: scale(1.05);
}

.cart-item-actions .qty-box {
    background: var(--light-grey);
    border-radius: 18px;
    padding: 6px 12px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary {
    background: var(--card);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.008);
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: .9rem;
    color: var(--muted);
}

.summary-row.total {
    color: var(--text);
    font-weight: 800;
    font-size: 1.25rem;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px dashed rgba(255, 179, 0, 0.12);
}

.checkout-btn {
    background: var(--primary) !important;
}

/* ===== DEVELOPER PAGE ===== */
.dev-page {
    padding: 20px 0;
}

.dev-avatar-area {
    text-align: center;
    margin-bottom: 28px;
}

.dev-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.dev-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dev-role {
    font-size: .92rem;
    color: var(--primary);
    font-weight: 500;
}

.dev-bio-card {
    background: var(--card-soft);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.dev-bio-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.dev-bio-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.75;
}

.dev-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dev-info-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--card-soft);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.dev-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dev-info-card h4 {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dev-info-card p {
    font-size: .82rem;
    color: var(--muted);
}

.dev-skills {
    background: var(--card-soft);
    border-radius: var(--radius);
    padding: 20px;
}

.dev-skills h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 500;
}

/* ===== MODAL - blur + animation ÃƒËœÃ‚ÂµÃƒËœÃ‚Â­Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â­ ÃƒËœÃ‚Â¨Ãƒâ„¢Ã¢â€šÂ¬ visibility (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© 18) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* visibility ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¯Ãƒâ„¢Ã¢â‚¬Å¾ display Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¶Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Å¾ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â€šÂ¬ transition */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ÃƒËœÃ‚Â£Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â´Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¯ÃƒËœÃ‚Â®Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Å¾ Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â­ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Â°: scale(0.85) ÃƒÂ¢Ã¢â‚¬Â Ã¢â‚¬â„¢ scale(1) */
.modal-content {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(255, 179, 0, 0.08);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* ÃƒËœÃ‚Â£Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â´Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â¥ÃƒËœÃ‚ÂºÃƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â¹Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â³Ãƒâ„¢Ã…Â  (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© 9) */
.modal-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.closing .modal-content {
    transform: scale(0.75);
    opacity: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background: var(--card-soft);
    border: none;
    padding: 0 16px;
    font-size: .9rem;
    color: var(--text);
    outline: none;
    transition: background .2s;
}

.form-group input:focus {
    background: var(--primary-light);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
}

.payment-method i {
    font-size: 1.3rem;
}

.submit-order-btn {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    background: var(--primary) !important;
    border-radius: 12px;
    font-size: .95rem;
}

/* Success modal */
.success-content {
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.success-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-content p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

.payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: .9rem !important;
}

/* ===== UTILITY ===== */
.hidden-header {
    display: none !important;
}

.hidden-nav {
    display: none !important;
}

/* ===== DESKTOP ===== */
@media (min-width:768px) {
    .pages-container {
        padding: 0 0 calc(var(--nav-h) + 20px);
    }

    .page {
        padding: 0 60px 40px;
    }

    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-header {
        padding: 20px 60px 12px;
    }

    .detail-cover-img {
        width: 200px;
        height: 300px;
    }

    .detail-bottom-bar {
        max-width: 450px;
    }

    .dev-info-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dev-info-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (min-width:1100px) {
    .pages-container {
        padding: 0 0 calc(var(--nav-h) + 20px);
    }

    .page {
        padding: 0 120px 40px;
        max-width: 1340px;
        margin: 0 auto;
    }

    .app-header {
        padding: 20px 120px 12px;
        max-width: 1340px;
        margin: 0 auto;
    }

    .books-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .book-card {
        min-width: 165px;
        width: 165px;
    }

    .book-cover {
        height: 220px;
    }
}

/* ===== CATEGORY DRAWER ===== */
.category-drawer {
    position: sticky;
    top: 60px;
    z-index: 99;
    background: var(--bg);
    padding: 0 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    max-height: 0;
    overflow-y: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s ease, opacity .3s ease;
    opacity: 0;
    border-bottom: 1px solid transparent;
}

.category-drawer.drawer-open {
    max-height: 80px;
    padding: 10px 16px;
    opacity: 1;
    border-bottom-color: var(--card-soft);
}

.category-drawer::-webkit-scrollbar {
    display: none;
}

.drawer-item {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--card-soft);
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.drawer-item:hover,
.drawer-item.active-drawer {
    background: var(--primary);
    color: #fff;
}

/* ===== HEADER BADGE ===== */
.header-left .icon-btn {
    position: relative;
}

.header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff4d4f;
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== WHATSAPP BUTTON (THEME ACCENT REDESIGN) ===== */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    border-radius: 12px; /* Elegant semi-square shape with subtle border rounding */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #fff !important;
    font-size: .98rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    margin-top: 24px;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.3);
    opacity: 1;
}

.whatsapp-btn i {
    font-size: 1.4rem;
}

/* ===== BROWSE BUTTON ===== */
.browse-btn {
    padding: 14px 32px !important;
    flex: none !important;
}

/* ===== SUCCESS OK BUTTON ===== */
.success-ok-btn {
    margin-top: 20px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: var(--primary) !important;
}

/* ===== ALREADY IN CART STATE ===== */
.add-cart-btn.in-cart,
.detail-bottom-bar .add-cart-btn.in-cart {
    background: #e53935 !important;
    color: #fff !important;
    opacity: 1;
}

/* ===== LUXURY DRAWER REDESIGN ===== */
.luxury-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: flex-start; /* Slides out from the right side for Arabic RTL layout! */
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
}

.luxury-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.luxury-drawer .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 35, 48, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 100%;
    height: 100%;
}

.luxury-drawer.active .drawer-backdrop {
    opacity: 1;
}

.luxury-drawer .drawer-content {
    position: relative;
    z-index: 2;
    width: 290px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(190%);
    border-radius: 28px 0 0 28px; /* iOS sheet curves on the inside edge */
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.12);
    border-left: 1.5px solid rgba(255, 179, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-drawer.active .drawer-content {
    transform: translateX(0);
}

.luxury-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 179, 0, 0.08);
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.drawer-logo-icon {
    width: 34px;
    height: 34px;
    background-color: var(--primary);
    -webkit-mask: url('assets/images/logo.png') no-repeat center / contain;
    mask: url('assets/images/logo.png') no-repeat center / contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.drawer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.luxury-drawer .drawer-menu-item {
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
}

.luxury-drawer .drawer-menu-item i {
    font-size: 1.35rem;
    color: var(--muted);
    transition: color 0.3s;
}

.luxury-drawer .drawer-menu-item span {
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.3s;
}

.luxury-drawer .drawer-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-right: 24px; /* Soft slide interaction */
}

.luxury-drawer .drawer-menu-item:hover i {
    color: var(--primary);
}

.luxury-drawer .drawer-menu-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%) !important;
    color: #ffffff !important;
}

.luxury-drawer .drawer-menu-item.active i {
    color: #ffffff !important;
}

.item-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.drawer-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ===== STORYTELLING ABOUT PAGE (PREMIUM UNCLUTTERED REDESIGN) ===== */
.about-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 24px 0 40px;
    direction: rtl;
}

/* ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¨Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â±Ãƒâ„¢Ã‚ Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© (Hero Section) */
.about-hero-section {
    text-align: center;
    padding: 16px 12px;
}

.about-emblem {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.15);
    border: 2px solid rgba(255, 179, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-emblem:hover {
    transform: rotate(5deg) scale(1.05);
}

.about-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.about-hero-subtitle {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â«ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â±Ãƒâ„¢Ã‚ Ãƒâ„¢Ã…Â  (Manifesto Card) */
.about-manifesto-card {
    background: linear-gradient(145deg, #ffffff 0%, #fdfbf7 100%);
    border: 1.5px solid rgba(255, 179, 0, 0.12);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 8px 30px rgba(255, 179, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.about-manifesto-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--primary) 100%);
}

.manifesto-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.manifesto-icon {
    font-size: 1rem;
    color: var(--primary);
}

.manifesto-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.manifesto-text {
    font-size: 0.92rem;
    color: #4a4a4a;
    line-height: 1.85;
    text-align: justify;
    margin: 0;
}

/* ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â±Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¦ÃƒËœÃ‚Â² ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£ÃƒËœÃ‚ÂµÃƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â© (Pillars Grid) */
.about-pillars-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    position: relative;
    padding-right: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 2px;
}

.pillars-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-item:hover {
    border-color: rgba(255, 179, 0, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 179, 0, 0.06);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 179, 0, 0.08);
}

.pillar-item h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text);
    margin: 0 0 6px;
}

.pillar-item p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â³ÃƒËœÃ‚Â§ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ ÃƒËœÃ‚ÂµÃƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¾ Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â·Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¨ (Workflow Minimalist) */
.about-workflow-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    padding-right: 18px;
}

/* ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â®ÃƒËœÃ‚Â· ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â¯Ãƒâ„¢Ã…Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¡ */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.workflow-step-item {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    position: absolute;
    right: -27px; /* Ãƒâ„¢Ã…Â ÃƒËœÃ‚ÂªÃƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â±Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â² ÃƒËœÃ‚ÂªÃƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â¹ ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â° ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â®ÃƒËœÃ‚Â· ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â¯Ãƒâ„¢Ã…Â  */
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3.5px solid #ffffff;
    box-shadow: 0 0 0 1px var(--primary);
    z-index: 2;
    transition: transform 0.3s ease;
}

.workflow-step-item:hover .step-number {
    transform: scale(1.2);
}

.step-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 16px;
    flex: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-step-item:hover .step-content {
    border-color: rgba(255, 179, 0, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.04);
}

.step-content h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 750;
    color: var(--text);
    margin: 0 0 4px;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.about-cta-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

/* Staggered cascading animations for About Page storytelling */
#page-about .pillar-item,
#page-about .workflow-step-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-about .about-pillars-section.visible .pillar-item,
#page-about .about-workflow-section.visible .workflow-step-item {
    opacity: 1;
    transform: translateY(0);
}

/* Cascade individual pillars when section reveals */
#page-about .about-pillars-section.visible .pillar-item:nth-child(1) {
    transition-delay: 0.1s;
}
#page-about .about-pillars-section.visible .pillar-item:nth-child(2) {
    transition-delay: 0.25s;
}
#page-about .about-pillars-section.visible .pillar-item:nth-child(3) {
    transition-delay: 0.4s;
}

/* Cascade individual workflow steps when section reveals */
#page-about .about-workflow-section.visible .workflow-step-item:nth-child(1) {
    transition-delay: 0.1s;
}
#page-about .about-workflow-section.visible .workflow-step-item:nth-child(2) {
    transition-delay: 0.25s;
}
#page-about .about-workflow-section.visible .workflow-step-item:nth-child(3) {
    transition-delay: 0.4s;
}
#page-about .about-workflow-section.visible .workflow-step-item:nth-child(4) {
    transition-delay: 0.55s;
}

/* ===== MODERN CHECKOUT DIALOGS ===== */

.modal-content {
    background: #ffffff;
    border-radius: 28px; /* Chunky and premium */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1.5px solid rgba(255, 179, 0, 0.08);
}

.form-group input {
    border: 1.5px solid #eaeaea;
    border-radius: 16px;
    height: 50px;
    padding: 0 16px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: #ffffff;
}

.payment-method {
    border-radius: 16px;
    border: 1.5px solid rgba(255, 179, 0, 0.15);
    background: var(--primary-light);
    padding: 16px;
    color: var(--primary, #ffb300) !important;
}

.submit-order-btn {
    height: 54px;
    border-radius: 27px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.25);
}

/* ===== GLOBAL CARD FLOAT EFFECT ===== */
.book-card,
.more-featured,
.cart-item,
.feature-card,
.about-hero-card,
.about-story-card,
.about-timeline-section {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-card:hover,
.more-featured:hover,
.cart-item:hover,
.feature-card:hover,
.about-hero-card:hover,
.about-story-card:hover,
.about-timeline-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.01);
}

/* ===== MODAL IMPROVEMENTS ===== */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== CATEGORIES PAGE ===== */
.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0 40px;
}

.category-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1.5px solid rgba(255, 179, 0, 0.15);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/* Elegant background pattern for the card */
.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

/* Subtle gold corner ornament */
.category-card::after {
    content: '\2726';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: rgba(255, 179, 0, 0.4);
    transition: all 0.4s ease;
}

.category-card:hover::after {
    color: var(--primary);
    transform: rotate(90deg) scale(1.25);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 38px rgba(255, 179, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.02);
}

.category-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px; /* Smooth rounded square */
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(0deg);
}

.category-card:hover .category-card-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.45);
}

.category-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    transition: color 0.3s ease;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.category-card:hover .category-card-name {
    color: var(--primary-dark);
}

/* Interactive link hint on hover */
.category-card-action {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: -4px;
}

.category-card:hover .category-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(44, 26, 10, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 179, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.toast-notification.info {
    border-color: rgba(255, 255, 255, 0.2);
}

.toast-notification i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== ADMIN CARDS GRID ===== */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 12px 0 24px;
}

.admin-card {
    background: var(--card);
    border: 1px solid rgba(255, 179, 0, 0.06);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.admin-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.08);
    border-color: rgba(255, 179, 0, 0.2);
}

.admin-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.admin-card.active::after {
    transform: translateY(0);
}

.admin-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.admin-card.active .admin-card-icon {
    background: var(--primary);
    color: #fff;
}

.admin-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.admin-card-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-card-info p {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
}

.admin-card-info p span {
    font-weight: 700;
    color: var(--primary);
}

.toast-notification.info i {
    color: #fff;
}

/* Theme Color Unification (Accent Gold Gradient) */
.add-cart-btn,
.detail-bottom-bar .add-cart-btn,
.submit-order-btn,
.checkout-btn,
.whatsapp-btn {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.add-cart-btn:hover,
.detail-bottom-bar .add-cart-btn:hover,
.submit-order-btn:hover,
.checkout-btn:hover,
.whatsapp-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.35) !important;
    transform: translateY(-2px);
}
/* ========================================================
   ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ ÃƒËœÃ‚Â­Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â¯ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¥ÃƒËœÃ‚Â¬ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â§ÃƒËœÃ‚Â±Ãƒâ„¢Ã…Â  Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â  Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚ÂªÃƒËœÃ‚Â·ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¨Ãƒâ„¢Ã¢â‚¬Å¡ Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â¹ ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¯ÃƒËœÃ‚Â±ÃƒËœÃ‚Â¬ ÃƒËœÃ‚Â²ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â²ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¦ÃƒËœÃ‚Â¯ (+)
======================================================= */

/* 1. ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â³Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â´ÃƒËœÃ‚Â·ÃƒËœÃ‚Â© (Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â«Ãƒâ„¢Ã¢â‚¬Å¾: ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã¢â‚¬Å¾) */
.category-chip.active {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.25) !important;
}

/* 2. ÃƒËœÃ‚Â²ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§ÃƒËœÃ‚ÂªÃƒËœÃ‚Â³ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¨ Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚ÂÃƒËœÃ‚Â© ÃƒËœÃ‚Â£ÃƒËœÃ‚Â²ÃƒËœÃ‚Â±ÃƒËœÃ‚Â§ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¥ÃƒËœÃ‚Â¶ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚ÂÃƒËœÃ‚Â© Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚Â£Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â¯ Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚Â±ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¬ÃƒËœÃ‚Â¹ Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¹ÃƒËœÃ‚Â¯Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¾ */
.whatsapp-btn,
.add-cart-btn,
.submit-order-btn,
.checkout-btn,
.success-ok-btn,
.browse-btn,
#confirm-exit-btn,
#cancel-exit-btn,
#book-success-close,
#success-close {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.25) !important;
}

/* 2.1 ÃƒËœÃ‚Â£ÃƒËœÃ‚Â²ÃƒËœÃ‚Â±ÃƒËœÃ‚Â§ÃƒËœÃ‚Â± ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â²ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¦ÃƒËœÃ‚Â¯ Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¡ÃƒËœÃ‚Âµ Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© (ÃƒËœÃ‚Â¨ÃƒËœÃ‚Â¯Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â®Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‚ÂÃƒâ„¢Ã…Â ÃƒËœÃ‚Â© Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â§ Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Âª) */
#qty-plus,
#qty-minus,
.qty-btn {
    background: transparent !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    border: none !important;
}

/* 3. Ãƒâ„¢Ã‚ÂÃƒâ„¢Ã¢â‚¬Å¡ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª ÃƒËœÃ‚Â£ÃƒËœÃ‚Â±Ãƒâ„¢Ã¢â‚¬Å¡ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â¦ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â®ÃƒËœÃ‚Â·Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª (1, 2, 3, 4) */
.step-bubble,
.timeline-step:hover .step-bubble {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2) !important;
}

/* 4. ÃƒËœÃ‚Â²ÃƒËœÃ‚Â± "ÃƒËœÃ‚Â¹ÃƒËœÃ‚Â±ÃƒËœÃ‚Â¶ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™Ãƒâ„¢Ã¢â‚¬Å¾" */
.see-all-btn {
    color: var(--primary, #ffb300) !important;
}

/* 5. Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â§Ãƒâ„¢Ã‚ÂÃƒËœÃ‚Â© ÃƒËœÃ‚Â£Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¡Ãƒâ„¢Ã‹â€ Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚ÂªÃƒËœÃ‚ÂµÃƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã‚ÂÃƒËœÃ‚Â§ÃƒËœÃ‚Âª (Category Icons) */
.category-card-icon,
.category-card:hover .category-card-icon {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2) !important;
}

/* 6. ÃƒËœÃ‚Â®Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã‚ÂÃƒâ„¢Ã…Â ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â€šÂ¬ Avatar Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â³Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© (Badges) Ãƒâ„¢Ã‚ÂÃƒâ„¢Ã…Â  ÃƒËœÃ‚ÂµÃƒâ„¢Ã‚ÂÃƒËœÃ‚Â­ÃƒËœÃ‚Â© "ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã†â€™ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¨ÃƒËœÃ‚Â©" */
.about-avatar-wrapper,
.story-badge {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2) !important;
}

/* 7. ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Å¡ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¦Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â¬ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â¨Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â© ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â ÃƒËœÃ‚Â´ÃƒËœÃ‚Â·ÃƒËœÃ‚Â© */
.luxury-drawer .drawer-menu-item.active {
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
}
.luxury-drawer .drawer-menu-item.active i {
    color: #ffffff !important;
}

/* ========================================================
   MODALS AND DIALOGS SYSTEM REDESIGN
======================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(30, 35, 48, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex !important; /* Forces active flex layout */
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 179, 0, 0.12);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ========================================================
   BOTTOM DRAWER FOR DASHBOARD FORMS
======================================================= */
.bottom-drawer {
    position: fixed;
    inset: 0;
    z-index: 10100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.bottom-drawer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 35, 48, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.bottom-drawer.active .bottom-drawer-content {
    transform: translateY(0);
}

.bottom-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.bottom-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.bottom-drawer-body {
    flex: 1;
    overflow-y: auto;
}

/* ========================================================
   FLOATING ACTION BUTTON (FAB)
======================================================= */
.dashboard-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-start, #ffd54f) 0%, var(--primary, #ffb300) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.dashboard-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 30px rgba(255, 179, 0, 0.5) !important;
}

/* ========================================================
   CLOSING ANIMATION - ÃƒËœÃ‚Â£Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â´Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â¥ÃƒËœÃ‚ÂºÃƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¡ ÃƒËœÃ‚Â¹Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â³Ãƒâ„¢Ã…Â  (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã¢â‚¬Â¡Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚Â© 9+18)
======================================================= */
.modal-overlay.closing {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.closing .modal-content {
    transform: scale(0.8) !important;
    opacity: 0 !important;
    transition: transform 0.35s ease, opacity 0.35s ease !important;
}

/* ========================================================
   ABOUT TIMELINE WRAPPER (Ãƒâ„¢Ã…Â ÃƒËœÃ‚Â­ÃƒËœÃ‚ÂªÃƒâ„¢Ã‹â€ Ãƒâ„¢Ã…Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â®ÃƒËœÃ‚Â·Ãƒâ„¢Ã‹â€ ÃƒËœÃ‚Â§ÃƒËœÃ‚Âª ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¹ÃƒËœÃ‚Â±ÃƒËœÃ‚Â¬ÃƒËœÃ‚Â©)
======================================================= */
.about-timeline-section {
    background: var(--card);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.01);
}

/* ========================================================
   NAV ITEM POSITION FOR BADGE
======================================================= */
.nav-item {
    position: relative;
}

/* ========================================================
   ADMIN DASHBOARD PREMIUM CARDS & INTERFACE
======================================================= */
.admin-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.admin-card.active {
    background: var(--card) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(255, 179, 0, 0.08) !important;
    transform: translateY(-4px);
}
.admin-card.active #kayan-tab-books div,
.admin-card.active #kayan-tab-list div,
.admin-card.active #kayan-tab-orders div {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(255, 179, 0, 0.25) !important;
}
.admin-card.active span {
    color: var(--primary) !important;
}

/* Custom Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(255, 179, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    padding: 6px;
    margin: 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}
.custom-select-list.open {
    display: block !important;
}
.custom-select-list li {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    color: var(--text);
}
.custom-select-list li:hover {
    background: rgba(255, 179, 0, 0.05);
    color: var(--primary);
}
.custom-select-list li.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* Custom Dropdown Errors */
#btn-genre.error, #btn-availability.error {
    border-color: #ff4d4f !important;
    background: #fff5f5 !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ========================================================
   BOTTOM DRAWER (Publish/Edit Book Form)
======================================================= */
.bottom-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bottom-drawer.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.bottom-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.bottom-drawer-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-drawer.open .bottom-drawer-content {
    transform: translateY(0);
}

/* Hide scrollbars globally across all platforms and browsers */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* Luxury Glassmorphism Toast Notification Override */
.toast-notification {
    position: fixed !important;
    top: -100px !important;
    bottom: auto !important; /* Move it to the top! */
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 440px !important;
    transform: translateX(-50%) scale(0.9) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 14px 28px !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none !important;
    direction: rtl !important;
    opacity: 0 !important;
}

.toast-notification.show {
    top: 24px !important;
    transform: translateX(-50%) scale(1) !important;
    opacity: 1 !important;
}

.toast-notification.error {
    border-color: rgba(239, 83, 80, 0.3) !important;
    background: rgba(255, 245, 245, 0.75) !important;
}

.toast-notification.info {
    border-color: rgba(33, 150, 243, 0.3) !important;
    background: rgba(240, 248, 255, 0.75) !important;
}

.toast-notification i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
}
.toast-notification.error i {
    background: rgba(239, 83, 80, 0.1) !important;
    color: #ef5350 !important;
}
.toast-notification.info i {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #2196f3 !important;
}

body.dark-mode .toast-notification {
    background: rgba(22, 25, 32, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    color: #f9fafb !important;
}

body.dark-mode .toast-notification.error {
    background: rgba(239, 83, 80, 0.2) !important;
    border-color: rgba(239, 83, 80, 0.35) !important;
}

body.dark-mode .toast-notification.info {
    background: rgba(33, 150, 243, 0.2) !important;
    border-color: rgba(33, 150, 243, 0.35) !important;
}

/* ===== DARK MODE OVERRIDES (2026 LUXURY SPEC) ===== */
body.dark-mode {
    --bg: #0f1115 !important;
    --card: #161920 !important;
    --card-soft: #1e222b !important;
    --text: #f9fafb !important;
    --muted: #9ca3af !important;
    --light-grey: #272c38 !important;
    background-color: #0f1115 !important;
    color: #f9fafb !important;
}

/* Base resets for containers under dark mode */
body.dark-mode .app-container,
body.dark-mode .app-header,
body.dark-mode .bottom-nav,
body.dark-mode .page,
body.dark-mode .item-card,
body.dark-mode .detail-body,
body.dark-mode .cart-item,
body.dark-mode .about-hero-section,
body.dark-mode .about-manifesto-card,
body.dark-mode .about-pillars-section,
body.dark-mode .about-workflow-section,
body.dark-mode .about-cta-section,
body.dark-mode .about-story-card,
body.dark-mode .timeline-content,
body.dark-mode .bottom-drawer-content,
body.dark-mode .drawer-content,
body.dark-mode .modal-content,
body.dark-mode .floating-cart-bar {
    background-color: #161920 !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Inputs, dropdowns, and form items */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .custom-select-btn,
body.dark-mode .custom-select-list,
body.dark-mode .form-group input,
body.dark-mode .search-bar input {
    background-color: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .custom-select-list li {
    color: #f9fafb !important;
}
body.dark-mode .custom-select-list li:hover {
    background-color: #272c38 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #9ca3af !important;
}

/* Custom visual adjustments */
body.dark-mode .icon-btn,
body.dark-mode .bookmark-circle,
body.dark-mode .back-to-home {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #f9fafb !important;
}

body.dark-mode .section-header h3,
body.dark-mode .detail-title,
body.dark-mode .drawer-brand span {
    color: #f9fafb !important;
}

/* ===== TOGGLE SWITCH COMPONENT ===== */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}
.switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .switch-slider {
    background-color: var(--primary) !important;
}
input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* ===== EXPANDED DARK MODE SPECIFICS ===== */
body.dark-mode .app-header,
body.dark-mode .app-header.scrolled {
    border-bottom: none !important;
    box-shadow: none !important;
}

body.dark-mode .category-card {
    background: linear-gradient(145deg, #1e222b 0%, #171a21 100%) !important;
    border-color: rgba(255, 179, 0, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}
body.dark-mode .category-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.12) !important;
}
body.dark-mode .category-card-name {
    color: #f9fafb !important;
}
body.dark-mode .category-card-action {
    color: var(--primary) !important;
}
body.dark-mode .category-card-icon {
    background-color: rgba(255, 179, 0, 0.1) !important;
    color: var(--primary) !important;
}

body.dark-mode .book-card {
    background-color: #161920 !important;
}
body.dark-mode .book-card h4 {
    color: #f9fafb !important;
}
body.dark-mode .book-card .book-author {
    color: #9ca3af !important;
}

body.dark-mode .stat-box {
    background-color: #1e222b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .stat-label {
    color: #9ca3af !important;
}
body.dark-mode .stat-val {
    color: #f9fafb !important;
}

body.dark-mode .detail-desc {
    color: #f9fafb !important;
}

body.dark-mode .detail-action-bar,
body.dark-mode .quantity-selector {
    background-color: #1e222b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .quantity-btn {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f9fafb !important;
}
body.dark-mode .quantity-val {
    color: #f9fafb !important;
}

body.dark-mode .custom-select-btn {
    background-color: #1e222b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f9fafb !important;
}

body.dark-mode .about-hero-section {
    background-color: #161920 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .about-subtitle,
body.dark-mode .about-desc {
    color: #9ca3af !important;
}

body.dark-mode .empty-cart-state p,
body.dark-mode #category-books-grid p {
    color: #9ca3af !important;
}

body.dark-mode .search-modal .modal-content,
body.dark-mode .custom-select-wrapper {
    background-color: #161920 !important;
    color: #f9fafb !important;
}

/* Category chips dark mode override */
body.dark-mode .category-chip {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .category-chip i {
    color: #9ca3af !important;
}
body.dark-mode .category-chip.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}
body.dark-mode .category-chip.active i {
    background: #ffffff !important;
    color: var(--primary) !important;
}

/* Category cards dark mode override */
body.dark-mode .category-card {
    background: #1e222b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Inline background / color resets for search bar and header action buttons */
body.dark-mode #home-search-form,
body.dark-mode .header-right .icon-btn,
body.dark-mode .header-left .icon-btn,
body.dark-mode .header-actions .icon-btn {
    background: #1e222b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f9fafb !important;
}

/* About Page (ÃƒËœÃ‚Â¹Ãƒâ„¢Ã¢â‚¬Â  ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã¢â‚¬Â¦Ãƒâ„¢Ã†â€™ÃƒËœÃ‚ÂªÃƒËœÃ‚Â¨ÃƒËœÃ‚Â©) Dark Mode overrides */
body.dark-mode .pillar-item,
body.dark-mode .step-content,
body.dark-mode .about-manifesto-card,
body.dark-mode .about-story-card {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Cart Page (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â³Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â©) Dark Mode overrides */
body.dark-mode .cart-item,
body.dark-mode .cart-summary,
body.dark-mode .cart-total-row {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Book Details Page (ÃƒËœÃ‚ÂªÃƒâ„¢Ã‚ÂÃƒËœÃ‚Â§ÃƒËœÃ‚ÂµÃƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Å¾ ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾Ãƒâ„¢Ã†â€™ÃƒËœÃ‚ÂªÃƒËœÃ‚Â§ÃƒËœÃ‚Â¨) Dark Mode overrides */
body.dark-mode .detail-stats,
body.dark-mode .detail-bottom-bar,
body.dark-mode .detail-bottom-bar .qty-box {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .detail-bottom-bar .qty-num {
    color: #f9fafb !important;
}

/* Home Page Continue Reading (ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ÃƒËœÃ‚Â£Ãƒâ„¢Ã†â€™ÃƒËœÃ‚Â«ÃƒËœÃ‚Â± ÃƒËœÃ‚Â´ÃƒËœÃ‚Â±ÃƒËœÃ‚Â§ÃƒËœÃ‚Â¡Ãƒâ„¢Ã¢â‚¬Â¹) Dark Mode overrides */
body.dark-mode .continue-reading {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .continue-reading * {
    color: #f9fafb !important;
}
body.dark-mode .continue-reading .cr-author,
body.dark-mode .continue-reading .book-author {
    color: #9ca3af !important;
}

/* Empty Cart and Favorites States Dark Mode overrides */
body.dark-mode .cart-empty,
body.dark-mode .fav-empty,
body.dark-mode .empty-cart-state,
body.dark-mode .empty-favorites-state,
body.dark-mode .empty-fav-state,
body.dark-mode .favorites-empty,
body.dark-mode .empty-state {
    background: #1e222b !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .cart-empty h3,
body.dark-mode .cart-empty p,
body.dark-mode .fav-empty h3,
body.dark-mode .fav-empty p,
body.dark-mode .empty-cart-state p,
body.dark-mode .empty-favorites-state p,
body.dark-mode .empty-fav-state p,
body.dark-mode .favorites-empty p,
body.dark-mode .empty-state p {
    color: #f9fafb !important;
}
body.dark-mode .cart-empty p,
body.dark-mode .fav-empty p,
body.dark-mode .empty-cart-state p,
body.dark-mode .empty-favorites-state p,
body.dark-mode .empty-fav-state p,
body.dark-mode .favorites-empty p,
body.dark-mode .empty-state p {
    color: #9ca3af !important;
}

/* Bottom Navigation Active Item Prominence and Glow in Dark Mode */
body.dark-mode .nav-item.active {
    color: var(--primary, #ffb300) !important;
}
body.dark-mode .bottom-nav .nav-item i {
    color: #6b7280 !important; /* Muted dark gray for inactive items */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.dark-mode .bottom-nav .nav-item.active i {
    color: var(--primary, #ffb300) !important; /* Vibrant primary gold */
    transform: scale(1.22) !important; /* Prominent size increase */
    filter: drop-shadow(0 0 10px rgba(255, 179, 0, 0.65)) !important; /* Premium glow effect */
}

/* Light mode bottom nav active color prominence */
.nav-item.active {
    color: var(--primary, #ffb300) !important;
}
.nav-item.active i {
    transform: scale(1.22) !important;
    filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.35)) !important;
}

/* Dark mode empty states, about page text colors, and responsive toast adjustments */
body.dark-mode .cart-empty,
body.dark-mode .fav-empty,
body.dark-mode .empty-cart-state,
body.dark-mode .empty-favorites-state,
body.dark-mode .empty-fav-state,
body.dark-mode .favorites-empty,
body.dark-mode .empty-state {
    background: #161920 !important;
    border: 1.5px dashed rgba(255, 179, 0, 0.3) !important;
    color: #f9fafb !important;
    box-shadow: none !important;
}

body.dark-mode .cart-empty h3,
body.dark-mode .fav-empty h3 {
    color: #f9fafb !important;
}

body.dark-mode .cart-empty p,
body.dark-mode .fav-empty p {
    color: #9ca3af !important;
}

body.dark-mode .about-hero-card {
    background: #161920 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f9fafb !important;
}

body.dark-mode .about-hero-card h2,
body.dark-mode .about-hero-card p {
    color: #f9fafb !important;
}

body.dark-mode .manifesto-text {
    color: #e5e7eb !important;
}

body.dark-mode .step-number {
    border-color: #161920 !important;
}

/* Calmer bottom nav plus/cart button customization */
body.dark-mode .bottom-nav .cart-nav-item {
    background: #161920 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .bottom-nav .cart-nav-item i {
    color: var(--primary) !important;
}
body.dark-mode .bottom-nav .cart-nav-item.active {
    background: #161920 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.2) !important;
}



/* ===== iOS TOGGLE SWITCH ===== */
.ios-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}
.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ios-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #e9e9ea;
    border-radius: 31px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.04);
}
.ios-toggle-slider::before {
    content: '';
    position: absolute;
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.06);
}
.ios-toggle input:checked + .ios-toggle-slider {
    background: var(--primary, #ffb300);
}
.ios-toggle input:checked + .ios-toggle-slider::before {
    transform: translateX(20px);
}

/* ===== CATEGORY CARD STAR ===== */
.category-card {
    position: relative;
    overflow: hidden;
}
/* Category card contrast improvement in dark mode */
body.dark-mode .category-card {
    background: linear-gradient(145deg, #1e222b 0%, #171a21 100%) !important;
    border: 1px solid rgba(255, 179, 0, 0.12) !important;
}
body.dark-mode .category-card-icon i {
    color: #ffd54f !important;
}
body.dark-mode .category-card-name {
    color: #f0f0f0 !important;
}
body.dark-mode .category-card-action {
    color: var(--primary, #ffb300) !important;
    opacity: 0.85;
}

/* ===== PILLARS RESPONSIVE FIX ===== */
.pillars-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pillar-item h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 8px 0 6px;
}
.pillar-item p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
}
@media (min-width: 500px) {
    .pillars-container {
        flex-direction: row;
        gap: 12px;
    }
    .pillar-item {
        flex: 1;
        min-width: 0;
    }
    .pillar-item h4 {
        font-size: 0.92rem;
    }
}

/* ===== ONBOARDING SCREEN ===== */
.onboarding-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1b202e 0%, #0f1115 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    box-sizing: border-box;
    padding: 24px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-content {
    max-width: 440px;
    width: 100%;
    background: rgba(22, 25, 32, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.onboarding-logo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(255, 179, 0, 0.25);
    margin-bottom: 0;
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
    animation: onboardingLogoIntro 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-screen.reveal .onboarding-logo-wrapper {
    margin-bottom: 24px;
    transform: scale(1) rotate(0deg);
    animation: onboardingLogoFloat 4s ease-in-out infinite 0.8s;
}

.onboarding-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.onboarding-interactive-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.onboarding-screen.reveal .onboarding-interactive-content {
    opacity: 1;
    transform: translateY(0);
}

.onboarding-title {
    font-size: 1.7rem;
    font-weight: 850;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ffffff 0%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.onboarding-subtitle {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.75;
    margin: 0 0 36px 0;
    max-width: 320px;
}

.onboarding-theme-prompt {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.onboarding-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.onboarding-theme-btn {
    padding: 20px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.onboarding-theme-btn i {
    font-size: 1.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.onboarding-theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 179, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.2);
}

.onboarding-theme-btn:hover i {
    transform: scale(1.15) rotate(8deg);
}

.onboarding-theme-btn.light-btn:hover i {
    color: #ffb300;
}

.onboarding-theme-btn.dark-btn:hover i {
    color: #a78bfa;
}

@keyframes onboardingLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1); }
}

@keyframes onboardingLogoIntro {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}



