/* ------------------------------------------------------
   GLOBAL DARK THEME & BACKGROUND
------------------------------------------------------- */
body.dark {
    background: url('/assets/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #eee;
    font-family: Arial, sans-serif;
    margin: 0;
    position: relative;
}
body.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px) saturate(60%);
    z-index: -1;
}
body.dark::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ------------------------------------------------------
   NAVBAR
------------------------------------------------------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-width: 0;
}
.nav-left { flex-shrink: 1; min-width: 0; }
.nav-logo {
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 1;
}
.nav-link {
    color: #eee;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 8px;
}
.nav-link:hover {
    color: #fff;
    transform: translateY(-2px);
    transition: all .2s ease;
}
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
}
.search-container input {
    width: 130px;
    max-width: 130px;
}
.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 17px;
}


/* ------------------------------------------------------
   HERO
------------------------------------------------------- */
.hero {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 48px; }
.hero p { font-size: 18px; opacity: 0.8; }
.btn-primary {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: #3fa9f5;
    border-radius: 4px;
    color: #fff;
}
.btn-primary:hover { background: #5cbcf9; }

/* ------------------------------------------------------
   FEATURED & TILES
------------------------------------------------------- */
.featured-section { padding: 45px 25px; }
.section-title { font-size: 26px; margin-bottom: 18px; }
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.tile {
    height: 160px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    transition: all .2s;
}
.tile:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: rgba(0,0,0,0.55);
}
.tile-label {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 12px 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
}

/* ------------------------------------------------------
   BOOK GRID
------------------------------------------------------- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.book-card {
    display: block;
    text-decoration: none;
    color: white;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: transform 0.25s ease;
}
.book-card:hover {
    transform: translateY(-6px);
    background: rgba(0,0,0,0.5);
}
/* HOME PAGE BOOK COVERS */
.home-book-card .book-cover {
    width: 100%;
    height: 280px;      /* was 220px — increased to prevent clipping */
    object-fit: contain; /* ensures full cover fits without cropping */
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 10px 10px 0 0;
}

.book-info { padding: 10px 15px; text-align: center; }
.book-title { font-size: 1.05rem; font-weight: bold; margin-bottom: 6px; }
.book-price { color: #6cf; font-weight: bold; }

/* ------------------------------------------------------
   GENERIC PAGE SECTION
------------------------------------------------------- */
.page-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 30px;
}
.page-title { font-size: 42px; font-weight: bold; margin-bottom: 10px; }
.page-subtext { opacity: 0.7; margin-bottom: 25px; }

/* ------------------------------------------------------
   CATEGORY LIST (simple list version)
------------------------------------------------------- */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.category-item {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: 0.2s ease;
    width: fit-content;
}
.category-item:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 22px;
}

/* ------------------------------------------------------
   CATEGORY RESULTS — BOOK GRID
------------------------------------------------------- */
.category-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
    padding: 30px 20px;
}
.category-book-card {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    text-align: center;
    padding-bottom: 20px;
}
.category-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.7);
}
.category-book-card img {
    width: 100%;
    height: 424px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.category-book-title {
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    padding: 0 10px;
}
.category-book-price {
    margin-top: 8px;
    font-size: 17px;
    color: #3fa9f5;
    font-weight: 700;
}

/* ------------------------------------------------------
   CATEGORY — TILE GRID WITH FAN
------------------------------------------------------- */

/* Hover fan animation */

/* Back link */
.back-link {
    display: inline-block;
    color: #fff;
    opacity: 0.85;
    font-size: 16px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: opacity .2s ease;
}
.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}
.back-link-heading {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: 0.2s ease;
}

.back-link-heading:hover {
    color: #3fa9f5;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

/* ------------------------------------------------------
   BOOK DETAILS PAGE
------------------------------------------------------- */
.book-details-container {
    display: flex;
    gap: 40px;
    padding: 40px 60px;
    max-width: 1300px;
    margin: auto;
}
.book-details-left { flex: 1; }
.book-details-cover {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.55);
}
.book-details-right {
    flex: 2;
    background: rgba(0, 0, 0, 0.45);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.55);
}
.book-details-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.book-details-author,
.book-details-category,
.book-details-isbn {
    color: #ddd;
    font-size: 18px;
    margin-bottom: 6px;
}
.book-details-price {
    margin-top: 10px;
    font-size: 26px;
    color: #3fa9f5;
    font-weight: bold;
}
.book-details-description {
    margin-top: 20px;
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
}
.book-details-stock {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 15px;
    padding: 6px 12px;
    border-radius: 6px;
    width: fit-content;
}

/* IN STOCK  */
.stock-in {
    background: rgba(0, 136, 255, 0.15);
    color: #848f98;
    border: 1px solid #848f98;
}

/* ORDER / OUT OF STOCK (red) */
.stock-order {
    background: rgba(170, 0, 0, 0.25);
    color: #ff5555;
    border: 1px solid #aa0000;
}

.add-to-cart {
    margin-top: 25px;
    padding: 14px 30px;
    font-size: 20px;
    color: white;
    background: #3fa9f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    transition: background .2s ease, transform .2s ease;
}
.add-to-cart:hover {
    background: #5cbcf9;
    transform: translateY(-2px);
}
.book-details-categories a {
    color: #9ecbff;      /* light blue, high contrast */
    font-weight: 600;
    text-decoration: none;
}

.book-details-categories a:hover {
    color: #cfe6ff;      /* even brighter on hover */
    text-decoration: underline;
}
.hero-luxury {
    text-align: center;
    padding: 40px 20px 10px;   /* Reduced from 140 / 120 */
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.85;
    margin-top: 10px;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.lux-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s ease;
}

.lux-primary {
    background: #3fa9f5;
    color: white;
}

.lux-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.lux-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
}
.lux-section {
    padding: 50px 60px;
}

.lux-heading {
    color: white;
    font-size: 32px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.lux-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.lux-cat-card {
    position: relative;
    text-decoration: none;
    color: white;
    background: rgba(72, 72, 72, 0.5);
    border-radius: 14px;
    padding: 90px 0 40px;
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
    overflow: hidden;
}

.lux-cat-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.15);
}

.lux-cat-fan {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 95px;
}

.lux-cat-fan img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    transition: 0.25s ease;
}

.lux-fan-0 { left: 0px;  top: 20px; transform: rotate(-14deg); }
.lux-fan-1 { left: 35px; top: 12px; transform: rotate(0deg); }
.lux-fan-2 { left: 70px; top: 20px; transform: rotate(14deg); }

.lux-cat-card:hover .lux-fan-0 { transform: rotate(-22deg) scale(1.15); left: -5px; }
.lux-cat-card:hover .lux-fan-1 { transform: rotate(0deg) scale(1.17); }
.lux-cat-card:hover .lux-fan-2 { transform: rotate(22deg) scale(1.15); left: 85px; }

.lux-cat-title {
    margin-top: 105px;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
}
/* Horizontal scroll container */
.lux-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
}
.lux-scroll-row::-webkit-scrollbar { display: none; }

/* MINI CARD — mobile size */
.lux-book-mini {
    flex: 0 0 140px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease;
}

.lux-book-mini img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: transform 0.25s ease;
}

.lux-book-mini:hover {
    transform: translateY(-5px);
}
.lux-book-mini:hover img {
    transform: scale(1.05);
}

/* Title */
.lux-mini-title {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    max-width: 140px;
    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.lux-mini-price {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    color: #e6f5ff;
}
/* PRICE BUBBLE (matches old lux-mini style) */
.lux-mini-price-bubble {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    background: rgba(96, 94, 94, 0.8);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    width: fit-content;
}

.lux-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.lux-book-card {
    background: rgba(255,255,255,0.10);
    padding-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.25s ease;
}

.lux-book-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.17);
}

.lux-book-card-title {
    padding: 12px 16px 0;
    font-size: 17px;
    font-weight: 600;
}

.lux-book-card-price {
    padding: 6px 16px 14px;
    color: #6cf;
    font-weight: 600;
}


.lux-book-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}


/* ===========================
   FILTER SIDEBAR (NEW STYLE)
   =========================== */

.filters-panel {
    position: sticky;
    top: 20px;
    width: 260px;
    padding: 25px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
    color: white;

    /* IMPORTANT: adjust position */
    margin-left: 0px;       /* was too large — change to 0–10px */
}


.filters-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.filter-label {
    margin-top: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

/* Scrollable categories */
.filter-scroll-box {
    max-height: 180px;      /* shows ~4–5 items */
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 10px;
}

.filter-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.filter-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}

/* Checkbox rows */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

.checkbox-row input {
    transform: scale(1.15);
}

/* Inputs */
.filter-input {
    width: 100%;
    padding: 7px;
    border-radius: 6px;
    border: none;
    background: rgba(0,0,0,.9);
    color: white;
}

.filter-input.small {
    width: 48%;
}
.filter-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.90);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 15px;
}

.price-row {
    display: flex;
    gap: 10px;
}

.apply-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    background: #3fa9f5;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
}

.apply-btn:hover {
    background: #5cbcf9;
    transform: translateY(-2px);
}


/* ==============================
   FIX BOOK GRID IMAGE CLIPPING
============================== */

.lux-grid-4 {
    padding: 20px 40px;
}

.lux-book-card-img {
    width: 100%;
    height: 240px;     /* reduced height */
    object-fit: cover; /* prevents distortion */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pagination {
    text-align: center;
    padding: 20px;
}

.page-btn {
    padding: 8px 14px;
    margin: 3px;
    color: white;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    text-decoration: none;
}

.page-btn.active {
    background: #3fa9f5;
}
/* MAIN PAGE LAYOUT */
.browse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px 60px;
}

/* LEFT SIDEBAR */
.filter-sidebar {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    color: #fff;
}

.filter-title {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
}

.filter-block {
    margin-bottom: 25px;
}

.filter-block h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* CHECKBOXES */
.filter-checkbox {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.filter-checkbox input {
    width: 16px;
    height: 16px;
}

/* INPUT FIELDS */
.filter-block select,
.filter-block input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

/* BUTTON */
.filter-apply-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: #3fa9f5;
    border-radius: 6px;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.filter-apply-btn:hover {
    background: #5cbcf9;
}

/* RIGHT SIDE (BOOK RESULTS) */
.book-results {
    color: #fff;
    padding-left: 40px;
}

.results-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.result-card {
    background: rgba(255,255,255,0.1);
    padding-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: 0.25s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.18);
}

/* BOOK COVER */
.result-cover {
    width: 100%;
    height: 260px; /* slightly taller */
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 12px 12px 0 0;
}


.result-title {
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
}

.result-price {
    padding: 0 10px 10px;
    color: #6cf;
    font-weight: bold;
}
/* PRICE RANGE BOX */
.price-slider-box {
    margin-top: 10px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: #fff;
    margin-bottom: 6px;
}

/* MAIN SLIDER AREA */
.slider-container {
    position: relative;
    height: 50px; /* more height = thumbs have room */
}

/* MIN SLIDER (top) */
#price-min {
    position: absolute;
    left: 0;
    top: 10px;     /* move down a little */
    width: 100%;
    z-index: 3;
}

/* MAX SLIDER (lower track) */
#price-max {
    position: absolute;
    left: 0;
    top: 42px;     /* lower track so min doesn’t cover it */
    width: 100%;
    z-index: 2;
}

/* TRACK */
.slider-container input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}

/* THUMB STYLE */
.slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: #3fa9f5;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    margin-top: -6px;
}

/* HOVER */
.slider-container input[type=range]:hover::-webkit-slider-thumb {
    background: #5cbcf9;
}
/* SEARCH BOX – HIGH VISIBILITY */
#search-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;

    background: rgba(0,0,0,0.55);        /* dark panel */
    color: #fff;

    border: 1px solid rgba(255,255,255,0.35);  /* visible but subtle */
    outline: none;

    transition: border-color .2s ease, box-shadow .2s ease;
}

/* On focus – brighter border, slight glow */
#search-input:focus {
    border-color: #3fa9f5;
    box-shadow: 0 0 6px rgba(63,169,245,0.6);
}

/* Search field wrapper (books.php filters) */
.filter-search-wrapper {
    position: relative;
    width: 100%;
}

/* X clear button */
.filter-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    user-select: none;
    display: none; /* shown only when text exists */
}

.filter-clear-btn:hover {
    color: #fff;
}

/* Add padding so text doesn't go under the X */
.filter-search-wrapper .filter-input {
    padding-right: 32px !important;
}
.clear-filters-btn {
    display: block;
    width: 90%;
    text-align: center;
    margin-top: 10px;
    padding: 11px 12px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ddd;

    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;

    transition: 0.2s ease;
}

.clear-filters-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}
/* ===========================
   ADD-TO-CART TOAST (AMAZON STYLE)
   =========================== */
/* Luxurious cart wrapper */
.lux-cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 22px;
    cursor: pointer;
}

/* SVG Cart Icon */
.lux-cart-icon {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    transition: transform 0.25s ease, fill 0.25s;
}

/* Hover Glow */
.lux-cart-wrapper:hover .lux-cart-icon {
    transform: scale(1.12);
    fill: #d6d6d6;
}

/* Cart Count Bubble */
.lux-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
    animation: cartPop 0.4s ease-out;
}

/* Animation for count bubble */
@keyframes cartPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); }
}

/* Shake animation when an item is added */
.lux-cart-shake {
    animation: cartShake 0.45s ease;
}

@keyframes cartShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #222;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}


.toast-icon {
    font-size: 20px;
}


/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (min-width: 600px) {
    .lux-book-mini {
        flex: 0 0 170px;
    }

    .lux-book-mini img {
        width: 170px;
        height: 240px;
    }

    .lux-mini-title {
        max-width: 170px;
        font-size: 1rem;
    }

    .lux-mini-price {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .lux-book-mini {
        flex: 0 0 200px; /* bigger cards */
    }

    .lux-book-mini img {
        width: 200px;
        height: 290px;
        border-radius: 12px;
    }

    .lux-mini-title {
        max-width: 200px;
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .lux-mini-price {
        font-size: 1rem;
        padding: 5px 12px;
    }

    .lux-book-mini:hover {
        transform: translateY(-8px);
    }
}
@media (max-width: 768px) {
    .nav-right {
        margin-left: auto;
    }
}

/* NEW ARRIVALS — 6 WIDE GRID */
.new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* NEW ARRIVAL CARD (slightly smaller than Best Sellers) */
.new-arrival-card {
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 350px;  /* slightly shorter */
    backdrop-filter: blur(8px);
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-arrival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 26px rgba(0,0,0,0.4);
}

/* IMAGE AREA */
.new-arrival-img-wrap {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.12);
}

.new-arrival-img {
    width: auto;
    height: 100%;
    max-width: 95%;
    object-fit: contain;
    border-radius: 12px;  /* rounded images like Best Sellers */
}

/* INFO */
.new-arrival-info {
    padding: 12px 14px;
}

.new-arrival-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.new-arrival-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00b4ff;
}

/* Best Sellers Grid */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Best Seller Card */
.best-seller-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 380px; /* Taller card */
    backdrop-filter: blur(6px);
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.best-seller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 25px rgba(0,0,0,0.4);
}

/* Image wrapper — same background as card, no line */
.best-seller-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit; /* <-- blends seamlessly with card */
    padding: 10px 0 10px 0;
}

/* Image — no padding, fully contained */
.best-seller-img {
    width: auto;
    height: 100%;
    max-width: 90%;
    object-fit: contain;
    border-radius: 12px;  /* ★ Rounded corners on image */
}

/* Info section */
.best-seller-info {
    padding: 15px;
}

.best-seller-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.best-seller-price {
    font-size: 0.95rem;
    color: #00b4ff;
    font-weight: 600;
}

@media (max-width: 700px) {
    .category-grid-page {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .search-container input { width: 90px !important; }
    .tile-grid,
    .book-grid { grid-template-columns: repeat(2, 1fr); }

    .book-details-container {
        flex-direction: column;
        padding: 25px;
    }
    .book-details-cover {
        max-width: 100%;
        margin-bottom: 20px;
    }
}
@media (max-width: 600px) {
    .search-container { display:none !important; }
    .hero h1 { font-size: 32px; }
    .tile-grid,
    .book-grid { grid-template-columns: 1fr; }
}
/* ================================
   MOBILE FILTER TOGGLE (OPTION A)
================================ */

.filters-toggle-btn {
    display: none;
    background: #222;
    color: #fff;
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 10px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .browse-layout {
        display: block;
    }

    /* Show mobile toggle button */
    .filters-toggle-btn {
        display: block;
    }

    /* Hide filters by default */
    .filters-panel {
        display: none;
        background: rgba(0,0,0,0.65);
        padding: 18px;
        margin: 10px;
        border-radius: 10px;
    }

    /* When open */
    .filters-panel.open {
        display: block;
    }

    /* Books full width */
    .book-results {
        width: 100%;
        padding: 0 12px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
/* =====================================================
   BOOKS PAGE — MATCH NEW ARRIVALS STYLE
=====================================================*/

/* Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}

/* Card */
.lux-list-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 350px; /* match New Arrivals */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lux-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* Image Wrapper */
.lux-list-img-wrap {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.12);
}

/* Image */
.lux-list-img {
    width: auto;
    height: 100%;
    max-width: 95%;
    object-fit: contain;
    border-radius: 12px;  /* matches New Arrivals */
}

/* Info */
.lux-list-info {
    padding: 12px 14px;
}

.lux-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.lux-list-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00b4ff;
}


/* =====================================================
   MOBILE FIXES
=====================================================*/
@media (max-width: 600px) {

    .lux-list-card {
        height: 330px;
    }

    .lux-list-img-wrap {
        height: 200px;
    }

    .lux-list-img {
        max-height: 200px !important;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
/* =====================================================
   BOOKS PAGE — MATCH BEST SELLERS STYLE
=====================================================*/

.bs-style {
    background: rgba(255,255,255,0.06);       /* same as Best Sellers */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 380px;                            /* match Best Sellers card height */
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-style:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 25px rgba(0,0,0,0.4);
}

/* Same wrapper as Best Sellers */
.lux-list-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;       /* seamless background like Best Sellers */
    padding: 10px 0;
}

.lux-list-img {
    width: auto;
    height: 100%;
    max-width: 90%;
    object-fit: contain;
    border-radius: 12px;       /* rounded corners */
}
/* =====================================================
   LUX BOOK LISTING — FIXED TITLE SPACING + ADD BTN ROW
=====================================================*/

/* Info area inside card */
.lux-list-info {
    padding: 15px;
    padding-bottom: 10px;   /* keeps spacing consistent */
}

/* Title */
.lux-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;     /* spacing above price row */
}

.lux-list-bottom {
    display: flex;
    align-items: center;   /* <-- THIS fixes the vertical misalignment */
    gap: 10px;
    margin-top: 8px;
}

/* ==========================================================
   BOOK LIST PAGE – OVERRIDE ALL OTHER PRICE BUBBLE STYLES
========================================================== */
.results-grid .lux-mini-price-bubble {
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
    padding: 0 10px !important;
    margin-top: 0 !important;
    line-height: 1 !important;
    background: rgba(96, 94, 94, 0.8) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.results-grid .lux-cart-btn {
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    font-size: 0.80rem !important;
}

.results-grid .add-to-cart{
	margin-top: 0 !important;
}

.lux-cart-btn:hover {
    background: #1f5e9d;
}

/* Prevent clicking Add from opening the book link */
.lux-inline-cart {
    margin: 0;
    padding: 0;
}


/* =====================================================
   GRID LAYOUT — FIXED WIDTH DESKTOP, STACK MOBILE
=====================================================*/

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 220px);
    gap: 20px;
    justify-content: center;
}

/* Card width (lux-list-card uses this) */
.lux-list-card,
.result-card {
    width: 220px;
}


/* =====================================================
   MOBILE LAYOUT
=====================================================*/
@media (max-width: 600px) {

    /* One column layout for books.php */
    .results-grid {
        grid-template-columns: 1fr;
    }

    .lux-list-card,
    .result-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Best Sellers / New Arrivals tweaks */
    .bs-style {
        height: 340px;
    }

    .lux-list-img-wrap {
        height: 220px;
    }

    .lux-list-img {
        max-height: 220px;
    }

    /* Two-column mobile grid for the special sections */
    .results-grid.bs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
.footer-support {
    text-align: center;
    margin-top: 20px;
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-support a {
    color: #00b4ff;
    text-decoration: none;
    font-weight: 600;
}

.footer-support a:hover {
    text-decoration: underline;
}

