/* MTQ Sayyed Legal - Bookstore Styling System */

:root {
    --primary-navy: #0B1F35;
    --primary-gold: #C8A35F;
    --navy-deep: #071524;
    --navy-light: #16304d;
    --gold-hover: #b49050;
    --gold-light: #F7F4EB;
    --slate-light: #f8fafc;
    --border-gray: #e2e8f0;
}

/* Serif font family for titles */
.serif-title {
    font-family: 'Playfair Display', 'Georgia', serif;
}

/* Hero Section Styles */
.books-hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--primary-navy) 100%);
    position: relative;
    overflow: hidden;
}

.books-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/legal-bg.webp') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 1;
}

.books-hero-content {
    position: relative;
    z-index: 2;
}

/* Decorative Gold Shelf Under Titles */
.gold-shelf-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-gold), #FFF);
    border-radius: 2px;
}

/* Book Grid Card */
.book-card {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(7, 21, 36, 0.08);
    border-color: rgba(200, 163, 95, 0.3);
}

.book-image-container {
    background: var(--slate-light);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
}

.book-image-container img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(4px 8px 12px rgba(0,0,0,0.15));
    transition: transform 0.4s ease;
}

.book-card:hover .book-image-container img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-navy);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--primary-gold);
    z-index: 2;
}

.book-badge.discount {
    background: var(--primary-gold);
    color: var(--primary-navy);
}

/* Details Page styles */
.book-detail-gallery {
    background: var(--slate-light);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-detail-gallery img {
    max-height: 480px;
    width: 95%;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(5px 15px 25px rgba(0,0,0,0.2));
}

.book-price-box {
    background: var(--slate-light);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Rating Stars */
.rating-stars {
    color: #f1c40f;
}

/* Review Item styling */
.review-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.review-reply {
    background: var(--gold-light);
    border-left: 3px solid var(--primary-gold);
    border-radius: 0 8px 8px 0;
}

/* Cart Sliding Drawer */
#cartDrawer {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tab buttons active state */
.tab-btn.active {
    border-bottom-color: var(--primary-gold);
    color: var(--primary-navy);
    font-weight: 700;
}

/* Custom form elements focus */
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(200, 163, 95, 0.15);
}
