/* =========================================================
   Book Spot — Main Stylesheet
   Design System: Navy/Gold/White — Literary Elegance
   ========================================================= */

/* ── 1. CSS Custom Properties (Design Tokens) ── */
:root {
    /* Colors */
    --bs-navy:         #1B2A4A;
    --bs-navy-light:   #2C3F6B;
    --bs-navy-dark:    #111C31;
    --bs-gold:         #C9952A;
    --bs-gold-light:   #E0B050;
    --bs-gold-pale:    #FDF3DC;
    --bs-white:        #FFFFFF;
    --bs-off-white:    #F8F9FC;
    --bs-gray-50:      #F3F4F8;
    --bs-gray-100:     #E8EAF0;
    --bs-gray-200:     #D1D4DF;
    --bs-gray-400:     #9097AE;
    --bs-gray-600:     #5C6478;
    --bs-gray-800:     #2E3344;
    --bs-text:         #1E2433;
    --bs-text-muted:   #5C6478;
    --bs-border:       #E2E5EF;
    --bs-success:      #1A7A4A;
    --bs-error:        #C0392B;

    /* Customizer overrides injected here */
    --bs-primary:      var(--bs-navy);
    --bs-accent:       var(--bs-gold);

    /* Typography */
    --font-display:    'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:       'Courier New', Courier, monospace;

    /* Type Scale */
    --text-xs:    0.75rem;
    --text-sm:    0.875rem;
    --text-base:  1rem;
    --text-lg:    1.125rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   1.875rem;
    --text-4xl:   2.25rem;
    --text-5xl:   3rem;
    --text-6xl:   3.75rem;

    /* Spacing */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;
    --space-32:  8rem;

    /* Layout */
    --container-max:   1200px;
    --container-wide:  1400px;
    --container-narrow: 760px;
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  20px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(27,42,74,0.08), 0 1px 2px rgba(27,42,74,0.06);
    --shadow-md:  0 4px 12px rgba(27,42,74,0.10), 0 2px 6px rgba(27,42,74,0.06);
    --shadow-lg:  0 10px 30px rgba(27,42,74,0.12), 0 4px 10px rgba(27,42,74,0.08);
    --shadow-xl:  0 20px 50px rgba(27,42,74,0.15);
    --shadow-card: 0 2px 8px rgba(27,42,74,0.08), 0 0 0 1px rgba(27,42,74,0.04);
    --shadow-card-hover: 0 8px 24px rgba(27,42,74,0.14), 0 0 0 1px rgba(201,149,42,0.15);

    /* Transitions */
    --transition-fast:  150ms ease;
    --transition-base:  250ms ease;
    --transition-slow:  400ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--bs-text);
    background-color: var(--bs-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── 3. Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-navy);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--bs-text);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--bs-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--bs-gold-light); }

a:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

ul, ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

li { margin-bottom: var(--space-1); }

blockquote {
    border-left: 3px solid var(--bs-gold);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--bs-gold-pale);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--bs-gray-800);
}

hr {
    border: none;
    border-top: 1px solid var(--bs-border);
    margin: var(--space-8) 0;
}

code, pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

code {
    background: var(--bs-gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

pre {
    background: var(--bs-gray-800);
    color: var(--bs-white);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-6);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-6);
}

th, td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--bs-border);
    text-align: left;
}

th {
    background: var(--bs-gray-50);
    font-weight: 600;
    color: var(--bs-navy);
}

/* ── 4. Layout Utilities ── */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bs-white);
    border-radius: var(--radius-sm);
    clip: auto !important;
    clip-path: none;
    color: var(--bs-navy);
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: var(--space-4) var(--space-6);
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft  { float: left; margin: 0 var(--space-6) var(--space-4) 0; }
.alignright { float: right; margin: 0 0 var(--space-4) var(--space-6); }
.aligncenter { display: block; margin: 0 auto var(--space-4); }
.alignwide { max-width: calc(var(--container-max) + 200px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; margin-left: calc(-1 * var(--space-6)); margin-right: calc(-1 * var(--space-6)); }

/* ── 5. Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    -webkit-appearance: none;
}

.btn:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
}

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

.btn--primary:hover {
    background: var(--bs-gold-light);
    border-color: var(--bs-gold-light);
    color: var(--bs-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,149,42,0.35);
}

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

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

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

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

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

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

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* ── 6. Section Utilities ── */
.section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.section--sm {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section--lg {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
}

.section--gray {
    background: var(--bs-gray-50);
}

.section--navy {
    background: var(--bs-navy);
    color: var(--bs-white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: var(--bs-white);
}

.section--navy p {
    color: rgba(255,255,255,0.8);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--bs-text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bs-gold);
    margin-bottom: var(--space-3);
}

/* ── 7. Site Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bs-white);
    border-bottom: 1px solid var(--bs-border);
    box-shadow: 0 1px 4px rgba(27,42,74,0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: var(--space-6);
}

/* Logo */
.site-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo img {
    max-height: 44px;
    width: auto;
}

.site-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-title-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bs-navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-title-text:hover { color: var(--bs-gold); }

/* Primary Navigation */
.primary-navigation {
    flex: 1;
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-1);
}

.primary-navigation > ul > li > a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--bs-gray-800);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.primary-navigation > ul > li > a:hover,
.primary-navigation > ul > li.current-menu-item > a,
.primary-navigation > ul > li.current_page_item > a {
    color: var(--bs-navy);
    background: var(--bs-gray-50);
}

/* Dropdown */
.primary-navigation li {
    position: relative;
}

.primary-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bs-white);
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    flex-direction: column;
    gap: var(--space-1);
    z-index: 1001;
}

.primary-navigation ul ul li a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--bs-gray-800);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.primary-navigation ul ul li a:hover {
    background: var(--bs-gray-50);
    color: var(--bs-navy);
}

.primary-navigation li:hover > ul,
.primary-navigation li:focus-within > ul {
    display: flex;
}

/* Header Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--bs-gray-600);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
}

.header-icon-btn:hover {
    background: var(--bs-gray-50);
    color: var(--bs-navy);
}

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

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--bs-gold);
    color: var(--bs-white);
    font-size: 9px;
    font-weight: 700;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Search Form in Header */
.header-search-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bs-white);
    border-bottom: 2px solid var(--bs-gold);
    padding: var(--space-4) var(--space-6);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.header-search-wrap.is-open { display: block; }

.header-search-wrap .search-form {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.header-search-wrap .search-field {
    flex: 1;
    border: none;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    color: var(--bs-text);
}

.header-search-wrap .search-submit {
    padding: var(--space-3) var(--space-5);
    background: var(--bs-navy);
    color: var(--bs-white);
    border: none;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition-fast);
}

.header-search-wrap .search-submit:hover {
    background: var(--bs-navy-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bs-gray-50);
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--bs-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-white);
    z-index: 999;
    overflow-y: auto;
    padding: var(--space-6);
    border-top: 1px solid var(--bs-border);
}

.mobile-nav-panel.is-open { display: block; }

.mobile-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-panel > ul > li {
    border-bottom: 1px solid var(--bs-border);
}

.mobile-nav-panel > ul > li > a {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--bs-navy);
    text-decoration: none;
    font-family: var(--font-display);
}

.mobile-nav-panel ul ul {
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
}

.mobile-nav-panel ul ul li a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--bs-gray-600);
    font-size: var(--text-base);
    text-decoration: none;
}

.mobile-search-form {
    margin-bottom: var(--space-6);
    display: flex;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mobile-search-form input {
    flex: 1;
    border: none;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
}

.mobile-search-form button {
    padding: var(--space-3) var(--space-4);
    background: var(--bs-navy);
    color: var(--bs-white);
    border: none;
    cursor: pointer;
}

/* ── 8. Hero Section ── */
.hero-section {
    background: var(--bs-navy);
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0;
    min-height: 580px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(201,149,42,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(201,149,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-gold);
    margin-bottom: var(--space-4);
}

.hero-eyebrow span {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--bs-gold);
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 700;
    color: var(--bs-white);
    line-height: 1.1;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.hero-heading em {
    color: var(--bs-gold);
    font-style: normal;
}

.hero-description {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    transform: rotate(-2deg);
}

.hero-book-card {
    background: var(--bs-navy-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-book-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.hero-book-card:first-child {
    transform: translateY(16px);
}

.hero-book-card:nth-child(2) {
    transform: translateY(-8px);
}

.hero-book-card:nth-child(3) {
    transform: translateY(-4px);
}

.hero-book-card:nth-child(4) {
    transform: translateY(12px);
}

/* ── 9. Product Cards ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-6);
}

.products-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Signature element: page-curl shadow on book cards */
.book-card {
    background: var(--bs-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.book-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12px;
    width: 80px;
    height: 12px;
    background: rgba(27,42,74,0.08);
    filter: blur(6px);
    border-radius: 50%;
    transform: scaleX(0.8);
    transition: all var(--transition-base);
    pointer-events: none;
}

.book-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.book-card:hover::after {
    transform: scaleX(1.1);
    background: rgba(27,42,74,0.14);
    right: 8px;
    width: 90px;
    height: 16px;
}

.book-card__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--bs-gray-100);
    flex-shrink: 0;
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.book-card:hover .book-card__cover img {
    transform: scale(1.04);
}

.book-card__badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--bs-gold);
    color: var(--bs-white);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
}

.book-card__badge--sale {
    background: var(--bs-error);
}

.book-card__actions {
    position: absolute;
    bottom: -48px;
    left: 0;
    right: 0;
    padding: var(--space-3);
    background: linear-gradient(to top, rgba(27,42,74,0.9), transparent);
    display: flex;
    gap: var(--space-2);
    transition: bottom var(--transition-base);
}

.book-card:hover .book-card__actions {
    bottom: 0;
}

.book-card__btn {
    flex: 1;
    text-align: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    line-height: 1.4;
}

.book-card__btn--view {
    background: rgba(255,255,255,0.15);
    color: var(--bs-white);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

.book-card__btn--view:hover {
    background: rgba(255,255,255,0.25);
    color: var(--bs-white);
}

.book-card__btn--cart {
    background: var(--bs-gold);
    color: var(--bs-white);
}

.book-card__btn--cart:hover {
    background: var(--bs-gold-light);
    color: var(--bs-white);
}

.book-card__body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.book-card__author {
    font-size: var(--text-xs);
    color: var(--bs-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-card__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card__title a {
    color: inherit;
    text-decoration: none;
}

.book-card__title a:hover { color: var(--bs-gold); }

.book-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.book-card__stars {
    color: var(--bs-gold);
    font-size: var(--text-sm);
    letter-spacing: -1px;
}

.book-card__rating-count {
    font-size: var(--text-xs);
    color: var(--bs-text-muted);
}

.book-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: auto;
}

.book-card__price .price-current {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--bs-navy);
    font-family: var(--font-display);
}

.book-card__price .price-original {
    font-size: var(--text-sm);
    color: var(--bs-gray-400);
    text-decoration: line-through;
}

/* ── 10. Categories Section ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.category-card {
    background: var(--bs-white);
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.category-card:hover {
    border-color: var(--bs-gold);
    box-shadow: 0 4px 16px rgba(201,149,42,0.15);
    transform: translateY(-2px);
    color: var(--bs-navy);
}

.category-card__icon {
    width: 52px;
    height: 52px;
    background: var(--bs-gold-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background var(--transition-base);
}

.category-card:hover .category-card__icon {
    background: var(--bs-gold);
}

.category-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.category-card__name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1.2;
}

.category-card__count {
    font-size: var(--text-xs);
    color: var(--bs-text-muted);
}

/* ── 11. Promotional Banner ── */
.promo-section {
    background: linear-gradient(135deg, var(--bs-navy) 0%, var(--bs-navy-light) 100%);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.promo-section__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

.promo-section__badge {
    display: inline-block;
    background: var(--bs-gold);
    color: var(--bs-white);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: 100px;
    margin-bottom: var(--space-4);
}

.promo-section h2 {
    color: var(--bs-white);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.promo-section p {
    color: rgba(255,255,255,0.75);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.promo-section__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.promo-section__image {
    max-width: 240px;
    position: relative;
}

/* ── 12. Newsletter Section ── */
.newsletter-section {
    background: var(--bs-gold-pale);
    padding: var(--space-16) 0;
    text-align: center;
}

.newsletter-section h2 {
    color: var(--bs-navy);
    margin-bottom: var(--space-3);
}

.newsletter-section p {
    color: var(--bs-text-muted);
    max-width: 480px;
    margin: 0 auto var(--space-8);
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    color: var(--bs-text);
}

.newsletter-form button {
    padding: var(--space-4) var(--space-6);
    background: var(--bs-navy);
    color: var(--bs-white);
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--bs-navy-light);
}

.newsletter-note {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--bs-text-muted);
}

/* ── 13. Blog Section & Single Post ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.post-card {
    background: var(--bs-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card__thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bs-gray-100);
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.04);
}

.post-card__body {
    padding: var(--space-5);
}

.post-card__category {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-gold);
    text-decoration: none;
    margin-bottom: var(--space-2);
    display: block;
}

.post-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover { color: var(--bs-gold); }

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--bs-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--bs-text-muted);
}

.post-card__meta a {
    color: var(--bs-text-muted);
    text-decoration: none;
}

.post-card__meta a:hover { color: var(--bs-gold); }

/* Single post */
.single-post .entry-header {
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-8);
    text-align: center;
}

.single-post .entry-header .entry-categories {
    margin-bottom: var(--space-4);
}

.single-post .entry-header h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

.entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--bs-text-muted);
}

.entry-meta a {
    color: var(--bs-text-muted);
    text-decoration: none;
}

.entry-meta a:hover { color: var(--bs-gold); }

.entry-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-10);
    aspect-ratio: 16/6;
}

.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.8;
}

.entry-content h2, .entry-content h3 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.entry-content p { margin-bottom: var(--space-6); }

.entry-content ul, .entry-content ol {
    margin-bottom: var(--space-6);
}

/* ── 14. Page Layout ── */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-10);
    align-items: start;
}

.content-sidebar-wrap.full-width {
    grid-template-columns: 1fr;
}

/* Widget sidebar */
.sidebar .widget {
    background: var(--bs-white);
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar .widget-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--bs-navy);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--bs-gold);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--bs-gray-100);
}

.sidebar ul li:last-child { border-bottom: none; }

.sidebar ul li a {
    color: var(--bs-gray-600);
    text-decoration: none;
    font-size: var(--text-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar ul li a:hover { color: var(--bs-gold); }

.sidebar .search-form {
    display: flex;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar .search-field {
    flex: 1;
    border: none;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    outline: none;
}

.sidebar .search-submit {
    padding: var(--space-2) var(--space-3);
    background: var(--bs-navy);
    color: var(--bs-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

/* ── 15. Breadcrumbs ── */
.breadcrumb-wrap {
    background: var(--bs-gray-50);
    border-bottom: 1px solid var(--bs-border);
    padding: var(--space-3) 0;
}

.breadcrumb-wrap nav {
    font-size: var(--text-sm);
    color: var(--bs-text-muted);
}

.breadcrumb-wrap a {
    color: var(--bs-text-muted);
    text-decoration: none;
}

.breadcrumb-wrap a:hover { color: var(--bs-gold); }

.breadcrumb-separator {
    margin: 0 var(--space-2);
    color: var(--bs-gray-200);
}

/* ── 16. Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--bs-border);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bs-gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--bs-navy);
    border-color: var(--bs-navy);
    color: var(--bs-white);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    padding: 0 var(--space-4);
    gap: var(--space-2);
}

/* ── 17. Footer ── */
.site-footer {
    background: var(--bs-navy-dark);
    color: rgba(255,255,255,0.75);
}

.site-footer__main {
    padding: var(--space-16) 0 var(--space-10);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer-brand {}

.footer-brand .site-title-text {
    color: var(--bs-white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    display: block;
}

.footer-brand .custom-logo {
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
    max-height: 40px;
    width: auto;
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-2);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-social a:hover {
    background: var(--bs-gold);
    color: var(--bs-white);
}

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

.footer-col h4 {
    color: var(--bs-white);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col ul a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--bs-gold);
}

.site-footer__bottom {
    padding: var(--space-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.site-footer__copyright {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.45);
}

.site-footer__legal {
    display: flex;
    gap: var(--space-5);
}

.site-footer__legal a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
    color: var(--bs-gold);
}

/* ── 18. Single Product Page ── */
.single-product-hero {
    padding: var(--space-16) 0;
    background: var(--bs-white);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-12);
    align-items: start;
}

.product-cover-wrap {
    position: sticky;
    top: 90px;
}

.product-cover-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 2/3;
    background: var(--bs-gray-100);
    margin-bottom: var(--space-4);
    /* Signature page-curl */
    position: relative;
}

.product-cover-main::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: rgba(27,42,74,0.15);
    filter: blur(12px);
    border-radius: 50%;
}

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

.product-cover-thumbnails {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
}

.product-cover-thumb {
    width: 56px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.product-cover-thumb.active,
.product-cover-thumb:hover {
    border-color: var(--bs-gold);
}

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

.product-info {}

.product-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.product-category-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-gold);
    background: var(--bs-gold-pale);
    padding: 3px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.product-category-tag:hover {
    background: var(--bs-gold);
    color: var(--bs-white);
}

.product-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1.15;
    margin-bottom: var(--space-3);
}

.product-author {
    font-size: var(--text-base);
    color: var(--bs-text-muted);
    margin-bottom: var(--space-4);
}

.product-author a {
    color: var(--bs-gold);
    text-decoration: none;
    font-weight: 600;
}

.product-rating-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--bs-border);
}

.product-stars {
    color: var(--bs-gold);
    font-size: var(--text-lg);
}

.product-rating-text {
    font-size: var(--text-sm);
    color: var(--bs-text-muted);
}

.product-price-block {
    margin-bottom: var(--space-6);
}

.product-price-block .price {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--bs-navy);
}

.product-price-block .price del {
    font-size: var(--text-2xl);
    color: var(--bs-gray-400);
    font-weight: 400;
    margin-right: var(--space-2);
}

.product-price-block .price ins {
    text-decoration: none;
    color: var(--bs-error);
}

.product-short-desc {
    font-size: var(--text-base);
    color: var(--bs-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.product-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.product-meta-table {
    background: var(--bs-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.product-meta-row {
    display: flex;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--bs-border);
    font-size: var(--text-sm);
}

.product-meta-row:last-child { border-bottom: none; }

.product-meta-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--bs-navy);
}

.product-meta-value {
    color: var(--bs-text-muted);
    flex: 1;
}

.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--bs-text-muted);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--bs-success);
    flex-shrink: 0;
}

/* Product tabs */
.product-tabs {
    margin-top: var(--space-16);
    border-top: 1px solid var(--bs-border);
}

.product-tabs__nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--bs-border);
    scrollbar-width: none;
}

.product-tabs__nav::-webkit-scrollbar { display: none; }

.product-tab-btn {
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bs-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.product-tab-btn:hover {
    color: var(--bs-navy);
}

.product-tab-btn.active {
    color: var(--bs-navy);
    border-bottom-color: var(--bs-gold);
}

.product-tabs__content {
    padding: var(--space-8) 0;
}

.product-tab-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.product-tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 19. Shop Archive ── */
.shop-header {
    padding: var(--space-10) 0;
    background: var(--bs-gray-50);
    border-bottom: 1px solid var(--bs-border);
}

.shop-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--bs-border);
    flex-wrap: wrap;
}

.shop-result-count {
    font-size: var(--text-sm);
    color: var(--bs-text-muted);
}

.shop-ordering select {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--bs-text);
    background: var(--bs-white);
    cursor: pointer;
    outline: none;
}

/* ── 20. Forms ── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--bs-navy);
    margin-bottom: var(--space-2);
}

.form-field {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--bs-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--bs-text);
    background: var(--bs-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
}

.form-field:focus {
    border-color: var(--bs-gold);
    box-shadow: 0 0 0 3px rgba(201,149,42,0.12);
}

.form-field::placeholder {
    color: var(--bs-gray-400);
}

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

/* ── 21. 404 Page ── */
.page-404 {
    text-align: center;
    padding: var(--space-32) 0;
}

.page-404__code {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    color: var(--bs-navy);
    line-height: 1;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--bs-navy), var(--bs-navy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-404 h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.page-404 p {
    color: var(--bs-text-muted);
    font-size: var(--text-lg);
    max-width: 480px;
    margin: 0 auto var(--space-8);
}

/* ── 22. Comments ── */
.comments-area {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 1px solid var(--bs-border);
}

.comments-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-10);
}

.comment {
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--bs-border);
}

.comment-author { font-weight: 700; color: var(--bs-navy); }
.comment-meta { font-size: var(--text-xs); color: var(--bs-text-muted); margin-bottom: var(--space-3); }
.comment-content { font-size: var(--text-sm); line-height: 1.7; }

.comment-reply-link {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bs-gold);
    text-decoration: none;
    margin-top: var(--space-2);
    display: inline-block;
}

.children {
    list-style: none;
    padding-left: var(--space-8);
    margin: 0;
    border-left: 2px solid var(--bs-border);
    margin-top: var(--space-4);
}

/* ── 23. Notices / Alerts ── */
.notice {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notice--info {
    background: #EBF5FF;
    color: #1A56A0;
    border-left: 3px solid #1A56A0;
}

.notice--success {
    background: #ECFDF5;
    color: var(--bs-success);
    border-left: 3px solid var(--bs-success);
}

.notice--error {
    background: #FEF2F2;
    color: var(--bs-error);
    border-left: 3px solid var(--bs-error);
}

/* ── 24. Loading state ── */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bs-border);
    border-top-color: var(--bs-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── 25. Responsive ── */
@media (max-width: 1024px) {
    .products-grid--4col { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .single-product-layout { grid-template-columns: 280px 1fr; }
    .hero-section .container { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }

    .primary-navigation { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero-section { padding: var(--space-16) 0; min-height: auto; }
    .hero-section .container { grid-template-columns: 1fr; }
    .hero-image-wrap { display: none; }

    .products-grid, .products-grid--4col, .products-grid--3col {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }

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

    .single-product-layout {
        grid-template-columns: 1fr;
    }

    .product-cover-wrap { position: static; max-width: 280px; margin: 0 auto; }

    .promo-section__inner { grid-template-columns: 1fr; }
    .promo-section__image { display: none; }

    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; text-align: center; }
    .site-footer__legal { flex-wrap: wrap; justify-content: center; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }

    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { border-radius: var(--radius-md); }
    .newsletter-form button { border-radius: var(--radius-md); }

    .product-tabs__nav { flex-wrap: nowrap; }

    .section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
    .section-header h2 { font-size: var(--text-3xl); }

    .promo-section__actions { flex-direction: column; }

    .page-404__code { font-size: 80px; }
}

@media (max-width: 480px) {
    .container { padding-left: var(--space-4); padding-right: var(--space-4); }
    .products-grid, .products-grid--4col, .products-grid--3col {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .site-header__inner { height: 60px; }
    .mobile-nav-panel { top: 60px; }
    .book-card__body { padding: var(--space-3); }
    .book-card__title { font-size: var(--text-sm); }
    .book-card__price .price-current { font-size: var(--text-base); }
}

/* ── 26. Print ── */
@media print {
    .site-header, .site-footer, .sidebar, .product-actions { display: none; }
    body { font-size: 12pt; }
    a { color: inherit; }
}
