body { background-color: #f8f9fa; }
.card { border-radius: .75rem; }
.navbar-brand { font-weight: 700; letter-spacing: .3px; }


/* Hero */
.hero-section { background: linear-gradient(135deg,#0ea5e9,#2563eb); box-shadow: 0 10px 30px rgba(2,6,23,.15); }
.hero-section .hero-shape{ position:absolute; right:-80px; bottom:-80px; width:220px; height:220px; background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), rgba(255,255,255,0)); filter: blur(2px); border-radius:50%; }

/* Hero Sidebar Animations */
.hero-sidebar {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.floating-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.floating-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 0.5s; }
.floating-icon:nth-child(3) { animation-delay: 1s; }
.floating-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Hero Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particle-float 6s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 11s; }

@keyframes particle-float {
  0% { top: -10px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Book grid */
.book-card{ background:#fff; border-radius:1rem; box-shadow:0 8px 18px rgba(2,6,23,.06); overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover{ transform: translateY(-2px); box-shadow:0 12px 24px rgba(2,6,23,.12); }
.book-cover-wrapper{ position:relative; padding-top:66%; background: #f3f4f6; }
.book-cover{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.book-cover.placeholder{ position:absolute; inset:0; }
.book-badge{ position:absolute; left:.75rem; top:.75rem; }
.price-pill{ background:#eef2ff; color:#3730a3; padding:.25rem .5rem; border-radius:999px; font-weight:600; }

/* Features Section */
.features-section {
  padding: 3rem 0;
}

.feature-card {
  padding: 2rem 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  display: inline-block;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

/* Artistic Footer */
.artistic-footer {
  background: linear-gradient(135deg, #1e293b, #334155, #475569);
  position: relative;
  overflow: hidden;
}

.artistic-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.footer-brand h3 {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-badges .badge {
  transition: all 0.3s ease;
}

.footer-badges .badge:hover {
  transform: scale(1.05);
}

/* Book Detail Page */
.book-cover-container {
  position: relative;
}

.book-cover-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-cover-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 1rem;
  color: #64748b;
}

.share-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #e2e8f0;
}

.book-details h1 {
  color: #1e293b;
  line-height: 1.2;
}

.author-info {
  color: #64748b;
  font-size: 1.1rem;
}

.book-meta .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.current-price {
  color: #0ea5e9;
  font-size: 2.5rem;
}

.shipping-info {
  color: #64748b;
}

.description-section {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid #0ea5e9;
}

.description-text {
  line-height: 1.6;
  color: #475569;
}

.order-summary {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #e2e8f0;
}

.login-prompt {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
}

/* Slider Styles */
.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
}

.carousel-item {
    height: 400px;
}

.carousel-book-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.book-feature-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: perspective(800px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.book-feature-placeholder {
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
}

.carousel-book-content:hover .book-feature-img {
    transform: perspective(800px) rotateY(-5deg) translateX(20px);
}

.carousel-caption {
    position: relative;
    text-align: left;
    right: auto;
    bottom: auto;
    left: auto;
    padding: 0 2rem;
    max-width: 600px;
}

.price-tag {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Book Card Animations */
.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-cover-wrapper {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
    background: #f8f9fa;
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    border: none;
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float 8s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(15px); }
    50% { transform: translateY(-25px) translateX(-15px); }
    75% { transform: translateY(-15px) translateX(-25px); }
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background: #f8f9fa;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Footer Styles */
.artistic-footer {
    background: linear-gradient(135deg, #2c3e50, #3a506b);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: white;
}

.social-link {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-3px);
}

/* Search Bar Animation */
.input-group {
    transition: all 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Price Pill */
.price-pill {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #2c3e50;
}

/* Enhanced Carousel Styles */
.carousel {
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    border-radius: 15px;
    overflow: hidden;
}

.carousel-book-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 2rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .carousel-book-content {
        flex-direction: row;
        text-align: left;
        padding: 3rem;
        align-items: center;
        justify-content: space-between;
    }
}

.carousel-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 1rem 0;
    flex: 1;
    max-width: 100%;
}

@media (min-width: 768px) {
    .carousel-caption {
        padding: 0 0 0 2rem;
        max-width: 60%;
    }
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .book-meta {
        justify-content: flex-start;
    }
}

.book-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
    .book-description {
        font-size: 1.1rem;
        line-height: 1.6;
        max-height: 6em;
        -webkit-line-clamp: 4;
    }
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Adjust carousel height for mobile */
.carousel-item {
    min-height: 600px;
}

@media (min-width: 768px) {
    .carousel-item {
        height: 400px;
        min-height: auto;
    }
}

/* Book placeholder adjustments */
.book-feature-placeholder {
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .book-feature-placeholder {
        width: 300px;
        height: 450px;
        margin-bottom: 0;
    }
}

/* Responsive Typography */
.carousel-caption h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
}


