/* ============================================
   KitapDünyası - Professional Book Store
   Corporate & Sophisticated Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors - Sophisticated Palette */
    --primary: #1C3D5A;
    --primary-dark: #122A40;
    --primary-light: #2A5580;
    --accent: #B8860B;
    --accent-light: #DAA520;
    --accent-dark: #8B6914;
    
    --success: #1D4E4E;
    --warning: #8B6914;
    --danger: #8B2323;
    --info: #1C3D5A;
    
    --white: #FFFFFF;
    --ivory: #FFFFF8;
    --cream: #FAF9F6;
    --parchment: #F5F1E8;
    --sand: #E8E4DA;
    
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --text-dark: #1A1A1A;
    --text-body: #4A4A4A;
    --text-muted: #757575;
    
    /* Typography - Sofia Pro Stack */
    --font-display: sofia-pro, "Open Sans", "Gill Sans MT", Corbel, Arial, sans-serif;
    --font-body: sofia-pro, "Open Sans", "Gill Sans MT", Corbel, Arial, sans-serif;
    
    /* Spacing */
    --header-height: 72px;
    --container-width: 1200px;
    --section-padding: 100px;
    
    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--sand);
}

.header-top {
    background: var(--primary);
    color: var(--white);
    font-size: 0.8125rem;
    padding: 10px 0;
    letter-spacing: 0.02em;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 28px;
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.header-top-left svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.language-switcher {
    display: flex;
    gap: 4px;
}

.language-switcher a {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: all var(--transition);
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
    background: rgba(255,255,255,0.15);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0;
}

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

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 480px;
}

.search-form {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.search-form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 61, 90, 0.1);
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    outline: none;
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: var(--gray-500);
}

.search-form button {
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    transition: background var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

.search-form button svg {
    width: 18px;
    height: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    position: relative;
}

.header-action svg {
    width: 22px;
    height: 22px;
}

.header-action:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.header-action .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Navigation */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--sand);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    transform: scaleX(1);
}

.nav-menu svg {
    width: 14px;
    height: 14px;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--sand);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background: var(--parchment);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero::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"><circle cx="50" cy="50" r="1" fill="rgba(184,134,11,0.1)"/></svg>');
    background-size: 50px 50px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 134, 11, 0.2);
    color: var(--accent-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    width: fit-content;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stat-label {
    font-size: 0.8125rem;
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Book Slider */
.hero-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,0.1);
}

.book-slider {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 0;
}

.book-slide {
    flex-shrink: 0;
    width: 200px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.book-slide:nth-child(2) {
    transform: scale(1.15);
    z-index: 2;
}

.book-slide:nth-child(1),
.book-slide:nth-child(3) {
    opacity: 0.7;
    transform: scale(0.9);
}

.book-slide-cover {
    aspect-ratio: 2/3;
    background: var(--parchment);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
    position: relative;
}

.book-slide:hover .book-slide-cover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

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

.book-slide-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
    z-index: 1;
}

.book-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    z-index: 2;
    color: var(--white);
}

.book-slide-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-slide-author {
    font-size: 0.75rem;
    opacity: 0.8;
}

.book-slide-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 3;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 16px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 1rem;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-link:hover {
    color: var(--accent);
    gap: 12px;
}

.section-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   BOOK CARDS
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--sand);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.book-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--parchment);
}

.book-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-badge {
    padding: 5px 10px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.book-badge.new {
    background: var(--primary);
    color: var(--white);
}

.book-badge.sale {
    background: var(--danger);
    color: var(--white);
}

.book-badge.bestseller {
    background: var(--accent);
    color: var(--white);
}

.book-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
}

.book-card:hover .book-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.book-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--text-muted);
    transition: all var(--transition);
}

.book-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.book-action-btn svg {
    width: 18px;
    height: 18px;
}

.book-card-content {
    padding: 24px;
}

.book-card-author {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.book-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
    line-height: 1.35;
}

.book-card-title:hover {
    color: var(--primary);
}

.book-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.book-price-old {
    font-size: 0.9375rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.book-card-footer {
    padding: 16px 24px 24px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background: var(--gray-100);
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.add-to-cart-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    border: 1px solid var(--sand);
    transition: all var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--parchment);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition);
}

.category-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.category-card:hover .category-icon {
    background: var(--primary);
}

.category-card:hover .category-icon svg {
    color: var(--accent-light);
}

.category-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--white);
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-item {
    padding: 48px 32px;
    text-align: center;
    border-right: 1px solid var(--sand);
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--parchment);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
}

.newsletter .container {
    max-width: 640px;
    text-align: center;
}

.newsletter h2 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.newsletter p {
    opacity: 0.85;
    margin-bottom: 32px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    outline: none;
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    margin-top: 80px;
    background: var(--gray-900);
    color: var(--white);
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    opacity: 0.7;
    margin: 20px 0 28px;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0.8;
    font-size: 0.9375rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    opacity: 0.6;
}

.footer-payments {
    display: flex;
    gap: 12px;
}

.footer-payments img {
    height: 28px;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item:nth-child(2) {
        border-right: none;
    }
    
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    
    .header-top {
        display: none;
    }
    
    .header-main .container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        padding: 48px 24px;
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 24px;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--sand);
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .nav-menu > li > a {
        padding: 14px 16px;
        font-size: 0.75rem;
    }
}

/* Book card image link styling */
.book-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.book-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.book-card:hover .book-image-link img {
    transform: scale(1.05);
}
.book-card-image {
    position: relative;
    overflow: hidden;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success {
    background: #28a745;
}
.toast.error {
    background: #dc3545;
}

/* Cart count pulse animation */
.cart-count.pulse {
    animation: pulse 0.5s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); background: #28a745; }
    100% { transform: scale(1); }
}

/* Button success state */
.add-to-cart-btn.success {
    background: #28a745 !important;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkout Page */
.checkout-page { padding: 40px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
.checkout-form h2, .checkout-summary h2 { margin-bottom: 20px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.checkout-summary { background: #f8f9fa; padding: 30px; border-radius: 12px; height: fit-content; }
.summary-items { border-bottom: 1px solid #ddd; padding-bottom: 20px; margin-bottom: 20px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { font-size: 1.2rem; font-weight: bold; border-top: 2px solid #333; padding-top: 15px; margin-top: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; width: 100%; }

/* Contact Page */
.contact-page { padding: 40px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2, .contact-form h2 { margin-bottom: 30px; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item svg { flex-shrink: 0; color: var(--primary); }
.info-item strong { display: block; margin-bottom: 5px; }

/* About Page */
.about-page { padding: 40px 0; }
.about-content { max-width: 800px; line-height: 1.8; }
.about-content h2 { margin: 30px 0 15px; }
.about-content ul { margin-left: 20px; }
.about-content li { margin-bottom: 10px; }

/* Order Success */
.order-success-page { padding: 80px 0; text-align: center; }
.success-box { max-width: 500px; margin: 0 auto; }
.success-box svg { margin-bottom: 20px; }
.success-box h1 { color: #28a745; margin-bottom: 15px; }
.success-box .order-number { font-size: 1.2rem; margin: 20px 0; }
.success-actions { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

/* Alert */
.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 768px) {
    .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* Pirtukxane Logo */
.site-logo {
    height: 50px;
    width: auto;
}

/* Section margin before footer */
.books-page,
.authors-page,
.categories-page,
.cart-page,
.checkout-page {
    padding-bottom: 60px;
}
