/* ESTILOSA — Coral Aquarium
   Indoor tank light, wet glass, quiet water.
   Not a pool cabana, not a beach sunset, not Y2K glassmorphism. */

:root {
  --sea: #12364a;
  --sea-ink: #0e2b3b;
  --cyan: #3db8c5;
  --cyan-dim: rgba(61, 184, 197, 0.18);
  --coral: #e06c75;
  --coral-deep: #c75a63;
  --pearl: #f4f1ec;
  --pearl-2: #ebe6de;
  --grass: #2f6f5e;
  --glass: rgba(244, 241, 236, 0.78);
  --line: rgba(61, 184, 197, 0.55);
  --muted: #4d6d7c;
  --radius: 1.55rem;
  --window: 1.85rem;
  --shadow: 0 18px 40px rgba(18, 54, 74, 0.12);
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --space: clamp(1.1rem, 3vw, 2rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--sea);
  background:
    radial-gradient(1200px 520px at 50% -80px, rgba(61, 184, 197, 0.16), transparent 58%),
    radial-gradient(700px 380px at 100% 12%, rgba(224, 108, 117, 0.07), transparent 50%),
    var(--pearl);
  min-height: 100vh;
}

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

a {
  color: var(--grass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--coral-deep); }

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sea);
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); margin: 0 0 0.55rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.28rem; margin: 0 0 0.35rem; }

p { margin: 0 0 1rem; }

.hidden,
.skip-link:not(:focus),
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.55rem 0.9rem;
  background: var(--sea);
  color: var(--pearl);
  border-radius: 999px;
}

.container {
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(18, 54, 74, 0.06),
    var(--shadow);
}

.view-window {
  display: block;
  overflow: hidden;
  border-radius: var(--window);
  border: 1px solid var(--cyan);
  box-shadow:
    inset 0 0 0 1px rgba(244, 241, 236, 0.28),
    0 10px 28px rgba(18, 54, 74, 0.14);
  background: var(--sea-ink);
}

.view-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ripple {
  height: 28px;
  margin: 0.4rem 0 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' fill='none'%3E%3Cpath d='M0 16 C20 6, 40 24, 60 16 S100 6, 120 16 S160 24, 180 16 S220 6, 240 16' stroke='%233db8c5' stroke-width='1.2' opacity='.7'/%3E%3Cpath d='M0 20 C20 12, 40 26, 60 20 S100 12, 120 20 S160 26, 180 20 S220 12, 240 20' stroke='%23e06c75' stroke-width='.9' opacity='.35'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 240px 28px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.45rem;
}

.lede { color: var(--muted); max-width: 42rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(18, 54, 74, 0.08);
}

.btn:hover { background: var(--coral-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--sea);
  border: 1px solid var(--cyan);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--cyan-dim); color: var(--sea); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }

.site-header {
  background: var(--sea);
  color: var(--pearl);
  border-bottom: 1px solid rgba(61, 184, 197, 0.35);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: inherit; }

.brand-logo { width: 42px; height: 42px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name { color: var(--pearl); font-size: 1.35rem; }

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--pearl);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--sea);
  background: var(--cyan);
}

.header-actions { display: flex; align-items: center; gap: 0.45rem; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pearl);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(61, 184, 197, 0.45);
  border-radius: 999px;
}

.cart-link:hover { color: var(--pearl); background: rgba(61, 184, 197, 0.16); }

.cart-link svg { width: 22px; height: 22px; }

.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 4px auto;
  background: var(--pearl);
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem 0 2.4rem;
}

.hero-window {
  min-height: 280px;
  aspect-ratio: 4 / 5;
}

.hero-window img { min-height: 280px; object-position: center 30%; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }

.section { padding: 0.4rem 0 2.6rem; }

.section-head { margin-bottom: 1.2rem; }

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

.prod-card { overflow: hidden; display: flex; flex-direction: column; }

.prod-media { aspect-ratio: 4 / 5; }

.prod-media img { width: 100%; height: 100%; object-fit: cover; }

.prod-body { padding: 1rem 1.05rem 1.15rem; display: grid; gap: 0.28rem; }

.prod-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.prod-body h3 { margin: 0; }

.prod-body h3 a {
  color: var(--sea);
  text-decoration: none;
}

.prod-body h3 a:hover { color: var(--coral-deep); }

.prod-desc {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral);
}

.split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.split-window { min-height: 240px; aspect-ratio: 4 / 5; }

.cat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.cat-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  color: var(--sea);
  text-decoration: none;
}

.cat-chip:hover {
  background: var(--cyan-dim);
  color: var(--sea);
}

.cat-chip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.cat-chip span { font-size: 0.82rem; color: var(--muted); }

.trust { display: grid; gap: 0.8rem; }

.trust article { padding: 1rem 1.05rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sea);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"],
.filter-btn:hover {
  background: var(--sea);
  color: var(--pearl);
  border-color: var(--sea);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.breadcrumb .sep { opacity: 0.5; }

.prod-detail {
  display: grid;
  gap: 1.3rem;
}

.prod-info .prod-price { font-size: 1.8rem; margin: 0.35rem 0 0.8rem; }

.size-label { display: block; font-weight: 650; margin: 0.6rem 0 0.4rem; }

.size-select { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }

.size-opt {
  min-width: 2.6rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sea);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}

.size-opt.selected {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--sea);
}

.prod-meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.prod-meta ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.form-hint { font-size: 0.85rem; color: var(--muted); }

.cart-layout,
.checkout-layout {
  display: grid;
  gap: 1.15rem;
}

.cart-list { display: grid; gap: 0.9rem; }

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--cyan-dim);
}

.cart-item img {
  width: 92px;
  height: 114px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.ci-name { font-weight: 700; margin: 0 0 0.15rem; }
.ci-meta { font-size: 0.85rem; color: var(--muted); margin: 0; }
.ci-price { color: var(--coral); font-family: var(--font-display); font-size: 1.2rem; margin: 0.2rem 0 0; }

.cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--sea);
  cursor: pointer;
  font-size: 1.05rem;
}

.qty-val { min-width: 1.4rem; text-align: center; font-weight: 650; }

.remove-link {
  border: 0;
  background: none;
  color: var(--coral-deep);
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: underline;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.summary-note { font-size: 0.88rem; color: var(--muted); }

.empty-state { text-align: center; padding: 2rem 1rem; }

.empty-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.9rem;
}

.card-pad { padding: 1.1rem 1.15rem 1.25rem; }

.fieldset-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.page-head { padding: 1.6rem 0 0.4rem; }

.field,
select.field,
textarea.field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--sea);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.7rem 0.85rem;
}

textarea.field { min-height: 140px; resize: vertical; }

.field:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.form-grid { display: grid; gap: 0.85rem; }

.form-grid label > span,
.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 0.28rem;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--sea);
}

.checkbox-line.full { grid-column: 1 / -1; }

.checkbox-line input { margin-top: 0.28rem; accent-color: var(--coral); }

.news-form form,
.contact-form,
.checkout-form {
  display: grid;
  gap: 0.75rem;
}

.news-form .btn { justify-self: start; }

.pay-list { display: grid; gap: 0.55rem; }

.pay-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
}

.pay-opt strong { display: block; }
.pay-opt span { color: var(--muted); font-size: 0.88rem; }

.form-hint-inline {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-feedback {
  display: none;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(47, 111, 94, 0.12);
  border: 1px solid var(--grass);
  color: var(--sea);
}

.form-feedback.show { display: block; }

.legal-body {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.4rem;
}

.legal-body h2 { margin-top: 0.6rem; }

.legal-body article.glass-panel { padding: 1.1rem 1.15rem; }

.site-footer {
  background: var(--sea);
  color: var(--pearl);
  margin-top: 1rem;
  padding-top: 0.4rem;
}

.footer-wave {
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 36' fill='none'%3E%3Cpath d='M0 18 C30 4, 50 30, 80 18 S130 4, 160 18 S210 30, 240 18' stroke='%233db8c5' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 240px 36px;
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  padding: 1.2rem 0 1.6rem;
}

.footer-brand p,
.footer-news p { color: rgba(244, 241, 236, 0.78); }

.footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pearl);
  margin-bottom: 0.45rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a { color: var(--cyan); text-decoration: none; }
.footer-links a:hover { color: var(--pearl); }
.footer-links li { margin: 0.28rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(61, 184, 197, 0.28);
  padding: 1rem 0 1.3rem;
  font-size: 0.9rem;
  color: rgba(244, 241, 236, 0.75);
}

.footer-bottom a { color: var(--cyan); }
.legal-name { color: var(--pearl); font-weight: 650; margin-bottom: 0.25rem; }
.copyright { margin: 0.35rem 0 0; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
}

.toast {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: var(--sea);
  color: var(--pearl);
  border: 1px solid var(--cyan);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  max-width: 22rem;
  box-shadow: var(--shadow);
}

.toast.out { opacity: 0; transform: translateY(8px); transition: 0.28s ease; }

.toast-ico { color: var(--cyan); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.4rem; }

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 2.1rem;
  }

  .hero-window { aspect-ratio: 4 / 5; min-height: 420px; }

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

  .split { grid-template-columns: 0.9fr 1.1fr; }

  .split-window { aspect-ratio: 4 / 5; min-height: 360px; }

  .cat-row { grid-template-columns: repeat(4, 1fr); }

  .trust { grid-template-columns: repeat(3, 1fr); }

  .prod-detail { grid-template-columns: 0.95fr 1.05fr; align-items: start; }

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

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

  .cart-item-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .footer-grid { grid-template-columns: 1.2fr 0.7fr 1.1fr; }

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

@media (min-width: 1020px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 719px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sea-ink);
    border-bottom: 1px solid var(--cyan);
    padding: 0.6rem var(--space) 1rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; }

  .cart-link-text { display: none; }

  .site-header { position: relative; }
}

/* Aliases matching injected markup */
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-mark { width: 72px; height: 72px; margin: 0 auto 0.9rem; }
.card-pad { padding: 1.1rem 1.15rem 1.25rem; }
.fieldset-title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.85rem; }
.checkbox-line { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; }
.checkbox-line.full { grid-column: 1 / -1; }
.site-footer .checkbox-line { color: var(--pearl); }
.news-form form { display: grid; gap: 0.75rem; }
.prod-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; gap: 0.5rem; }
.footer-logo .brand-name { color: var(--pearl); }
.filter-btn[aria-pressed="true"] { background: var(--sea); color: var(--pearl); border-color: var(--sea); }

.split { display: grid; gap: 1.25rem; align-items: center; }
.split-window { min-height: 240px; aspect-ratio: 4 / 5; }
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.form-grid .full { grid-column: 1 / -1; }
.hero-copy { padding: 0.4rem 0 0; }
.checkbox-line input { margin-top: 0.28rem; accent-color: var(--coral); }

@media (min-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 0.9fr 1.1fr; }
  .split-window { min-height: 360px; }
  .cat-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
}
