/* ============================================
   KitapDünyası - Athlete2 Inspired Theme
   Modern, Bold, Strong Design
   ============================================ */

/* CSS Custom Properties - Athlete2 Inspired */
:root {
    --primary: #222222;
    --primary-light: #333333;
    --accent: #c8a96e;
    --accent-hover: #b8954f;
    --accent-light: #f5efe6;
    --white: #ffffff;
    --bg: #f5f5f5;
    --bg-light: #fafafa;
    --text: #222222;
    --text-body: #555555;
    --text-muted: #999999;
    --border: #e8e8e8;
    --success: #2e7d32;
    --error: #c62828;
    --star: #f9a825;
    --font: 'Outfit', sans-serif;
    --container: 1320px;
    --radius: 8px;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text-body); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--text); font-weight: 700; }

/* ============================================
   HEADER - Athlete2 Style
   ============================================ */
.ikx-header { position: relative; z-index: 10000; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Promo Bar */
.ikx-promo {
    background: #111;
    color: #fff;
    padding: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.ikx-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
}
.ikx-promo-left { display: flex; align-items: center; gap: 12px; }
.ikx-promo-title { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.ikx-promo-right { display: flex; align-items: center; gap: 16px; }
.ikx-promo-timer { display: flex; gap: 4px; }
.ikx-promo-box {
    background: rgba(255,255,255,0.15);
    width: 36px; height: 36px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 4px;
}
.ikx-promo-box strong { font-size: 14px; font-weight: 700; color: #f0c14b; line-height: 1; }
.ikx-promo-box span { font-size: 7px; opacity: 0.7; line-height: 1; margin-top: 2px; }
.ikx-promo-shop {
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    color: #111;
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid #a88734;
}
.ikx-promo-shop:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); color: #111; }

/* Utility Bar */
.ikx-utility {
    background: #f5f5f5;
    border-bottom: 1px solid #dfdfdf;
    padding: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    width: 100%;
}
.ikx-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
}
.ikx-utility-left, .ikx-utility-right { display: flex; align-items: center; gap: 20px; }
.ikx-utility-country, .ikx-utility-help, .ikx-utility-link {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}
.ikx-utility-link:hover { color: #a88734; }
.ikx-utility-link i { margin-right: 4px; }

/* Main Header */
.ikx-main {
    background: #fff;
    border-bottom: 1px solid #dfdfdf;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
}
.ikx-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
    padding: 0 40px;
}
.ikx-main-left { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.ikx-main-center { flex: 1; max-width: 650px; }
.ikx-main-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Logo */
.ikx-logo-container { display: flex; align-items: center; gap: 10px; }
.ikx-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Navigation */
.ikx-nav { display: flex; align-items: center; gap: 28px; }
.ikx-nav-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0;
    position: relative;
    padding: 4px 0;
}
.ikx-nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.ikx-nav-item:hover { color: var(--accent); }
.ikx-nav-item:hover::after { width: 100%; }

.ikx-cats-trigger {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    border: 1px solid #a88734;
    border-radius: 4px;
}
.ikx-cats-trigger:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); color: #111; }
.ikx-cats-trigger i { font-size: 18px; }

/* Mega Menu */
.ikx-cats { position: static; }
.ikx-mega {
    position: fixed;
    top: auto;
    left: 0;
    width: 100vw;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 260px 1fr;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
}
.ikx-cats:hover .ikx-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.ikx-mega-side { border-right: 1px solid var(--border); padding: 12px 0; min-height: 400px; }
.ikx-mega-main {
    display: grid;
    grid-template-columns: 1fr 1fr 240px;
    min-height: 400px;
}
.ikx-sidecats { padding: 0; }
.ikx-sidecat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.ikx-sidecat-link:hover, .ikx-sidecat-link.active {
    background: var(--accent-light);
    color: var(--accent-hover);
}
.ikx-panel-col { padding: 20px; border-right: 1px solid var(--border); }
.ikx-panel-col:last-child { border-right: none; }
.ikx-panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.subcats-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ikx-lvl2-link {
    padding: 6px 10px;
    color: var(--text-body);
    font-size: 13px;
    border-radius: 4px;
    transition: var(--transition);
}
.ikx-lvl2-link:hover { background: var(--accent-light); color: var(--accent-hover); }
.mega-featured-books { display: flex; flex-direction: column; gap: 12px; }
.mega-book-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.mega-book-item:hover { background: var(--bg-light); box-shadow: var(--shadow); }
.mega-book-img { width: 50px; height: 65px; object-fit: cover; border-radius: 4px; }
.mega-book-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.mega-book-price { font-size: 14px; font-weight: 700; color: var(--accent-hover); }

/* Search */
.ikx-search-bar {
    position: relative;
    width: 100%;
    height: 46px;
    border: 1px solid #bbb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 4px 0 16px;
    background: var(--white);
    transition: var(--transition);
}
.ikx-search-bar:focus-within { border-color: #bbb; box-shadow: none; }
.ikx-search-form { display: flex; width: 100%; align-items: center; }
.ikx-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--text);
    height: 100%;
    box-shadow: none;
}
.ikx-search-input:focus { outline: none; box-shadow: none; }
.ikx-search-input:focus-visible { outline: none; box-shadow: none; }
.ikx-search-btn {
    background: linear-gradient(to bottom, var(--accent-light) 0%, var(--accent) 100%);
    border: 1px solid var(--accent-hover);
    color: var(--primary);
    width: 54px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}
.ikx-search-btn:hover { filter: brightness(1.05); }
.ikx-search-loading {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(200,169,110,0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Live Search */
.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
    z-index: 9999;
}
.live-search-dropdown.show { display: block; }
.live-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--bg);
    transition: var(--transition);
}
.live-search-item:hover { background: var(--accent-light); }
.live-item-img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.live-item-info { flex: 1; }
.live-item-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-item-meta { font-size: 11px; color: var(--text-muted); }
.live-item-price { font-weight: 700; font-size: 14px; color: var(--accent-hover); }

/* Icon Actions */
.ikx-icon-link {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}
.ikx-icon-link:hover { background: var(--accent-light); color: var(--accent); }
.ikx-icon-link i { font-size: 22px; }
.ikx-cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--accent);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdowns */
.ikx-dropdown-wrapper { position: relative; display: flex; align-items: center; }
.ikx-pro-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999999;
    padding: 8px 0;
}
.ikx-dropdown-wrapper:hover .ikx-pro-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ikx-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.ikx-drop-item:hover { background: var(--accent-light); color: var(--accent-hover); }
.ikx-drop-item i { font-size: 16px; color: var(--accent); width: 22px; text-align: center; }
.ikx-dropdown-empty {
    padding: 30px 20px;
    text-align: center;
}
.ikx-dropdown-empty i { font-size: 40px; color: var(--border); }
.ikx-dropdown-empty p { font-size: 13px; color: var(--text-muted); margin: 10px 0; }
.ikx-empty-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    color: #111;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid #a88734;
    transition: var(--transition);
}
.ikx-empty-btn:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); color: #111; }
.ikx-cart-dropdown { width: 320px; right: -20px; }

/* Mobile Menu */
.ikx-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
}
.ikx-mobile-overlay.active { display: block; }
.ikx-mobile-menu {
    position: fixed;
    top: 0; left: -300px;
    width: 300px; height: 100%;
    background: var(--white);
    z-index: 100000;
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.ikx-mobile-menu.active { left: 0; }
.ikx-mobile-header {
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ikx-mobile-title { font-weight: 600; font-size: 14px; letter-spacing: 0.5px; }
.ikx-mobile-close { color: var(--white); font-size: 24px; }
.ikx-mobile-search { padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.ikx-mobile-search-form { display: flex; gap: 8px; }
.ikx-mobile-search-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
}
.ikx-mobile-search-btn {
    background: var(--accent);
    color: var(--primary);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ikx-mobile-nav { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ikx-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.ikx-mobile-nav a:hover { background: var(--accent-light); color: var(--accent-hover); }
.ikx-mobile-nav a i { font-size: 18px; color: var(--accent); width: 22px; text-align: center; }
.ikx-mobile-cats-title {
    padding: 12px 20px;
    background: var(--bg);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ikx-mobile-cat-list { padding: 0; }
.ikx-mobile-cat-list li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--bg);
    transition: var(--transition);
}
.ikx-mobile-cat-list li a:hover { background: var(--accent-light); color: var(--accent-hover); }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: var(--white);
    display: none;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 10001;
    border-top: 1px solid var(--border);
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    gap: 2px;
    transition: var(--transition);
}
.mobile-bottom-nav a i { font-size: 20px; }
.mobile-bottom-nav a.active { color: var(--accent); }

/* ============================================
   HERO SECTION - Athlete2 Style
   ============================================ */
.hero {
    background: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero-slider { position: relative; overflow: hidden; width: 100%; }
.hero-slide {
    display: none;
    align-items: center;
    min-height: 600px;
    padding: 80px 0;
    width: 100%;
    position: relative;
}
.hero-slide.active { display: flex; }
.hero-content-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}
.hero-content { flex: 1; max-width: 520px; }
.hero-badge {
    display: inline-block;
    background: #111;
    color: #c8a96e;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}
.hero-author {
    font-size: 20px;
    color: #a88734;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
}
.hero-price { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.old-price { font-size: 20px; color: #999; text-decoration: line-through; }
.new-price { font-family: var(--font); font-size: 38px; font-weight: 800; color: #111; }
.discount {
    background: #c62828;
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
}
.hero-image { flex: 0 0 380px; text-align: center; }
.hero-book-cover {
    width: 320px;
    height: 440px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    margin: 0 auto;
}

/* Hero Arrows - Athlete2 Style (inside slider, sharp corners) */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 100px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 20;
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
}
.hero-arrow:hover { background: #111; color: #fff; }
.hero-prev { left: 0; }
.hero-next { right: 0; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.dot.active { background: #111; width: 30px; border-radius: 5px; }

/* Hero Category Tabs - Athlete2 Style (below slider) */
.hero-tabs {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}
.hero-tabs-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.hero-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 32px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.hero-tab:hover { color: #111; border-bottom-color: #c8a96e; background: #faf8f5; }
.hero-tab i { font-size: 20px; color: #999; }
.hero-tab:hover i { color: #c8a96e; }

/* ============================================
   BUTTONS - 2iea.com Style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 4px;
    font-family: var(--font);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    color: #111;
    border-color: #a88734;
}
.btn-primary:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); border-color: #a88734; color: #111; }
.btn-outline {
    background: transparent;
    color: #111;
    border-color: #a88734;
}
.btn-outline:hover { background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%); color: #111; }
.btn-light { background: #fff; color: #111; border-color: #ddd; }
.btn-light:hover { background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%); color: #111; }
.btn-secondary {
    background: #111;
    color: #fff;
    border-color: #111;
}
.btn-secondary:hover { background: #333; border-color: #333; color: #fff; }

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header .section-title { margin-bottom: 0; }
.view-all {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.view-all:hover { color: var(--primary); }

/* ============================================
   CATEGORIES - Athlete2 Style
   ============================================ */
.categories-section { padding: 60px 0; background: var(--white); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}
.category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}
.category-icon {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--accent-hover);
    border: 2px solid var(--border);
    transition: var(--transition);
}
.category-card:hover .category-icon { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.category-card span:first-of-type { font-family: var(--font); font-weight: 700; font-size: 14px; color: var(--text); }
.category-count { font-size: 11px; color: var(--text-muted); }

/* ============================================
   BOOK CARDS - Athlete2 Style
   ============================================ */
.books-section { padding: 60px 0; }
.books-section:nth-child(even) { background: var(--white); }
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.books-carousel { position: relative; overflow: hidden; }
.books-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.carousel-btn:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

.book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    flex: 0 0 calc(20% - 19.2px);
    min-width: 200px;
}
.books-grid .book-card { flex: 1; }
.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--accent); }
.book-card-link { display: block; color: inherit; }
.book-card-link:hover { color: inherit; }

.book-badge {
    position: absolute; top: 12px; left: 12px; z-index: 5;
    font-family: var(--font);
    font-size: 10px; font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.book-badge.bestseller { background: var(--accent); color: var(--primary); }
.book-badge.new { background: var(--success); color: var(--white); }
.book-badge.discount { background: var(--error); color: var(--white); }
.book-badge.featured { background: var(--primary); color: var(--accent); }

.book-cover { position: relative; padding: 20px 20px 0; aspect-ratio: 2/3; overflow: hidden; background: var(--bg-light); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.quick-view-btn {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font);
    font-size: 11px; font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    opacity: 0;
}
.book-card:hover .quick-view-btn { transform: translateX(-50%) translateY(0); opacity: 1; }
.quick-view-btn:hover { background: var(--accent); color: var(--primary); }

.book-info { padding: 16px 20px 20px; }
.book-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.4;
}
.book-card:hover .book-title { color: var(--accent-hover); }
.book-author { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.book-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { display: flex; gap: 1px; }
.star { color: var(--border); font-size: 14px; }
.star.filled { color: var(--star); }
.rating-count { font-size: 11px; color: var(--text-muted); }

.book-price { display: flex; align-items: center; gap: 10px; }
.current-price { font-family: var(--font); font-size: 20px; font-weight: 800; color: var(--text); }
.original-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%);
    color: #111;
    font-family: var(--font);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #a88734;
    transition: var(--transition);
}
.add-to-cart-btn:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); }

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #3a3a3a 100%);
    padding: 60px 0;
}
.promo-content { text-align: center; max-width: 600px; margin: 0 auto; }
.promo-content h2 { font-size: 32px; color: var(--accent); margin-bottom: 12px; }
.promo-content p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 16px; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section { background: var(--white); padding: 60px 0; }
.newsletter-content { text-align: center; max-width: 500px; margin: 0 auto; }
.newsletter-content h2 { font-size: 28px; margin-bottom: 8px; }
.newsletter-content p { color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; margin-bottom: 10px; }
.newsletter-form input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 12px 24px;
    outline: none;
    transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-content small { color: var(--text-muted); font-size: 11px; }

/* ============================================
   FOOTER - Athlete2 Style
   ============================================ */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h3 { font-size: 20px; color: var(--white); margin-bottom: 16px; }
.footer-col h4 {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--primary); }

.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.payment-icon {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 12px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    color: var(--text-muted); z-index: 10;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    transition: var(--transition);
}
.modal-close:hover { background: var(--error); color: var(--white); }
.modal-content { display: flex; gap: 30px; padding: 30px; }
.modal-book-cover { flex: 0 0 260px; }
.modal-book-info { flex: 1; }
.modal-book-info h2 { font-size: 24px; margin-bottom: 8px; }
.modal-author { color: var(--text-muted); margin-bottom: 12px; }
.modal-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.modal-description { color: var(--text-body); line-height: 1.7; margin-bottom: 20px; }
.modal-price .current-price { font-size: 28px; display: block; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; }

/* ============================================
   TOAST
   ============================================ */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 30000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
.toast.hiding { animation: slideOut 0.3s ease forwards; }

/* ============================================
   BOOK DETAIL PAGE
   ============================================ */
.breadcrumb { background: var(--white); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb a { color: var(--accent-hover); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.book-detail-section { padding: 50px 0; background: var(--white); }
.book-detail-section:nth-child(even) { background: var(--bg-light); }
.book-detail-wrapper { display: grid; grid-template-columns: 380px 1fr; gap: 50px; }
.book-detail-cover { position: sticky; top: 100px; }
.detail-cover-img {
    width: 100%; height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.cover-actions { display: flex; gap: 16px; margin-top: 20px; justify-content: center; }
.cover-actions button {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    padding: 8px 12px; border-radius: var(--radius);
    transition: var(--transition);
}
.cover-actions button:hover { color: var(--accent); background: var(--accent-light); }

.book-detail-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.detail-author { font-size: 18px; color: var(--accent-hover); margin-bottom: 16px; font-weight: 600; }
.detail-author:hover { color: var(--accent); }
.detail-meta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    margin-bottom: 24px; padding: 20px;
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.detail-meta-item { display: flex; gap: 8px; }
.detail-meta-item span:first-child { color: var(--text-muted); font-size: 13px; }
.detail-meta-item span:last-child { font-weight: 600; font-size: 13px; }
.detail-rating { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.big-rating { font-family: var(--font); font-size: 40px; font-weight: 800; color: var(--star); }

.detail-price-box {
    background: var(--bg-light); padding: 24px; border-radius: var(--radius);
    margin-bottom: 24px; border: 1px solid var(--border);
}
.detail-price-box .current-price { font-family: var(--font); font-size: 36px; display: block; margin-bottom: 4px; color: var(--text); }
.stock-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); margin-bottom: 24px; font-weight: 600; }
.quantity-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.quantity-selector label { font-weight: 600; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.qty-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-muted); transition: var(--transition);
}
.qty-btn:hover { background: var(--bg-light); }
.qty-value {
    width: 50px; text-align: center; font-weight: 700;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 4px 0;
}
.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.detail-actions .btn { padding: 14px 40px; }

.delivery-info { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--bg-light); border-radius: var(--radius); }
.delivery-item { display: flex; align-items: center; gap: 16px; }
.delivery-item svg { flex-shrink: 0; color: var(--accent); }
.delivery-item div { display: flex; flex-direction: column; }
.delivery-item strong { font-size: 13px; }
.delivery-item span { font-size: 11px; color: var(--text-muted); }

.detail-tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid var(--border); }
.tab-btn {
    padding: 14px 28px; font-family: var(--font); font-weight: 700;
    font-size: 14px; color: var(--text-muted); position: relative;
    text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent-hover); }
.tab-btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.detail-description p { color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.detail-description blockquote {
    border-left: 4px solid var(--accent); padding: 20px; margin: 24px 0;
    background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-body); font-size: 18px;
}
.reviews-summary { margin-bottom: 30px; }
.overall-rating { display: flex; align-items: center; gap: 20px; }
.review-card { background: var(--bg-light); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-author { font-weight: 700; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-text { color: var(--text-body); line-height: 1.7; }

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-page-section { padding: 40px 0; }
.category-header { margin-bottom: 30px; }
.category-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.category-header p { color: var(--text-muted); }
.category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.filters-sidebar { position: sticky; top: 100px; align-self: start; }
.filter-group {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    margin-bottom: 16px; border: 1px solid var(--border);
}
.filter-group h3 {
    font-family: var(--font); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block;
}
.filter-group ul li { margin-bottom: 8px; }
.filter-group ul li a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); }
.filter-group ul li a:hover { color: var(--accent-hover); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; }
.rating-filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; cursor: pointer; }

.category-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding: 12px 20px;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
}
.results-count { font-size: 13px; color: var(--text-muted); }
.sort-options { display: flex; align-items: center; gap: 8px; }
.sort-options label { font-size: 13px; color: var(--text-muted); }
.sort-options select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { padding: 6px; color: var(--text-muted); border-radius: 4px; transition: var(--transition); }
.view-toggle button.active { background: var(--primary); color: var(--white); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px;
    font-weight: 600; transition: var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.pagination .disabled { color: var(--border); pointer-events: none; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-section { padding: 40px 0; }
.cart-section h1 { font-size: 32px; font-weight: 800; margin-bottom: 30px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.cart-items { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.cart-item { display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-cover { flex: 0 0 100px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .book-author { font-size: 12px; margin-bottom: 8px; }
.cart-item-availability { font-size: 11px; color: var(--success); margin-bottom: 8px; }
.cart-item-price { flex: 0 0 120px; text-align: right; }
.cart-item-price .current-price { display: block; font-family: var(--font); font-size: 18px; font-weight: 700; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.remove-item-btn { font-size: 12px; color: var(--accent-hover); }
.remove-item-btn:hover { color: var(--error); text-decoration: underline; }

.cart-summary {
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 24px; position: sticky; top: 100px;
}
.cart-summary h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.summary-row.total { font-family: var(--font); font-size: 20px; font-weight: 800; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-form input { flex: 1; border: 1px solid var(--border); border-radius: 50px; padding: 10px 16px; font-size: 13px; outline: none; }
.checkout-btn { width: 100%; padding: 14px; font-size: 14px; }
.secure-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 11px; color: var(--text-muted); }

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-section { padding: 60px 0; min-height: 80vh; display: flex; align-items: center; }
.auth-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 1000px; margin: 0 auto; }
.auth-illustration {
    background: var(--primary); border-radius: 16px; padding: 50px; color: var(--white);
}
.auth-illustration-content svg { margin-bottom: 30px; opacity: 0.8; }
.auth-illustration-content h2 { font-size: 28px; margin-bottom: 16px; }
.auth-illustration-content p { opacity: 0.7; margin-bottom: 30px; line-height: 1.7; }
.auth-features { display: flex; flex-direction: column; gap: 12px; }
.auth-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.9; }
.auth-features li svg { color: var(--accent); flex-shrink: 0; }
.auth-forms { background: var(--white); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-lg); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid var(--border); }
.auth-tab {
    flex: 1; padding: 14px; font-family: var(--font); font-weight: 700;
    font-size: 14px; color: var(--text-muted); position: relative;
    text-align: center; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--accent-hover); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); }
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input-wrapper {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0 14px; transition: var(--transition); background: var(--white);
}
.input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,169,110,0.15); }
.input-wrapper svg { color: var(--text-muted); flex-shrink: 0; }
.input-wrapper input { flex: 1; border: none; padding: 10px 12px; outline: none; font-size: 13px; background: transparent; }
.toggle-password { padding: 4px; color: var(--text-muted); cursor: pointer; }
.toggle-password:hover { color: var(--text); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.forgot-password { font-size: 13px; color: var(--accent-hover); }
.forgot-password:hover { text-decoration: underline; }
.terms-link { color: var(--accent-hover); text-decoration: underline; }
.password-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 2px; transition: all 0.3s ease; }
.strength-fill.weak { width: 25%; background: var(--error); }
.strength-fill.fair { width: 50%; background: var(--star); }
.strength-fill.good { width: 75%; background: var(--accent); }
.strength-fill.strong { width: 100%; background: var(--success); }
.strength-text { font-size: 11px; color: var(--text-muted); min-width: 60px; }
.auth-btn { width: 100%; padding: 14px; font-size: 14px; margin-top: 8px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }
.social-auth { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px; border: 1px solid var(--border); border-radius: 50px;
    font-size: 13px; font-weight: 600; color: var(--text); transition: var(--transition); width: 100%;
}
.social-btn:hover { background: var(--bg-light); border-color: var(--accent); }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-section { padding: 40px 0; }
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.profile-sidebar { position: sticky; top: 100px; align-self: start; }
.profile-card { background: var(--white); border-radius: 16px; padding: 30px; text-align: center; border: 1px solid var(--border); margin-bottom: 16px; }
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--accent); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-size: 24px; font-weight: 800;
    margin: 0 auto 16px;
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.profile-stats { display: flex; justify-content: space-around; padding-top: 16px; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-number { display: block; font-family: var(--font); font-size: 22px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); }
.profile-nav { background: var(--white); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.profile-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; font-size: 13px; color: var(--text-body);
    transition: var(--transition); border-bottom: 1px solid var(--border);
}
.profile-nav-item:last-child { border-bottom: none; }
.profile-nav-item:hover { background: var(--bg-light); color: var(--text); }
.profile-nav-item.active { background: var(--accent-light); color: var(--accent-hover); font-weight: 700; border-left: 3px solid var(--accent); }
.profile-nav-item.logout { color: var(--error); }
.profile-nav-item.logout:hover { background: rgba(198,40,40,0.05); }

.profile-content { min-width: 0; }
.content-header { margin-bottom: 30px; }
.content-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.content-header p { color: var(--text-muted); font-size: 13px; }
.profile-form-card { background: var(--white); border-radius: 16px; padding: 30px; border: 1px solid var(--border); margin-bottom: 30px; }
.form-section { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 14px; font-size: 13px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,169,110,0.15); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 12px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.recent-orders { display: flex; flex-direction: column; gap: 10px; }
.order-mini {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px; background: var(--bg-light); border-radius: var(--radius);
    transition: var(--transition); border: 1px solid var(--border);
}
.order-mini:hover { border-color: var(--accent); }
.order-mini-info { display: flex; flex-direction: column; gap: 2px; }
.order-mini .order-number { font-weight: 700; font-size: 13px; }
.order-mini .order-date { font-size: 11px; color: var(--text-muted); }
.order-mini-status { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; }
.order-mini-status.delivered { background: rgba(46,125,50,0.1); color: var(--success); }
.order-mini-status.shipped { background: rgba(200,169,110,0.15); color: var(--accent-hover); }
.order-mini-total { font-family: var(--font); font-weight: 700; font-size: 14px; }

/* ============================================
   ORDERS PAGE
   ============================================ */
.order-filters { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 8px; }
.order-filter {
    padding: 8px 18px; border: 1px solid var(--border); border-radius: 50px;
    font-size: 13px; white-space: nowrap; color: var(--text-muted); transition: var(--transition);
    font-weight: 600;
}
.order-filter:hover { border-color: var(--accent); color: var(--accent); }
.order-filter.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.orders-list { display: flex; flex-direction: column; gap: 20px; }
.order-card { background: var(--white); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow); }
.order-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.order-header-info { display: flex; flex-direction: column; gap: 2px; }
.order-number { font-family: var(--font); font-weight: 700; font-size: 15px; }
.order-date { font-size: 12px; color: var(--text-muted); }
.order-status { font-size: 10px; font-weight: 700; padding: 6px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.order-status.processing { background: rgba(249,168,37,0.15); color: #e65100; }
.order-status.shipped { background: rgba(200,169,110,0.15); color: var(--accent-hover); }
.order-status.delivered { background: rgba(46,125,50,0.1); color: var(--success); }
.order-status.cancelled { background: rgba(198,40,40,0.1); color: var(--error); }
.order-body { padding: 20px; }
.order-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); transition: var(--transition); }
.order-item:hover { background: var(--bg-light); }
.order-item-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.order-item-info p { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.order-item-qty { font-size: 11px; color: var(--text-body); }
.order-item-price { font-family: var(--font); font-weight: 700; font-size: 14px; white-space: nowrap; }
.order-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.order-total span { font-size: 13px; color: var(--text-muted); }
.order-total strong { font-family: var(--font); font-size: 18px; margin-left: 8px; }
.order-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 16px; font-size: 11px; }

.order-timeline { display: flex; justify-content: space-between; padding: 20px; background: var(--bg-light); border-top: 1px solid var(--border); position: relative; }
.order-timeline::before { content: ''; position: absolute; top: 50%; left: 40px; right: 40px; height: 2px; background: var(--border); transform: translateY(-50%); z-index: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); }
.timeline-step.completed .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-step.active .timeline-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200,169,110,0.3); }
.timeline-step span { font-size: 10px; color: var(--text-muted); text-align: center; }
.timeline-step.completed span, .timeline-step.active span { color: var(--text); font-weight: 600; }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { color: var(--border); margin-bottom: 20px; }
.empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 28px; }

/* ============================================
   SCROLL TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed; bottom: 80px; right: 20px;
    width: 44px; height: 44px;
    background: var(--accent); color: var(--primary);
    border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow);
    z-index: 1000; transition: var(--transition);
}
.scroll-top-btn:hover { background: var(--accent-hover); transform: scale(1.1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .ikx-mega, .ikx-nav { display: none !important; }
    .ikx-main-inner { padding: 0 20px; }
    .ikx-promo-inner { padding: 0 20px; }
    .ikx-utility-inner { padding: 0 20px; }
    .hero-content-wrap { padding: 0 20px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .books-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .book-detail-wrapper { grid-template-columns: 300px 1fr; gap: 30px; }
    .category-layout { grid-template-columns: 220px 1fr; }
    .profile-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 991px) {
    .mobile-bottom-nav { display: grid; }
    body { padding-bottom: 56px; }
    .ikx-utility, .ikx-promo { display: none !important; }
    .ikx-main-center { display: none !important; }
    .ikx-main-inner { height: auto; padding: 10px 15px; }
}

@media (max-width: 768px) {
    .hero-content-wrap { flex-direction: column; text-align: center; gap: 30px; padding: 0 30px; }
    .hero h1 { font-size: 32px; }
    .hero-description { max-width: none; }
    .hero-price { justify-content: center; }
    .hero-image { flex: none; }
    .hero-book-cover { width: 220px; height: 300px; }
    .hero-arrow { width: 40px; height: 80px; font-size: 20px; }
    .hero-prev { left: 0; }
    .hero-next { right: 0; }
    .hero-tabs-inner { overflow-x: auto; justify-content: flex-start; }
    .hero-tab { padding: 14px 18px; font-size: 13px; }
    .hero-tab i { font-size: 16px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 16px; }
    .books-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .book-card { flex: 0 0 calc(50% - 12px); }
    .carousel-btn { display: none; }
    .book-detail-wrapper { grid-template-columns: 1fr; }
    .book-detail-cover { position: static; max-width: 280px; margin: 0 auto; }
    .detail-cover-img { height: 400px; }
    .detail-meta { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; }
    .category-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; display: none; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; }
    .cart-item-price { text-align: left; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .modal-content { flex-direction: column; }
    .modal-book-cover { flex: none; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .promo-content h2 { font-size: 24px; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-illustration { display: none; }
    .form-row-double { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .profile-card { display: flex; align-items: center; text-align: left; gap: 16px; }
    .profile-avatar { margin: 0; width: 50px; height: 50px; font-size: 16px; }
    .profile-stats { display: none; }
    .profile-nav { display: flex; overflow-x: auto; }
    .profile-nav-item { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--border); padding: 10px 14px; font-size: 12px; }
    .profile-nav-item.active { border-left: none; border-bottom: 2px solid var(--accent); }
    .order-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .order-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .order-timeline { overflow-x: auto; gap: 20px; }
    .order-timeline::before { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .books-grid { grid-template-columns: 1fr; }
    .book-card { flex: 0 0 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }
}

/* ============================================
   RETINA & ACCESSIBILITY
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .book-cover img, .hero-book-cover, .detail-cover-img {
        image-rendering: -webkit-optimize-contrast;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(200,169,110,0.2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

@media print {
    .ikx-header, .footer, .ikx-mobile-menu, .mobile-bottom-nav, .hero-controls, .carousel-btn, .add-to-cart-btn, .quick-view-btn, .newsletter-section, .promo-banner { display: none !important; }
    body { background: white; color: black; }
    .container { max-width: none; }
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
    --primary: #e0e0e0;
    --primary-light: #f0f0f0;
    --white: #1a1a1a;
    --bg: #121212;
    --bg-light: #1e1e1e;
    --text: #e0e0e0;
    --text-body: #b0b0b0;
    --text-muted: #777777;
    --border: #333333;
    --accent-light: rgba(200,169,110,0.1);
}

body.dark-mode .ikx-main,
body.dark-mode .ikx-mobile-menu,
body.dark-mode .modal,
body.dark-mode .auth-forms,
body.dark-mode .profile-card,
body.dark-mode .profile-nav,
body.dark-mode .profile-form-card,
body.dark-mode .cart-items,
body.dark-mode .cart-summary,
body.dark-mode .filter-group,
body.dark-mode .category-toolbar,
body.dark-mode .order-card,
body.dark-mode .review-card,
body.dark-mode .book-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .ikx-promo { background: #111 !important; }
body.dark-mode .ikx-utility { background: #161616 !important; border-color: #333 !important; }
body.dark-mode .ikx-search-bar { background: #2a2a2a !important; border-color: #444 !important; }
body.dark-mode .ikx-search-input { color: #fff !important; }
body.dark-mode .ikx-logo-text { color: #fff !important; }
body.dark-mode .ikx-cats-trigger { background: rgba(200,169,110,0.15) !important; color: var(--accent) !important; }
body.dark-mode .ikx-cats-trigger:hover { background: var(--accent) !important; color: #111 !important; }
body.dark-mode .ikx-nav-item { color: #ccc !important; }
body.dark-mode .ikx-nav-item:hover { color: var(--accent) !important; }
body.dark-mode .ikx-icon-link { color: #ccc !important; }
body.dark-mode .ikx-icon-link:hover { background: rgba(200,169,110,0.15) !important; }
body.dark-mode .ikx-pro-dropdown { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .ikx-drop-item { color: #ccc !important; }
body.dark-mode .ikx-drop-item:hover { background: rgba(200,169,110,0.1) !important; }
body.dark-mode .ikx-sidecat-link { color: #ccc !important; }
body.dark-mode .ikx-sidecat-link:hover { background: rgba(200,169,110,0.1) !important; }
body.dark-mode .ikx-mega { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .ikx-mega-side { border-color: #333 !important; }
body.dark-mode .ikx-panel-col { border-color: #333 !important; }
body.dark-mode .ikx-panel-title { color: var(--accent) !important; }
body.dark-mode .ikx-lvl2-link { color: #aaa !important; }
body.dark-mode .ikx-lvl2-link:hover { background: rgba(200,169,110,0.1) !important; color: var(--accent) !important; }
body.dark-mode .mega-book-title { color: #ccc !important; }
body.dark-mode .hero { background: #1a1a1a !important; }
body.dark-mode .hero-slide { background: linear-gradient(135deg, #1a1a1a 0%, #222 100%) !important; }
body.dark-mode .hero h1 { color: #fff !important; }
body.dark-mode .hero-arrow { background: rgba(30,30,30,0.9) !important; border-color: #444 !important; color: #ccc !important; }
body.dark-mode .hero-arrow:hover { background: #c8a96e !important; color: #111 !important; }
body.dark-mode .hero-dots { background: rgba(0,0,0,0.4) !important; }
body.dark-mode .dot { background: rgba(255,255,255,0.3) !important; }
body.dark-mode .dot.active { background: #fff !important; }
body.dark-mode .hero-tabs { background: #1a1a1a !important; border-color: #333 !important; }
body.dark-mode .hero-tab { color: #aaa !important; }
body.dark-mode .hero-tab:hover { color: #fff !important; border-bottom-color: #c8a96e !important; background: #222 !important; }
body.dark-mode .hero-tab i { color: #666 !important; }
body.dark-mode .hero-tab:hover i { color: #c8a96e !important; }
body.dark-mode .section-title { color: #fff !important; }
body.dark-mode .book-title { color: #ccc !important; }
body.dark-mode .current-price { color: #fff !important; }
body.dark-mode .footer { background: #0a0a0a !important; }
body.dark-mode .mobile-bottom-nav { background: #1a1a1a !important; border-color: #333 !important; }
body.dark-mode .breadcrumb { background: #1a1a1a !important; border-color: #333 !important; }
body.dark-mode .promo-banner { background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important; }
body.dark-mode .toast { background: #1e1e1e !important; }
body.dark-mode .live-search-dropdown { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .live-search-item { color: #ccc !important; border-color: #2a2a2a !important; }
body.dark-mode .live-search-item:hover { background: rgba(200,169,110,0.1) !important; }
body.dark-mode .social-btn { border-color: #444 !important; color: #ccc !important; }
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .input-wrapper,
body.dark-mode .sort-options select,
body.dark-mode .ikx-mobile-search-input,
body.dark-mode .coupon-form input,
body.dark-mode .newsletter-form input,
body.dark-mode .price-range input {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* ============================================
   LIVE CHAT WIDGET
   ============================================ */
.livechat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #c8a96e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 15000;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    transition: var(--transition);
}
.livechat-trigger:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.livechat-trigger .chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #c8a96e;
    animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.livechat-trigger .chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Panel */
.livechat-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 550px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 15001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}
.livechat-panel.active { display: flex; }
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Header */
.livechat-header {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.livechat-avatar {
    width: 44px;
    height: 44px;
    background: #c8a96e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #111;
    flex-shrink: 0;
}
.livechat-header-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.livechat-header-info span { font-size: 12px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px; }
.livechat-header-info .online-dot { width: 8px; height: 8px; background: #4caf50; border-radius: 50%; display: inline-block; }
.livechat-close {
    margin-left: auto;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 4px;
}
.livechat-close:hover { color: #fff; }

/* Topic Selection */
.livechat-topics {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.livechat-topics-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.livechat-topic-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.livechat-topic-btn:hover { border-color: #c8a96e; background: #faf8f5; }
.livechat-topic-btn.selected { border-color: #c8a96e; background: #f5efe6; }
.livechat-topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.livechat-topic-icon.siparis { background: rgba(46,125,50,0.1); color: #2e7d32; }
.livechat-topic-icon.teknik { background: rgba(25,118,210,0.1); color: #1976d2; }
.livechat-topic-icon.odeme { background: rgba(249,168,37,0.1); color: #e65100; }
.livechat-topic-icon.urun { background: rgba(156,39,176,0.1); color: #7b1fa2; }
.livechat-topic-text { flex: 1; }
.livechat-topic-text strong { display: block; font-size: 14px; font-weight: 600; color: #222; margin-bottom: 2px; }
.livechat-topic-text span { font-size: 12px; color: #888; }

/* Chat Messages Area */
.livechat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 300px;
    background: #f9f9f9;
}
.livechat-messages.active { display: flex; }

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    animation: msgFade 0.3s ease;
}
@keyframes msgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: #111;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}
.chat-msg.user .chat-msg-time { color: rgba(255,255,255,0.5); }

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Chat Quick Replies */
.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.chat-quick-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 12px;
    color: #555;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.chat-quick-btn:hover { border-color: #c8a96e; color: #111; background: #faf8f5; }

/* Chat Input */
.livechat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
    display: none;
    align-items: center;
    gap: 10px;
    background: #fff;
    flex-shrink: 0;
}
.livechat-input-area.active { display: flex; }
.livechat-input {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}
.livechat-input:focus { border-color: #c8a96e; }
.livechat-send {
    width: 40px;
    height: 40px;
    background: #111;
    color: #c8a96e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.livechat-send:hover { background: #c8a96e; color: #111; }

/* Chat Back Button */
.livechat-back {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    flex-shrink: 0;
    border-bottom: 1px solid #e8e8e8;
}
.livechat-back:hover { color: #111; }
.livechat-back.active { display: flex; }

/* Chat Powered By */
.livechat-powered {
    text-align: center;
    padding: 8px;
    font-size: 10px;
    color: #bbb;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Dark Mode */
body.dark-mode .livechat-panel { background: #1e1e1e !important; }
body.dark-mode .livechat-topics { background: #1e1e1e; }
body.dark-mode .livechat-topic-btn { background: #2a2a2a !important; border-color: #444 !important; color: #ccc; }
body.dark-mode .livechat-topic-btn:hover { border-color: #c8a96e !important; background: #333 !important; }
body.dark-mode .livechat-topic-btn.selected { background: #333 !important; }
body.dark-mode .livechat-topic-text strong { color: #eee !important; }
body.dark-mode .livechat-messages { background: #1a1a1a; }
body.dark-mode .chat-msg.bot { background: #2a2a2a !important; color: #ddd !important; border-color: #444 !important; }
body.dark-mode .livechat-input-area { background: #1e1e1e; border-color: #333 !important; }
body.dark-mode .livechat-input { background: #2a2a2a !important; border-color: #444 !important; color: #fff !important; }
body.dark-mode .chat-quick-btn { background: #2a2a2a !important; border-color: #444 !important; color: #ccc !important; }
body.dark-mode .chat-quick-btn:hover { border-color: #c8a96e !important; }
body.dark-mode .livechat-back { color: #888 !important; border-color: #333 !important; }
body.dark-mode .livechat-powered { border-color: #333; color: #555; }
body.dark-mode .chat-typing { background: #2a2a2a !important; border-color: #444 !important; }
body.dark-mode .chat-typing span { background: #555; }
body.dark-mode .livechat-topics-title { color: #aaa; }

/* Responsive */
@media (max-width: 480px) {
    .livechat-panel { width: calc(100vw - 20px); right: 10px; bottom: 90px; max-height: 70vh; }
    .livechat-trigger { bottom: 70px; right: 16px; width: 52px; height: 52px; font-size: 22px; }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-section { padding: 40px 0; }
.legal-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.legal-sidebar { position: sticky; top: 100px; align-self: start; }
.legal-nav { background: #fff; border-radius: 12px; border: 1px solid #e8e8e8; overflow: hidden; }
.legal-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; font-size: 13px; color: #555;
    transition: 0.3s; border-bottom: 1px solid #f0f0f0;
}
.legal-nav-item:last-child { border-bottom: none; }
.legal-nav-item:hover { background: #faf8f5; color: #111; }
.legal-nav-item.active { background: #f5efe6; color: #b8954f; font-weight: 600; border-left: 3px solid #c8a96e; }
.legal-nav-item i { font-size: 16px; width: 20px; text-align: center; }
.legal-content { background: #fff; border-radius: 12px; padding: 40px; border: 1px solid #e8e8e8; }
.legal-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.legal-date { font-size: 13px; color: #999; margin-bottom: 30px; }
.legal-block { margin-bottom: 30px; }
.legal-block h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #222; }
.legal-block p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 12px; }
.legal-block ul { padding-left: 20px; margin-bottom: 12px; }
.legal-block ul li { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 4px; list-style: disc; }
.legal-info-box { background: #f5f5f5; border-left: 4px solid #c8a96e; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; line-height: 1.8; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px 16px; border: 1px solid #e8e8e8; text-align: left; }
.legal-table th { background: #f5f5f5; font-weight: 600; }
.legal-table td { color: #555; }

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #111; color: #fff; padding: 20px 40px;
    z-index: 20000; display: none; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.active { display: block; }
.cookie-banner-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-banner p { font-size: 13px; line-height: 1.6; flex: 1; }
.cookie-banner p a { color: #c8a96e; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 24px; border-radius: 4px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid; transition: 0.3s; }
.cookie-btn-accept { background: linear-gradient(to bottom, #f7dfa5 0%, #f0c14b 100%); color: #111; border-color: #a88734; }
.cookie-btn-accept:hover { background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%); }
.cookie-btn-settings { background: transparent; color: #fff; border-color: #555; }
.cookie-btn-settings:hover { border-color: #c8a96e; color: #c8a96e; }
.cookie-btn-reject { background: transparent; color: #999; border-color: #444; }
.cookie-btn-reject:hover { border-color: #888; color: #fff; }

/* Cookie Settings Modal */
.cookie-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 25000; align-items: center; justify-content: center; }
.cookie-modal-overlay.active { display: flex; }
.cookie-modal { background: #fff; border-radius: 16px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 30px; }
.cookie-modal h2 { font-size: 22px; margin-bottom: 20px; }
.cookie-category { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.cookie-category:last-child { border-bottom: none; }
.cookie-category-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cookie-category-info p { font-size: 12px; color: #888; }
.cookie-toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 26px; cursor: pointer; transition: 0.3s; }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.cookie-toggle input:checked + .cookie-toggle-slider { background: #c8a96e; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(22px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

@media (max-width: 768px) {
    .legal-wrapper { grid-template-columns: 1fr; }
    .legal-sidebar { position: static; }
    .legal-nav { display: flex; overflow-x: auto; }
    .legal-nav-item { white-space: nowrap; border-bottom: none; border-right: 1px solid #f0f0f0; padding: 10px 14px; font-size: 12px; }
    .legal-nav-item.active { border-left: none; border-bottom: 2px solid #c8a96e; }
    .legal-content { padding: 20px; }
    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-banner-actions { width: 100%; justify-content: center; }
}

body.dark-mode .legal-nav { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .legal-nav-item { color: #aaa; border-color: #333 !important; }
body.dark-mode .legal-nav-item:hover { background: #2a2a2a !important; }
body.dark-mode .legal-nav-item.active { background: rgba(200,169,110,0.1) !important; color: #c8a96e; }
body.dark-mode .legal-content { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .legal-content h1 { color: #fff !important; }
body.dark-mode .legal-block h2 { color: #ddd !important; }
body.dark-mode .legal-block p, body.dark-mode .legal-block ul li { color: #aaa !important; }
body.dark-mode .legal-info-box { background: #2a2a2a !important; }
body.dark-mode .legal-table th { background: #2a2a2a !important; }
body.dark-mode .legal-table th, body.dark-mode .legal-table td { border-color: #333 !important; color: #aaa !important; }
body.dark-mode .cookie-banner { background: #0a0a0a !important; }
body.dark-mode .cookie-modal { background: #1e1e1e !important; }
body.dark-mode .cookie-category { border-color: #333 !important; }
body.dark-mode .cookie-category-info h4 { color: #ddd !important; }

/* FAQ Items */
.faq-item { border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.3s; }
.faq-question:hover { background: #faf8f5; }
.faq-question i { transition: 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 16px; }
.faq-item.active .faq-answer { display: block; }
.faq-answer p { font-size: 14px; color: #555; line-height: 1.7; }
body.dark-mode .faq-item { border-color: #333 !important; }
body.dark-mode .faq-question:hover { background: #2a2a2a !important; }
body.dark-mode .faq-answer p { color: #aaa !important; }