* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --v: #5c0a1f;
  --vd: #3a0613;
  --vm: #7a1030;
  --vl: #9b2040;
  --rose: #c8758a;
  --cream: #fbf5f0;
  --cream2: #f2e8e2;
  --gold: #c4955a;
  --txt: #1c0a10;
  --txt2: #6b3a46;
  --white: #fff;
  --border: #e5d0d6;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--cream);
  color: var(--txt);
  min-height: 100vh;
}

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

img {
  display: block;
}

nav {
  background: var(--vd);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.logo b {
  color: var(--gold);
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--vm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  transition: 0.2s;
  font-weight: 500;
}

.cart-btn:hover {
  background: var(--vl);
}

.c-badge {
  background: var(--gold);
  color: var(--vd);
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.banner {
  position: relative;
  background: var(--vd);
  overflow: hidden;
  height: 380px;
}

.banner-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  opacity: 0.2;
  filter: saturate(0.5);
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 6, 19, 0.93) 0%,
    rgba(92, 10, 31, 0.78) 55%,
    rgba(122, 16, 48, 0.6) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.banner-tag {
  background: rgba(196, 149, 90, 0.18);
  border: 1px solid rgba(196, 149, 90, 0.5);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.banner h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.banner h1 em {
  font-style: normal;
  color: var(--gold);
}

.banner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 1.8rem;
}

.banner-cta {
  background: var(--gold);
  color: var(--vd);
  padding: 11px 30px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: 0.2s;
}

.banner-cta:hover {
  background: #d4a56a;
  transform: translateY(-1px);
}

.banner-float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.banner-float img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.bf1 {
  top: 22px;
  left: 28px;
  transform: rotate(-8deg);
}

.bf1 img {
  width: 88px;
  height: 88px;
}

.bf2 {
  top: 55px;
  left: 138px;
  transform: rotate(5deg);
}

.bf2 img {
  width: 68px;
  height: 68px;
}

.bf3 {
  bottom: 28px;
  left: 55px;
  transform: rotate(6deg);
}

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

.bf4 {
  top: 18px;
  right: 38px;
  transform: rotate(10deg);
}

.bf4 img {
  width: 84px;
  height: 84px;
}

.bf5 {
  top: 68px;
  right: 148px;
  transform: rotate(-6deg);
}

.bf5 img {
  width: 64px;
  height: 64px;
}

.bf6 {
  bottom: 22px;
  right: 48px;
  transform: rotate(-9deg);
}

.bf6 img {
  width: 88px;
  height: 88px;
}

.bf7 {
  bottom: 38px;
  right: 178px;
  transform: rotate(4deg);
}

.bf7 img {
  width: 60px;
  height: 60px;
}

@media (max-width: 600px) {
  .banner-float {
    display: none;
  }

  .banner {
    height: 300px;
  }
}

.cats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  z-index: 100;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--v);
  color: var(--v);
  background: transparent;
  font-size: 0.82rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  flex-shrink: 0;
}

.cat.on,
.cat:hover {
  background: var(--v);
  color: var(--white);
}

.srch {
  background: var(--white);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.srch-w {
  max-width: 460px;
  position: relative;
}

.srch-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--txt2);
  pointer-events: none;
}

.srch-w input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #d4b0ba;
  border-radius: 22px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  background: var(--cream);
  color: var(--txt);
  outline: none;
  transition: 0.2s;
}

.srch-w input:focus {
  border-color: var(--v);
  background: var(--white);
}

.sec {
  padding: 1.75rem 1.5rem;
}

.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  color: var(--vd);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.22s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(92, 10, 31, 0.13);
  border-color: #d4b0ba;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}

.card-img-err {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream2), #e6d0d6);
  flex-direction: column;
  gap: 8px;
}

.card-img-err svg {
  opacity: 0.3;
}

.card-img-err span {
  font-size: 0.7rem;
  color: var(--txt2);
  font-weight: 500;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--v);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-badge.sale {
  background: #c0392b;
}

.card-body {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-tag {
  display: inline-block;
  font-size: 0.66rem;
  padding: 2px 9px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.t-shampoo {
  background: #f3eaff;
  color: #5a2080;
}

.t-acondicionador {
  background: #e8f0ff;
  color: #1a3580;
}

.t-mascarilla {
  background: #ffe8f2;
  color: #80153a;
}

.t-tratamiento {
  background: #e8fff0;
  color: #155a2a;
}

.t-leavein {
  background: #fff5e8;
  color: #804a10;
}

.t-oleo {
  background: #fff8e8;
  color: #806010;
}

.t-alisadora {
  background: #f0f0ff;
  color: #303080;
}

.t-accesorio {
  background: #f0f8f0;
  color: #205020;
}

.t-tinte {
  background: #ffe8e8;
  color: #801515;
}

.t-otro {
  background: #f0f0f0;
  color: #555;
}

.card-name {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--txt);
  flex: 1;
}

.card-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--v);
  font-weight: 700;
}

.card-price-range {
  font-size: 0.78rem;
  color: var(--txt2);
}

.card-offer {
  font-size: 0.72rem;
  color: #999;
  text-decoration: line-through;
}

.add-btn {
  padding: 8px;
  border-radius: 9px;
  background: var(--v);
  color: var(--white);
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-family: "Inter", sans-serif;
  margin-top: 4px;
}

.add-btn:hover:not(:disabled) {
  background: var(--vl);
}

.add-btn:disabled {
  background: #c0a0a8;
  cursor: default;
}

.outofstock-lbl {
  font-size: 0.68rem;
  color: #aaa;
  text-align: center;
  margin-top: 2px;
}

.on-sale-badge {
  display: inline-block;
  background: #ffe8e8;
  color: #a01515;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 7px;
  font-weight: 600;
  margin-left: 4px;
}

.detail-page {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 300;
  overflow-y: auto;
}

.detail-page.open {
  display: block;
}

.detail-nav {
  background: var(--vd);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.detail-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  flex: 1;
}

.back-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.2s;
  font-weight: 500;
  white-space: nowrap;
}

.back-btn:hover {
  color: var(--white);
}

.detail-nav-title {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 70px;
}

.main-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream2);
  cursor: crosshair;
  border: 1px solid var(--border);
}

.main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s linear;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.zoom-hint-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(58, 6, 19, 0.7);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 12px;
  pointer-events: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.main-img-box.is-zoomed .zoom-hint-badge {
  opacity: 0;
}

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

.thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
  background: var(--cream2);
}

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

.thumb:hover {
  border-color: #d4b0ba;
}

.thumb.active {
  border-color: var(--v);
  box-shadow: 0 0 0 1px var(--v);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.d-brand {
  font-size: 0.72rem;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.d-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  color: var(--vd);
  font-weight: 700;
}

.d-cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 11px;
  border-radius: 9px;
  font-weight: 600;
}

.d-price-box {
  background: var(--cream2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}

.d-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--v);
  font-weight: 700;
  line-height: 1;
}

.d-price-note {
  font-size: 0.72rem;
  color: var(--txt2);
  margin-top: 4px;
}

.d-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.d-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--txt2);
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.size-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-opt {
  padding: 7px 18px;
  border-radius: 9px;
  border: 1.5px solid #d4b0ba;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  color: var(--txt);
}

.size-opt.sel {
  border-color: var(--v);
  background: var(--v);
  color: var(--white);
}

.size-opt:hover:not(.sel) {
  border-color: var(--vm);
  color: var(--vm);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #d4b0ba;
  border-radius: 10px;
  overflow: hidden;
}

.qty-ctrl button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream2);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--v);
  font-weight: 700;
  transition: 0.2s;
  font-family: "Inter", sans-serif;
}

.qty-ctrl button:hover {
  background: var(--v);
  color: var(--white);
}

.qty-ctrl span {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 1.5px solid #d4b0ba;
  border-right: 1.5px solid #d4b0ba;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-desc {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.7;
  font-weight: 300;
  background: var(--cream2);
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}

.detail-add-btn {
  flex: 1;
  padding: 13px;
  background: var(--v);
  color: var(--white);
  border: none;
  border-radius: 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.detail-add-btn:hover {
  background: var(--vl);
  transform: translateY(-1px);
}

.detail-add-btn:disabled {
  background: #c0a0a8;
  cursor: default;
  transform: none;
}

.detail-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.detail-wa-btn:hover {
  background: #1daa54;
  transform: translateY(-1px);
}

.similar-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.similar-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--vd);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.875rem;
}

@media (max-width: 680px) {
  .detail-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery {
    position: static;
  }

  .detail-wrap {
    padding: 1.5rem 1rem;
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 100vw);
  background: var(--white);
  z-index: 401;
  transform: translateX(100%);
  transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.18);
}

.cart-panel.open {
  transform: translateX(0);
}

.cp-head {
  background: var(--vd);
  color: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.cp-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: 0.15s;
}

.cp-close:hover {
  color: var(--white);
}

.cp-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--txt2);
}

.empty svg {
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.ci {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.ci-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream2);
  flex-shrink: 0;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 3px;
}

.ci-sub {
  font-size: 0.73rem;
  color: var(--txt2);
}

.ci-price {
  font-size: 0.88rem;
  color: var(--v);
  font-weight: 600;
  margin-top: 2px;
}

.ci-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cq {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--v);
  background: none;
  color: var(--v);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
  line-height: 1;
}

.cq:hover {
  background: var(--v);
  color: var(--white);
}

.ci-rm {
  margin-left: auto;
  background: none;
  border: none;
  color: #c0a0a8;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 2px;
  transition: 0.15s;
}

.ci-rm:hover {
  color: var(--v);
}

.cp-foot {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.cp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.875rem;
  font-size: 0.9rem;
  color: var(--txt2);
}

.cp-total b {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--vd);
}

.wa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.wa-btn:hover {
  background: #1daa54;
}

.wa-note {
  font-size: 0.7rem;
  color: var(--txt2);
  text-align: center;
  margin-top: 7px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vd);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 0.82rem;
  z-index: 600;
  transition: 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

footer {
  background: var(--vd);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2.25rem 1rem;
  font-size: 0.82rem;
  margin-top: 2rem;
  line-height: 1.8;
}

footer strong {
  color: var(--gold);
}

footer small {
  opacity: 0.5;
  font-size: 0.7rem;
  display: block;
  margin-top: 0.5rem;
}

@media (max-width: 540px) {
  nav,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sec {
    padding: 1.25rem 1rem;
  }

  .cats,
  .srch {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

/* ═══════════════════════════════════════
       MODAL FORMULARIO DE PEDIDO
    ═══════════════════════════════════════ */
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 10, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.order-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.order-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(58, 6, 19, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: 0.3s;
}

.order-overlay.open .order-modal {
  transform: translateY(0);
}

.om-head {
  background: linear-gradient(135deg, var(--vd), var(--vm));
  padding: 1.5rem 1.75rem;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.om-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.om-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
}

.om-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  font-weight: 300;
}

.om-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s;
}

.om-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.om-resumen {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-height: 90px;
  overflow-y: auto;
}

.om-resumen strong {
  color: var(--gold);
}

.om-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.om-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: -0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--border);
}

.om-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.om-row.full {
  grid-template-columns: 1fr;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fg label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fg input,
.fg select {
  padding: 10px 12px;
  border: 1.5px solid #d4b0ba;
  border-radius: 9px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: var(--txt);
  background: var(--white);
  outline: none;
  transition: 0.2s;
  width: 100%;
}

.fg input:focus,
.fg select:focus {
  border-color: var(--v);
  box-shadow: 0 0 0 3px rgba(92, 10, 31, 0.08);
}

.fg input.error,
.fg select.error {
  border-color: #c0392b;
  background: #fff8f8;
}

.fg .hint {
  font-size: 0.68rem;
  color: var(--txt2);
  margin-top: 2px;
}

.envio-box {
  background: var(--cream2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.envio-box.medellin {
  border-color: #c8e6c9;
  background: #f1f8e9;
}

.envio-box.antioquia {
  border-color: #ffe0b2;
  background: #fff8f0;
}

.envio-box.colombia {
  border-color: #e1bee7;
  background: #f8f0ff;
}

.envio-label {
  font-size: 0.82rem;
  color: var(--txt2);
  font-weight: 500;
  line-height: 1.4;
}

.envio-label small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 2px;
}

.envio-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v);
  white-space: nowrap;
}

.om-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.875rem 1.25rem;
  background: var(--cream2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.om-total-label {
  font-size: 0.85rem;
  color: var(--txt2);
  font-weight: 500;
}

.om-total-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--vd);
}

.om-total-detail {
  font-size: 0.72rem;
  color: var(--txt2);
  margin-top: 2px;
  text-align: right;
}

.om-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  letter-spacing: 0.02em;
}

.om-submit:hover {
  background: #1daa54;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.om-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--txt2);
  line-height: 1.6;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .om-row {
    grid-template-columns: 1fr;
  }

  .om-body {
    padding: 1.25rem 1.25rem;
  }

  .om-head {
    padding: 1.25rem;
  }
}

.payment-note{
  margin-top:20px;
}

.payment-note p{
  margin:0 0 16px;
  line-height:1.5;
}

.payment-warning{
  margin:12px 0;
  padding:12px 14px;
  border-radius:12px;
  background:#fff4e5;
  font-weight:600;
  line-height:1.4;
}

.payment-info{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  background:#f7f1ee;
  line-height:1.5;
}

.payment-list{
  margin:12px 0;
  padding-left:20px;
  line-height:1.6;
}

.payment-warning{
  margin-top:15px;
  padding:12px;
  border-radius:12px;
  background:#fff4e5;
  line-height:1.5;
  font-weight:600;
}

.payment-info{
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  background:#f7f1ee;
  line-height:1.5;
}