/* ══════════════════════════════════════════════════════
   VIMEDIA STORE — CSS independiente
   Paleta: purple #5e2ced, cyan #00dafc, verde #bef264
   ══════════════════════════════════════════════════════ */

:root {
    --st-purple: #5e2ced;
    --st-dark: #38358c;
    --st-cyan: #00dafc;
    --st-mint: #75cebb;
    --st-green: #bef264;
    --st-white: #ffffff;
    --st-bg: #f8fafc;
    --st-text: #1e293b;
    --st-muted: #64748b;
    --st-border: rgba(56,53,140,0.1);
    --st-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --st-shadow-md: 0 8px 24px rgba(94,44,237,0.12);
    --st-radius: 14px;
    --st-t: 0.25s ease;
}

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

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: var(--st-bg);
    color: var(--st-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--st-purple); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.st-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────── */
.st-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15,23,42,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.st-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; gap: 20px;
}
.st-header__logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700;
}
.st-header__logo i { font-size: 1.3rem; color: var(--st-cyan); }
.st-header__logo strong { color: var(--st-cyan); }
.st-header__nav { display: flex; gap: 4px; }
.st-header__nav a {
    padding: 8px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600;
    color: rgba(255,255,255,0.7); transition: all var(--st-t);
}
.st-header__nav a:hover, .st-header__nav a.active {
    color: #fff; background: rgba(94,44,237,0.3);
}
.st-header__actions { display: flex; align-items: center; gap: 12px; }
.st-header__back {
    font-size: .8rem; color: rgba(255,255,255,0.6); font-weight: 600;
    transition: color var(--st-t);
}
.st-header__back:hover { color: #fff; }
.st-header__cart {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(94,44,237,0.2); color: #fff;
    font-size: 1.1rem; transition: all var(--st-t);
}
.st-header__cart:hover { background: var(--st-purple); transform: scale(1.05); }
.st-header__cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--st-cyan); color: #0f172a;
    font-size: .65rem; font-weight: 800; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── Hero ────────────────────────────────────────────── */
.st-hero {
    padding: 160px 0 80px; text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #38358c 100%);
    color: #fff; position: relative; overflow: hidden;
}
.st-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(94,44,237,0.3) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(0,218,252,0.15) 0%, transparent 50%);
}
.st-hero > * { position: relative; z-index: 1; }
.st-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 100px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 24px;
}
.st-hero__title {
    font-family: 'Poppins', sans-serif; font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -2px; margin-bottom: 16px;
}
.st-hero__title span { color: var(--st-cyan); }
.st-hero__sub {
    font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px;
    margin: 0 auto 30px; line-height: 1.7;
}
.st-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 100px; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: .88rem; border: none; cursor: pointer;
    transition: all var(--st-t); text-decoration: none;
}
.st-btn--primary {
    background: linear-gradient(135deg, var(--st-purple), var(--st-cyan));
    color: #fff; box-shadow: 0 4px 16px rgba(94,44,237,0.3);
}
.st-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(94,44,237,0.4); }
.st-btn--ghost {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.st-btn--ghost:hover { background: rgba(255,255,255,0.1); }
.st-btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ── Sections ────────────────────────────────────────── */
.st-section { padding: 60px 0; }
.st-section--alt { background: #fff; }
.st-section__title {
    font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 1.6rem;
    color: var(--st-dark); margin-bottom: 28px; letter-spacing: -0.5px;
}

/* ── Categories grid ─────────────────────────────────── */
.st-cats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.st-cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 16px; background: #fff; border: 1px solid var(--st-border);
    border-radius: var(--st-radius); text-decoration: none; color: var(--st-text);
    transition: all var(--st-t); text-align: center;
}
.st-cat-card i { font-size: 1.8rem; color: var(--st-purple); }
.st-cat-card span { font-weight: 700; font-size: .88rem; }
.st-cat-card:hover { transform: translateY(-4px); box-shadow: var(--st-shadow-md); border-color: rgba(94,44,237,0.2); }

/* ── Product cards ───────────────────────────────────── */
.st-products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.st-card {
    background: #fff; border: 1px solid var(--st-border); border-radius: var(--st-radius);
    overflow: hidden; position: relative; transition: all var(--st-t);
}
.st-card:hover { transform: translateY(-4px); box-shadow: var(--st-shadow-md); }
.st-card__link { text-decoration: none; color: inherit; display: block; }
.st-card__img {
    height: 200px; background: #f1f5f9; display: flex; align-items: center;
    justify-content: center; overflow: hidden; position: relative;
}
.st-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.st-card:hover .st-card__img img { transform: scale(1.05); }
.st-card__placeholder { color: #cbd5e1; font-size: 48px; }
.st-card__body { padding: 16px; }
.st-card__cat {
    font-size: .7rem; font-weight: 700; color: var(--st-purple);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.st-card__name {
    font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700;
    color: var(--st-text); margin-bottom: 2px; line-height: 1.3;
}
.st-card__brand { font-size: .78rem; color: var(--st-muted); margin-bottom: 8px; }
.st-card__price {
    font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 900;
    color: var(--st-purple);
}
.st-card__delivery { font-size: .75rem; color: var(--st-muted); margin-top: 6px; }
.st-card__add {
    position: absolute; bottom: 16px; right: 16px;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--st-purple); color: #fff; border: none;
    font-size: 1rem; cursor: pointer; opacity: 0;
    transform: translateY(8px); transition: all var(--st-t);
    box-shadow: 0 4px 14px rgba(94,44,237,0.4);
}
.st-card:hover .st-card__add { opacity: 1; transform: translateY(0); }
.st-card__add:hover { background: var(--st-dark); transform: scale(1.1) !important; }

/* ── Badges ──────────────────────────────────────────── */
.st-badge {
    display: inline-block; padding: 4px 10px; border-radius: 100px;
    font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.st-badge--star { position: absolute; top: 10px; left: 10px; background: #facc15; color: #0f172a; }
.st-badge--tipo { position: absolute; top: 10px; right: 10px; }
.st-badge--stock { background: #28a745; color: #fff; }
.st-badge--pedido { background: var(--st-purple); color: #fff; }

/* ── Product detail ──────────────────────────────────── */
.st-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.st-product__main-img {
    border-radius: var(--st-radius); overflow: hidden; background: #fff;
    border: 1px solid var(--st-border); aspect-ratio: 1;
}
.st-product__main-img img { width: 100%; height: 100%; object-fit: contain; }
.st-product__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.st-product__thumbs img {
    width: 70px; height: 70px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid transparent; opacity: 0.6;
    transition: all var(--st-t);
}
.st-product__thumbs img.active, .st-product__thumbs img:hover { border-color: var(--st-purple); opacity: 1; }

.st-product__cat { font-size: .78rem; font-weight: 700; color: var(--st-purple); text-transform: uppercase; margin-bottom: 6px; }
.st-product__name { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--st-dark); margin-bottom: 8px; line-height: 1.2; }
.st-product__brand { font-size: .9rem; color: var(--st-muted); margin-bottom: 16px; }
.st-product__price-box { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.st-product__price { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 900; color: var(--st-purple); }
.st-product__delivery { font-size: .88rem; color: var(--st-muted); margin-bottom: 20px; }

.st-product__details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.st-product__desc h3, .st-product__specs h3 {
    font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--st-dark);
    margin-bottom: 14px; font-size: 1.1rem;
}
.st-product__specs ul { list-style: none; }
.st-product__specs li {
    padding: 10px 0; border-bottom: 1px solid var(--st-border);
    font-size: .9rem;
}
.st-product__specs li::before { content: '•'; color: var(--st-purple); font-weight: 900; margin-right: 10px; }

/* ── Cart ────────────────────────────────────────────── */
.st-cart-table { display: flex; flex-direction: column; gap: 12px; }
.st-cart-item {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: #fff; border: 1px solid var(--st-border); border-radius: var(--st-radius);
}
.st-cart-item__img { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.st-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.st-cart-item__info { flex: 1; }
.st-cart-item__info h4 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.st-cart-item__qty { display: flex; align-items: center; gap: 8px; }
.st-qty-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--st-border);
    background: #fff; font-size: 1rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all var(--st-t);
}
.st-qty-btn:hover { background: var(--st-purple); color: #fff; border-color: var(--st-purple); }
.st-cart-item__price { text-align: right; min-width: 100px; }
.st-cart-item__remove {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #fef2f2; color: #dc3545; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: all var(--st-t);
}
.st-cart-item__remove:hover { background: #dc3545; color: #fff; }

.st-cart-summary {
    margin-top: 24px; padding: 24px; background: #fff;
    border: 1px solid var(--st-border); border-radius: var(--st-radius);
    max-width: 400px; margin-left: auto;
}
.st-cart-summary__total {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 900;
    color: var(--st-purple); margin-bottom: 18px;
}

/* ── Checkout ────────────────────────────────────────── */
.st-checkout-panel {
    background: #fff; border: 1px solid var(--st-border); border-radius: var(--st-radius);
    padding: 24px;
}
.st-checkout-panel h3 {
    font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--st-dark);
    font-size: 1rem; margin-bottom: 16px;
}
.st-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-field { display: flex; flex-direction: column; gap: 4px; }
.st-field label { font-size: .82rem; font-weight: 700; color: var(--st-text); }
.st-field input, .st-field select, .st-field textarea {
    padding: 12px 16px; border: 1.5px solid var(--st-border); border-radius: 10px;
    font-family: 'Montserrat', sans-serif; font-size: .9rem; color: var(--st-text);
    transition: border-color var(--st-t);
}
.st-field input:focus, .st-field select:focus, .st-field textarea:focus {
    outline: none; border-color: var(--st-purple); box-shadow: 0 0 0 3px rgba(94,44,237,0.1);
}

.st-payment-options { display: flex; flex-direction: column; gap: 10px; }
.st-payment-opt {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    border: 1.5px solid var(--st-border); border-radius: 10px;
    cursor: pointer; transition: all var(--st-t);
}
.st-payment-opt:has(input:checked) { border-color: var(--st-purple); background: rgba(94,44,237,0.04); }
.st-payment-opt__body { display: flex; flex-direction: column; }
.st-payment-opt__body strong { font-size: .88rem; }
.st-payment-opt__body small { font-size: .75rem; color: var(--st-muted); }

.st-checkout-summary {
    position: sticky; top: 90px;
    background: #fff; border: 1px solid var(--st-border); border-radius: var(--st-radius);
    padding: 24px;
}
.st-checkout-summary h3 {
    font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--st-dark);
    font-size: 1rem; margin-bottom: 16px;
}
.st-checkout-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.st-checkout-item { display: flex; justify-content: space-between; font-size: .85rem; }
.st-checkout-item__name { color: var(--st-text); }
.st-checkout-item__name small { color: var(--st-muted); }
.st-checkout-item__price { font-weight: 700; }
.st-checkout-totals { border-top: 1px solid var(--st-border); padding-top: 12px; }
.st-checkout-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .88rem; }
.st-checkout-row--total {
    font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 900;
    color: var(--st-purple); padding-top: 12px; border-top: 2px solid var(--st-purple);
    margin-top: 8px;
}

/* ── Filters ─────────────────────────────────────────── */
.st-filters {
    display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center;
}
.st-filters__search {
    position: relative; flex: 1; min-width: 220px;
}
.st-filters__search i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--st-purple);
}
.st-filters__search input {
    width: 100%; padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--st-border); border-radius: 100px;
    font-family: 'Montserrat', sans-serif; font-size: .88rem; color: var(--st-text);
}
.st-filters__search input:focus { outline: none; border-color: var(--st-purple); }
.st-filters select {
    padding: 12px 16px; border: 1.5px solid var(--st-border); border-radius: 100px;
    font-family: 'Montserrat', sans-serif; font-size: .85rem; cursor: pointer; color: var(--st-text);
}

/* ── Empty state ─────────────────────────────────────── */
.st-empty {
    text-align: center; padding: 60px 20px; color: var(--st-muted);
}
.st-empty p { margin-bottom: 16px; font-size: 1rem; }

/* ── Pagination ──────────────────────────────────────── */
.st-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.st-pagination a {
    padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem;
    background: #fff; color: var(--st-dark); border: 1px solid var(--st-border);
    transition: all var(--st-t);
}
.st-pagination a:hover, .st-pagination a.active {
    background: var(--st-purple); color: #fff; border-color: var(--st-purple);
}

/* ── Footer ──────────────────────────────────────────── */
.st-footer {
    padding: 30px 0; text-align: center; font-size: .82rem; color: var(--st-muted);
    border-top: 1px solid var(--st-border);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .st-header__nav { display: none; }
    .st-hero__title { font-size: 2.5rem; }
    .st-product-layout { grid-template-columns: 1fr; }
    .st-product__details { grid-template-columns: 1fr; }
    .st-form-grid { grid-template-columns: 1fr; }
    .st-cart-item { flex-wrap: wrap; }
    .st-cart-item__price { min-width: auto; }
    .st-checkout-summary { position: static; }
    .st-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .st-card__img { height: 150px; }
}
