/**
 * FACILECOMMERCE - Estilos tienda pública
 */

:root {
    --store-primary: #111827;
    --store-accent: #dc2626;
    --store-accent-dark: #b91c1c;
    --store-bg: #fff5f5;
    --store-text: #0f172a;
    --store-muted: #64748b;
    --store-card: #ffffff;
    --store-border: #e2e8f0;
    --store-radius: 14px;
    --store-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    --store-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--store-font);
    color: var(--store-text);
    background: var(--store-bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.store-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--store-accent);
    color: white;
}

.store-btn:hover {
    background: var(--store-accent-dark);
}

.store-btn.outline {
    background: transparent;
    border: 1px solid var(--store-border);
    color: var(--store-text);
}

.store-btn.outline:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
}

.store-header {
    background: white;
    border-bottom: 1px solid var(--store-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.store-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.store-brand-logo {
    width: 90px;
    height: 42px;
    border-radius: 12px;

    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.store-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--store-muted);
}

.store-nav a.active,
.store-nav a:hover {
    background: var(--store-bg);
    color: var(--store-text);
}

.store-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #fee2e2 0%, #fff5f5 60%);
}

.store-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: center;
    gap: 32px;
}

.store-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 16px;
}

.store-hero-carousel {
    position: relative;
    height: 220px;
    border-radius: var(--store-radius);
    overflow: hidden;
    box-shadow: var(--store-shadow);
    margin-top: 20px;
}

.store-hero-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: carouselFade 12s infinite;
}

.store-hero-carousel img:nth-child(2) {
    animation-delay: 4s;
}

.store-hero-carousel img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes carouselFade {

    0%,
    30% {
        opacity: 1;
    }

    33%,
    100% {
        opacity: 0;
    }
}

.store-hero p {
    color: var(--store-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.store-hero-card {
    background: white;
    padding: 24px;
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
}

.store-section {
    padding: 48px 0;
}

.store-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--store-card);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.store-card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.store-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.store-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.store-price del {
    color: var(--store-muted);
    font-weight: 500;
    margin-right: 6px;
    font-size: 0.9rem;
}

.store-muted {
    color: var(--store-muted);
}

.store-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--store-border);
    color: var(--store-muted);
    font-size: 0.85rem;
}

.store-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 40px 0;
}

.store-fixed-logo {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 70px;
    height: auto;
    z-index: 50;
    border-radius: 12px;
    box-shadow: var(--store-shadow);
    background: white;
    padding: 6px;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.store-footer a {
    color: #fbbf24;
}

.store-form {
    display: grid;
    gap: 16px;
}

.store-form input,
.store-form textarea,
.store-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--store-border);
    font-family: inherit;
}

.store-form textarea {
    min-height: 100px;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table th,
.store-table td {
    padding: 12px;
    border-bottom: 1px solid var(--store-border);
    text-align: left;
}

.store-table th {
    font-size: 0.85rem;
    color: var(--store-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-summary {
    background: white;
    border-radius: var(--store-radius);
    padding: 20px;
    box-shadow: var(--store-shadow);
}

.store-alert {
    padding: 12px 16px;
    border-radius: 10px;
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    margin-bottom: 16px;
}

.store-alert.warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.store-product-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.store-product-gallery {
    background: white;
    border-radius: var(--store-radius);
    padding: 20px;
    box-shadow: var(--store-shadow);
}

.store-product-gallery img {
    border-radius: 12px;
    height: 360px;
    width: 100%;
    object-fit: cover;
}

.store-product-info {
    display: grid;
    gap: 16px;
}

.store-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .store-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    background-color: #20b85a;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
    display: block;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}