 /*Base Resets & Theme Configurations */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(180deg, #FCF6F7 0%, #FFFFFF 600px, #FFFFFF 100%);
    color: #333333;
}

.heading-font {
    font-family: 'Playfair Display', serif;
}

/* Custom Palette */
:root {
    --brand-primary: #A31D44;      /* Deep Berry Crimson */
    --brand-light-bg: #FFF0F2;     /* Subtle Pink Accent background */
    --brand-muted-text: #6c757d;
}

.brand-color {
    color: var(--brand-primary) !important;
}

.text-brand {
    color: #ffc107 !important; 
}

.bg-brand {
    background-color: var(--brand-primary) !important;
}

.btn-brand {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand:hover {
    background-color: #821434;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-brand {
    border-color: #dee2e6;
    color: #495057;
    transition: all 0.2s ease;
}
.btn-outline-brand:hover {
    background-color: #f8f9fa;
    color: #000;
}

.btn-white {
    background-color: #ffffff;
    color: #000000;
    border: none;
    transition: all 0.2s ease;
}
.btn-white:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

 Custom Micro Utilities 
.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; }
.max-w-70 { max-width: 70%; }

/* Header Elements */
.search-container {
    width: 100%;
    max-width: 450px;
}
.search-container .form-control {
    border-radius: 20px 0 0 20px;
}
.search-container .input-group-text {
    border-radius: 0 20px 20px 0;
    background-color: #fff !important;
}

/* Hero Section & Floating Asset Animation */
.hero-banner {
    background-color: #FFF5F6;
    box-shadow: 0 10px 25px rgba(163, 29, 68, 0.06);
}
@keyframes floatY {
    0% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
    100% { transform: translateY(0px) rotate(15deg); }
}
.floral-deco-animated {
    font-size: 4rem;
    opacity: 0.25;
    animation: floatY 4s ease-in-out infinite;
    display: inline-block;
}

/* Categories Sidebar */
.category-link {
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.category-link:hover {
    background-color: #f8f9fa;
    color: var(--brand-primary);
    padding-left: 0.75rem !important;
}
.category-link.active {
    background-color: var(--brand-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(163, 29, 68, 0.2);
}

/* Horizontal Book Scroller Layout */
.book-scroll-container {
    position: relative;
}

.book-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 1.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    scroll-behavior: smooth;
    padding: 10px;
    margin: -10px;
}
.book-scroll-row::-webkit-scrollbar {
    display: none;
}

.book-card {
    min-width: 145px;
    max-width: 145px;
    scroll-snap-align: start;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    border-radius: 8px !important;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(163, 29, 68, 0.08);
}

.book-cover-wrapper {
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.book-cover-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.book-card:hover .book-cover-img {
    transform: scale(1.04);
}

/* Slider Controls & Interaction */
.slider-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    color: #A31D44;
    transition: all 0.2s ease;
}
.slider-arrow:hover {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(163, 29, 68, 0.3);
}
.slider-arrow:active {
    transform: translateY(-50%) scale(0.9);
}
.slider-arrow-left { left: -18px; }
.slider-arrow-right { right: -18px; }

/* Rank Badges for Bestsellers */
.rank-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 28px;
    height: 28px;
    background-color: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid white;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Pink Shopping Cart Button Modifier */
.btn-cart {
    background-color: var(--brand-light-bg);
    color: var(--brand-primary);
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.btn-cart:hover {
    background-color: var(--brand-primary);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

/* Spotlight & Graphic Layout Fixes */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.audiobook-banner {
    background: linear-gradient(135deg, #2D0B14 0%, #1A040A 100%) !important;
    box-shadow: 0 10px 25px rgba(45, 11, 20, 0.25);
}

.audiobook-bg-overlay {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 6rem;
    opacity: 0.15;
}

.icon-box-pink {
    width: 44px;
    height: 44px;
    background-color: var(--brand-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.card:hover .icon-box-pink {
    transform: scale(1.1) rotate(-5deg);
}

.dot-indicators span {
    width: 6px;
    height: 6px;
    background-color: #dee2e6;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: all 0.3s ease;
}
.dot-indicators span.active {
    background-color: var(--brand-primary);
    width: 16px;
    border-radius: 4px;
}
