  :root {
    --primario: #e5c3c3;
    --crema: #f9ede4;
    --rosa-oscuro: #cc9696;
    --text: #4a3d3d;
    --muted: #9a8686;
    --white: #ffffff;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: 'Jost', sans-serif;
    background: var(--crema);
    color: var(--text);
  }

  header {
    text-align: center;
    padding: 50px 20px 30px;
    background: var(--white) url('textura.png') repeat;
    background-size: 180px auto;
    position: relative;
  }
  header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.86);
  }
  header .logo, header .tagline {
    position: relative;
    z-index: 1;
  }
  .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    letter-spacing: 8px;
    color: var(--rosa-oscuro);
    font-weight: 500;
    margin: 0;
  }
  header .tagline {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primario);
    padding: 14px 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
  }
  nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 20px;
    transition: background 0.2s;
  }
  nav a:hover { background: rgba(255,255,255,0.3); }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px 80px;
  }

  .category-block {
    margin-top: 56px;
    scroll-margin-top: 70px;
  }
  .category-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: var(--rosa-oscuro);
    letter-spacing: 3px;
    margin-bottom: 6px;
  }
  .category-line {
    width: 60px;
    height: 2px;
    background: var(--primario);
    margin: 0 auto 34px;
  }
  .subcategory-title {
    font-size: 14px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 34px 0 16px;
    border-left: 3px solid var(--primario);
    padding-left: 10px;
  }

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

  .card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(204,150,150,0.12);
  }
  .card .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--crema);
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .card .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primario);
    font-size: 13px;
    text-align: center;
    padding: 10px;
    letter-spacing: 0.5px;
  }
  .card-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
  }
  .card-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
  }
  .card-dots span:first-child {
    background: var(--rosa-oscuro);
  }
  .card .info {
    padding: 12px 12px 4px;
    text-align: center;
    cursor: pointer;
  }
  .card .name {
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.3;
  }
  .card .description {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0 0 6px;
  }
  .preventa-tag {
    display: block;
    margin: 4px 12px 8px;
    font-size: 10.5px;
    letter-spacing: 0.3px;
    color: var(--rosa-oscuro);
    background: var(--crema);
    border: 1px solid var(--primario);
    border-radius: 8px;
    padding: 4px 6px;
  }
  .price-row {
    padding: 0 12px 8px;
    text-align: center;
    font-size: 12.5px;
  }
  .price-row .old-price {
    text-decoration: line-through;
    color: var(--muted);
    margin-right: 6px;
  }
  .price-row .new-price {
    color: var(--rosa-oscuro);
    font-weight: 600;
  }

  .variant-select {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 8px;
    padding: 7px 8px;
    border: 1px solid var(--primario);
    border-radius: 8px;
    background: var(--crema);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-size: 12.5px;
  }

  .add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--rosa-oscuro);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 9px 10px;
    margin: 0 12px 12px;
    border-radius: 20px;
    transition: background 0.2s;
    width: calc(100% - 24px);
  }
  .add-btn:hover { background: #b57e7e; }
  .add-btn.added { background: #8fbf8f; }

  .float-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--rosa-oscuro);
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    font-size: 24px;
    z-index: 30;
    border: none;
    cursor: pointer;
  }
  .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d64545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 40;
  }
  .overlay.open { display: block; }

  .cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 50;
    border-radius: 20px 20px 0 0;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .cart-drawer.open { transform: translateY(0); }
  .cart-header {
    padding: 18px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--crema);
  }
  .cart-header h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--rosa-oscuro);
  }
  .cart-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
  }
  .cart-items {
    padding: 10px 20px;
    overflow-y: auto;
    flex: 1;
  }
  .cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 30px 10px;
    font-size: 13px;
  }
  .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--crema);
    font-size: 13.5px;
  }
  .cart-item .qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .cart-item .qty-controls button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primario);
    background: var(--crema);
    color: var(--rosa-oscuro);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
  }
  .cart-footer {
    padding: 14px 20px 22px;
    border-top: 1px solid var(--crema);
  }
  .send-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 24px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .send-btn:disabled { background: #cfcfcf; cursor: not-allowed; }

  .payment-method {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }
  .payment-method label {
    flex: 1;
    text-align: center;
    font-size: 11.5px;
    border: 1px solid var(--primario);
    border-radius: 20px;
    padding: 8px 6px;
    cursor: pointer;
    color: var(--text);
  }
  .payment-method input { display: none; }
  .payment-method input:checked + span {
    font-weight: 600;
  }
  .payment-method label.selected {
    background: var(--rosa-oscuro);
    color: white;
    border-color: var(--rosa-oscuro);
  }
  .bank-details {
    background: var(--crema);
    border: 1px solid var(--primario);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: none;
  }
  .bank-details.show { display: block; }
  .bank-details strong { color: var(--rosa-oscuro); }
  .cart-total {
    font-size: 13px;
    padding: 6px 0 10px;
    text-align: right;
  }
  .cart-total .old-total {
    text-decoration: line-through;
    color: var(--muted);
    margin-right: 6px;
  }
  .cart-total .new-total {
    color: var(--rosa-oscuro);
    font-weight: 700;
    font-size: 15px;
  }

  /* PRODUCT DETAIL MODAL */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .modal.open { display: flex; }
  .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
  }
  .modal-box {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1;
  }
  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.85);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    z-index: 2;
  }
  .gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--crema);
    overflow: hidden;
  }
  .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .gallery .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primario);
    font-size: 15px;
    text-align: center;
  }
  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--rosa-oscuro);
  }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .gallery-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
  }
  .gallery-dots span.active { background: var(--rosa-oscuro); }
  .modal-info {
    padding: 20px 22px 24px;
  }
  .modal-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--rosa-oscuro);
    margin: 0 0 8px;
  }
  .modal-info .full-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 10px;
  }

  footer {
    text-align: center;
    padding: 30px 20px 60px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  footer a { color: var(--rosa-oscuro); text-decoration: none; }

/* HOME — bienvenida y botón "ver todos" */
.hero {
  text-align: center;
  padding: 10px 24px 36px;
  max-width: 560px;
  margin: 0 auto;
}
.hero p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.view-all-btn {
  display: inline-block;
  border: 1px solid var(--rosa-oscuro);
  color: var(--rosa-oscuro);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.view-all-btn:hover {
  background: var(--rosa-oscuro);
  color: white;
}

/* BUSCADOR */
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 4px 6px 4px 12px;
  margin: 4px 2px;
}
.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: var(--text);
  width: 120px;
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  border: none;
  background: var(--rosa-oscuro);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
