/* Sweetly & Salty - estilos base */
:root {
  --bg: #fffdf9;
  --text: #2a2a2a;
  --muted: #6e6e6e;
  --primary: #d16d79; /* rosa pastel */
  --secondary: #f2b880; /* durazno */
  --accent: #f8b7c9; /* rosa acento */
  --border: #eadfd6;
  --success: #8fd1a6; /* verde pastel */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Quicksand', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg); background-image: url('../img/pattern-sweetly-salty.svg'), linear-gradient(180deg, #fff6f9 0%, #fff1f6 100%); background-repeat: repeat, no-repeat; background-size: 120px 120px, cover; color: var(--text); display: flex; min-height: 100vh; flex-direction: column; }

/* Tipografías de titulares y marca */
h1, h2, h3 { font-family: 'Playfair Display', serif; letter-spacing: 0.2px; }

.wrap { max-width: 1728px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); background: #fffaf4; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(90,62,54,0.05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
.brand { font-family: 'Sacramento', cursive; font-weight: 700; color: var(--primary); text-decoration: none; font-size: 31px; }
/* Navegación dentro del header */
.site-header nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 9999px; }
.site-header nav a:hover { background: #ffe9f1; }
.site-header nav .cta { background: var(--primary); color: #fff; padding: 10px 16px; font-weight: 700; }
.site-header nav .cta:hover { opacity: 0.9; }
/* CTA verde para admin */
.site-header nav .admin-cta { background: #1b5e20; color: #fff; }
.site-header nav .cta.success { background: var(--success); color: #fff; }
.site-header nav .cta.success.active { background: var(--success); }
.site-header nav a.active { background: var(--accent); color: #fff; }
.account { display: flex; gap: 8px; align-items: center; }

/* Toggle del menú móvil */
.nav-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--accent); padding: 8px 12px; border-radius: 9999px; background: #fff; color: var(--text); font-weight: 600; cursor: pointer; }
.nav-toggle .icon { display: inline-flex; width: 18px; height: 18px; line-height: 1; }
.nav-toggle .icon svg { width: 18px; height: 18px; fill: currentColor; }

.btn-secondary { border: 1px solid var(--accent); padding: 8px 14px; border-radius: 9999px; text-decoration: none; color: var(--accent); background: transparent; font-weight: 600; }
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* Link de volver, elegante y coherente con el sitio */
.back-link { display: inline-flex; align-items: center; gap: 6px; transition: box-shadow 150ms ease; }
.btn-secondary .icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; line-height: 1; margin-right: 8px; }
.btn-secondary .icon svg { width: 16px; height: 16px; fill: currentColor; }
/* Hover más sutil para el back-link */
  .back-link:hover { background: #ffe9f1; color: var(--accent); border-color: #f0aebe; box-shadow: 0 2px 8px rgba(248, 183, 201, 0.25); }

main { flex: 1 0 auto; }
.site-header .wrap, .site-footer .wrap { max-width: 2074px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: #f5e9df; box-shadow: 0 -2px 10px rgba(90,62,54,0.06); }
.site-footer .footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 0; }
.site-footer h4 { margin: 0 0 8px; }
.site-footer p { margin: 6px 0; color: var(--muted); }
.site-footer a { color: var(--text); text-decoration: none; padding: 4px 8px; border-radius: 9999px; }
.site-footer a:hover { background: #ffe9f1; }
.copyright { border-top: 1px dashed var(--border); padding: 8px 0 14px; color: var(--muted); font-size: 14px; }

/* Hero inicio */
.hero { background: radial-gradient(circle at 20% 20%, rgba(248, 183, 201, 0.35) 0%, rgba(248, 183, 201, 0) 60%), radial-gradient(circle at 80% 30%, rgba(242, 184, 128, 0.25) 0%, rgba(242, 184, 128, 0) 55%), linear-gradient(180deg, #fff 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; padding: 32px 20px; align-items: center; }
.hero h1 { font-size: 40px; margin: 0 0 10px; color: var(--primary); }
.hero p { font-size: 18px; color: var(--muted); }
.search-bar { display: flex; gap: 8px; margin-top: 12px; }
.search-bar input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.search-bar button { padding: 12px 14px; border: none; border-radius: 9999px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); font-weight: 600; }
.search-bar button:hover { opacity: 0.95; }

/* Tarjetas de productos */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 16px rgba(90,62,54,0.06); }
.card .media { aspect-ratio: 1/1; background: #fff2f2; display: grid; place-items: center; color: var(--muted); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px; }
/* Clamp de título para altura uniforme */
.card .title { font-weight: 700; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* Clamp de descripción para altura uniforme */
.card .desc { color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.card .price { color: var(--primary); font-weight: 600; }
.card .price.price-stack { font-size: 14px; line-height: 1.25; display: flex; flex-direction: column; gap: 2px; }
.price-stack .line { display: block; }
.card .price.price-small { font-size: 14px; line-height: 1.25; }
/* Badge junto al precio */
.price .badge { margin-bottom: 0; margin-left: 8px; }
.price .old { text-decoration: line-through; color: var(--muted); margin-right: 6px; }
.badge-off { background: var(--secondary); font-weight: 700; }
.card .btn { text-decoration: none; color: #fff; background: var(--accent); padding: 8px 12px; border-radius: 9999px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.card .btn:hover { opacity: 0.95; }

/* Contenido */
.section { padding: 30px 0; }
.section h2 { margin: 0 0 12px; }
.lead { color: var(--muted); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 8px 0 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li a { color: var(--text); text-decoration: none; }
.breadcrumbs li a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: "›"; color: var(--border); margin: 0 6px; }
@media (prefers-color-scheme: dark) {
  .breadcrumbs { color: #cfcfcf; }
  .breadcrumbs li a { color: #cfcfcf; }
  .breadcrumbs li + li::before { color: #8a8a8a; }
}

/* Blog */
/* Tags (chips) */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tag-chip { display: inline-flex; align-items: center; padding: 6px 10px; gap: 6px; border: 1px solid var(--border); border-radius: 9999px; background: #fff; color: var(--text); text-decoration: none; font-size: 13px; line-height: 1; box-shadow: 0 1px 3px rgba(90,62,54,0.05); transition: box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease; }
.tag-chip:hover { background: #fff7fb; border-color: #f0aebe; color: var(--accent); box-shadow: 0 2px 8px rgba(248,183,201,0.25); }
.tag-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
 .filter-info { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; color: var(--muted); }
 /* Compacto para relacionados */
 .blog-grid.related-compact .tags-row { gap: 6px; margin: 4px 0 0; }
 .blog-grid.related-compact .tag-chip { padding: 4px 8px; font-size: 12px; }
 
 .post { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 18px; box-shadow: 0 4px 14px rgba(90,62,54,0.05); }
.post h3 { margin: 0 0 6px; }
.post .meta { color: var(--muted); font-size: 14px; }
.comment { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; font-size: 14px; }
.comment .date { font-size: 13px; color: var(--muted); }

/* Blog list layout (búsqueda izquierda, contenido derecha) */
.blog-page .page-grid { display: grid; grid-template-columns: 0.9fr 2.1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .blog-page .page-grid { grid-template-columns: 1fr; } }
.blog-page .col-left { align-self: start; }
.search-panel { display: grid; gap: 8px; margin-bottom: 12px; }

/* Blog post detail layout */
.post-detail .detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.post-detail .col-left .media { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.post-detail .col-left .media img { width: 100%; height: 100%; object-fit: cover; }
.comments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .post-detail .detail-grid { grid-template-columns: 1fr; } .comments-grid { grid-template-columns: 1fr; } }

/* Blog: grid 2 columnas */
.grid.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.blog-grid--search { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.post-toplinks { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.related-outside { display: flex; justify-content: flex-end; margin-top: 16px; }
.related-outside .related-section { width: 100%; max-width: 480px; }
.grid.blog-grid.related-compact { grid-template-columns: 1fr; gap: 6px; }
.blog-grid.related-compact .post { padding: 8px; box-shadow: none; }
.blog-grid.related-compact .post .media { height: 84px; min-height: 84px; aspect-ratio: auto; margin-bottom: 6px; }
.blog-grid.related-compact h4 { font-size: 14px; margin: 0 0 2px; line-height: 1.25; }
.blog-grid.related-compact .meta { font-size: 11px; color: var(--muted); line-height: 1.2; }
.related-section { margin-top: 10px; }
.related-section > h3 { font-size: 15px; margin: 0 0 6px; color: var(--muted); }
@media (max-width: 900px) { .grid.blog-grid { grid-template-columns: 1fr; } }
.blog-grid .post { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: 0 2px 10px rgba(90,62,54,0.06); }
.blog-grid .post .media { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; aspect-ratio: 16 / 10; min-height: 160px; }
@supports not (aspect-ratio: 1) { .blog-grid .post .media { height: 160px; } }
.blog-grid .post .media img { width: 60%; height: auto; object-fit: contain; }

/* Formulario */
form .field { margin-bottom: 12px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form input, form textarea, form select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.admin-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.admin-links .button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-align: center; transition: transform 150ms ease, box-shadow 150ms ease; }
.admin-links .button .icon { display: inline-flex; width: 18px; height: 18px; line-height: 1; }
  .admin-links .button .icon svg { width: 18px; height: 18px; fill: currentColor; }
 .button .icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; line-height: 1; margin-right: 8px; }
 .button .icon svg { width: 18px; height: 18px; fill: currentColor; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 9999px; border: none; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); font-weight: 700; }
.button.secondary { background: var(--secondary); }
.button.success { background: var(--success); padding: 10px 16px; }
.admin-links .button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.admin-links .button:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,0.10); }
.admin-links .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button:hover { opacity: 0.95; }

/* Responsivo */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header nav { display: none; }
  .site-header nav.is-open { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
  .site-header nav.is-open a { display: block; width: 100%; padding: 10px 14px; border-radius: 12px; }
  .site-header nav.is-open a:hover { background: #ffe9f1; }
  .site-footer .footer-cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.featured-grid .card .media { aspect-ratio: 1/1; }
.grid.featured-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.featured-grid { grid-template-columns: 1fr; } }

/* Categorías en inicio */
.grid.categories-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.categories-grid { grid-template-columns: 1fr; } }
.categories-grid .card .media { aspect-ratio: 1/1; position: relative; }
.categories-grid .card .media .overlay { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 12px; }

/* Listado de productos */
.grid.products-grid { grid-template-columns: repeat(4, 1fr); }
.products-grid .card .media { aspect-ratio: 1/1; position: relative; }
.products-grid .card .media .overlay-featured { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,0.5); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; pointer-events: none; }
@media (max-width: 900px) { .grid.products-grid { grid-template-columns: repeat(2, 1fr); } }

/* Detalle de producto */
.product-detail .detail-grid { grid-template-columns: 1fr 1.4fr; gap: 30px; }
  @media (max-width: 1200px) and (min-width: 901px) { .product-detail .detail-grid { gap: 27px; } }
  @media (max-width: 900px) { .product-detail .detail-grid { grid-template-columns: 1fr; gap: 25px; } }
.product-hero .media { position: relative; height: auto; min-height: 220px; aspect-ratio: auto; overflow: visible; display: grid; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.product-hero .media::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 12px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 60%); opacity: 0.4; pointer-events: none; }
.product-hero .media .main img { width: auto; max-width: 100%; height: auto; max-height: 388px; object-fit: contain; }
 .product-hero .media.media-split { display: grid; grid-template-columns: 1fr minmax(120px, 10vw); align-items: center; gap: 10px; }
  .product-hero .media .thumbs { display: grid; gap: 8px; align-content: start; }
  .product-hero .media .thumbs .thumb { width: 100%; aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; cursor: pointer; transition: box-shadow 120ms ease, border-color 120ms ease; }
  .product-hero .media .thumbs .thumb:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
  .product-hero .media .thumbs .thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
 .product-hero .media .thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-hero .media .overlay-title { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,0.55); color: #fff; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.15); pointer-events: none; }
.product-detail .lead { font-size: 18px; line-height: 1.6; }
 .product-detail p { font-size: 16px; line-height: 1.7; }
 .product-detail .page-title { font-size: 30px; font-weight: 800; letter-spacing: 0.2px; margin-bottom: 10px; }
 .product-detail .page-title::after { content: ''; display: block; width: 80px; height: 4px; border-radius: 4px; background: var(--accent); margin-top: 6px; }
 .price-chip { background: #000; color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 8px; display: inline-block; }
 .product-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 40px; }
     .product-nav .button { min-width: 160px; text-align: center; }
     .product-nav .button .subtext { display: block; font-size: 12px; opacity: 0.8; margin-top: 2px; }
     @media (max-width: 1200px) and (min-width: 901px) { .product-nav { margin-top: 34px; } }
      @media (max-width: 600px) { .product-nav { flex-direction: column; gap: 6px; margin-top: 28px; } .product-nav .button { width: 100%; min-width: 150px; padding: 10px 16px; } .product-nav .button .subtext { font-size: 11px; } }

@media (min-width: 1200px) { .product-hero .media .main img { max-height: 484px; } }
@media (min-width: 1728px) { .product-hero .media .main img { max-height: 508px; } }
@media (min-width: 1728px) { .grid.products-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 600px) { .grid.products-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .product-hero .media.media-split { grid-template-columns: 1fr; }
   .product-hero .media .main img { max-height: 320px; }
   .product-hero .media .thumbs { grid-auto-flow: column; grid-auto-columns: 80px; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; padding: 4px 2px 6px; scroll-snap-type: x proximity; position: relative; }
   .product-hero .media .thumbs .thumb { width: 80px; scroll-snap-align: start; }
   .product-hero .media .thumbs::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(to right, rgba(255,255,255,0.85), rgba(255,255,255,0)); pointer-events: none; }
   .product-hero .media .thumbs::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(to left, rgba(255,255,255,0.85), rgba(255,255,255,0)); pointer-events: none; }
 }

/* Categoría - portada en productos */
.category-hero { display: grid; grid-template-columns: 320px 1fr; align-items: center; gap: 18px; padding: 16px; margin-bottom: 24px; width: 50%; margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 16px rgba(90,62,54,0.06); }
.category-hero .media { position: relative; width: 320px; height: 220px; aspect-ratio: auto; border-radius: 12px; background: linear-gradient(180deg, #fffaf4, #fff2f2); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border); }
.category-hero .media img { width: 100%; height: 100%; object-fit: contain; }
.category-hero .media .overlay { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.category-hero .title { font-size: 28px; color: var(--primary); margin: 0 0 6px; text-align: left; }
.category-hero .desc { color: var(--muted); text-align: left; }
.category-hero .row { justify-content: flex-start; }
.badge { display: inline-block; font-size: 12px; color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 9999px; margin-bottom: 6px; }
.badge-category { background: var(--accent); }
@media (max-width: 900px) {
  .category-hero { grid-template-columns: 300px 1fr; width: 50%; margin-left: auto; }
  .category-hero .media { width: 300px; height: 210px; }
}
@media (max-width: 600px) {
  .category-hero { grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .category-hero .media { width: 100%; height: 190px; }
}
@media (min-width: 901px) { .hero .wrap > :first-child { grid-column: 2; grid-row: 1; } .hero .wrap > :last-child { grid-column: 1; grid-row: 1; } }
@media (max-width: 600px) {
  .category-hero { grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .category-hero .media { width: 100%; height: 190px; }
}
.site-footer .social-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.site-footer .social-links a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .social-links a svg { width: 18px; height: 18px; fill: currentColor; }

/* Avisos (flash) */
.flash { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; font-weight: 600; box-shadow: 0 2px 8px rgba(90,62,54,0.06); }
.flash .icon { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.flash .icon svg { width: 16px; height: 16px; fill: currentColor; }
.flash.info { background: #eef4ff; border-color: #d3e2ff; color: #1a3b8f; }
.flash.success { background: #e7f5e8; border-color: #cfead6; color: #1b5e20; }
.flash.warning { background: #fff4e5; border-color: #ffe3ba; color: #8a5a00; }
.flash.error { background: #fdecea; border-color: #f9c7c3; color: #b00020; }

/* Registro: layout 2 columnas */
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.register-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 10px rgba(90,62,54,0.06); padding: 16px; display: flex; flex-direction: column; }
.register-form form { width: 100%; }
.register-hero { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(90,62,54,0.06); }
.register-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.register-hero .caption { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,0.45); color: #fff; padding: 6px 10px; border-radius: 8px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

@media (max-width: 800px) {
  .register-grid { grid-template-columns: 1fr; }
  .register-hero img { height: auto; }
}

