:root {
  --main-purple: #8E24AA;
  --main-pink:   #E91E63;
  --bg-light:    #FDF6FA;
  --card-shadow: rgba(0,0,0,0.1);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg-light);
  font-family: 'Instrument Sans', sans-serif;
}
/* NAVBAR */
.navbar { background: var(--main-purple); }
.navbar-brand img { height: 40px; margin-right: .5rem; }
.navbar .btn-link { opacity: .9; }
.navbar .btn-link:hover { opacity: 1; }
.text-main-purple { color: var(--main-purple) !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1.25rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--main-purple), var(--main-pink));
  background-size: 200% 200%;
  animation: gradientBG 8s ease infinite;
  color: #fff;
  padding: 4.5rem 0;
}
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero .badge { letter-spacing: .08em; }
.hero h1 { line-height: 1.15; }
.hero p { max-width: 38rem; }
.hero-card {
  background: rgba(255,255,255,.12);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  backdrop-filter: blur(10px);
  display: inline-block;
}
.hero-logo { max-width: 160px; margin-bottom: 1.5rem; }

.highlights { background: transparent; }
.highlight-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(142, 36, 170, .12);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(142, 36, 170, .16);
}
.highlight-card h3 { font-weight: 600; margin-bottom: .75rem; }
.highlight-card p { margin-bottom: 0; color: rgba(43, 18, 51, .7); }
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(142,36,170,.12);
  color: var(--main-purple);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.bg-soft { background: rgba(142,36,170,.08); }
.section-title { font-weight: 700; color: #2b1233; }
.btn-outline-purple {
  border: 1px solid rgba(142,36,170,.4);
  color: var(--main-purple);
  padding: .6rem 1.4rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.btn-outline-purple:hover {
  background: var(--main-purple);
  color: #fff;
  border-color: var(--main-purple);
}

.btn-purple {
  background: var(--main-purple);
  border: 1px solid var(--main-purple);
  border-radius: 999px;
  color: #fff;
  padding: .6rem 1.4rem;
  transition: all .2s ease;
}

.btn-purple:hover {
  background: #5e1670;
  border-color: #5e1670;
  color: #fff;
}

.category-pill {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: 0 14px 28px rgba(142,36,170,.12);
  text-align: center;
  height: 100%;
}
.pill-name {
  display: block;
  font-weight: 600;
  color: #2b1233;
  margin-bottom: .35rem;
}
.pill-count { color: rgba(43,18,51,.55); font-size: .85rem; }

.cta-section {
  background: linear-gradient(135deg, var(--main-purple), var(--main-pink));
  color: #fff;
}
.cta-card {
  background: rgba(255,255,255,.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 24px 48px rgba(0,0,0,.15);
}

footer {
  background: #fff;
  color: rgba(43,18,51,.7);
}

/* PRODUCT CARD */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(142, 36, 170, .08);
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(142, 36, 170, .15);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(253,246,250,.92));
  backdrop-filter: blur(10px);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(142, 36, 170, .2);
}
.product-media {
  position: relative;
  height: 260px;
  padding: 1.25rem;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(142,36,170,.12), rgba(233,30,99,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  gap: 1.25rem;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(142,36,170,.18));
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}
.product-media.has-back {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.product-media.single-image {
  gap: 0;
  padding: 1.5rem;
}
.product-media.single-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
  position: relative;
  z-index: 2;
  border-radius: 1.1rem;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 32px rgba(43,18,51,.12);
}
.product-media.has-back img {
  height: 100%;
}
.product-card:hover .product-media img {
  transform: scale(1.03);
}
.product-card:hover .product-media::after {
  opacity: 1;
}
.product-media--empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(142,36,170,.45);
}
.variant-chips {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.variant-chips__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.variant-chips__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(43, 18, 51, .6);
}
.variant-chips__values {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.variant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(142,36,170,.1), rgba(233,30,99,.18));
  color: #2b1233;
  box-shadow: 0 8px 18px rgba(142,36,170,.12);
}
.product-body {
  padding: 1.75rem 1.75rem 1.85rem;
  gap: 1.1rem;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #2b1233;
  line-height: 1.3;
}
.product-description {
  font-size: .95rem;
  line-height: 1.6;
  min-height: 3.8em;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-weight: 700;
  color: var(--main-pink);
  letter-spacing: .02em;
}
.product-price__label {
  font-size: .75rem;
  text-transform: uppercase;
  color: rgba(43, 18, 51, .6);
  font-weight: 600;
  letter-spacing: .12em;
}
.product-price__value {
  font-size: 1.15rem;
}
.product-meta {
  letter-spacing: .08em;
  color: rgba(43, 18, 51, .6);
}
.btn-detail {
  border-radius: 2.25rem;
  padding: .5rem 1.25rem;
  border-width: 1.5px;
}
.btn-detail i {
  transition: transform .2s ease;
}
.btn-detail:hover i {
  transform: translateX(2px);
}
.badge-cat {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: linear-gradient(135deg, rgba(142,36,170,1), rgba(233,30,99,.9));
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(142,36,170,.25);
  z-index: 2;
}

.dual-image-wrapper {
  position: relative;
  min-height: 220px;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(142,36,170,.08), rgba(233,30,99,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
}

.dual-image-wrapper.has-back {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.dual-image-wrapper img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 22px 48px rgba(43,18,51,.15);
  padding: 0.75rem;
}

.dual-image-wrapper:not(.has-back) img {
  max-width: 90%;
}

@media (max-width: 576px) {
  .product-media {
    height: 230px;
  }

  .product-media.has-back {
    grid-template-columns: 1fr;
  }

  .dual-image-wrapper {
    min-height: 200px;
  }

  .dual-image-wrapper.has-back {
    grid-template-columns: 1fr;
  }
}

.product-modal {
  border-radius: 1.75rem;
  border: none;
  background: linear-gradient(180deg, #ffffff, rgba(253,246,250,.96));
  box-shadow: 0 40px 85px rgba(43,18,51,.22);
  overflow: hidden;
}
.product-modal .modal-header {
  padding: 2.25rem 2.75rem 0;
}
.product-modal .modal-body {
  padding: 2.5rem 2.75rem 2.75rem;
}
.product-modal .btn-close {
  background: rgba(43,18,51,.06);
  border-radius: 50%;
  opacity: 1;
  padding: .65rem;
  transition: background .2s ease, transform .2s ease;
}
.product-modal .btn-close:hover {
  background: rgba(43,18,51,.12);
  transform: scale(1.05);
}
.modal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(142,36,170,.12);
  color: var(--main-purple);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.modal-subtitle {
  font-size: .9rem;
  margin-top: .35rem;
}
.product-modal-body {
  margin-top: 1.75rem;
  row-gap: 2.75rem;
}
.modal-product-gallery {
  background: linear-gradient(160deg, rgba(142,36,170,.07), rgba(233,30,99,.1));
  border-radius: 1.5rem;
  padding: 1.85rem;
  box-shadow: 0 24px 50px rgba(142,36,170,.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.modal-product-gallery .dual-image-wrapper {
  width: 100%;
  max-height: 100%;
  padding: 1.75rem;
  background: rgba(255,255,255,.85);
  box-shadow: none;
  border-radius: 1.35rem;
}
.modal-product-gallery .dual-image-wrapper.has-back {
  gap: 1.75rem;
}
.modal-product-gallery .dual-image-wrapper img {
  padding: 0;
  max-height: 340px;
}
.modal-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 4rem;
  font-weight: 600;
  color: rgba(142,36,170,.35);
  background: rgba(255,255,255,.85);
  border-radius: 1.25rem;
}
.product-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}
.modal-price-card {
  display: inline-flex;
  align-items: baseline;
  gap: .9rem;
  padding: 1.15rem 1.75rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(142,36,170,.15), rgba(233,30,99,.14));
  box-shadow: 0 22px 45px rgba(142,36,170,.16);
}
.modal-price-card .label {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(43,18,51,.6);
  font-weight: 600;
}
.modal-price-card .value {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--main-purple);
}
.modal-description {
  line-height: 1.7;
  font-size: 1rem;
}
.variant-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.35rem;
  background: rgba(255,255,255,.85);
  box-shadow: inset 0 0 0 1px rgba(142,36,170,.08);
}
.variant-title {
  font-weight: 700;
  color: #2b1233;
}
.variant-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.variant-item {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  background: #fff;
  border: 1px solid rgba(142,36,170,.12);
  border-radius: 1.35rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgba(142,36,170,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.variant-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(142,36,170,.18);
}
.variant-thumb {
  width: 72px;
  height: 72px;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(142,36,170,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--main-purple);
  font-size: 1.65rem;
}
.variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.variant-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.variant-name {
  font-weight: 600;
  color: #2b1233;
  font-size: 1rem;
}
.variant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.variant-chip {
  background: rgba(142,36,170,.12);
  color: var(--main-purple);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.variant-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
  min-width: 140px;
}
.variant-price {
  font-weight: 700;
  color: var(--main-purple);
  font-size: 1.2rem;
}
.variant-add-btn {
  border-radius: 999px;
  padding: .55rem 1.5rem;
  background: linear-gradient(135deg, var(--main-purple), var(--main-pink));
  border: none;
  color: #fff;
  box-shadow: 0 18px 36px rgba(233,30,99,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.variant-add-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(233,30,99,.32);
}
.variant-empty {
  background: rgba(142,36,170,.08);
  color: rgba(43,18,51,.75);
  border-radius: 1.1rem;
  padding: 1.25rem 1.35rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* BOTÓN DETALLE */
.btn-detail:hover {
  background: var(--main-purple);
  color: #fff;
}

.offcanvas-title { font-weight: 600; }

/* ITEMS DEL CARRITO */
.cart-store-heading {
  background: rgba(142,36,170,.08);
  border: none;
  color: var(--main-purple);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem .95rem;
  border-radius: 1rem;
  margin-top: 1rem;
}

.cart-item {
  border: 1px solid rgba(142,36,170,.12);
  border-radius: 1rem;
  margin-top: .75rem;
  padding: .85rem 1rem;
  box-shadow: 0 10px 22px rgba(142,36,170,.08);
  position: relative;
  background: #fff;
}

.cart-item:first-of-type {
  margin-top: .5rem;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(142,36,170,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-thumb__placeholder {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-purple);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  color: #2b1233;
  line-height: 1.25;
}

.cart-item-details {
  margin-top: .35rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--main-purple);
  font-size: .9rem;
}

.cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.cart-item-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(142,36,170,.12);
  color: #2b1233;
  box-shadow: 0 6px 14px rgba(142,36,170,.12);
}

.cart-item-chip i {
  color: var(--main-purple);
  font-size: .75rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
  min-width: 90px;
}

.cart-item-total {
  color: #2b1233;
}

.cart-item-remove {
  border-radius: 999px;
  padding-inline: .65rem;
}

.cart-item-qty {
  background: rgba(142,36,170,.12);
  border-color: rgba(142,36,170,.28);
  color: var(--main-purple);
}

.list-group > .cart-item + .cart-item {
  margin-top: .75rem;
}

.cart-store-heading + .cart-item {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: .35rem;
}

/* CARRITO FLOTANTE */
#cart-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--main-pink);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1050;
  transition: transform .2s;
}
#cart-btn:hover {
  transform: scale(1.1);
}
#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ffc107;
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .hero { text-align: center; }
  .hero p { margin: 0 auto 2rem; }
  .hero-card { margin-top: 1.5rem; }
  .cta-card { text-align: center; align-items: center; }
  .product-modal .modal-header,
  .product-modal .modal-body { padding: 1.75rem; }
  .product-modal-body {
    margin-top: 1.25rem;
    row-gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .category-pill { padding: .9rem; }
  .highlight-card { padding: 1.5rem; }
  #cart-btn {
    width: 52px;
    height: 52px;
  }
  .cart-item {
    flex-wrap: wrap;
    margin-top: .65rem;
  }
  .cart-item-thumb {
    width: 52px;
    height: 52px;
  }
  .cart-item-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
  }
  .cart-item-total {
    font-size: .95rem;
  }
  .cart-item-details {
    width: 100%;
  }
  .cart-store-heading {
    font-size: .68rem;
    letter-spacing: .1em;
  }
}

@media (max-width: 767.98px) {
  .variant-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.1rem;
  }
  .variant-thumb {
    margin: 0 auto;
  }
  .variant-details {
    align-items: center;
  }
  .variant-actions {
    width: 100%;
    align-items: center;
    min-width: 0;
  }
  .variant-tags {
    justify-content: center;
  }
}
