/* C:\xampp\htdocs\app_wopie\assets\css\style.css */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Baby Soft Pastel Palette */
    --pastel-pink: #FFF0F2;
    --pastel-pink-accent: #FFCCD5;
    --pastel-blue: #E8F0FE;
    --pastel-blue-accent: #BEE3F8;
    --pastel-green: #018a6a;
    --pastel-green-accent: #018a6a;
    --pastel-purple: #F3E8FF;
    --pastel-purple-accent: #E9D8FD;
    --pastel-yellow: #FEFCE8;
    --pastel-yellow-accent: #FEF08A;
    --pastel-peach: #FFF5EB;
    --pastel-peach-accent: #FFE0B2;
    
    --primary: #A2B2FC;
    --primary-hover: #8D9FEB;
    --primary-light: #EBF0FF;
    
    --success: #018a6a;
    --warning: #F6AD55;
    
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --bg-main: #FBFBFC;
    --bg-card: #FFFFFF;
    --border-color: #EDF2F7;
    
    --shadow-sm: 0 2px 4px rgba(162, 178, 252, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(162, 178, 252, 0.1), 0 4px 6px -2px rgba(162, 178, 252, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(162, 178, 252, 0.15), 0 10px 10px -5px rgba(162, 178, 252, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--pastel-pink-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.admin-btn {
    background-color: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px 0 rgba(162, 178, 252, 0.4);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background-color: var(--primary-hover);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(162, 178, 252, 0.6);
}

.admin-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px 0 rgba(162, 178, 252, 0.4);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Banner Slider (Hero Carousel) */
.hero-slider-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 360px;
    box-shadow: var(--shadow-lg);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 4rem;
    color: var(--text-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.slide-tag {
    background: var(--pastel-pink-accent);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1A202C 0%, #4A5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 3.5rem; }
.slider-next { right: 3.5rem; }

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(162, 178, 252, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* Main Layout & Filtering */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Search Bar Area */
.search-wrapper {
    margin-bottom: 1.5rem;
    position: sticky;
    top: 79px;
    background: rgba(251, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    z-index: 40;
    transition: var(--transition-smooth);
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
    background: #fff;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Catalog Grid Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar Filter */
.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.filter-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.reset-filter-btn {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reset-filter-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 1.75rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Checkbox/Radio */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-checkbox-label:hover {
    color: var(--primary);
}

.filter-checkbox-label input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--primary);
}

/* Price Range Slider */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-box label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-box input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
}

.price-box input:focus {
    border-color: var(--primary);
}

/* Rating Stars Filter */
.rating-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.star-rating-display {
    color: #FBBF24;
    display: flex;
    gap: 2px;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Mobile Filter Trigger Button */
.mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    align-items: center;
    gap: 0.5rem;
    z-index: 40;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-filter-trigger:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

/* Book Grid & Cards */
.catalog-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.books-count-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* Premium Card Design with Soft Pastel */
.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--pastel-pink-accent), var(--pastel-blue-accent), var(--pastel-green-accent));
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    background-color: var(--bg-main);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
}

.card-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.book-card:hover .card-image {
    transform: scale(1.05) rotate(2deg);
}

.card-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Random Pastel Backgrounds for Tags */
.bg-pastel-1 { background-color: var(--pastel-pink); color: #B83280; }
.bg-pastel-2 { background-color: var(--pastel-blue); color: #2B6CB0; }
.bg-pastel-3 { background-color: var(--pastel-green); color: #FFFFFF; }
.bg-pastel-4 { background-color: var(--pastel-purple); color: #553C9A; }
.bg-pastel-5 { background-color: var(--pastel-peach); color: #7B341E; }

.card-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.card-type-label {
    align-self: flex-start;
    display: inline-block;
    padding: 0.1rem 0.4rem;
    margin-bottom: 0.2rem;
    border-radius: 999px;
    background: var(--pastel-blue);
    color: #2B6CB0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.card-title:hover {
    color: var(--primary);
}

.card-rating {
    margin-bottom: 0.75rem;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.detail-trigger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.detail-trigger-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.buy-wa-btn {
    width: 100%;
    margin-top: 1rem;
    background-color: #018a6a;
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.buy-wa-btn:hover {
    background-color: #018a6a;
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* Detail Modal / Slide-over Drawer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-drawer {
    position: fixed;
    top: 0;
    right: -550px;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-card);
    z-index: 101;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.modal-overlay.active + .modal-drawer,
.modal-drawer.active {
    right: 0;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-book-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.modal-book-cover {
    width: 140px;
    height: 190px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: var(--bg-main);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.modal-book-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-book-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.modal-book-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.modal-book-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.modal-book-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-book-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-book-desc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.modal-book-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.detail-page-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.detail-page-card .modal-body {
    overflow: visible;
}

.detail-page-card .modal-book-hero {
    align-items: center;
}

.detail-page-card .modal-book-cover {
    width: 220px;
    height: 300px;
}

@media (max-width: 640px) {
    .detail-page-container {
        padding: 1.25rem 0.85rem 3rem;
    }

    .detail-page-card .modal-book-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-page-card .modal-book-cover {
        width: 100%;
        height: 280px;
    }
}

/* Footer Section */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        display: none; /* Mobile filter uses popup drawer or toggle sheet */
    }
    
    /* Sliding Sidebar Filter on Mobile */
    .filter-sidebar.mobile-active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 90;
        overflow-y: auto;
        border-radius: 0;
        padding-top: 6rem;
    }
    
    .mobile-filter-trigger {
        display: flex;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slider-wrapper {
        height: 320px;
    }
    
    .slide {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);
        z-index: 49;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-slider-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .slider-wrapper {
        height: 200px;
    }
    
    .slide {
        padding: 1.25rem 1.5rem;
    }
    
    .slide-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .slide-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
    
    .main-container {
        padding: 0 1rem 3rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .card-image-wrapper {
        height: 150px;
        padding: 0.75rem;
    }
    
    .card-category-tag {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .card-details {
        padding: 0.75rem;
    }
    
    .card-author {
        font-size: 0.7rem;
    }
    
    .card-title {
        font-size: 0.8rem;
        height: 2.2rem;
        margin-bottom: 0.25rem;
    }
    
    .card-rating {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }
    
    .card-price-row {
        padding-top: 0.5rem;
    }
    
    .card-price {
        font-size: 0.85rem;
    }
    
    .detail-trigger-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .buy-wa-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.75rem;
        gap: 0.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.book-card {
    animation: fadeIn 0.5s ease forwards;
}

.mobile-location,
.mobile-search-link,
.mobile-home-tools,
.mobile-section-head,
.mobile-bottom-nav {
    display: none;
}

/* XX1-inspired catalog theme */
:root {
    --primary: #018a6a;
    --primary-hover: #3da861;
    --primary-light: #193d27;
    --text-primary: #f5f5f5;
    --text-secondary: #a7a7a7;
    --bg-main: #0b0b0b;
    --bg-card: #171717;
    --border-color: #292929;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: #0b0b0b;
    color: var(--text-primary);
}

header {
    background: rgba(11, 11, 11, 0.92);
    border-bottom-color: #222;
}

.nav-container {
    max-width: 1280px;
    padding: 1rem 2rem;
}

.logo {
    color: #fff;
    letter-spacing: -0.04em;
}

.logo span {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-links a {
    color: #bdbdbd;
}

.nav-links a:hover,
.card-title:hover {
    color: #fff;
}

.admin-btn {
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(80, 200, 120, 0.2);
}

.mobile-toggle {
    color: #fff;
}

.hero-slider-container {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.slider-wrapper {
    height: 390px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.slide::before {
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.95) 5%, rgba(8, 8, 8, 0.65) 45%, rgba(8, 8, 8, 0.12) 100%);
}

.slide-content {
    max-width: 500px;
}

.slide-tag {
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
}

.slide-title {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.slide-subtitle {
    color: #d0d0d0;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-color: #444;
}

.dot {
    background: rgba(255, 255, 255, 0.35);
}

.dot.active {
    background: var(--primary);
}

.main-container {
    max-width: 1280px;
    padding-bottom: 5rem;
}

.search-wrapper {
    top: 72px;
    margin-bottom: 1.75rem;
    background: rgba(11, 11, 11, 0.9);
}

.search-input-group {
    max-width: none;
}

.search-input {
    padding: 1rem 1.5rem 1rem 3.25rem;
    background: #191919;
    color: #fff;
    border: 1px solid #303030;
    border-radius: 6px;
    box-shadow: none;
}

.search-input::placeholder {
    color: #777;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.18);
}

.search-icon {
    color: #888;
}

.catalog-layout {
    grid-template-columns: 230px 1fr;
    gap: 1.75rem;
}

.filter-sidebar {
    background: #151515;
    border-color: #292929;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    border-bottom-color: #303030;
    margin-bottom: 1.35rem;
}

.reset-filter-btn {
    color: var(--primary);
}

.filter-section-title {
    color: #eee;
}

.filter-checkbox-label {
    color: #999;
}

.filter-checkbox-label:hover {
    color: #fff;
}

.price-box input {
    background: #202020;
    color: #fff;
    border-color: #363636;
}

.books-count-header {
    color: #8d8d8d;
}

.books-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
}

.book-card {
    background: #151515;
    border-color: #252525;
    border-radius: 7px;
    box-shadow: none;
}

.book-card::before {
    display: none;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    height: 250px;
    padding: 0;
    background: #202020;
}

.card-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.book-card:hover .card-image {
    transform: scale(1.04);
}

.card-category-tag {
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.3rem 0.55rem;
    background: rgba(0, 0, 0, 0.72) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.card-details {
    padding: 0.85rem;
}

.card-author {
    color: #888;
}

.card-title {
    color: #f4f4f4;
}

.card-rating {
    margin-bottom: 0.65rem;
}

.card-price-row {
    border-top-color: #2b2b2b;
}

.card-price {
    color: #fff;
}

.detail-trigger-btn {
    background: #292929;
    color: #ddd;
}

.detail-trigger-btn:hover {
    background: var(--primary);
    color: #fff;
}

.buy-wa-btn {
    border-radius: 4px;
    box-shadow: none;
}

.modal-drawer,
.modal-footer {
    background: #151515;
    border-color: #303030;
}

.modal-book-specs {
    background: #202020;
    border-color: #303030;
}

.modal-book-desc,
.modal-book-author {
    color: #aaa;
}

footer {
    background: #101010;
    border-top-color: #292929;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.85rem 1rem;
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .mobile-location {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        margin-left: auto;
        padding: 0.55rem 0.75rem;
        background: #191919;
        border-radius: 999px;
        color: #ddd;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mobile-location i {
        color: #018a6a;
    }

    .mobile-search-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        color: #f1f1f1;
        font-size: 1.15rem;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-slider-container {
        margin-top: 0.85rem;
        padding: 0 1rem;
    }

    .slider-wrapper {
        height: 245px;
        border-radius: 1.15rem;
    }

    .slide {
        padding: 1.4rem;
        align-items: flex-end;
    }

    .slide::before {
        background: linear-gradient(0deg, rgba(4, 12, 13, 0.9) 0%, rgba(4, 12, 13, 0.2) 75%);
    }

    .slide-content {
        max-width: 80%;
    }

    .slide-tag {
        display: none;
    }

    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .slide-subtitle {
        font-size: 0.72rem;
        margin-bottom: 0;
        -webkit-line-clamp: 1;
    }

    .slide .btn-primary {
        display: none;
    }

    .slider-btn {
        display: none;
    }

    .mobile-home-tools {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.45rem;
        padding: 1.25rem 1rem 0.85rem;
    }

    .mobile-tool {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        color: #c8c8c8;
        font-size: 0.7rem;
        text-align: center;
    }

    .mobile-tool-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4.35rem;
        height: 4.35rem;
        border: 2px solid #018a6a;
        border-radius: 1.2rem;
        background: rgba(12, 35, 37, 0.75);
        font-size: 1.8rem;
    }

    .mobile-tool-cinema .mobile-tool-icon { color: #018a6a; }
    .mobile-tool-movies .mobile-tool-icon { color: #018a6a; }
    .mobile-tool-food .mobile-tool-icon { color: #ff4b37; }
    .mobile-tool-private .mobile-tool-icon { color: #018a6a; }

    .mobile-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 0 0.9rem;
    }

    .mobile-section-head h2 {
        color: #e7e7e7;
        font-size: 1.35rem;
        letter-spacing: -0.03em;
    }

    .mobile-section-head a {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.55rem 0.8rem;
        border: 1px solid #018a6a;
        border-radius: 999px;
        color: #FFFFFF;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .mobile-section-head a i {
        font-size: 0.7rem;
    }

    .main-container {
        padding: 0 1rem 6rem;
    }

    .search-wrapper {
        display: block;
        position: static;
        padding: 0 0 1rem;
        background: transparent;
    }

    .catalog-content {
        gap: 1.15rem;
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .books-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        margin: 0;
        padding: 0 0 0.75rem;
    }

    .card-image-wrapper {
        height: 15rem;
        background: #142b1d;
    }

    .card-image {
        object-fit: contain;
        padding: 0.45rem;
    }

    .card-details {
        padding: 0.65rem;
    }

    .card-title {
        color: #f1f1f1;
    }

    .mobile-filter-trigger {
        right: 50%;
        bottom: 1rem;
        transform: translateX(50%);
        padding: 0.75rem 1.15rem;
        background: var(--primary);
        border-radius: 5px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .mobile-filter-trigger:hover {
        transform: translateX(50%);
    }

    footer {
        padding: 2rem 1rem 5rem;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 0.7rem 0.35rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgba(9, 15, 16, 0.97);
        border-top: 1px solid #203b3d;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        color: #989898;
        font-size: 0.68rem;
    }

    .mobile-bottom-nav i {
        font-size: 1.25rem;
    }

    .mobile-bottom-nav a.active {
        color: #018a6a;
    }

    .mobile-filter-trigger {
        bottom: 5.3rem;
    }
}

.card-actions,
.modal-actions {
    display: flex;
    gap: 0.45rem;
    width: 100%;
}

.card-actions .buy-wa-btn,
.card-actions .buy-shopee-btn,
.modal-actions .buy-wa-btn,
.modal-actions .buy-shopee-btn {
    flex: 1;
    width: auto;
    margin-top: 1rem;
    padding: 0.7rem 0.35rem;
    border-radius: 4px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.buy-shopee-btn {
    background: #ee4d2d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.buy-shopee-btn:hover {
    background: #d83b20;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .card-actions .buy-wa-btn,
    .card-actions .buy-shopee-btn {
        min-width: 0;
        padding: 0.55rem 0.25rem;
        font-size: 0.68rem;
        gap: 0.2rem;
    }
}

.mobile-filter-trigger {
    color: #FFFFFF;
}
