:root {
  --bg: #ffffff;
  --bg-accent: #ffd2f0;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #080808;
  --ink-soft: #2f2f2f;
  --brand: #ff0aa5;
  --brand-hover: #d10087;
  --line: #d7d7d7;
  --line-strong: rgba(0, 0, 0, 0.34);
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  --dark: #080808;
  --dark-soft: #161616;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background-color: var(--bg);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 10, 165, 0.26) 0, transparent 44%),
    radial-gradient(circle at 90% 6%, rgba(0, 0, 0, 0.3) 0, transparent 42%),
    radial-gradient(circle at 52% 116%, rgba(255, 10, 165, 0.14) 0, transparent 50%),
    radial-gradient(circle at 18% 86%, rgba(0, 0, 0, 0.12) 0, transparent 46%),
    repeating-linear-gradient(140deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #ffffff 0%, #ffffff 48%, #f7f7f7 100%);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  position: relative;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #040404;
  background: linear-gradient(
    115deg,
    rgba(3, 3, 3, 0.995) 0%,
    rgba(7, 7, 7, 0.995) 62%,
    rgba(20, 20, 20, 0.99) 100%
  );
  border-bottom: 1px solid rgba(255, 10, 165, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0aa5 0%, #ff75cd 50%, #ff0aa5 100%);
}

.topbar::after {
  content: "";
  position: absolute;
  top: -48px;
  right: 6%;
  width: 220px;
  height: 115px;
  background: radial-gradient(circle, rgba(255, 10, 165, 0.22) 0, rgba(255, 10, 165, 0) 76%);
  pointer-events: none;
}

.topbar-content {
  position: relative;
  z-index: 1;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  background: transparent;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255, 10, 165, 0.35);
  padding: 2px;
}

.menu {
  display: flex;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  text-decoration: none;
  color: #f6f6f6;
  font-weight: 700;
  font-size: 0.96rem;
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.72);
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: calc(100% - 20px);
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
}

.menu a.is-active::after {
  transform: scaleX(1);
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-active {
  color: #ffffff;
  border-color: rgba(255, 10, 165, 0.92);
  background: linear-gradient(140deg, rgba(0, 0, 0, 0.92), rgba(255, 10, 165, 0.42));
}

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

.cart-link {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(150deg, rgba(0, 0, 0, 0.9), rgba(255, 10, 165, 0.32));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 10, 165, 0.26);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-link:hover,
.cart-link:focus-visible {
  border-color: rgba(255, 10, 165, 0.9);
  color: #111111;
  background: linear-gradient(145deg, #ffffff, #ff8ad2);
  box-shadow: 0 10px 18px rgba(255, 10, 165, 0.35);
  transform: translateY(-1px);
}

.cart-icon {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.cart-count.is-empty {
  background: #f2f2f2;
  color: #111111;
}

.modal-open body {
  overflow: hidden;
}

.cart-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.cart-modal-overlay.is-open {
  display: flex;
}

.cart-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-modal-head {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cart-modal-head .eyebrow {
  margin-bottom: 6px;
}

.cart-modal-head h2 {
  font-size: 1.65rem;
}

.cart-modal-body {
  padding: 14px 16px;
  overflow: auto;
}

.cart-modal-items {
  margin: 0;
}

.cart-modal-empty {
  margin-top: 8px;
}

.cart-modal-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-modal-promo {
  margin: 6px 0 12px;
}

section {
  padding: 70px 0;
}

.hero {
  display: grid;
  gap: 34px;
  align-items: center;
  grid-template-columns: 1.4fr 1fr;
  animation: fade-up 0.45s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.hero-text {
  max-width: 50ch;
  color: var(--ink-soft);
  margin: 16px 0 24px;
}

.hero-card {
  background: linear-gradient(160deg, #ffffff, #fff0fa);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 10, 165, 0.08);
}

.hero-card-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.hero-card ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.section-header {
  margin-bottom: 24px;
}

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

.products-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.product-card {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 10, 165, 0.06);
  animation: fade-up 0.45s ease both;
}

.product-card h3 {
  font-size: 1.3rem;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
}

.product-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.product-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-image-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price {
  font-weight: 700;
  color: var(--brand);
}

.cart-panel {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 10, 165, 0.08);
}

#carrito {
  scroll-margin-top: 100px;
}

.cart-panel h3 {
  margin-bottom: 12px;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-title {
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-subtotal {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-summary {
  margin: 16px 0 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.empty-cart {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  text-align: center;
}

.small-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.55;
}

.btn-primary {
  background: linear-gradient(125deg, var(--dark) 0%, #7a0050 46%, var(--brand) 100%);
  color: #fff;
  border-color: var(--dark);
  box-shadow: 0 12px 24px rgba(255, 10, 165, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(125deg, #111111 0%, #980064 44%, #ff39ba 100%);
  box-shadow: 0 14px 26px rgba(255, 10, 165, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--dark);
  box-shadow: inset 0 0 0 1px rgba(255, 10, 165, 0.12);
}

.btn-secondary:hover {
  background: linear-gradient(130deg, var(--dark), var(--brand));
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 12px 22px rgba(255, 10, 165, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  padding: 6px 10px;
  min-width: 34px;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff0fa;
  box-shadow: 0 8px 16px rgba(255, 10, 165, 0.2);
}

.full {
  width: 100%;
}

.contact-card {
  background: linear-gradient(145deg, #ffffff, #fff1fb);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.product-detail-section {
  padding: 64px 0;
}

.gallery {
  padding-top: 10px;
}

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

.gallery-subtitle {
  margin: 10px 0 0;
}

.gallery-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel {
  background: linear-gradient(150deg, #ffffff, #fff1fb);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 10, 165, 0.08);
  position: relative;
}

#home-carousel .carousel-track {
  display: flex !important;
  gap: 14px;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
}

#home-carousel .carousel-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 10, 165, 0.35);
  background: #fff;
  height: 280px !important;
  display: grid;
  place-items: center;
  padding: 6px;
  width: 400px !important;
  max-width: 400px !important;
  flex: 0 0 400px !important;
}

.carousel-arrow {
  display: none;
}

#home-carousel .carousel-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 266px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transform: none;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 10, 165, 0.08);
}

.product-detail-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.product-detail-image {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
}

.product-detail-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.product-details-long {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.product-detail-price {
  font-size: 1.3rem;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qty-label {
  font-weight: 700;
  color: var(--ink);
}

.qty-input {
  width: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.footer {
  padding: 26px 12px 30px;
  border-top: 1px solid rgba(255, 10, 165, 0.4);
  background: linear-gradient(120deg, #080808 0%, #141414 100%);
  text-align: center;
  color: #f0f0f0;
}

.footer p {
  margin: 0;
}

.footer-credit {
  margin-top: 8px;
  color: #d5d5d5;
  font-size: 0.95rem;
}

.footer-credit a {
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: #ffd2f0;
}

code {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0 4px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .shop-layout,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .gallery-head {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .topbar-content {
    min-height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 0 12px;
  }

  .brand {
    order: 1;
    font-size: 1.2rem;
    line-height: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .menu {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-around;
    gap: 8px;
  }

  .menu a {
    padding: 8px 6px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .cart-link {
    width: 40px;
    height: 40px;
  }

  .cart-modal-overlay {
    padding: 10px 10px 0;
    align-items: flex-end;
  }

  .cart-modal {
    width: 100%;
    max-height: calc(100vh - 10px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .container {
    width: min(1100px, 94%);
  }

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

  .product-actions .btn {
    width: 100%;
  }

  .qty-controls {
    flex-wrap: wrap;
  }

  .cart-panel {
    padding: 14px;
  }

  .btn {
    min-height: 42px;
  }

  section {
    padding: 56px 0;
  }

  .contact-card {
    justify-content: flex-start;
  }

  .product-detail-image {
    min-height: 230px;
  }

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

  .gallery-actions {
    width: 100%;
  }

  .gallery-actions .btn {
    flex: 1;
  }

  .gallery-actions {
    display: none;
  }

  .carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .carousel-arrow-prev {
    left: 10px;
  }

  .carousel-arrow-next {
    right: 10px;
  }

  #home-carousel .carousel-track {
    width: 100%;
    justify-content: center;
    padding: 0 44px;
  }

  #home-carousel .carousel-item {
    height: 220px;
    width: min(340px, 100%);
    max-width: 340px;
    flex: 0 0 auto;
  }

  #home-carousel .carousel-img {
    max-width: 100%;
    max-height: 208px;
  }
}
