:root {
--coral: #FF7F6E;
--peach: #FFDAB9;
--cream: #FFFDD0;
--mint: #B2F2BB;
--sunny: #FFEC99;
--lavender: #E0D7FF;
--text: #4A4A4A;
--muted: #71717a;
}

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

body {
margin: 0;
font-family: 'Quicksand', sans-serif;
color: var(--text);
background-color: #fff;
overflow-x: hidden;
scroll-behavior: smooth;
}

h1, h2, h3, .font-heading {
font-family: 'Fredoka', sans-serif;
}

/* --- Navigation --- */
.navbar {
background: rgba(255, 255, 255, 0.98);
border-bottom: 2px solid rgba(255, 127, 110, 0.1);
padding: 1rem 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Language Selector in Navigation (Top Right) --- */
.language-selector-nav {
display: flex;
align-items: center;
gap: 8px;
}

.globe-icon {
width: 20px;
height: 20px;
color: var(--coral);
}

.language-select-compact {
padding: 6px 12px;
border: 2px solid var(--coral);
border-radius: 8px;
background: white;
color: var(--text);
font-family: 'Quicksand', sans-serif;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s;
min-width: 80px;
}

.language-select-compact:hover {
background: var(--cream);
border-color: #ff6b59;
}

.language-select-compact:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(255, 127, 110, 0.2);
}

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

.nav-logo {
display: flex;
align-items: center;
gap: 12px;
font-family: 'Fredoka', sans-serif;
font-size: 1.5rem;
font-weight: 600;
color: var(--coral);
}

.logo-circle {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
border: 3px solid var(--coral);
display: flex;
align-items: center;
justify-content: center;
background: white;
box-shadow: 0 2px 8px rgba(255, 127, 110, 0.2);
}

.logo-image {
width: 100%;
height: 100%;
object-fit: cover;
}

.logo-text {
font-size: 1.5rem;
}

.logo-icon {
width: 28px;
height: 28px;
color: var(--coral);
}

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

.nav-link {
text-decoration: none;
color: var(--text);
font-weight: 600;
transition: color 0.3s;
position: relative;
}

.nav-link:hover,
.nav-link.active {
color: var(--coral);
}

.nav-link::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--coral);
transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
width: 100%;
}

/* --- Poster Section --- */
.poster-section {
position: relative;
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(to bottom, var(--cream), rgba(255,218,185,0.2));
padding: 2rem;
}

.poster-card {
background: linear-gradient(to bottom right, var(--cream), rgba(255,218,185,0.3));
border: 4px solid rgba(255,127,110,0.2);
border-radius: 3rem;
padding: 3rem;
max-width: 900px;
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
text-align: center;
animation: float 6s ease-in-out infinite;
}

.book-display {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 2rem;
flex-wrap: wrap;
}

.book-card {
background: white;
padding: 12px;
border-radius: 1rem;
box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.book-card img {
width: 200px;
border-radius: 0.5rem;
display: block;
}

.tilt-left { 
transform: rotate(-3deg); 
transition: 0.5s; 
}

.tilt-right { 
transform: rotate(3deg); 
margin-left: -30px; 
transition: 0.5s; 
}

.book-wrapper:hover { 
transform: rotate(0); 
z-index: 100; 
}

/* --- Hero Section --- */
.hero-section {
text-align: center;
padding: 5rem 1rem;
background: linear-gradient(to bottom, var(--cream), #fff);
}

.badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255,218,185,0.4);
border: 1px solid rgba(255,127,110,0.2);
padding: 10px 24px;
border-radius: 50px;
font-weight: 600;
color: var(--coral);
margin-bottom: 2rem;
}

h1 { 
font-size: 3.5rem; 
margin-bottom: 0.5rem; 
line-height: 1.1; 
}

.text-coral { 
color: var(--coral); 
}

.hero-subtitle { 
font-size: 2rem; 
color: var(--muted); 
margin-top: 0; 
}

.hero-desc {
font-size: 1.2rem;
color: var(--muted);
max-width: 700px;
margin: 1.5rem auto;
}

.btn-group {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 2rem;
flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 16px 32px;
border-radius: 12px;
text-decoration: none;
font-weight: bold;
transition: 0.3s;
}

.btn-hero {
background: var(--coral);
color: white;
box-shadow: 0 4px 14px rgba(255,127,110,0.4);
}

.btn-hero:hover { 
transform: translateY(-3px); 
}

.btn-outline {
border: 2px solid #e4e4e7;
color: var(--text);
}

.btn-outline:hover {
border-color: var(--coral);
color: var(--coral);
}

/* --- Animations --- */
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}

.decor { 
position: absolute; 
opacity: 0.5; 
animation: float 5s ease-in-out infinite; 
}

.d1 { top: 10%; left: 10%; font-size: 2rem; }
.d2 { top: 20%; right: 15%; font-size: 1.5rem; }
.d3 { bottom: 20%; left: 20%; font-size: 1.8rem; }
.d4 { bottom: 15%; right: 10%; font-size: 1.6rem; }

/* --- Top Books Section (Home Page) --- */
.top-books-section {
padding: 5rem 2rem;
background: #fff;
}

.section-header {
text-align: center;
margin-bottom: 3rem;
}

.section-header h2 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}

.section-subtitle {
font-size: 1.2rem;
color: var(--muted);
}

.top-products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto 3rem;
}

.view-all-container {
text-align: center;
margin-top: 3rem;
}

/* --- Books Page Header --- */
.books-page-header {
position: relative;
min-height: 40vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(to bottom, var(--cream), rgba(255,218,185,0.2));
padding: 3rem 2rem;
text-align: center;
}

.header-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}

.header-subtitle {
font-size: 1.3rem;
color: var(--muted);
max-width: 600px;
margin: 0 auto;
}

/* --- Bookshelf Section --- */
.bookshelf-section {
padding: 5rem 2rem;
background: linear-gradient(to bottom, #fff, var(--cream));
min-height: 60vh;
}

.bookshelf-container {
max-width: 1400px;
margin: 0 auto;
}

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

.book-item {
position: relative;
cursor: pointer;
transition: transform 0.3s ease;
}

.book-item:hover {
transform: translateY(-15px);
}

.book-cover {
position: relative;
background: white;
border-radius: 8px;
box-shadow: 
0 10px 20px rgba(0, 0, 0, 0.15),
0 3px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: all 0.3s ease;
}

.book-item:hover .book-cover {
box-shadow: 
0 20px 40px rgba(255, 127, 110, 0.3),
0 10px 20px rgba(0, 0, 0, 0.2);
}

.book-cover::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, 
rgba(255,255,255,0) 0%, 
rgba(255,255,255,0.3) 50%, 
rgba(255,255,255,0) 100%);
opacity: 0;
transition: opacity 0.3s;
}

.book-item:hover .book-cover::before {
opacity: 1;
}

.book-cover-image {
width: 100%;
height: 320px;
object-fit: cover;
display: block;
}

.book-spine {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 8px;
background: linear-gradient(to bottom, 
var(--coral), 
rgba(255, 127, 110, 0.7));
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.book-info-hover {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, 
rgba(255, 127, 110, 0.95) 0%, 
rgba(255, 127, 110, 0.9) 70%,
transparent 100%);
padding: 1.5rem 1rem 1rem;
transform: translateY(100%);
transition: transform 0.3s ease;
}

.book-item:hover .book-info-hover {
transform: translateY(0);
}

.book-info-hover h4 {
color: white;
font-size: 1rem;
margin-bottom: 0.3rem;
font-weight: 600;
}

.book-info-hover .price {
color: white;
font-size: 1.3rem;
font-weight: bold;
margin: 0.3rem 0;
}

.book-info-hover .quick-view {
color: white;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 5px;
margin-top: 0.5rem;
}

.quick-view i {
width: 16px;
height: 16px;
}

/* --- Product Cards --- */
.product-card {
background: white;
border-radius: 1.5rem;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.08);
transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(255,127,110,0.2);
}

.product-image-container {
width: 100%;
height: 350px;
overflow: hidden;
background: var(--cream);
display: flex;
align-items: center;
justify-content: center;
}

.product-image-container img {
width: 100%;
height: 100%;
object-fit: cover;
}

.product-info {
padding: 1.5rem;
text-align: center;
}

.product-info h4 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--text);
}

.price {
font-size: 1.5rem;
color: var(--coral);
font-weight: bold;
margin: 1rem 0;
}

.btn-buy {
background: var(--coral);
color: white;
padding: 12px 24px;
border-radius: 8px;
text-decoration: none;
display: inline-block;
font-weight: 600;
transition: 0.3s;
}

.btn-buy:hover {
background: #ff6b59;
transform: scale(1.05);
}

/* --- CTA Section --- */
.cta-section {
padding: 5rem 2rem;
background: linear-gradient(to bottom, var(--cream), rgba(255,218,185,0.3));
text-align: center;
}

.cta-content h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}

.cta-content p {
font-size: 1.2rem;
color: var(--muted);
margin-bottom: 2rem;
}

.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

/* --- Book Detail Page --- */
.back-nav {
max-width: 1400px;
margin: 2rem auto;
padding: 0 2rem;
}

.back-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--text);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}

.back-link:hover {
color: var(--coral);
}

.back-link i {
width: 20px;
height: 20px;
}

.book-detail-section {
padding: 3rem 2rem 5rem;
background: #fff;
}

.detail-container {
max-width: 1400px;
margin: 0 auto;
}

.detail-content {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 4rem;
align-items: start;
}

.detail-image {
position: sticky;
top: 100px;
}

.image-frame {
background: white;
padding: 2rem;
border-radius: 1.5rem;
box-shadow: 
0 20px 50px rgba(0, 0, 0, 0.15),
0 10px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container {
position: relative;
width: 100%;
overflow: hidden;
border-radius: 0.5rem;
background: var(--cream);
}

.main-display-image {
width: 100%;
height: auto;
display: block;
border-radius: 0.5rem;
transition: transform 0.3s ease;
}

.image-navigation {
position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
padding: 0 1rem;
pointer-events: none;
}

.nav-arrow {
pointer-events: all;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 127, 110, 0.9);
border: none;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
background: var(--coral);
transform: scale(1.1);
}

.nav-arrow i {
width: 24px;
height: 24px;
}

.image-indicator {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
margin-top: 2rem;
}

.thumbnail-label {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 1rem;
color: var(--text);
font-weight: 600;
font-size: 1.1rem;
}

.thumbnail-label i {
width: 20px;
height: 20px;
color: var(--coral);
}

.thumbnail-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0.8rem;
}

.thumbnail-item {
position: relative;
aspect-ratio: 1;
border-radius: 0.5rem;
overflow: hidden;
cursor: pointer;
border: 3px solid transparent;
transition: all 0.3s;
}

.thumbnail-item:hover {
border-color: var(--coral);
transform: translateY(-3px);
}

.thumbnail-item.active {
border-color: var(--coral);
box-shadow: 0 0 0 2px rgba(255, 127, 110, 0.3);
}

.thumbnail-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.thumbnail-badge {
position: absolute;
top: 5px;
right: 5px;
background: rgba(255, 127, 110, 0.9);
color: white;
padding: 2px 8px;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
}

.thumbnail-back {
background: rgba(66, 153, 225, 0.9);
}

.detail-info {
padding-top: 1rem;
}

.book-badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(255, 218, 185, 0.4);
border: 1px solid rgba(255, 127, 110, 0.2);
padding: 8px 16px;
border-radius: 50px;
font-weight: 600;
color: var(--coral);
margin-bottom: 1rem;
font-size: 0.9rem;
}

.badge-icon {
width: 16px;
height: 16px;
}

.book-title {
font-size: 2.5rem;
color: var(--text);
margin-bottom: 1rem;
line-height: 1.2;
}

.book-rating {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
}

.stars {
display: flex;
gap: 4px;
}

.star {
width: 20px;
height: 20px;
color: #fbbf24;
fill: #fbbf24;
}

.rating-text {
color: var(--muted);
font-size: 0.95rem;
}

.book-price {
font-size: 2.5rem;
color: var(--coral);
font-weight: bold;
margin-bottom: 2rem;
}

.book-description,
.book-features {
margin-bottom: 2rem;
}

.book-description h3,
.book-features h3 {
font-size: 1.4rem;
margin-bottom: 1rem;
color: var(--text);
}

.book-description p {
font-size: 1.1rem;
line-height: 1.8;
color: var(--muted);
}

.features-list {
list-style: none;
padding: 0;
}

.features-list li {
display: flex;
align-items: start;
gap: 12px;
margin-bottom: 1rem;
font-size: 1rem;
color: var(--text);
}

.check-icon {
width: 24px;
height: 24px;
color: #10b981;
flex-shrink: 0;
margin-top: 2px;
}

.purchase-section {
margin-top: 2rem;
padding-top: 2rem;
border-top: 2px solid rgba(255, 127, 110, 0.1);
}

.btn-buy-large {
background: var(--coral);
color: white;
padding: 18px 40px;
border-radius: 12px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 12px;
font-weight: bold;
font-size: 1.2rem;
transition: all 0.3s;
box-shadow: 0 6px 20px rgba(255, 127, 110, 0.4);
}

.btn-buy-large:hover {
background: #ff6b59;
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(255, 127, 110, 0.5);
}

.btn-buy-large i {
width: 24px;
height: 24px;
}

.security-badges {
display: flex;
gap: 2rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}

.security-item {
display: flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 0.95rem;
}

.security-item i {
width: 20px;
height: 20px;
color: #10b981;
}

/* --- Related Books Section --- */
.related-books-section {
padding: 5rem 2rem;
background: linear-gradient(to bottom, #fff, var(--cream));
}

.related-books-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}

/* --- About Us Section --- */
.about-section {
padding: 5rem 2rem;
background: linear-gradient(to bottom, #fff, var(--cream));
}

.about-container {
max-width: 1200px;
margin: 0 auto;
}

.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}

.about-text h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
}

.about-intro {
font-size: 1.3rem;
color: var(--coral);
font-weight: 600;
margin-bottom: 1.5rem;
line-height: 1.6;
}

.about-text p {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text);
margin-bottom: 1.5rem;
}

.about-values {
display: flex;
gap: 2rem;
margin-top: 2rem;
flex-wrap: wrap;
}

.value-item {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255,127,110,0.1);
padding: 12px 20px;
border-radius: 50px;
font-weight: 600;
color: var(--coral);
}

.value-icon {
width: 20px;
height: 20px;
}

.about-image {
display: flex;
justify-content: center;
align-items: center;
}

.image-wrapper {
background: white;
padding: 20px;
border-radius: 2rem;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
transform: rotate(3deg);
transition: 0.5s;
}

.image-wrapper:hover {
transform: rotate(0deg);
}

.image-wrapper img {
width: 100%;
max-width: 400px;
border-radius: 1rem;
display: block;
}

/* --- FAQ Section --- */
.faq-section {
padding: 5rem 2rem;
background: #fff;
}

.faq-container {
max-width: 800px;
margin: 0 auto;
}

.faq-item {
background: white;
border: 2px solid rgba(255,127,110,0.1);
border-radius: 1rem;
margin-bottom: 1rem;
overflow: hidden;
transition: 0.3s;
}

.faq-item:hover {
border-color: rgba(255,127,110,0.3);
}

.faq-question {
width: 100%;
padding: 1.5rem;
background: none;
border: none;
text-align: left;
font-size: 1.1rem;
font-weight: 600;
color: var(--text);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-family: 'Quicksand', sans-serif;
transition: 0.3s;
}

.faq-question:hover {
color: var(--coral);
}

.faq-icon {
width: 24px;
height: 24px;
color: var(--coral);
transition: transform 0.3s;
flex-shrink: 0;
}

.faq-item.active .faq-icon {
transform: rotate(180deg);
}

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
max-height: 500px;
padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
font-size: 1rem;
line-height: 1.8;
color: var(--muted);
}

/* --- Features --- */
.features-section {
padding: 5rem 2rem;
background: linear-gradient(to bottom, var(--cream), #fff);
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
padding: 0;
max-width: 1100px;
margin: 0 auto;
}

.feature-card {
text-align: center;
padding: 2rem;
border-radius: 2rem;
background: #fff;
transition: 0.3s;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.feature-icon {
width: 40px;
height: 40px;
color: var(--coral);
margin-bottom: 1rem;
}

.feature-card h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--text);
}

.feature-card p {
color: var(--muted);
line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
.nav-container {
flex-wrap: wrap;
gap: 1rem;
}

.nav-logo {
order: 1;
flex: 1;
}

.language-selector-nav {
order: 2;
}

.nav-menu {
order: 3;
width: 100%;
flex-direction: column;
gap: 1rem;
}

.logo-circle {
width: 40px;
height: 40px;
}

.logo-text {
font-size: 1.2rem;
}
  
h1 {
font-size: 2.5rem;
}

.hero-subtitle {
font-size: 1.5rem;
}

.about-content {
grid-template-columns: 1fr;
}

.about-image {
order: -1;
}

.top-products-grid {
grid-template-columns: 1fr;
}

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

.book-cover-image {
height: 240px;
}

.features-grid {
grid-template-columns: 1fr;
}

.btn-group,
.cta-buttons {
flex-direction: column;
align-items: center;
}

.btn {
width: 100%;
max-width: 300px;
justify-content: center;
}

.detail-content {
grid-template-columns: 1fr;
gap: 2rem;
}

.detail-image {
position: relative;
top: 0;
}

.book-title {
font-size: 2rem;
}

.book-price {
font-size: 2rem;
}

.security-badges {
gap: 1rem;
}

.related-books-grid {
grid-template-columns: 1fr;
}
}

/* --- Scroll Reveal Animation --- */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
opacity: 1;
transform: translateY(0);
}