:root { --bg: #fcfaf8; --bg-soft: #ffffff; --surface: rgba(255, 255, 255, 0.85); --surface-solid: #ffffff; --surface-dark: #2a2422; --text: #362f2d; --muted: #8c7e7a; --line: rgba(140, 126, 122, 0.15); --line-strong: rgba(140, 126, 122, 0.3); --rose: #f4e9eb; --rose-strong: #d8b8c1; --blue: #e8f0f6; --gold: #cba882; --success: #3c8261; --danger: #b05063; --shadow: 0 30px 60px rgba(54, 47, 45, 0.05); --shadow-soft: 0 15px 35px rgba(54, 47, 45, 0.03); --radius-xl: 2px; --radius-lg: 2px; --radius-md: 2px; --radius-sm: 2px; --max: 1200px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at top left, rgba(244, 233, 235, 0.6), transparent 40%), radial-gradient(circle at top right, rgba(232, 240, 246, 0.5), transparent 40%), linear-gradient(180deg, var(--bg) 0%, #f7f3f0 50%, var(--bg) 100%); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.topbar { padding: 0.6rem 1rem; text-align: center; color: #fff; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; background: var(--surface-dark); }
.site-header { width: min(var(--max), calc(100% - 2rem)); margin: 1.5rem auto 0; padding: 0.8rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 1rem; z-index: 20; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02); transition: all 0.3s ease; }
.brand img { width: 90px; height: auto; transition: transform 0.3s ease; }
.brand:hover img { transform: scale(1.02); }
.main-nav { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.main-nav a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); transition: color 0.3s ease; position: relative; }
.main-nav a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -4px; left: 0; background-color: var(--text); transition: width 0.3s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }
.section-wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.hero-banner { position: relative; width: 100%; height: 85vh; min-height: 600px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6rem; text-align: center; overflow: hidden; background: #1a1614; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 60%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: white; max-width: 800px; padding: 0 1.5rem; width: 100%; }
.hero-content .eyebrow { color: white; margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 0.3em; }
.hero-content h1 { color: white; margin-bottom: 2.5rem; }
.hero-cursive { font-family: 'Dancing Script', cursive; font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; will-change: opacity; }
.hero-slide.is-active { opacity: 1; }
.hero-dots { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 3; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background 0.4s ease, transform 0.4s ease; cursor: pointer; }
.hero-dot.is-active { background: white; transform: scale(1.4); }
.section-heading h2, .cta h2, .payment-result-card h1, .login-card h1, .admin-header h1, .admin-card-title h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 400; letter-spacing: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; }
.cta-actions, .form-actions, .admin-actions, .payment-result-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all 0.3s ease; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { color: white; background: var(--surface-dark); border-color: var(--surface-dark); }
.btn-primary:hover { background: #403633; border-color: #403633; }
.btn-secondary, .btn-ghost, .btn-outline { color: var(--surface-dark); background: transparent; border-color: var(--line-strong); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--surface-dark); background: rgba(255, 255, 255, 0.5); }
.btn-secondary-light { color: white; background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-secondary-light:hover { border-color: white; background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 0.8rem 1.2rem; font-size: 0.75rem; }
.danger-btn { color: white; background: var(--danger); border-color: var(--danger); }
.service-card, .admin-card, .login-card, .payment-result-card, .product-modal-panel { border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 4rem 0; border-bottom: 1px solid var(--line); }
.service-card { border-radius: var(--radius-sm); padding: 2.5rem; background: transparent; border: none; box-shadow: none; text-align: center; }
.service-card .eyebrow { color: var(--line-strong); font-size: 1rem; margin-bottom: 1.5rem; }
.service-card h3 { margin: 0 0 1rem; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 1.5rem; color: var(--surface-dark); }
.service-card p:last-child { margin: 0; color: var(--muted); font-weight: 300; }
.carousel-section { padding: 6rem 0; overflow: hidden; position: relative; }
.carousel-wrapper { position: relative; display: flex; align-items: center; margin-top: 3rem; }
.carousel-track { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 1rem 0 3rem 0; scrollbar-width: none; width: 100%; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card { flex: 0 0 calc(25% - 1.5rem); scroll-snap-align: start; min-width: 250px; }
.carousel-btn { position: absolute; z-index: 10; top: 40%; transform: translateY(-50%); background: var(--surface-dark); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); font-size: 2rem; padding-bottom: 4px; transition: all 0.3s ease; opacity: 0.9; }
.carousel-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.05); }
.prev-btn { left: -25px; }
.next-btn { right: -25px; }
.collection { padding: 6rem 0 4rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; margin-bottom: 3rem; }
.section-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; color: var(--surface-dark); }
.section-text { max-width: 40ch; color: var(--muted); margin: 0; font-weight: 300; font-size: 1.05rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; justify-content: center; }
.chip { border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted); padding: 0.8rem 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s ease; position: relative; }
.chip::after { content: ''; position: absolute; width: 0; height: 1px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--surface-dark); transition: width 0.3s ease; }
.chip.is-active, .chip:hover { color: var(--surface-dark); background: transparent; }
.chip.is-active::after, .chip:hover::after { width: 100%; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.loading-card { grid-column: 1 / -1; padding: 4rem; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.product-card { overflow: hidden; border-radius: var(--radius-sm); border: none; background: transparent; box-shadow: none; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-10px); outline: none; }
.product-card.is-sold-out { opacity: 0.6; filter: grayscale(0.5); }
.product-image-wrap { position: relative; padding: 0; overflow: hidden; border-radius: var(--radius-sm); }
.product-image { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-sm); transition: transform 0.8s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.badge, .badge-stock { position: absolute; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; background: var(--surface-solid); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.badge-category { top: 1rem; left: 1rem; padding: 0.5rem 0.8rem; color: var(--surface-dark); border: none; }
.badge-stock { padding: 0.5rem 0.8rem; color: var(--success); border: none; }
.badge-stock.is-low { color: var(--gold); }
.badge-stock.is-out { color: var(--danger); }
.product-image-wrap .badge-stock { right: 1rem; bottom: 1rem; }
.product-content { padding: 1.5rem 0 0; display: flex; flex-direction: column; flex-grow: 1; }
.product-card .product-meta, .product-card .product-description, .product-card .stock-label, .product-card .compare-price { display: none; }
.product-name { margin: 0 0 0.5rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 400; line-height: 1.3; color: var(--surface-dark); }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; }
.price-block { display: flex; align-items: center; gap: 0.8rem; }
.price { font-size: 1.1rem; font-weight: 600; color: var(--surface-dark); }
.product-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.product-actions > * { flex: 1; padding: 0.8rem 0.5rem; }
.cta { border-radius: var(--radius-sm); padding: 5rem 4rem; margin: 0 auto 6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; border: none; background: var(--surface-dark); color: white; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%); pointer-events: none; }
.cta h2 { color: white; }
.cta p:not(.eyebrow) { color: rgba(255, 255, 255, 0.7); max-width: 50ch; margin: 0 auto; font-weight: 300; font-size: 1.1rem; }
.cta-actions { justify-content: center; }
.cta .btn-primary { background: white; color: var(--surface-dark); border-color: white; }
.cta .btn-primary:hover { background: transparent; color: white; }
.cta .btn-secondary { color: white; border-color: rgba(255, 255, 255, 0.3); }
.cta .btn-secondary:hover { border-color: white; background: transparent; }
.footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 1.5rem; }
.footer-brand img { width: 80px; }
.footer strong { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 1.2rem; color: var(--surface-dark); margin-bottom: 0.2rem; }
.footer span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.footer a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--surface-dark); transition: opacity 0.3s ease; }
.footer a:hover { opacity: 0.6; }
.product-modal { position: fixed; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 200; display: flex; align-items: center; justify-content: center; }
.product-modal.is-open { opacity: 1; pointer-events: auto; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 34, 0.8); backdrop-filter: blur(10px); }
.product-modal-panel { position: relative; width: min(1100px, calc(100% - 4rem)); max-height: 90vh; overflow-y: auto; margin: 0; border-radius: var(--radius-sm); padding: 0; background: var(--bg); display: flex; }
.modal-close { position: absolute; right: 1.5rem; top: 1.5rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--surface-dark); font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; }
.modal-close:hover { background: var(--surface-dark); color: white; border-color: var(--surface-dark); }
.modal-product-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.modal-image-shell { padding: 0; height: 100%; }
.modal-image-shell img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.modal-product-copy { padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.modal-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-product-copy h2 { margin: 0 0 1.5rem; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; color: var(--surface-dark); }
.modal-product-copy p:not(.eyebrow):not(.payment-message):not(.small-note) { color: var(--muted); font-weight: 300; font-size: 1.05rem; line-height: 1.7; }
.product-info-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-info-list div { border-radius: 0; padding: 0; background: transparent; border: none; border-left: 1px solid var(--line); padding-left: 1rem; }
.product-info-list div:first-child { border-left: none; padding-left: 0; }
.product-info-list dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.product-info-list dd { margin: 0; font-weight: 500; color: var(--surface-dark); font-size: 1.1rem; }
.quantity-field { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--surface-dark); }
.quantity-field input, .stack-form input, .stack-form textarea, .stack-form select { width: 100px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent; padding: 0.8rem; color: var(--text); text-align: center; font-size: 1rem; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; text-align: left; }
.stack-form textarea { resize: vertical; min-height: 120px; }
.modal-actions { display: flex; flex-direction: column; gap: 1rem; }
.payment-message, .form-message { margin: 1rem 0 0; min-height: 1.5em; font-weight: 500; font-size: 0.9rem; }
.muted { color: var(--muted); }
.small-note { font-size: 0.8rem; margin-top: 1.5rem; font-weight: 300; line-height: 1.5; }
.payment-result-shell { min-height: 100vh; display: grid; place-items: center; padding: 4rem 1rem; }
.payment-result-card, .login-card { width: min(600px, 100%); border-radius: var(--radius-sm); padding: 4rem; text-align: center; background: var(--surface-solid); }
.payment-result-card > img, .login-card > img { width: 120px; margin: 0 auto 2rem; }
.payment-result-card p.muted, .login-card p.muted { max-width: 45ch; margin-left: auto; margin-right: auto; font-weight: 300; }
.payment-order-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0; text-align: left; padding: 2rem; background: var(--bg); border-radius: var(--radius-sm); }
.payment-order-box div { border: none; padding: 0; background: transparent; }
.payment-order-box span, .payment-order-box strong { display: block; }
.payment-order-box span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.payment-order-box strong { margin-top: 0; font-size: 1.1rem; color: var(--surface-dark); font-weight: 500; }
.is-hidden { display: none !important; }
.admin-body { min-height: 100vh; background: var(--bg); }
.admin-shell { width: min(1200px, calc(100% - 2rem)); margin: 4rem auto; }
.login-card form { text-align: left; margin-top: 2rem; }
.admin-panel { display: grid; gap: 2rem; }
.admin-header { display: flex; justify-content: space-between; gap: 2rem; align-items: center; border-radius: var(--radius-sm); padding: 2.5rem 3rem; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-soft); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.admin-card { border-radius: var(--radius-sm); padding: 2.5rem; }
.admin-card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.admin-card-title span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.inline-title { align-items: center; }
.stack-form { display: grid; gap: 1.5rem; }
.stack-form label { display: grid; gap: 0.6rem; font-weight: 500; font-size: 0.9rem; color: var(--surface-dark); }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-form > label, .compact-form > .check-row, .compact-form > .form-actions, .compact-form > .form-message, .compact-form > .helper-note, .compact-form > input[type='hidden'] { grid-column: 1 / -1; }
.check-row { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1rem 0; }
.check-row label { display: inline-flex; flex-direction: row; align-items: center; gap: 0.8rem; font-weight: 400; cursor: pointer; }
.check-row input { width: auto; accent-color: var(--surface-dark); }
.helper-note { color: var(--muted); font-size: 0.85rem; margin: 0; font-weight: 300; }
.products-admin-card { grid-column: 1 / -1; }
.admin-products { display: grid; gap: 1rem; }
.admin-product-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: transparent; transition: background 0.3s ease; }
.admin-product-row:hover { background: rgba(255, 255, 255, 0.5); }
.admin-product-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-product-info { display: grid; gap: 0.3rem; }
.admin-product-name { font-size: 1rem; font-weight: 500; color: var(--surface-dark); }
.admin-product-detail, .admin-product-status { color: var(--muted); font-size: 0.85rem; font-weight: 300; }
.admin-product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(30px); animation: reveal-up 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   CARRITO DE COMPRAS — añadir a styles.css
   ============================================================ */

/* --- Botón carrito en el header --- */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--surface-dark);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cart-btn:hover {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: white;
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--surface-dark);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.cart-badge.is-hidden {
  opacity: 0;
  transform: scale(0);
}

.cart-badge.pop {
  animation: badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* --- Drawer del carrito --- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 36, 34, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: -20px 0 60px rgba(54, 47, 45, 0.12);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--surface-dark);
}

.cart-count-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-left: 0.5rem;
}

/* --- Lista de items --- */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--line-strong);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty p {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--rose);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--surface-dark);
  margin: 0 0 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-category {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.8rem;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--surface-dark);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  flex-shrink: 0;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--surface-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: var(--rose);
}

.qty-value {
  width: 36px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--surface-dark);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 4px;
  line-height: 32px;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  transition: color 0.2s ease;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--danger);
}

/* --- Footer del drawer --- */
.cart-footer {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface-solid);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
}

.cart-total-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.cart-total-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--surface-dark);
}

.cart-checkout-btn {
  width: 100%;
}

.cart-payment-msg {
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
  text-align: center;
}

/* --- Botón "Agregar al carrito" en tarjetas y modal --- */
.add-to-cart-btn {
  /* se combina con .btn .btn-small — estilos de feedback */
}

.add-to-cart-btn.added {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: white !important;
}

/* --- Responsive --- */
@media (max-width: 760px) {
  .cart-panel {
    width: 100vw;
  }
  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.collection-modal { position: fixed; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 150; display: flex; align-items: center; justify-content: center; }
.collection-modal.is-open { opacity: 1; pointer-events: auto; }
.collection-modal-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 34, 0.8); backdrop-filter: blur(10px); }
.collection-modal-panel { position: relative; width: min(1200px, calc(100% - 4rem)); max-height: 90vh; overflow-y: auto; margin: 0; border-radius: var(--radius-sm); padding: 3rem; background: var(--bg); display: flex; flex-direction: column; gap: 2rem; }
.collection-modal-header { text-align: center; }
.collection-modal-header h2 { font-family: "Playfair Display", Georgia, serif; font-size: 2.5rem; margin: 0 0 0.5rem; color: var(--surface-dark); }
.collection-modal-header p { color: var(--muted); margin: 0; }
.collection-modal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 1100px) { .admin-grid, .modal-product-grid { grid-template-columns: 1fr; } .hero-banner { height: auto; padding-top: 10rem; } .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section-heading, .admin-header { flex-direction: column; align-items: flex-start; } .compact-form { grid-template-columns: 1fr; } .modal-product-copy { padding: 3rem 2rem; } .carousel-track .product-card { flex: 0 0 calc(33.333% - 1.33rem); } .collection-modal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .site-header { border-radius: 0; padding: 1rem; position: static; flex-direction: column; width: 100%; margin: 0; border-top: none; border-left: none; border-right: none; } .brand img { width: 100px; } .main-nav { gap: 1rem; justify-content: center; } .carousel-section, .collection { padding-top: 3rem; } .service-strip, .products-grid, .payment-order-box { grid-template-columns: 1fr; } .product-info-list { grid-template-columns: 1fr; gap: 1.5rem; } .product-info-list div { border-left: none; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; } .product-info-list div:last-child { border-bottom: none; padding-bottom: 0; } .service-strip { gap: 2rem; padding: 3rem 0; } .footer { flex-direction: column; align-items: center; text-align: center; } .product-actions, .modal-actions, .payment-result-actions, .admin-product-actions, .hero-actions, .cta-actions { flex-direction: column; width: 100%; } .product-actions > *, .modal-actions > *, .payment-result-actions > *, .hero-actions > *, .cta-actions > * { width: 100%; } .product-modal-panel { width: calc(100% - 2rem); margin: 1rem; max-height: calc(100vh - 2rem); border-radius: var(--radius-sm); } .modal-image-shell img { border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .payment-result-card, .login-card, .admin-card, .admin-header { padding: 2rem 1.5rem; border-radius: var(--radius-sm); } .cta { padding: 3rem 1.5rem; } .admin-product-row { grid-template-columns: 1fr; text-align: center; } .admin-product-img { width: 100%; height: 250px; } .carousel-track .product-card { flex: 0 0 85%; } .carousel-btn { display: none; } .carousel-track { padding-left: 1rem; padding-right: 1rem; } .collection-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .collection-modal-panel { padding: 2rem 1rem; width: calc(100% - 2rem); } }
@media (max-width: 480px) { .collection-modal-grid { grid-template-columns: 1fr; } }
