/* =============================================================================
   Tienda v2 - Gades Care graphite showcase (2026-10-26)
   File: /public_html/assets/css/31tienda.css
   30tienda.css + kits strip arrows, edge fades and phone dots (2026-10-27). Tokens: brand-review/BRAND_VISUAL_SYSTEM.md.
   Cart overrides are scoped to body.t30 so cart35.css on the LPs is unchanged.
   ============================================================================= */

:root {
    --ink: #0a0a0c;
    --graphite: #131318;
    --surface: #1a1a22;
    --line: #26262e;
    --ivory: #f0eff4;
    --mist: #9894a3;
    --muted: #6b6779;
    --paper: #f6f5f1;
    --gold: #c8a44e;
    --gold-hover: #ddb94f;
    --strike: #ef4444;
    --whatsapp: #25d366;
    --display: 'Outfit', system-ui, sans-serif;
    --text: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.t30 {
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--text);
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 96px;
}
.t30 a { color: inherit; text-decoration: none; }
.t30 button { font: inherit; color: inherit; }
.t30 .ic { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* --- Strip + header ------------------------------------------------------- */
.strip {
    background: var(--gold);
    color: #000;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    padding: 7px 12px;
}
.top {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 10, 12, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 6px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; }
.gm {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink); border: 1px solid #2a2a33;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1;
    color: var(--gold); padding-bottom: 5px;
}
.wm { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.wm b { font-weight: 600; }
.wm span { font-weight: 300; color: var(--gold); }
.sp { flex: 1; }
.top-wa, .top-bag {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer; position: relative;
}
.top-wa svg, .top-bag .ic { width: 23px; height: 23px; }
.top-bag-n {
    position: absolute; top: 4px; right: 3px;
    min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
    background: var(--gold); color: #000;
    font: 700 10.5px/17px var(--display); text-align: center;
    display: none;
}
.top-bag-n.on { display: block; }

/* --- Hero + chips --------------------------------------------------------- */
.hero { padding: 22px 0 6px; }
.hero h1 {
    margin: 0;
    font-family: var(--display); font-weight: 800;
    font-size: 30px; line-height: 1.08; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero p { margin: 8px 0 0; color: #cfcdd6; font-size: 15px; }

.chips {
    display: flex; gap: 8px;
    padding: 14px 16px 6px; margin: 0 -16px;
    overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    display: flex; align-items: center; gap: 7px;
    border: 1px solid var(--line); background: var(--graphite);
    border-radius: 99px; padding: 9px 14px;
    font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.chip .ic { width: 16px; height: 16px; }
.chip.on { border-color: var(--gold); color: var(--gold); }

/* --- Section headers ------------------------------------------------------ */
.sec { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 10px; }
.sec h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; white-space: nowrap; }
.sec .count { color: var(--muted); font-weight: 600; font-size: 16px; margin-left: 4px; }
.sort { display: flex; align-items: center; gap: 6px; color: var(--mist); font-size: 13px; }
.sort select {
    background: var(--graphite); color: var(--ivory);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 7px 10px; font: 500 13px var(--text);
}

/* --- Kits row ------------------------------------------------------------- */
.kits {
    display: flex; gap: 12px;
    margin: 0 -16px; padding: 0 16px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.kits::-webkit-scrollbar { display: none; }
.kit {
    flex: 0 0 82%; max-width: 320px; scroll-snap-align: start;
    display: flex; flex-direction: column;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line); background: var(--graphite);
}
.kit-img { display: block; aspect-ratio: 4 / 3; background: #fff; }
.kit-img img { width: 100%; height: 100%; object-fit: cover; display: block; }.kit-t { display: flex; flex-direction: column; padding: 11px 13px 13px; }
.kit-n { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.kit-d { font-size: 13px; color: var(--mist); margin: 2px 0 7px; }
.kit-p { font-family: var(--display); font-weight: 800; font-size: 18px; }
.kit-p s { font-family: var(--text); font-weight: 400; font-size: 13px; color: var(--mist); text-decoration-color: var(--strike); margin-left: 8px; }
.kits-wrap { position: relative; }
.kits-nav { display: none; gap: 6px; }
.kits-arrow {
    width: 34px; height: 34px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--graphite); cursor: pointer;
}
.kits-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.kits-arrow:disabled { opacity: .35; cursor: default; }
.kits-fade { display: none; position: absolute; top: 0; bottom: 4px; width: 56px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.kits-fade.l { left: 0; background: linear-gradient(to right, var(--ink), rgba(10, 10, 12, 0)); }
.kits-fade.r { right: 0; background: linear-gradient(to left, var(--ink), rgba(10, 10, 12, 0)); }
.more-l .kits-fade.l, .more-r .kits-fade.r { opacity: 1; }
.kits-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.kits-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s, background .2s; }
.kits-dots i.on { width: 16px; background: var(--gold); }

/* --- Product grid --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
    display: flex; flex-direction: column;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line); background: var(--graphite);
    cursor: pointer;
}
.card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 10px;
}
.card-img img {
    position: absolute; top: 10px; left: 10px;
    width: calc(100% - 20px); height: calc(100% - 20px);
    object-fit: contain; display: block;
}
.badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--ink); color: var(--gold);
    font: 700 11px/1 var(--text); letter-spacing: 0.04em;
    padding: 5px 8px; border-radius: 6px;
}
.card-t { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-n {
    font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-d {
    font-size: 12.5px; line-height: 1.4; color: var(--mist); margin: 4px 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-p { font-family: var(--display); font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.btn-add {
    flex: none;
    width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid rgba(200, 164, 78, 0.35);
    background: rgba(200, 164, 78, 0.14);
    color: var(--gold) !important;
    font: 600 24px/1 var(--display) !important;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0 0 2px;
    transition: background 0.15s ease;
}
.btn-add:hover { background: rgba(200, 164, 78, 0.26); }
.btn-add:disabled { opacity: 0.4; cursor: default; }
.coming-soon .card-img img { opacity: 0.55; }

.variant-name { font-size: 12px; color: var(--gold); min-height: 0; margin-top: 3px; }
.variant-name:empty { display: none; }
.variant-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.variant-swatch {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--line); padding: 0; cursor: pointer;
}
.variant-swatch.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--ink) inset; }

/* --- Trust + footer ------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 28px 0 8px; }
.trust div {
    background: var(--graphite); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 10px; text-align: center;
    font-size: 12.5px; line-height: 1.35; color: #dedce4;
}
.trust .ic { width: 22px; height: 22px; display: block; margin: 0 auto 6px; color: var(--gold); }
.foot { padding: 18px 0 8px; text-align: center; color: var(--muted); font-size: 12px; }

/* --- Floating WhatsApp + cart bar (cart67 markup) ------------------------- */
.floating-wa-btn {
    position: fixed; left: 16px; bottom: 18px; z-index: 1001;
    width: 52px; height: 52px; border-radius: 14px;
    background: #11221a; border: 1px solid #1f3a2c;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.floating-wa-btn svg { fill: var(--whatsapp); width: 26px; height: 26px; }

body.t30 {
    --cart-gold: #c8a44e;
    --cart-gold-hover: #ddb94f;
    --dark-gold: #a8873a;
    --cart-bg: #131318;
    --cart-bg-dark: #0a0a0c;
    --cart-border: #26262e;
    --cart-text-muted: #9894a3;
}
body.t30 .floating-cart {
    left: 78px; right: 16px; bottom: 18px;
    max-width: 460px;
    background: var(--gold);
    border: 0; border-radius: 14px;
    padding: 10px 14px;
    color: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    font-family: var(--display);
}
body.t30 .floating-cart .cart-count { background: #000; color: var(--gold); }
body.t30 .floating-cart .cart-text,
body.t30 .floating-cart .cart-total { color: #000; font-weight: 700; }
body.t30 .floating-cart .cart-btn {
    background: #000; color: var(--gold); border: 0;
    border-radius: 10px; font-family: var(--display); font-weight: 700;
}
body.t30 .floating-cart-hint { color: #000; font-family: var(--text); font-weight: 600; }
body.t30 .floating-cart-hint span { color: #000; }
body.t30 .cart-modal, body.t30 .checkout-modal { font-family: var(--text); }
body.t30 .cart-modal h2, body.t30 .checkout-modal h2 { font-family: var(--display); }

/* --- Desktop -------------------------------------------------------------- */
@media (min-width: 720px) {
    .hero { padding-top: 34px; }
    .hero h1 { font-size: 40px; max-width: 760px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .kit { flex-basis: 320px; }
    .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
    .kits { margin: 0; padding: 0 0 4px; }
    .kits-nav:not([hidden]) { display: flex; }
    .kits-fade { display: block; }
    .kits-dots { display: none; }
    .trust div { font-size: 13.5px; padding: 16px; }
}
@media (min-width: 1000px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
    .sort span { display: none; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 27px; }
    .card-p { font-size: 15px; }
    .btn-add { width: 34px; height: 34px; }
}
