﻿/* Neue Plak ΓÇö local font */
@font-face {
  font-family: 'Neue Plak';
  src: url('../Fonts/Neue-Plak Font/Neue-Plak-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Plak';
  src: url('../Fonts/Neue-Plak Font/Neue-Plak-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Plak';
  src: url('../Fonts/Neue-Plak Font/Neue-Plak-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* =============================================================
   DUHOVNA BIBLIOTEKA — Shared Design System
   Based on GTY.org extracted design tokens
   ============================================================= */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --color-primary-bg:       #FFFFFF;
  --color-secondary-bg:     #f8f8f8;
  --color-nav-dark:         #0a0c0a;
  --color-nav-blue:         #172332;
  --color-nav-blue-mid:     #232c32;
  --color-nav-blue-light:   #e9e8e0;
  --color-accent-gold:      #99793d;
  --color-accent-gold-dark: #7a5f2e;
  --color-accent-gold-light:#f5f0e6;
  --color-text-dark:        #333333;
  --color-text-mid:         #555555;
  --color-text-muted:       #828282;
  --color-text-primary:     #1a1a1a;
  --color-text-secondary:   #444444;
  --color-bg-primary:       #ffffff;
  --color-bg-secondary:     #f7f5f0;
  --color-border:           #e0e0e0;
  --color-footer-bg:        #232c32;
  --color-footer-text:      #a0adb5;
  --color-dropdown-bg:      #243038;
  --color-brand:            #1e3550;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --font-ui:      'Neue Plak', sans-serif;

  --max-width: 1200px;
  --border-radius: 3px;
}

/* ── DARK THEME ─────────────────────────────────────────────── */
[data-theme=dark] {
  --color-primary-bg:       #141414;
  --color-secondary-bg:     #1c1c1c;
  --color-nav-dark:         #090909;
  --color-nav-blue:         #111111;
  --color-nav-blue-mid:     #1a2228;
  --color-nav-blue-light:   #272727;
  --color-accent-gold:      #99793d;
  --color-accent-gold-dark: #7a5f2e;
  --color-accent-gold-light:#261c09;
  --color-text-dark:        #e9e8e0;
  --color-text-mid:         #c0bdb4;
  --color-text-muted:       #888886;
  --color-text-primary:     #e9e8e0;
  --color-text-secondary:   #c0bdb4;
  --color-bg-primary:       #141414;
  --color-bg-secondary:     #1c1c1c;
  --color-border:           #2e2e2e;
  --color-footer-bg:        #0d1013;
  --color-footer-text:      #7a8f9a;
  --color-dropdown-bg:      #1c2428;
  --color-brand:            #6a9abe;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  background: var(--color-primary-bg);
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 2px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 600; line-height: 1.25; }
h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-gold);
  display: block;
  margin-bottom: 12px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 11px 26px; border-radius: var(--border-radius);
  transition: background .38s, color .38s, border-color .38s, transform .28s, box-shadow .28s;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--color-accent-gold); color: #fff; border: 2px solid var(--color-accent-gold); }
.btn-primary:hover { background: var(--color-accent-gold-dark); border-color: var(--color-accent-gold-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(122,95,46,.3); }
.btn-secondary { background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand); }
.btn-secondary:hover { background: rgba(30,53,80,.08); }
.btn-sm { font-size: .75rem; padding: 8px 18px; }

/* ── CATEGORY PILL ──────────────────────────────────────────── */
.cat-pill {
  display: inline-block; font-family: var(--font-ui); font-size: .68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(30,53,80,.1); color: var(--color-brand);
}
[data-theme=dark] .cat-pill { background: rgba(184,148,85,.15); color: var(--color-accent-gold); }

/* ── PAGE HEADER (inner pages) ──────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, #0f1c2e 0%, #1a2d45 55%, #1e3550 100%);
  padding: 52px 0 48px;
}
.page-header__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-header__breadcrumb {
  font-family: var(--font-ui); font-size: .72rem; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.page-header__breadcrumb a { color: rgba(255,255,255,.5); transition: color .38s; }
.page-header__breadcrumb a:hover { color: var(--color-accent-gold); }
.page-header__breadcrumb span { color: rgba(255,255,255,.3); }
.page-header h1 { color: #fff; font-size: clamp(1.6rem,3vw,2.4rem); }
.page-header__sub { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 8px; }

/* ── UTILITY BAR ────────────────────────────────────────────── */


/* ── MAIN NAVBAR ─────────────────────────────────────────────  */
#main-nav {
  background: var(--color-nav-blue); position: sticky; top: 0;
  z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.28);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.navbar__logo { flex-shrink: 0; display: flex; align-items: center; }
.navbar__logo img { height: 40px; width: auto; }
.navbar__logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.2; }
.navbar__logo-text span { display: block; font-family: var(--font-ui); font-size: .6rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); margin-top: 1px; }

.navbar__links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.navbar__links > li { position: relative; }
.navbar__links > li > a,
.navbar__links > li > button {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,0.38); padding: 8px 14px; border-radius: 2px;
  display: flex; align-items: center; gap: 4px;
  transition: color .5s ease, background .5s ease; position: relative;
}
.navbar__links > li > a::after,
.navbar__links > li > button::after { display: none; }
.navbar__links > li > a:hover,
.navbar__links > li > button:hover { color: #fff; }
.navbar__links > li.active > a { color: #fff; }
/* Sibling dimming */
.navbar__links:hover > li > a,
.navbar__links:hover > li > button { color: rgba(255,255,255,0.38); }
.navbar__links:hover > li:hover > a,
.navbar__links:hover > li:hover > button { color: #fff; }
.nav-link-external { color: var(--color-accent-gold) !important; opacity: 1; }
.nav-link-external:hover { color: var(--color-accent-gold-dark) !important; }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  background: var(--color-dropdown-bg); border: none;
  border-top: 2px solid var(--color-accent-gold);
  min-width: 230px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
  border-radius: 0 0 4px 4px; display: none; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .38s, transform .38s; z-index: 1001;
}
.nav-dropdown.open { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  font-family: var(--font-ui); font-size: .75rem; font-weight: 500;
  letter-spacing: .04em; color: rgba(233,232,224,.85);
  transition: background .28s, color .28s, padding-left .28s;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown:hover a { color: rgba(233,232,224,0.38); }
.nav-dropdown a:hover { background: rgba(255,255,255,.07); color: var(--color-accent-gold); padding-left: 24px; }
.nav-dropdown a img { height: 16px; width: auto; flex-shrink: 0; opacity: 0.85; }
.nav-dropdown a svg { flex-shrink: 0; color: var(--color-accent-gold); opacity: .8; }

.chevron { width: 12px; height: 12px; transition: transform .38s; display: inline-block; }
.chevron svg { width: 12px; height: 12px; }
[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Navbar right */
.navbar__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-search, .btn-theme {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 3px;
  color: rgba(255,255,255,.7); transition: background .38s, color .38s;
}
.btn-search { width: 38px; height: 38px; color: rgba(255,255,255,0.8); }
.btn-search:hover, .btn-theme:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-search svg { width: 18px; height: 18px; }
.btn-theme svg { width: 17px; height: 17px; }
.btn-theme .icon-moon { display: block; }
.btn-theme .icon-sun  { display: none; }
[data-theme=dark] .btn-theme .icon-moon { display: none; }
[data-theme=dark] .btn-theme .icon-sun  { display: block; }

/* Hamburger */
.btn-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; color: #fff; }
.btn-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s, opacity .45s; }
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--color-nav-blue); z-index: 999;
  overflow-y: auto; padding: 80px 24px 40px; flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: block; letter-spacing: .03em; transition: color .5s ease; }
.mobile-nav a:hover { color: #fff; }
.mobile-nav-section a { font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.75); padding-left: 16px; }

/* ── NAVBAR INLINE SEARCH ─────────────────────────────────── */
.navbar__search-wrap {
  width: 0;
  max-width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width 0.3s ease, max-width 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}
.navbar__search-wrap.open { width: 200px; max-width: 200px; opacity: 1; pointer-events: auto; }
.navbar__search-input {
  width: 200px; height: 34px;
  background: rgba(255,255,255,0.1);
  border: none; border-bottom: 2px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  color: #fff; padding: 0 10px;
  font-size: 0.88rem; font-family: var(--font-ui);
  outline: none; display: block;
  transition: border-color 0.25s;
}
.navbar__search-input:focus { border-bottom-color: var(--color-accent-gold); }
.navbar__search-input::placeholder { color: rgba(255,255,255,0.4); }

/* Search results dropdown */
.search-results {
  position: fixed; top: 64px; right: 16px;
  width: 340px; max-height: 380px; overflow-y: auto;
  background: rgba(13,34,70,.97);
  border-radius: 0 0 8px 8px;
  padding: 8px 16px 16px;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 1500;
}
[data-theme=dark] .search-results { background: rgba(20,20,28,.98); }
.search-results.has-results { display: block; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: padding-left .38s; text-decoration: none; }
.search-result-item:hover { padding-left: 6px; }
.search-result-item img { width: 36px; height: 50px; object-fit: cover; border-radius: 2px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.search-result-info .cat { font-size: .65rem; font-family: var(--font-ui); color: var(--color-accent-gold); text-transform: uppercase; letter-spacing: .1em; }
.search-result-info .title { font-family: var(--font-display); font-size: .95rem; color: #fff; }

@media (max-width: 768px) {
  .navbar__search-wrap.open { width: 150px; max-width: 150px; }
  .navbar__search-input { width: 150px; font-size: 0.82rem; }
  .search-results { top: 56px; right: 8px; left: 8px; width: auto; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--color-footer-bg); padding: 60px 0 0; transition: background-color .45s ease; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__col h4 { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--color-accent-gold); margin-bottom: 18px; }
.footer__col p { font-size: .88rem; color: var(--color-footer-text); line-height: 1.6; margin-bottom: 12px; }
.footer__logo { margin-bottom: 14px; }
.footer__logo img { height: 36px; }
.footer__logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: var(--color-accent-gold); transition: background .38s, color .38s; }
.footer__social a:hover { background: var(--color-accent-gold); color: #fff; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: .88rem; color: var(--color-footer-text); transition: color .38s, padding-left .38s; display: block; }
.footer__col ul li a:hover { color: var(--color-accent-gold); padding-left: 4px; }
.footer__contact-item { display: flex; align-items: center; gap: 8px; }
.footer__contact-item svg { flex-shrink: 0; opacity: 0.6; }
.footer__contact-note { font-size: .78rem; color: rgba(255,255,255,.4); font-style: italic; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.footer__contact-note svg { flex-shrink: 0; }
.footer__propovedi-card { margin-top: 16px; background: rgba(153,121,61,.15); border: 1px solid rgba(153,121,61,.4); border-radius: 4px; padding: 12px 14px; }
.footer__propovedi-card p { font-size: .78rem; margin-bottom: 8px; }
.footer__propovedi-card a { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; color: var(--color-accent-gold); text-transform: uppercase; letter-spacing: .06em; transition: color .38s; }
.footer__propovedi-card a:hover { color: #fff; }
.footer__bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__bottom p { font-family: var(--font-ui); font-size: .75rem; color: rgba(255,255,255,.3); }
.footer__bottom a { color: rgba(255,255,255,.4); transition: color .38s; }
.footer__bottom a:hover { color: var(--color-accent-gold); }
[data-theme=dark] .footer__grid { border-bottom-color: rgba(255,255,255,.06); }
[data-theme=dark] .footer__col h4 { color: var(--color-accent-gold); }

/* ── BACK TO TOP ─────────────────────────────────────────────  */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-accent-gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); display: none; opacity: 0; pointer-events: none;
  transition: opacity .5s, transform .5s; transform: translateY(10px); z-index: 500;
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-to-top:hover { background: var(--color-accent-gold-dark); transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ── ORDER MODAL ─────────────────────────────────────────────  */
#order-modal { border: none; padding: 0; border-radius: 6px; max-width: 520px; width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--color-primary-bg); box-shadow: 0 24px 80px rgba(0,0,0,.35); color: var(--color-text-dark); transition: background-color .45s ease; }
#order-modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.modal-inner { padding: 32px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.modal-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--color-text-dark); line-height: 1.2; }
.modal-close { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--color-text-muted); font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .38s, color .38s; cursor: pointer; border: 1px solid var(--color-border); }
.modal-close:hover { background: var(--color-secondary-bg); color: var(--color-text-dark); }
.modal-rule { height: 2px; background: var(--color-accent-gold); width: 36px; margin-bottom: 14px; border: none; }
.modal-note { font-family: var(--font-body); font-size: .88rem; color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.6; padding: 10px 14px; background: var(--color-secondary-bg); border-left: 3px solid var(--color-accent-gold); border-radius: 0 3px 3px 0; }
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; font-family: var(--font-ui); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 6px; }
.modal-field input, .modal-field textarea { width: 100%; padding: 10px 13px; font-family: var(--font-body); font-size: .95rem; color: var(--color-text-dark); background: var(--color-primary-bg); border: 1.5px solid var(--color-border); border-radius: 3px; outline: none; transition: border-color .38s, background .45s; resize: vertical; }
.modal-field input:focus, .modal-field textarea:focus { border-color: var(--color-accent-gold); }
.modal-field input::placeholder, .modal-field textarea::placeholder { color: var(--color-text-muted); opacity: .7; }
.modal-submit { margin-top: 8px; width: 100%; justify-content: center; }
.modal-success { text-align: center; padding: 24px 0 8px; }
.modal-success__icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal-success h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-text-dark); margin-bottom: 8px; }
.modal-success p { font-size: .9rem; color: var(--color-text-muted); }
[data-theme=dark] #order-modal { background: #1e1e1e; }
[data-theme=dark] .modal-field input, [data-theme=dark] .modal-field textarea { background: #252525; border-color: #333; color: var(--color-text-dark); }
[data-theme=dark] .modal-note { background: #252525; }

/* ── CART TOAST ─────────────────────────────────────────────── */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #1e1e1e; color: #fff;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  padding: 12px 20px; border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 10px;
  display: none; opacity: 0; pointer-events: none;
  transition: opacity .45s, transform .45s;
  z-index: 9999; white-space: nowrap;
}
.cart-toast svg { flex-shrink: 0; color: #f87171; }
.cart-toast.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
[data-theme=dark] .cart-toast { background: #2a2a2a; }

/* ── CART ICON ──────────────────────────────────────────────── */
.btn-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 3px;
  color: rgba(255,255,255,0.8); text-decoration: none;
  transition: background 0.38s, color 0.38s; flex-shrink: 0;
}
.btn-cart:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-cart svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--color-accent-gold); color: #fff;
  font-size: 9px; font-weight: 700; font-family: var(--font-ui);
  min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; pointer-events: none;
}
.btn.in-cart, .btn-order.in-cart {
  background: var(--color-accent-gold) !important; border-color: var(--color-accent-gold) !important; color: #fff !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .btn-hamburger { display: flex; }
  .footer { padding-top: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__col { text-align: center; }
  .footer__logo { text-align: center; }
  .footer__logo img { display: block; margin: 0 auto; }
  .footer__social { justify-content: center; }
  .footer__contact-item { justify-content: center; }
  .footer__propovedi-card { text-align: center; }
  .footer__col ul li a { padding-left: 0; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .modal-inner { padding: 24px 20px; }
  .modal-header h2 { font-size: 1.3rem; }
  .page-header { padding: 32px 0 24px; }
  .page-header__sub { font-size: .85rem; }
  .page-header__inner { gap: 12px; }
  .navbar__inner { height: 56px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-header { padding: 24px 0 20px; }
  .modal-inner { padding: 20px 16px; }
  .cart-toast { white-space: normal; max-width: calc(100vw - 32px); text-align: center; justify-content: center; }
  #back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}

/* ── BOOK SHARE BUTTONS ─────────────────────────────────────── */
.book-share { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.book-share__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.book-share__buttons { display: flex; gap: 10px; }
.book-share__btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-gold);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .38s, color .38s;
}
[data-theme=dark] .book-share__btn { background: rgba(255,255,255,.08); }
.book-share__btn:hover { background: var(--color-accent-gold); color: #fff; }
.book-share__btn--copied { background: #22c55e !important; color: #fff !important; }

/* ── BOOK COVER GALLERY THUMBNAILS ──────────────────────────── */
.book-cover__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.book-cover__thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: opacity .25s, border-color .25s;
}
.book-cover__thumb:hover { opacity: 1; }
.book-cover__thumb.active {
  border-color: var(--color-accent-gold);
  opacity: 1;
}
@media (max-width: 480px) {
  .book-cover__thumb { width: 42px; height: 56px; }
  .book-cover__thumbs { gap: 6px; margin-top: 8px; }
}

/* ── BOOK TAGS ───────────────────────────────────────────────── */
.book-tags {
  margin-top: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.book-tags__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 3px;
}
.book-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.book-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-gold);
  border: 1px solid var(--color-accent-gold);
  border-radius: 20px;
  padding: 3px 11px;
  opacity: 0.85;
}
