/* ========================================================
   Bookora.hu — Design System
   Brand: Navy #1a2b4a | Coral #e8896a | Cream #faf4ef
   ======================================================== */

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

:root {
    --color-navy:      #1a2b4a;
    --color-navy-dark: #111d33;
    --color-coral:     #e8896a;
    --color-coral-dark:#d4704f;
    --color-cream:     #faf4ef;
    --color-cream-mid: #f3ece4;
    --color-sand:      #e8ddd0;
    --color-text:      #2d3748;
    --color-text-light:#6b7280;
    --color-white:     #ffffff;
    --color-black:     #1a2b4a;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    --shadow-sm:  0 1px 4px rgba(26,43,74,.08);
    --shadow-md:  0 4px 16px rgba(26,43,74,.12);
    --shadow-lg:  0 8px 32px rgba(26,43,74,.16);

    --spacing-xs: .5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    --nav-height: 72px;
    --container:  1200px;

    /* Legacy aliases (legal pages / older markup) */
    --color-text-muted: var(--color-text-light);
    --color-text-dark:  var(--color-text);
    --color-border:     var(--color-sand);
    --color-brand-bg:   var(--color-cream);
    --color-accent:     var(--color-coral);
}

/* Legacy compat: legal pages use these class names */
.navbar-container { display: flex; align-items: center; gap: 1.5rem; }
.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-right: auto;
}
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,.75);
    padding: var(--spacing-md) 0;
}
.back-link { color: var(--color-coral); font-weight: 500; }

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}
.btn-primary:hover {
    background: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}
.btn-ghost {
    background: transparent;
    color: var(--color-coral);
    border-color: transparent;
    padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--color-coral-dark); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.w-100 { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(250,244,239,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-sand);
    transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.logo span { color: var(--color-coral); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.nav-links a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--color-navy);
    padding: .3rem .1rem;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-coral);
    transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }

/* Category dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: .25rem; cursor: pointer;
    font-size: .92rem; font-weight: 500; color: var(--color-navy);
    background: none; border: none; font-family: inherit; padding: .3rem 0;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-sand);
    min-width: 220px;
    padding: .5rem 0;
    z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: .6rem 1.25rem;
    font-size: .9rem;
    color: var(--color-text);
    transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover {
    background: var(--color-cream-mid);
    color: var(--color-coral);
}
.nav-dropdown-menu a::after { display: none; }

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--color-navy);
    transition: color .2s;
}
.cart-icon:hover { color: var(--color-coral); }
.cart-icon::after { display: none !important; }

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: transparent;
    border: none; cursor: pointer;
    z-index: 1001; position: relative;
}
.mobile-menu-toggle span {
    width: 100%; height: 2.5px;
    background: var(--color-navy);
    border-radius: 3px;
    transition: all .3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: linear-gradient(135deg, var(--color-cream) 0%, #f0e8df 100%);
    overflow: hidden;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl) 0;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--color-coral);
    color: var(--color-white);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-title em {
    font-style: italic;
    color: var(--color-coral);
}
.hero-tagline {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    max-width: 480px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--spacing-md); }
.hero-trust {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--color-text-light);
}
.hero-trust-dot { color: var(--color-coral); }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-book-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    max-width: 420px;
}
.hero-book-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-sand);
    transition: transform .3s;
}
.hero-book-card:hover { transform: translateY(-4px); }
.hero-book-cover {
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: .75rem;
    text-align: center;
    padding: .5rem;
    line-height: 1.3;
    overflow: hidden;
}
.hero-book-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.hero-book-card .book-cat {
    font-size: .7rem;
    color: var(--color-coral);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .2rem;
}
.hero-book-card .book-title { font-size: .82rem; font-weight: 600; color: var(--color-navy); }
.hero-book-card .book-price { font-size: .8rem; color: var(--color-text-light); margin-top: .25rem; }

/* --- Category strip --- */
.cat-strip {
    background: var(--color-navy);
    padding: var(--spacing-md) 0;
}
.cat-strip .container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-strip .container::-webkit-scrollbar { display: none; }
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.08);
    color: var(--color-cream);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl);
    padding: .45rem 1rem;
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
    cursor: pointer;
    text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--color-coral);
    border-color: var(--color-coral);
    color: var(--color-white);
}
.cat-pill-icon { font-size: 1rem; }

/* --- Section --- */
.section { padding: var(--spacing-xl) 0; }
.section-sm { padding: var(--spacing-lg) 0; }
.section-alt { background: var(--color-cream-mid); }

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}
.section-eyebrow {
    display: inline-block;
    color: var(--color-coral);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: .5rem;
}
.section-sub {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Book card grid --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.book-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-sand);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.book-card-cover {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    padding: 1rem;
    text-align: center;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.book-card-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .3rem;
}
.book-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: .4rem;
    line-height: 1.3;
}
.book-card-desc {
    font-size: .82rem;
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: .75rem;
    line-height: 1.5;
}
.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.book-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
}
.book-price-old {
    font-size: .8rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}
.book-badge {
    display: inline-block;
    background: var(--color-coral);
    color: var(--color-white);
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: .05em;
    position: absolute;
    top: .75rem; right: .75rem;
}

/* Placeholder card */
.book-card-placeholder {
    background: var(--color-cream-mid);
    border: 2px dashed var(--color-sand);
    opacity: .7;
}
.book-card-placeholder .book-card-body { align-items: center; text-align: center; justify-content: center; }
.book-card-placeholder .book-card-title { color: var(--color-text-light); font-style: italic; }
.coming-soon-badge {
    display: inline-block;
    background: var(--color-sand);
    color: var(--color-text-light);
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: var(--radius-xl);
    margin-top: .5rem;
}

/* Category cover colors */
.cover-fitness   { background: linear-gradient(135deg, #2d6a4f, #52b788); }
.cover-baba      { background: linear-gradient(135deg, #e8896a, #f4a58a); }
.cover-fejlesztes{ background: linear-gradient(135deg, #1a2b4a, #2e4a7a); }
.cover-vallalkozas{ background: linear-gradient(135deg, #6b4226, #a0622a); }
.cover-szorako   { background: linear-gradient(135deg, #7b2d8b, #b565c5); }
.cover-utazas    { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.cover-recept    { background: linear-gradient(135deg, #b71c1c, #e53935); }

/* --- Value strip --- */
.value-strip {
    background: var(--color-navy);
    padding: var(--spacing-lg) 0;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}
.value-item { padding: var(--spacing-sm); }
.value-icon { font-size: 2rem; margin-bottom: .75rem; }
.value-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: .35rem;
}
.value-desc { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* --- Category section --- */
.cat-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.cat-section-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--color-sand);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.cat-section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cat-section-icon { font-size: 2.2rem; }
.cat-section-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
}
.cat-section-count { font-size: .85rem; color: var(--color-text-light); }
.cat-section-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--color-coral);
    font-size: .9rem;
    font-weight: 600;
}

/* --- Contact / Simple form --- */
.contact-section { background: var(--color-cream-mid); }
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .88rem; font-weight: 600; color: var(--color-navy); }
.form-input, .form-textarea {
    padding: .75rem 1rem;
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color .2s;
    outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-coral); }
.form-textarea { resize: vertical; min-height: 120px; }

/* --- Cart / Checkout --- */
.page-header {
    background: var(--color-navy);
    padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-white);
}
.page-header p { color: rgba(255,255,255,.7); margin-top: .5rem; }

.cart-section { padding: var(--spacing-lg) 0; }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--spacing-md);
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-sand);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.cart-item-cover {
    width: 72px; height: 96px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; color: var(--color-white);
    text-align: center; padding: .3rem;
    overflow: hidden;
}
.cart-item-cover img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.cart-item-info { flex: 1; }
.cart-item-cat { font-size: .72rem; color: var(--color-coral); font-weight: 600; text-transform: uppercase; }
.cart-item-title { font-weight: 700; color: var(--color-navy); margin: .2rem 0; }
.cart-item-type { font-size: .82rem; color: var(--color-text-light); }
.cart-item-price { font-weight: 700; font-size: 1.05rem; color: var(--color-navy); text-align: right; }
.cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--color-text-light); font-size: 1.2rem; margin-top: .1rem;
    transition: color .2s;
}
.cart-item-remove:hover { color: var(--color-coral); }

.cart-empty {
    text-align: center; padding: var(--spacing-xl) 0;
    color: var(--color-text-light);
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.cart-empty h2 { font-family: var(--font-heading); color: var(--color-navy); margin-bottom: .5rem; }

.order-summary {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-sand);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}
.order-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--color-sand);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .92rem;
    padding: .4rem 0;
    color: var(--color-text);
}
.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-navy);
    border-top: 1px solid var(--color-sand);
    margin-top: .5rem;
    padding-top: .75rem;
}
.summary-secure {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--color-text-light);
    margin-top: 1rem; justify-content: center;
}
.simplepay-logo {
    max-width: 180px;
    margin: 1rem auto 0;
    display: block;
}

/* --- Checkout form --- */
.checkout-section { padding: var(--spacing-lg) 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--spacing-md);
    align-items: start;
}
.checkout-form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-sand);
    padding: 2rem;
}
.checkout-form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-navy);
    margin-bottom: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Success / Failure --- */
.result-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
}
.result-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-sand);
}
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: .75rem;
}
.result-card p { color: var(--color-text-light); margin-bottom: .5rem; }
.download-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.download-btn {
    display: flex; align-items: center; gap: .75rem;
    background: var(--color-cream-mid);
    border: 1.5px solid var(--color-sand);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: left;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}
.download-btn:hover {
    border-color: var(--color-coral);
    background: #fef3ee;
}
.download-btn-icon { font-size: 1.5rem; flex-shrink: 0; }
.download-btn-info .title { font-weight: 700; color: var(--color-navy); font-size: .95rem; }
.download-btn-info .sub  { font-size: .78rem; color: var(--color-text-light); margin-top: .1rem; }

/* --- Footer --- */
footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,.75);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.footer-brand .logo { color: var(--color-white); margin-bottom: .75rem; font-size: 1.3rem; }
.footer-desc { font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 260px; }
.footer-col h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--color-coral); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--color-coral); }

/* --- Legal pages --- */
.legal-section {
    padding: calc(var(--nav-height) + 3rem) 0 var(--spacing-xl);
    max-width: 760px;
    margin: 0 auto;
}
.legal-section h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
}
.legal-section h2 { font-size: 1.25rem; color: var(--color-navy); margin: 1.75rem 0 .75rem; }
.legal-section p, .legal-section li { font-size: .95rem; line-height: 1.75; color: var(--color-text); margin-bottom: .5rem; }
.legal-section ul { list-style: disc; padding-left: 1.5rem; }

/* --- SimplePay redirect overlay --- */
.simplepay-overlay {
    position: fixed; inset: 0;
    background: var(--color-navy);
    color: var(--color-white);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.simplepay-overlay.active { display: flex; }
.simplepay-overlay h2 { font-family: var(--font-heading); margin: 1.5rem 0 .5rem; font-size: 1.4rem; }
.simplepay-overlay p { color: rgba(255,255,255,.7); }
.simplepay-overlay .spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: var(--color-coral);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.billing-section h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-navy); margin-bottom: 1rem; }
.company-toggle { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; font-size: .92rem; color: var(--color-text); }
.company-fields { display: none; }
.company-fields.active { display: block; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem 2rem;
    max-width: 480px; width: 100%;
    position: relative;
    text-align: center;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--color-text-light); opacity: .6; padding: .25rem;
}
.modal-close:hover { opacity: 1; }
.modal-icon {
    width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--color-coral); color: var(--color-white);
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.modal-title { font-size: 1.4rem; color: var(--color-navy); margin-bottom: .75rem; font-family: var(--font-heading); }
.modal-body { color: var(--color-text); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-btn-ok { min-width: 140px; }

/* --- Cookie banner --- */
#cookie-banner {
    position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
    width: calc(100% - 2rem); max-width: 640px;
    background: var(--color-navy);
    color: rgba(255,255,255,.85);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 9000;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
#cookie-banner p { font-size: .85rem; flex: 1; line-height: 1.5; }
#cookie-banner a { color: var(--color-coral); text-decoration: underline; }
.cookie-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btns .btn { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-cookie-accept { background: var(--color-coral); color: var(--color-white); }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.3); }

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --spacing-lg: 2.5rem; --spacing-xl: 3.5rem; }
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 300px;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right .4s ease;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        padding: 2rem;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.3rem; }
    .nav-dropdown-menu { position: static; transform: none; box-shadow: none; background: transparent; border: none; }
    .nav-dropdown-toggle { font-size: 1.3rem; }
    .value-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

@media (max-width: 480px) {
    .books-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .btn-lg { width: 100%; }
}
