:root {
  --wood-900: #3b2517;
  --wood-700: #6b4326;
  --wood-500: #a66a38;
  --wood-300: #d6aa72;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --ink: #161413;
  --muted: #6f6861;
  --sage: #6c7c59;
  --steel: #425160;
  --danger: #a44235;
  --line: rgba(56, 35, 20, 0.14);
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 50px rgba(44, 28, 16, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 170, 114, 0.24), transparent 32rem),
    linear-gradient(145deg, #fffdf9 0%, #f5efe5 48%, #eef2ee 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto -86px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 34px rgba(33, 21, 13, 0.1);
  backdrop-filter: blur(28px) saturate(170%);
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.cart-trigger,
.primary-button,
.secondary-button,
.cart-button,
.danger-button,
.text-link {
  min-height: 42px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(22, 20, 19, 0.76);
}

.main-nav a.is-active,
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: var(--paper);
  background: var(--ink);
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--wood-300);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 132px max(24px, calc((100vw - var(--max)) / 2)) 68px;
  isolation: isolate;
}

.hero picture,
.hero picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero picture img {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.92) 0%, rgba(251, 247, 239, 0.76) 38%, rgba(255, 255, 255, 0.18) 76%),
    linear-gradient(180deg, rgba(251, 247, 239, 0.12), rgba(251, 247, 239, 0.2) 48%, rgba(251, 247, 239, 0.86));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(580px, 100%);
  color: var(--ink);
}

.catalog-hero h1,
.empty-page h1 {
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 0.95;
  font-weight: 700;
}

.hero-title {
  display: grid;
  gap: 2px;
  margin: 0;
  max-width: 610px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 4.9vw, 5.35rem);
  font-weight: 900;
  line-height: 0.94;
}

.hero-title span {
  display: block;
}

.hero-script {
  margin: 16px 0 14px;
  color: #a66f2d;
  font-family: "Segoe Print", "Bradley Hand", "Brush Script MT", "Comic Sans MS", cursive;
  font-size: clamp(2.55rem, 4.15vw, 4.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 8px 24px rgba(92, 49, 16, 0.16);
}

.hero-subtitle {
  max-width: 610px;
  margin: 0 0 30px;
  color: rgba(22, 20, 19, 0.84);
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.48;
}

.hero-actions,
.detail-actions,
.form-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-glass {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 62px;
  min-width: 196px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(180%);
}

.hero-glass span,
.eyebrow {
  display: block;
  color: var(--sage);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-glass span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-glass strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

.section,
.catalog-hero,
.product-detail,
.craft-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding: 76px max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 242, 238, 0.76));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head-centered {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.section-head h2,
.craft-band h2,
.detail-copy h1,
.admin-topbar h1 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1.05;
}

.product-grid {
  display: grid;
  gap: 18px;
}

.category-carousel {
  position: relative;
}

.category-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}

.category-track::-webkit-scrollbar {
  display: none;
}

.category-card,
.product-card,
.glass-card,
.glass-bar,
.craft-band,
.cart-panel,
.admin-sidebar,
.admin-summary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(175%);
}

.category-card {
  overflow: hidden;
  min-height: 238px;
  scroll-snap-align: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(44, 28, 16, 0.18);
}

.category-card img {
  height: 178px;
  width: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: #fff;
}

.category-card span,
.category-card p {
  display: block;
  margin: 0 14px;
}

.category-card span {
  margin-top: 14px;
  font-weight: 900;
}

.category-card p {
  margin-top: 4px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.carousel-button {
  position: absolute;
  top: 76px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(160%);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.carousel-button.prev {
  left: -12px;
}

.carousel-button.next {
  right: -12px;
}

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

.product-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.product-image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  padding: 14px;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-info span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-info h3 {
  min-height: 48px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.product-info p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.product-meta small {
  color: var(--steel);
}

.product-meta strong {
  color: var(--wood-700);
  font-size: 1.08rem;
}

.primary-button,
.secondary-button,
.cart-button,
.danger-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0 16px;
  font-weight: 850;
}

.primary-button,
.cart-button {
  color: #fff;
  background: linear-gradient(135deg, var(--wood-900), var(--wood-500));
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.cart-button {
  width: 100%;
}

.text-link {
  min-width: auto;
  padding: 0;
  color: var(--wood-700);
  background: transparent;
}

.full {
  width: 100%;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 28px;
  padding: 150px 0 42px;
}

.catalog-hero h1 {
  color: var(--wood-900);
  font-size: 3.4rem;
}

.catalog-hero p {
  color: var(--muted);
}

.catalog-filter,
.admin-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--wood-900);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(108, 124, 89, 0.62);
  box-shadow: 0 0 0 4px rgba(108, 124, 89, 0.12);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  padding: 142px 0 68px;
}

.detail-media {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  padding: 12px;
}

.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

.detail-copy {
  align-self: center;
}

.detail-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.variant-field {
  margin-top: 22px;
  max-width: 360px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.specs div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.specs dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.specs dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.craft-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  padding: 30px;
  margin-bottom: 74px;
}

.craft-band p {
  margin: 0;
  color: var(--muted);
}

.footer-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 0;
  border: 1px solid rgba(226, 218, 204, 0.9);
  border-radius: 6px;
  background: #efe8dc;
  overflow: hidden;
}

.footer-benefits div {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border-right: 1px solid rgba(202, 190, 170, 0.75);
}

.footer-benefits div:last-child {
  border-right: 0;
}

.footer-benefits svg,
.footer-contact svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-benefits strong {
  font-size: 0.95rem;
}

.site-footer {
  position: relative;
  margin-top: 0;
  background: #fffaf2;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 1.25fr 1fr;
  gap: 36px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 46px;
}

.footer-brand img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

.footer-brand p {
  margin: 18px 0;
  color: #4f473f;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: #2d1b0d;
  font-size: 0.95rem;
  font-weight: 900;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
  color: #2a211a;
}

.footer-column h2 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: #453b33;
  font-size: 0.9rem;
}

.footer-contact {
  font-style: normal;
}

.footer-contact > a,
.footer-contact > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-payment strong {
  color: #2a211a;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 250, 242, 0.9);
  background: #2b1609;
  font-size: 0.82rem;
}

.footer-bottom nav {
  display: flex;
  gap: 28px;
}

.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 26px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  background: #29d366;
  box-shadow: 0 14px 36px rgba(20, 119, 54, 0.28);
  font-size: 1.8rem;
  font-weight: 900;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgba(22, 20, 19, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(420px, 100%);
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border-radius: 0;
  background: rgba(255, 253, 248, 0.82);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 1.4rem;
}

.cart-items {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  margin: 22px -6px 12px 0;
  overflow-y: auto;
  padding-right: 6px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.cart-item h3 {
  margin: 0;
  font-size: 0.94rem;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.cart-controls span {
  min-width: 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.quantity-button,
.cart-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.quantity-button {
  color: var(--ink);
  background: rgba(177, 120, 58, 0.18);
}

.cart-remove {
  color: #fff;
  background: var(--danger);
}

.cart-empty {
  flex: 1 1 auto;
  margin: 18px 0;
  color: var(--muted);
}

.cart-summary {
  flex: 0 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.cart-payment {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(177, 120, 58, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.cart-payment strong {
  color: var(--ink);
}

.empty-state,
.empty-page {
  grid-column: 1 / -1;
  padding: 54px 24px;
  text-align: center;
}

.empty-page {
  padding-top: 180px;
  min-height: 70vh;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 80px;
}

.legal-content {
  padding: clamp(24px, 4vw, 48px);
  color: var(--ink);
}

.legal-content h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 1.28rem;
}

.legal-content p,
.legal-content li {
  color: rgba(22, 20, 19, 0.82);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-content ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(108, 124, 89, 0.2), transparent 28rem),
    linear-gradient(135deg, #fdf8ef, #edf1ee);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
}

.login-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.login-card h1 {
  margin: 0;
}

.alert {
  padding: 12px 14px;
  border: 1px solid rgba(164, 66, 53, 0.25);
  border-radius: var(--radius);
  color: var(--danger);
  background: rgba(255, 242, 238, 0.72);
}

.admin-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  gap: 18px;
  padding: 18px;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px;
}

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

.admin-sidebar nav a {
  padding: 12px;
  border-radius: var(--radius);
  color: var(--muted);
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.admin-sidebar form {
  margin-top: auto;
}

.admin-content {
  min-width: 0;
  padding: 16px 0 40px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-user,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.status.on {
  color: var(--sage);
}

.status.off {
  color: var(--danger);
}

.admin-actions {
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-actions form {
  display: flex;
  gap: 10px;
  flex: 1;
}

.admin-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.admin-summary strong {
  font-size: 1.6rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.table-product img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.table-product small {
  display: block;
  color: var(--muted);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.product-form {
  display: grid;
  gap: 18px;
  padding: 20px;
}

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

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.admin-preview {
  width: min(260px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media (max-width: 1020px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-track {
    grid-auto-columns: calc((100% - 36px) / 3);
  }

  .footer-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-benefits div:nth-child(2) {
    border-right: 0;
  }

  .footer-benefits div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(202, 190, 170, 0.75);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-hero,
  .product-detail,
  .craft-band {
    grid-template-columns: 1fr;
  }

  .hero-glass {
    display: none;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand cart"
      "nav nav";
    justify-content: space-between;
    top: 8px;
    margin-top: 8px;
    gap: 10px 14px;
    padding: 10px;
  }

  .brand {
    grid-area: brand;
  }

  .brand img {
    width: 78px;
    height: 78px;
  }

  .main-nav {
    grid-area: nav;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.46);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .cart-trigger {
    grid-area: cart;
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    min-height: 700px;
    padding-top: 170px;
  }

  .hero-title,
  .catalog-hero h1 {
    font-size: 3rem;
  }

  .hero-script {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head-centered {
    align-items: center;
    justify-items: center;
  }

  .footer-main {
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

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

  .category-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .carousel-button {
    display: none;
  }

  .catalog-filter,
  .admin-actions,
  .admin-actions form {
    align-items: stretch;
    flex-direction: column;
  }

  .specs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 560px) {
  .category-track {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 540px) {
  .hero-title,
  .catalog-hero h1 {
    font-size: 2.45rem;
  }

  .brand img {
    width: 82px;
    height: 82px;
  }

  .cart-trigger {
    font-size: 0.9rem;
  }

  .section-head h2,
  .craft-band h2,
  .detail-copy h1,
  .admin-topbar h1 {
    font-size: 1.85rem;
  }

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

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-benefits,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-benefits div,
  .footer-benefits div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(202, 190, 170, 0.75);
  }

  .footer-benefits div:last-child {
    border-bottom: 0;
  }

  .footer-bottom nav {
    flex-direction: column;
    gap: 8px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }

  .cart-item {
    grid-template-columns: 58px 1fr auto;
  }

  .cart-item img {
    width: 58px;
    height: 58px;
  }
}
