:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --surface-strong: #eef6fb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0b5871;
  --primary-dark: #084b60;
  --secondary: #374151;
  --accent: #dbeff9;
  --border: #e5e7eb;
  --success: #166534;
  --danger: #b91c1c;
  --shadow: 0 24px 60px rgba(9, 68, 94, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f5fafd 100%);
}

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

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

main {
  min-height: calc(100vh - 180px);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 999px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--secondary), #27566a);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.pill,
.section-head .text-link,
.product-info p,
.payment-note,
.cart-product span,
.footer-bottom,
.empty-state p,
.success-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
}

.cart-link span {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
}

.hero,
.section {
  padding: 88px 0;
}

.hero-grid,
.shop-layout,
.cart-layout,
.checkout-layout,
.contact-layout,
.product-page,
.footer-grid,
.admin-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.hero h1,
.page-header h1,
.success-card h1 {
  font-size: clamp(2.8rem, 5.2vw, 6rem);
  line-height: 0.95;
  margin: 12px 0 16px;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  font-size: 1.14rem;
}

.hero-card,
.product-card,
.category-card,
.banner-strip,
.order-summary,
.contact-card,
.contact-form,
.success-card,
.admin-card,
.admin-table-card,
.stat-card,
.filter-card,
.sidebar .search-box,
.admin-auth-card,
.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding-top: 42px;
}

.hero-copy {
  padding: 34px 0;
}

.hero-copy p {
  font-size: 1.16rem;
  margin-bottom: 24px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.hero-mini-stats div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(171, 146, 120, 0.18);
}

.hero-mini-stats strong,
.spotlight-content h3,
.section h2,
.page-header h1,
.admin-head h1,
.contact-card h3,
.order-summary h3,
.admin-card h2,
.admin-table-card h2 {
  font-weight: 700;
}

.hero-mini-stats span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-image-card,
.showcase-card,
.editorial-image,
.about-image-large,
.spotlight-image {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-main-image {
  min-height: 520px;
}

.hero-main-image img,
.showcase-card img,
.editorial-image img,
.about-image-large img,
.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-image::after,
.editorial-image::after,
.about-image-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 26, 0.08), rgba(16, 22, 26, 0.45));
}

.hero-overlay-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.promo-block {
  background: linear-gradient(135deg, var(--secondary), #1e4b59);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}

.promo-block p {
  color: rgba(255, 255, 255, 0.8);
}

.stats-grid,
.category-grid,
.product-grid,
.admin-stats {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.stats-grid.elevated {
  margin-top: 0;
  align-self: stretch;
}

.stats-grid div,
.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f1 0%, var(--surface-strong) 100%);
}

.stats-grid strong,
.stat-card strong {
  display: block;
  font-size: 1.5rem;
}

.hero-actions,
.price-row,
.summary-row,
.summary-item,
.section-head,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 36px;
}

.btn,
button,
input,
textarea,
select {
  font: inherit;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--secondary);
}

.btn-link,
.text-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.btn-block {
  width: 100%;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card {
  padding: 22px;
  min-height: 140px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 229, 208, 0.78));
}

.category-card strong {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.category-card span {
  display: block;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover,
.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(29, 25, 21, 0.14);
}

.product-card img,
.product-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.25rem;
  margin: 10px 0;
}

.price-row span {
  text-decoration: line-through;
}

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

.banner-strip {
  padding: 34px;
  background:
    linear-gradient(130deg, rgba(22, 49, 62, 0.95), rgba(39, 86, 106, 0.88)),
    linear-gradient(180deg, #1d3a49 0%, #102029 100%);
  color: #fff;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-list span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.banner-strip .feature-list span,
.cta-card .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.banner-strip .eyebrow,
.banner-strip p,
.banner-strip span {
  color: rgba(255, 255, 255, 0.82);
}

.page-header {
  padding-bottom: 20px;
}

.showcase-section {
  padding-top: 12px;
}

.showcase-grid,
.editorial-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.showcase-copy,
.about-copy {
  padding-right: 18px;
}

.showcase-stack {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.showcase-card {
  min-height: 260px;
}

.showcase-card.tall {
  min-height: 460px;
}

.editorial-panel {
  min-height: 100%;
}

.editorial-text {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 229, 208, 0.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.editorial-image,
.about-image-large {
  min-height: 470px;
}

.editorial-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.spotlight-grid,
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.spotlight-card,
.value-card,
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-image {
  height: 260px;
  border-radius: 0;
  box-shadow: none;
}

.spotlight-content {
  padding: 22px;
}

.value-card {
  padding: 28px;
}

.value-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.about-copy p,
.showcase-copy p,
.editorial-text p,
.value-card p {
  color: var(--muted);
  line-height: 1.75;
}

.cta-section {
  padding-top: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(234, 215, 189, 0.9), transparent 30%),
    linear-gradient(180deg, #fffaf5 0%, #f8ede0 100%);
}

.shop-layout {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.sidebar .search-box,
.filter-card,
.order-summary,
.contact-card,
.contact-form,
.admin-card,
.admin-table-card,
.payment-card {
  padding: 24px;
}

.search-box,
.filter-card,
.contact-form,
.checkout-form,
.admin-form,
.order-update-form {
  display: grid;
  gap: 14px;
}

.filter-card a {
  padding: 12px 14px;
  border-radius: 12px;
}

.filter-card a.active,
.filter-card a:hover {
  background: var(--surface-strong);
  color: var(--primary);
}

.product-page {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.product-media {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-summary {
  padding: 10px 0;
}

.product-summary .author {
  font-size: 1.1rem;
}

.price-row.large strong {
  font-size: 2rem;
}

.product-meta {
  padding-left: 18px;
  color: var(--muted);
}

.add-cart-inline {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.add-cart-inline input {
  width: 90px;
}

.cart-layout,
.checkout-layout,
.contact-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.cart-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td,
.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
}

.summary-row.total {
  font-size: 1.2rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-item {
  padding: 8px 0;
}

.form-grid,
.admin-form.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full,
.admin-form .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

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

.radio-card,
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.radio-card input,
.checkbox-inline input {
  width: auto;
}

.success-card,
.empty-state {
  text-align: center;
  padding: 42px 24px;
}

.flash {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
}

.flash-success {
  background: rgba(22, 101, 52, 0.12);
  color: var(--success);
}

.flash-error {
  background: rgba(185, 28, 28, 0.12);
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity: 0;
  animation: toast-in 0.28s ease forwards;
}

.toast::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.toast-success {
  background: rgba(220, 252, 231, 0.96);
  color: #14532d;
}

.toast-success::before {
  background: #16a34a;
}

.toast-error {
  background: rgba(254, 226, 226, 0.96);
  color: #991b1b;
}

.toast-error::before {
  background: #dc2626;
}

@keyframes toast-in {
  from {
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.site-footer {
  background: #143642;
  color: #fff;
  padding: 52px 0 20px;
}

.footer-grid {
  grid-template-columns: 1fr 0.7fr 0.8fr;
}

.site-footer a,
.site-footer p,
.site-footer h3,
.site-footer h4 {
  display: block;
  margin: 0 0 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  padding-top: 16px;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #22c55e;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.admin-auth-body,
.admin-body {
  background:
    radial-gradient(circle at top left, rgba(11, 88, 113, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 160, 110, 0.18), transparent 26%),
    linear-gradient(180deg, #eef4f7 0%, #f6f1ea 100%);
}

.admin-auth-card {
  width: min(460px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 28px 80px rgba(9, 68, 94, 0.14);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 20px;
  display: grid;
  align-content: start;
  gap: 16px;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #103244 0%, #0d2430 100%);
  box-shadow: 12px 0 40px rgba(9, 31, 40, 0.18);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
  flex: 0 0 auto;
}

.admin-brand-badge {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7d59c 0%, #e5a15c 100%);
  color: #1d2933;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.admin-sidebar-brand strong,
.admin-user-card strong {
  display: block;
  font-size: 1.04rem;
}

.admin-sidebar-brand span,
.admin-user-card p {
  display: block;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.admin-user-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-nav-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-link.active {
  background: rgba(247, 213, 156, 0.16);
  border-color: rgba(247, 213, 156, 0.28);
  color: #fff;
}

.admin-nav-danger {
  margin-top: 6px;
  color: #fecaca;
}

.admin-main {
  padding: 22px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.admin-topbar-copy h1 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.admin-view-site {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 88, 113, 0.18);
}

.admin-view-site:hover {
  background: var(--primary-dark);
}

.admin-nav-toggle {
  display: none;
}

.admin-overlay {
  display: none;
}

.admin-card,
.admin-table-card,
.admin-auth-card,
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(9, 68, 94, 0.08);
}

.admin-card,
.admin-table-card {
  padding: 24px;
}

.admin-card h2,
.admin-table-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.admin-head {
  margin-bottom: 18px;
}

.admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(240, 247, 250, 0.98) 100%);
}

.stat-card strong {
  font-size: 1.8rem;
}

.admin-grid {
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  align-items: start;
}

.admin-table-card {
  overflow: auto;
}

.admin-table {
  min-width: 640px;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  background: rgba(246, 248, 250, 0.98);
  backdrop-filter: blur(8px);
}

.action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-image-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: var(--surface-strong);
}

.admin-image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.admin-image-preview small {
  color: var(--muted);
}

body.admin-menu-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .hero-grid,
  .showcase-grid,
  .editorial-grid,
  .about-grid,
  .shop-layout,
  .product-page,
  .cart-layout,
  .checkout-layout,
  .contact-layout,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-stats,
  .hero-mosaic,
  .showcase-stack,
  .spotlight-grid,
  .about-values,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-card {
    display: grid;
  }

  .hero-main-image,
  .editorial-image,
  .about-image-large {
    min-height: 360px;
  }

  .site-logo {
    width: 58px;
    height: 58px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: min(86vw, 320px);
    height: auto;
    transform: translateX(-120%);
    transition: transform 0.28s ease;
    z-index: 60;
    border-radius: 26px;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .admin-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-topbar {
    padding: 14px 16px;
    margin-bottom: 16px;
  }

  .admin-topbar-copy h1 {
    font-size: 1.3rem;
  }

  .admin-nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(9, 68, 94, 0.08);
  }

  .admin-view-site {
    padding: 10px 14px;
  }

  .admin-form.two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 560px;
  }

  .admin-auth-card {
    width: min(460px, calc(100% - 24px));
    margin: 5vh auto;
    padding: 24px;
  }

  .nav-toggle {
    display: inline-flex;
    background: var(--surface-strong);
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .admin-topbar {
    flex-wrap: wrap;
  }

  .admin-view-site {
    width: 100%;
    text-align: center;
  }

  .admin-table {
    min-width: 520px;
  }
}

.section-tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-hero {
  background: var(--surface-strong);
  overflow: hidden;
  padding: 32px 0 24px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 520px;
}

.home-hero-copy {
  position: relative;
  padding: 30px 0;
}

.home-hero-copy h1 {
  max-width: 520px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 10px 0 16px;
}

.home-hero-copy p {
  max-width: 500px;
  color: #496472;
  margin-bottom: 24px;
}

.hero-books-stack {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 24px 8px 24px 8px;
  margin-top: 26px;
  box-shadow: var(--shadow);
}

.home-hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.home-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

.hero-circle {
  position: absolute;
  top: -80px;
  right: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0e5f7a 0%, #0b5169 70%, transparent 71%);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.service-card {
  padding: 20px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #cbe6f4;
  box-shadow: 0 12px 24px rgba(9, 68, 94, 0.06);
}

.service-card strong,
.catalog-body h3,
.news-body h3,
.author-card h3 {
  display: block;
  margin-bottom: 6px;
}

.service-card span,
.catalog-author,
.author-card p,
.news-body .eyebrow,
.testimonial-user span {
  color: #67808d;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(29, 25, 21, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 25, 21, 0.08);
}

.catalog-thumb {
  padding: 18px 18px 0;
}

.catalog-thumb img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f7fafc;
  border-radius: 10px;
}

.catalog-body {
  padding: 16px 18px 18px;
}

.catalog-body h3 {
  font-size: 1rem;
  min-height: 44px;
}

.catalog-rating {
  color: #ff8a00;
  letter-spacing: 2px;
  margin: 8px 0;
  font-size: 0.88rem;
}

.catalog-price {
  /* display: flex; */
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.catalog-price span {
  color: #88a0ad;
  text-decoration: line-through;
}

.btn-soft {
  background: #d9eef7;
  color: var(--primary);
}

.btn-soft:hover {
  background: #cbeaf6;
}

.categories-band,
.ratings-band,
.news-band {
  background: #f0f7fb;
}

.center-head {
  justify-content: center;
  text-align: center;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cat-showcase-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  height: 280px;
  box-shadow: 0 14px 34px rgba(9, 68, 94, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(9, 68, 94, 0.15);
}

.cat-showcase-img {
  width: 100%;
  height: 100%;
}

.cat-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-showcase-card:hover .cat-showcase-img img {
  transform: scale(1.08);
}

.cat-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 88, 113, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.cat-showcase-overlay strong {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.cat-showcase-overlay span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.picks-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.pick-hero-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(9, 68, 94, 0.05);
}

.pick-hero-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(9, 68, 94, 0.12);
}

.pick-hero-body h2 {
  font-size: 1.6rem;
  margin: 8px 0;
}

.pick-hero-author {
  color: var(--muted);
  margin-bottom: 12px;
}

.pick-hero-desc {
  color: #4f6773;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-hero-body .catalog-price {
  margin-bottom: 18px;
}

.picks-list {
  display: grid;
  gap: 18px;
}

.picks-list .mini-book-card {
  grid-template-columns: 80px 1fr;
}

.discount-banner {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 18px 22px;
}

.discount-books img,
.discount-person img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.discount-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 8px 0 16px;
}

.top-rated-shell {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.top-rated-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-book-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(9, 68, 94, 0.08);
  border-color: #cbe6f4;
}

.mini-book-thumb img {
  width: 80px;
  height: 96px;
  object-fit: contain;
  background: #f7fafc;
  border-radius: 8px;
}

.mini-book-body h3 {
  font-size: 0.96rem;
  margin: 0 0 6px;
}

.mini-book-body span {
  color: #6f8792;
  font-size: 0.92rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 14px 34px rgba(29, 25, 21, 0.04);
}

.testimonial-card p {
  margin-top: 0;
  color: #4f6773;
  line-height: 1.8;
}

.dark-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfe 100%);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.testimonial-user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.author-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.author-card,
.news-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(29, 25, 21, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.author-card:hover,
.news-card:hover {
  transform: translateY(-6px);
}

.author-avatar {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 50%;
  border: 2px dashed #e4b956;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.news-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.news-body {
  padding-top: 12px;
  text-align: left;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.footer-contact-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-contact-item strong,
.footer-contact-item span {
  display: block;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 6px;
}

@media (max-width: 920px) {
  .home-hero-grid,
  .catalog-grid,
  .catalog-grid.four-col,
  .category-showcase,
  .picks-layout,
  .discount-banner,
  .top-rated-grid,
  .testimonial-grid,
  .author-grid,
  .news-grid,
  .service-strip,
  .footer-contact-row {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: auto;
  }

  .home-hero-visual img {
    height: 360px;
  }

  .hero-circle {
    width: 280px;
    height: 280px;
    top: -20px;
  }

  .mini-book-card {
    /* On mobile, stack the image, body, and form vertically */
    grid-template-columns: 1fr; /* Single column for all content */
    grid-template-rows: auto auto auto; /* Three rows for thumb, body, form */
    gap: 12px; /* Adjust gap between stacked elements */
    padding: 16px; /* Keep padding consistent or adjust as needed */
    align-items: center; /* Center items horizontally within the card */
    text-align: center; /* Center text within the card */
  }

  .mini-book-card .mini-book-thumb {
    grid-column: 1 / -1; /* Image spans full width */
    grid-row: 1 / 2; /* First row */
    margin: 0 auto; /* Center the image */
  }

  .mini-book-card .mini-book-body {
    grid-column: 1 / -1; /* Body spans full width */
    grid-row: 2 / 3; /* Second row */
  }

  .mini-book-card .mini-book-body .catalog-rating {
    display: flex; /* Ensure flex for centering */
    justify-content: center; /* Center the stars */
  }
}

@media (max-width: 768px) { /* Adjust breakpoint as needed for pick-hero-card */
  .pick-hero-card {
    grid-template-columns: 1fr; /* Stack image and body vertically */
    gap: 20px; /* Adjust gap for stacked layout */
    text-align: center; /* Center text content */
    padding: 20px; /* Adjust padding for mobile */
  }

  .pick-hero-thumb img {
    height: 280px; /* Adjust image height for mobile */
    margin: 0 auto; /* Center the image */
  }

  .pick-hero-body h2 {
    font-size: 1.4rem; /* Adjust heading size */
  }

  .pick-hero-body .catalog-price {
    justify-content: center; /* Center price row */
  }
}

.inner-hero {
  background: var(--surface-strong);
  padding: 34px 0;
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.inner-hero-grid h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  margin: 10px 0 16px;
}

.inner-hero-grid p {
  max-width: 560px;
  color: #4a6572;
}

.inner-hero-art img,
.story-image-card img,
.mission-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(9, 68, 94, 0.08);
}

.shop-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
  align-items: start;
}

.shop-sidebar-card {
  display: grid;
  gap: 18px;
}

.shop-filter-card,
.shop-sidebar-card .search-box,
.contact-form-modern,
.story-card,
.contact-info-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e1edf4;
  box-shadow: 0 14px 38px rgba(9, 68, 94, 0.06);
}

.shop-empty {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e1edf4;
}

.catalog-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid,
.mission-banner,
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.story-card,
.mission-copy {
  padding: 28px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission-banner {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(9, 68, 94, 0.08);
}

.contact-info-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-info-card {
  padding: 24px;
}

.contact-info-card strong,
.contact-info-card span {
  display: block;
}

.contact-info-card span {
  color: #567280;
  margin-top: 8px;
}

.contact-form-modern {
  padding: 28px;
}

@media (max-width: 920px) {
  .inner-hero-grid,
  .shop-shell,
  .catalog-grid.three-col,
  .story-grid,
  .mission-banner,
  .contact-shell,
  .about-values-grid,
  .contact-info-panel {
    grid-template-columns: 1fr;
  }
}

/* Modern Cart Styles */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}
.cart-table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.cart-table th {
  background: var(--surface-strong);
  text-align: left;
  padding: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 1.8rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cart-table tbody tr:last-child td {
  border-bottom: none;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.cart-product img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 68, 94, 0.1);
}
.cart-product strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.cart-product span {
  color: var(--muted);
  font-size: 0.95rem;
}
.qty-input {
  width: 80px;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: all 0.3s ease;
}
.qty-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 88, 113, 0.12);
  transform: translateY(-1px);
}
.order-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.order-summary h3 {
  margin-top: 0;
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
  color: var(--text);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.summary-row.total {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.line-total {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
