:root {
  --bg: #080b14;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #8b5cf6;
  --brand-2: #06b6d4;
  --ok: #22c55e;
  --error: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-size: 18px;
  font-family: Inter, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

.justified {
  justify-content: justify;
  text-align: justify;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/img/bkgrnd.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px);
  transform: scale(1.05);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(8, 11, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.9rem;
  min-height: 72px;
}

.nav-quote {
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: 0.6rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.basket-link span {
  background: var(--brand);
  color: white;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  margin-left: 0.25rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--brand-2);
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0.25rem 0 1rem;
}

.hero-copy {
  max-width: 58ch;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(145deg, #22154a, #10243d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
}

.section-heading h2 {
  font-size: 1.8rem;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.book-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  overflow: hidden;
}

.book-cover {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  min-height: 170px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.book-cover-link {
  text-decoration: none;
  color: inherit;
}

.book-cover-image {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.cover-meta {
  text-align: center;
}

.cover-edition {
  font-size: 0.8rem;
  opacity: 0.85;
}

.book-content {
  padding: 1rem;
}

.book-subtitle {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: -0.5rem;
}

.endorsement {
  font-style: italic;
  color: #c4b5fd;
}

.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.price {
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #7c3aed);
}

.btn-secondary {
  background: linear-gradient(120deg, #0ea5e9, #2563eb);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.btn-mini {
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
}

.quote-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.preview-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

blockquote,
.preview-list article {
  margin: 0;
  padding: 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel);
}

.checkout-panel {
  margin-block: 0;
  margin-inline: auto;
  padding: 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel);
}

.book-note {
  margin-top: 1rem;
  color: var(--muted);
}

.book-detail-main {
  padding: 3rem 0;
}

.book-detail-card {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
}

.book-detail-cover {
  height: 830px;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #7c3aed, #0891b2);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.book-detail-cover-link {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.book-detail-cover-link:hover {
  filter: brightness(1.06);
}

.book-detail-cover-link::after {
  content: "Pogledajte sadržaj";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 11, 20, 0.55);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.book-detail-cover-link:hover::after,
.book-detail-cover-link:focus-visible::after {
  opacity: 1;
}

.book-detail-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

.book-detail-copy h1 {
  margin-top: 0;
}

.book-detail-copy .book-subtitle {
  margin-top: -0.25rem;
}

.book-detail-copy p {
  text-align: justify;
}

.bullet-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.detail-preview {
  margin-top: 1rem;
  background: var(--panel-soft);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.detail-meta p {
  margin: 0;
}

.detail-meta .price {
  margin-bottom: 1.8rem;
  margin-top: 1.5rem;
}

.detail-section-full {
  margin-top: 1rem;
}

cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.hidden {
  display: none;
}

.modal-content {
  width: min(700px, 92vw);
  background: var(--panel);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-wide {
  width: min(960px, 95vw);
}

.modal-close {
  float: right;
  border: 0;
  font-size: 1.6rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.pdf-canvas {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  background: #0b1020;
  display: block;
  margin-inline: auto;
}

.pdf-controls {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.author-bio {
  color: var(--muted);
  justify-content: justify;
  text-align: justify;
}

.author-photo {
  float: left;
  width: 150px;
  max-width: 40%;
  height: auto;
  margin: 0 0.9rem 0.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
}

.news-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.news-link {
  color: var(--brand);
  text-decoration: none;
}

.news-list {
  display: grid;
  gap: 0.8rem;
}

.news-list-panel,
.news-article-panel {
  max-width: 860px;
  margin: 0 auto;
}

.news-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: var(--panel-soft);
  overflow: hidden;
}

.news-card-button {
  width: 100%;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1rem;
  display: block;
}

.news-card-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.news-pagination {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-page-status {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-page-nav.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.news-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.news-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.news-page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.news-page-link.is-active {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}

.news-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.news-body {
  color: var(--text);
}

.news-body p {
  color: var(--muted);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-soft);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.checkout-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-controls .qty {
  min-width: 2.1rem;
  text-align: center;
  font-weight: 700;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.checkout-form {
  display: grid;
  gap: 0.7rem;
}

.checkout-form label {
  display: grid;
  gap: 0.25rem;
}

.checkout-form input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: #0f172a;
  color: var(--text);
  padding: 0.6rem 0.65rem;
}

.checkout-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: #0f172a;
  color: var(--text);
  padding: 0.6rem 0.65rem;
  font: inherit;
  resize: vertical;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
}

.helper-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  min-height: 1.4rem;
  color: var(--muted);
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--ok);
}

.empty-state {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(6px);
}

.footer-wrap {
  min-height: 72px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shipping-panel h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 1.12rem;
}

.shipping-panel ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.15rem;
}

.shipping-panel li + li {
  margin-top: 0.35rem;
}

.shipping-panel table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.65rem 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.shipping-panel thead th {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.shipping-panel th,
.shipping-panel td {
  padding: 0.56rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.shipping-panel th:last-child,
.shipping-panel td:last-child {
  border-right: 0;
}

.shipping-panel tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shipping-panel th:first-child,
.shipping-panel td:first-child {
  text-align: left;
}

.shipping-panel th:not(:first-child),
.shipping-panel td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}

.shipping-panel table {
  font-size: 0.92rem;
}

.shipping-panel th,
.shipping-panel td {
  padding: 0.48rem 0.6rem;
}

.shipping-note {
  padding: 0.72rem 0.78rem;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}
.shipping-worldwide {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.shipping-note {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--brand);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.shipping-note strong:first-child {
  color: var(--text);
}

@media (max-width: 860px) {
  .hero-grid,
  .checkout-layout,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(100% - 0.35rem);
    width: min(260px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 24, 39, 0.96);
    z-index: 30;
  }

  .nav-links.is-open {
    display: flex;
  }

  .book-detail-card {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    height: 320px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.35rem;
  }

}
