/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #f2f5f4;
  --ink: #181818;
  --muted: #747b80;
  --line: #e1e5e4;
  --brand: #c5223f;
  --brand-dark: #92172d;
  --teal: #0f6f67;
  --footer: #141819;
  --shadow: 0 18px 45px rgba(20, 24, 25, 0.11);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 38px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.announcement-bar a {
  color: #ffd890;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-announcement {
  background: var(--teal);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.logo {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
}

.logo span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  color: #4f5457;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 9px 13px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--brand);
}

.cart-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  padding: 8px 14px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
}

.hero-section {
  position: relative;
  min-height: min(680px, calc(100vh - 80px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.74), rgba(13, 13, 13, 0.22)),
    url("https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?auto=format&fit=crop&q=85&w=1800") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 24, 24, 0.2), rgba(24, 24, 24, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 68px 0 92px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.catalog-hero .eyebrow {
  color: #ffd890;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.98;
  margin-top: 10px;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary-action,
.btn-outline-light,
.btn-secondary,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  font-weight: 900;
  padding: 12px 18px;
  transition: 0.18s ease;
}

.btn-primary-action,
.checkout-button {
  background: var(--brand);
  color: #fff;
}

.btn-primary-action:hover,
.checkout-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.trust-grid div {
  min-height: 88px;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.catalog-hero {
  background:
    linear-gradient(90deg, rgba(24, 24, 24, 0.76), rgba(24, 24, 24, 0.3)),
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&q=85&w=1800") center 38%/cover;
  color: #fff;
  padding: clamp(72px, 12vw, 130px) 0;
}

.catalog-hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-top: 8px;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  margin-top: 14px;
}

.page-content {
  padding: clamp(42px, 7vw, 74px) 0;
}

.section-heading,
.admin-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.admin-title-row h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section-heading a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr) minmax(180px, 0.7fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
}

.search-field,
.sort-field,
.admin-search,
.form-group {
  display: grid;
  gap: 7px;
}

.search-field span,
.sort-field span,
.admin-search span,
.form-group label {
  color: #4f5457;
  font-size: 0.82rem;
  font-weight: 900;
}

.search-field input,
.sort-field select,
.admin-search input,
.form-group input,
.form-group select,
.form-group textarea,
.purchase-controls input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.search-field input:focus,
.sort-field select:focus,
.admin-search input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.purchase-controls input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 111, 103, 0.13);
}

.category-filter {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 46px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #4f5457;
  font-weight: 900;
  padding: 8px 13px;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: var(--brand);
  background: rgba(197, 34, 63, 0.08);
  color: var(--brand);
}

.loading,
.no-data {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.no-data {
  color: var(--brand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 24, 25, 0.04);
  transition: 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 34, 63, 0.3);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
  border: 0;
  width: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.28s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 9px;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.product-info h3 {
  min-height: 52px;
  font-size: 1.02rem;
  line-height: 1.28;
}

.product-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-price {
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 950;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.btn-secondary {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn-back {
  border: 0;
  background: transparent;
  color: #4f5457;
  font-weight: 900;
  margin-bottom: 28px;
}

.btn-back:hover {
  color: var(--brand);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(28px, 6vw, 64px);
  align-items: start;
}

.detail-image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail-image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-info-panel {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
}

.detail-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 111, 103, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.detail-title {
  margin-top: 15px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.detail-price {
  margin-top: 14px;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 950;
}

.detail-desc {
  color: #4f5457;
  margin-top: 18px;
}

.detail-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.detail-notes div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.detail-notes strong {
  display: block;
  font-size: 0.86rem;
}

.detail-notes span {
  color: var(--muted);
  font-size: 0.84rem;
}

.purchase-controls {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.purchase-controls input {
  text-align: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  justify-content: end;
  background: rgba(20, 24, 25, 0.48);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  display: flex;
  width: min(430px, 100%);
  height: 100%;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -20px 0 45px rgba(20, 24, 25, 0.2);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cart-item img {
  width: 76px;
  height: 92px;
  border-radius: 7px;
  object-fit: cover;
}

.cart-item h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.cart-item p {
  color: var(--brand);
  font-weight: 900;
  margin-top: 4px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.cart-controls button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-weight: 900;
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-button {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100% - 32px));
  transform: translate(-50%, 120px);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  opacity: 0;
  padding: 12px 18px;
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.main-footer {
  background: var(--footer);
  color: #fff;
  margin-top: 40px;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.footer-grid p,
.footer-grid span,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 8px;
}

.footer-grid a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  margin-top: 34px;
  padding-top: 22px;
}

/* Admin */
.admin-page {
  min-height: calc(100vh - 118px);
}

.admin-summary {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #4f5457;
  font-weight: 900;
  padding: 10px 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.admin-card,
.inventory-panel,
.checkout-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 24, 25, 0.04);
}

.admin-card,
.checkout-card {
  padding: 22px;
}

.card-heading,
.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.status-msg {
  display: none;
  border-radius: 8px;
  font-weight: 900;
  margin-top: 15px;
  padding: 12px;
}

.status-success {
  display: block;
  background: #e9f8ef;
  color: #09613b;
  border: 1px solid #bfe8cc;
}

.status-error {
  display: block;
  background: #fff0f2;
  color: #97172d;
  border: 1px solid #f3bdc6;
}

.inventory-panel {
  overflow: hidden;
}

.inventory-header {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.inventory-header p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.admin-search {
  width: min(260px, 100%);
}

.table-wrap {
  overflow-x: auto;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.inventory-table th,
.inventory-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
}

.inventory-table th {
  background: var(--soft);
  color: #4f5457;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.inventory-product {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.inventory-product img {
  width: 58px;
  height: 68px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft);
}

.inventory-product strong,
.inventory-product span {
  display: block;
}

.inventory-product span {
  color: var(--muted);
  font-size: 0.84rem;
}

.stock-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(15, 111, 103, 0.1);
  color: var(--teal);
  font-weight: 900;
  padding: 6px 9px;
}

.stock-pill.low {
  background: rgba(197, 34, 63, 0.1);
  color: var(--brand);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  padding: 7px 10px;
}

.table-actions .btn-delete {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.table-empty {
  color: var(--muted);
  padding: 30px !important;
  text-align: center !important;
}

/* Checkout */
.checkout-page {
  min-height: calc(100vh - 118px);
}

.checkout-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.checkout-title h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  margin-top: 8px;
}

.checkout-title p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 12px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.checkout-form textarea {
  min-height: 110px;
  resize: vertical;
}

.order-summary {
  position: sticky;
  top: 110px;
}

.checkout-items {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.checkout-item img {
  width: 64px;
  height: 76px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft);
}

.checkout-item strong,
.checkout-item span {
  display: block;
}

.checkout-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.checkout-note {
  border-radius: var(--radius);
  background: rgba(15, 111, 103, 0.1);
  color: var(--teal);
  font-weight: 800;
  margin: 16px 0;
  padding: 12px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-toolbar,
  .admin-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-info-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .announcement-bar {
    flex-direction: column;
    gap: 4px;
    min-height: auto;
    text-align: center;
  }

  .header-flex {
    flex-wrap: wrap;
    min-height: auto;
    padding: 16px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-section {
    min-height: 620px;
  }

  .hero-content {
    padding: 54px 0 70px;
  }

  .trust-grid,
  .footer-grid,
  .form-row,
  .detail-notes {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .admin-title-row,
  .inventory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-info {
    padding: 13px;
  }

  .product-info h3 {
    min-height: auto;
    font-size: 0.94rem;
  }

  .product-actions,
  .purchase-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .checkout-item {
    grid-template-columns: 56px 1fr;
  }

  .checkout-item b {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn-primary-action,
  .btn-outline-light,
  .btn-secondary,
  .checkout-button {
    width: 100%;
  }
}

/* Add this to the bottom of style.css */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 1px 0 rgba(20, 24, 25, 0.04);
  transition: 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 34, 63, 0.3);
  box-shadow: var(--shadow);
}

.category-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-content {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.category-card-content strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.category-card-content small {
  color: var(--muted);
  font-size: 0.95rem;
}

.category-count {
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 111, 103, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.category-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-products-head h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  margin-top: 8px;
}

.category-toolbar {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.35fr);
}

.admin-stack {
  display: grid;
  gap: 24px;
}

.table-section-title {
  padding: 18px 18px 10px;
  font-size: 1rem;
}

.table-thumb {
  width: 72px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft);
}

.muted-text {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .category-products-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }
}

/* Add to style.css */
.seo-content-section {
  max-width: 980px;
  padding: 34px 0 10px;
}

.seo-content-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.seo-content-section h3 {
  margin-top: 24px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.seo-content-section p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.02rem;
}