/* ============================================================
   NASMEDIA PUSTAKA - THEME CSS
   Converted from Next.js Tailwind design
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-amber-50: #fffbeb;
    --color-amber-100: #fef3c7;
    --color-amber-200: #fde68a;
    --color-amber-300: #fcd34d;
    --color-amber-400: #fbbf24;
    --color-amber-500: #f59e0b;
    --color-amber-600: #d97706;
    --color-amber-700: #b45309;
    --color-amber-800: #92400e;
    --color-orange-50: #fff7ed;
    --color-orange-500: #f97316;
    --color-orange-600: #ea580c;
    --color-orange-700: #c2410c;
    --color-rose-50: #fff1f2;
    --color-rose-500: #f43f5e;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-emerald-100: #d1fae5;
    --color-emerald-600: #059669;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1280px;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-stone-900);
    background-color: var(--color-stone-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

.gradient-text {
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-500), var(--color-rose-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--color-amber-500), var(--color-orange-600));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    border-bottom: 1px solid var(--color-stone-200);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-orange-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-stone-900);
}

.logo-text span {
    color: var(--color-amber-600);
}

/* Desktop Nav */
.main-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .main-nav { display: flex; }
}

.main-nav a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-600);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--color-amber-700);
    background-color: var(--color-amber-50);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    color: var(--color-stone-600);
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: var(--color-stone-100);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-stone-200);
    background: white;
    padding: 12px 16px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-600);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.mobile-nav a:hover {
    color: var(--color-amber-700);
    background-color: var(--color-amber-50);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

@media (min-width: 640px) {
    .hero-section { padding: 7rem 0; }
}

@media (min-width: 1024px) {
    .hero-section { padding: 9rem 0; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--color-amber-50), var(--color-orange-50), var(--color-rose-50));
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(217,119,6,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234,88,12,0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(225,29,72,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 768px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    margin-bottom: 1.5rem;
    background-color: var(--color-amber-100);
    color: var(--color-amber-800);
    border: 1px solid var(--color-amber-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-amber-500);
    fill: var(--color-amber-500);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--color-stone-900);
}

@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-title .gradient-line {
    display: block;
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-500), var(--color-rose-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-stone-600);
    max-width: 672px;
}

@media (min-width: 640px) {
    .hero-description { font-size: 1.25rem; }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 448px;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .hero-stat-value { font-size: 1.875rem; }
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    margin-top: 4px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    display: block;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.5;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-600));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(217,119,6,0.2);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--color-amber-700), var(--color-orange-700));
    box-shadow: 0 10px 15px -3px rgba(217,119,6,0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--color-stone-900);
    border-color: var(--color-stone-300);
}

.btn-outline:hover {
    background-color: var(--color-amber-50);
    color: var(--color-amber-700);
    border-color: var(--color-amber-300);
}

.btn-lg {
    height: 48px;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-white {
    background: white;
    color: var(--color-stone-900);
    box-shadow: var(--shadow-xl);
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- CATALOG SECTION ---------- */
.catalog-section {
    padding: 4rem 0;
    background-color: var(--color-stone-50);
}

@media (min-width: 640px) {
    .catalog-section { padding: 5rem 0; }
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-stone-900);
}

@media (min-width: 640px) {
    .section-title { font-size: 2.25rem; }
}

.section-subtitle {
    margin-top: 0.75rem;
    color: var(--color-stone-500);
    font-size: 1.125rem;
    max-width: 576px;
    margin-left: auto;
    margin-right: auto;
}

/* Search & Filter */
.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .catalog-filters { flex-direction: row; }
}

.search-wrapper {
    position: relative;
    flex: 1;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-stone-400);
}

.search-wrapper .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-stone-400);
    cursor: pointer;
    padding: 0;
    display: none;
}

.search-wrapper .search-clear.visible {
    display: block;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 40px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--color-stone-900);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-amber-300);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

.category-select {
    height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--color-stone-900);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

@media (min-width: 640px) {
    .category-select { width: 192px; }
}

.category-select:focus {
    outline: none;
    border-color: var(--color-amber-300);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .book-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Book Card */
.book-card {
    overflow: hidden;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.book-card:hover {
    box-shadow: 0 20px 25px -5px rgba(217,119,6,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    border-color: var(--color-amber-200);
    transform: translateY(-4px);
}

/* Book Cover */
.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-cover-gradient {
    position: absolute;
    inset: 0;
}

.book-cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.book-cover-pattern svg {
    width: 100%;
    height: 100%;
}

.book-cover-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.book-cover-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.book-cover-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.book-cover-title {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-cover-author {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.book-cover-pages {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Spine effect */
.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: rgba(0,0,0,0.15);
}

/* Hover overlay */
.book-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.book-card:hover .book-cover-overlay {
    background: rgba(0,0,0,0.2);
}

.book-cover-overlay .btn {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s;
}

.book-card:hover .book-cover-overlay .btn {
    opacity: 1;
    transform: scale(1);
}

/* Category badge on cover */
.book-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    box-shadow: var(--shadow-sm);
}

/* Stock badge */
.book-stock-badge {
    position: absolute;
    top: 12px;
    left: 24px;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Book Info */
.book-info {
    padding: 1.25rem;
}

.book-info h3 {
    font-weight: 600;
    color: var(--color-stone-900);
    font-size: 0.9375rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.book-card:hover .book-info h3 {
    color: var(--color-amber-700);
}

.book-info .book-author {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    margin-top: 4px;
}

.book-info .book-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.book-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-amber-700);
}

.book-stock-text {
    font-size: 0.75rem;
    color: var(--color-stone-400);
}

.book-order-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 10px 16px;
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-600));
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.book-order-btn:hover {
    background: linear-gradient(to right, var(--color-amber-700), var(--color-orange-700));
}

.book-order-btn svg {
    width: 16px;
    height: 16px;
}

.book-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--color-stone-300);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-stone-500);
}

.empty-state p {
    color: var(--color-stone-400);
    margin-top: 0.5rem;
}

/* Skeleton loading */
.skeleton {
    overflow: hidden;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
}

.skeleton-cover {
    aspect-ratio: 3/4;
    background: var(--color-stone-200);
}

.skeleton-info {
    padding: 1.25rem;
}

.skeleton-line {
    height: 16px;
    background: var(--color-stone-200);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-cover,
.skeleton-line {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    padding: 4rem 0;
    background: white;
}

@media (min-width: 640px) {
    .about-section { padding: 5rem 0; }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-card {
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: linear-gradient(to bottom right, white, var(--color-stone-50));
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-amber-200);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-2xl);
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.25rem;
}

.about-icon svg {
    width: 28px;
    height: 28px;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-stone-900);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--color-stone-500);
    line-height: 1.625;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, var(--color-amber-50), var(--color-orange-50), var(--color-rose-50));
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .contact-section { padding: 5rem 0; }
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(217,119,6,0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(225,29,72,0.1) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 768px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-stone-200);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-amber-200);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-orange-600));
    color: white;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-500);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-stone-800);
    text-align: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-stone-900);
    color: var(--color-stone-400);
    margin-top: auto;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(to bottom right, var(--color-amber-500), var(--color-orange-600));
    color: white;
}

.footer-logo-icon svg {
    width: 20px;
    height: 20px;
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--color-amber-400);
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.625;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-amber-400);
}

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

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    color: var(--color-amber-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--color-stone-700);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom .footer-sub {
    color: var(--color-stone-500);
}

/* ---------- ORDER MODAL ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 512px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    color: var(--color-stone-400);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-stone-100);
    color: var(--color-stone-600);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-stone-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--color-amber-600);
}

.modal-header p {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    margin-top: 4px;
}

.modal-body {
    padding: 1.5rem;
}

/* Book summary in order modal */
.order-book-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to right, var(--color-amber-50), var(--color-orange-50));
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-amber-100);
    margin-bottom: 1.5rem;
}

.order-book-cover {
    width: 64px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-book-cover svg {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.8);
}

.order-book-info h4 {
    font-weight: 600;
    color: var(--color-stone-900);
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-book-info .order-book-author {
    font-size: 0.875rem;
    color: var(--color-stone-500);
}

.order-book-info .order-book-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-amber-700);
    margin-top: 4px;
}

/* Form fields */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: var(--color-stone-900);
    transition: all 0.2s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-amber-300);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-xl);
    background: white;
    color: var(--color-stone-900);
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--color-stone-50);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-btn svg {
    width: 16px;
    height: 16px;
}

.quantity-value {
    width: 48px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-stone-900);
}

.stock-hint {
    font-size: 0.75rem;
    color: var(--color-stone-400);
    margin-left: 8px;
}

/* Order total */
.order-total {
    border-top: 1px solid var(--color-stone-200);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-weight: 600;
    color: var(--color-stone-900);
}

.order-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-amber-700);
}

.order-submit-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: linear-gradient(to right, var(--color-amber-600), var(--color-orange-600));
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.order-submit-btn:hover {
    background: linear-gradient(to right, var(--color-amber-700), var(--color-orange-700));
}

.order-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.order-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Success state */
.order-success {
    padding: 3rem 1.5rem;
    text-align: center;
}

.order-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-emerald-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.order-success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-emerald-600);
}

.order-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-stone-900);
    margin-bottom: 0.5rem;
}

.order-success p {
    color: var(--color-stone-500);
    margin-bottom: 1.5rem;
}

/* ---------- SINGLE BOOK PAGE ---------- */
.single-book-hero {
    padding: 3rem 0;
    background: linear-gradient(to bottom right, var(--color-amber-50), var(--color-orange-50), var(--color-rose-50));
}

.single-book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .single-book-grid { grid-template-columns: 320px 1fr; }
}

.single-book-cover-wrapper {
    max-width: 320px;
    margin: 0 auto;
}

.single-book-cover {
    aspect-ratio: 3/4;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.single-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-book-details h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-stone-900);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .single-book-details h1 { font-size: 2.25rem; }
}

.single-book-author {
    font-size: 1.125rem;
    color: var(--color-stone-500);
    margin-top: 0.5rem;
}

.single-book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-amber-700);
    margin-top: 1rem;
}

.single-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-stone-200);
    border-bottom: 1px solid var(--color-stone-200);
}

.single-book-meta-item {
    font-size: 0.875rem;
    color: var(--color-stone-600);
}

.single-book-meta-item strong {
    color: var(--color-stone-900);
}

.single-book-description {
    margin-top: 1.5rem;
    color: var(--color-stone-600);
    line-height: 1.75;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---------- NOTIFICATION TOAST ---------- */
.np-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.np-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.np-toast-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.np-toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
