/* ===== TOKENS ===== */
:root {
    --sh-gold: #f5a623;
    --sh-amber: #e8930a;
    --sh-purple: #2d1b69;
    --sh-violet: #4a2c8f;
    --sh-dark: #1a0f3c;
    --sh-light: #fff8e7;
    --sh-accent: #ffd166;

    --hero-duration: 6s;
    --font-display: "Playfair Display", serif;
    --font-body: "DM Sans", sans-serif;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #110a2a;
    --bs-body-color: #f5edd8;
    --bs-card-bg: #1e1244;
    --bs-border-color: #3a2460;
    --sh-card-shadow: 0 4px 30px rgba(245, 166, 35, 0.15);
}
[data-bs-theme="light"] {
    --bs-body-bg: #fffbf0;
    --bs-body-color: #1a0f3c;
    --bs-card-bg: #fff;
    --bs-border-color: #e8d5a3;
    --sh-card-shadow: 0 4px 30px rgba(45, 27, 105, 0.12);
}

* {
    box-sizing: border-box;
}
body {
    font-family: var(--font-body);
    transition:
        background 0.4s,
        color 0.4s;
}

.text-justify {
    text-align: justify !important;
}

.bg-custom-gradient {
    background: linear-gradient(
        90deg,
        var(--sh-purple),
        #643ebb,
        #7447dc
    ) !important;
}

.text-custom {
    font-family: var(--font-display);
    color: var(--sh-gold) !important;
}

.bg-custom {
    background: var(--sh-purple) !important;
}

/* ===== NAVBAR ===== */
.navbar-shamaris {
    background: var(--sh-purple) !important;
    border-bottom: 3px solid var(--sh-gold);
    position: sticky;
    top: 0;
    z-index: 1050;
}
.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--sh-gold) !important;
    letter-spacing: 0.02em;
}
.nav-link {
    color: #ddd !important;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--sh-gold) !important;
}
.btn-theme {
    background: var(--sh-gold);
    color: var(--sh-dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
}
.btn-theme:hover {
    background: var(--sh-amber);
    color: #fff;
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 94vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Animated gradient backgrounds */
.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center;
}
.hero-bg.active {
    opacity: 1;
}

.hero-bg-1 {
    background: linear-gradient(
        135deg,
        var(--sh-dark) 0%,
        var(--sh-purple) 40%,
        var(--sh-gold) 100%
    );
    animation: bgPulse1 var(--hero-duration) ease-in-out infinite alternate;
}
.hero-bg-2 {
    background: linear-gradient(
        225deg,
        #0d0620 0%,
        #3d0060 40%,
        var(--sh-amber) 100%
    );
    animation: bgPulse2 var(--hero-duration) ease-in-out infinite alternate;
}
.hero-bg-3 {
    background: linear-gradient(
        45deg,
        #1a0840 0%,
        #5c1a1a 40%,
        var(--sh-gold) 100%
    );
    animation: bgPulse3 var(--hero-duration) ease-in-out infinite alternate;
}

@keyframes bgPulse1 {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    100% {
        filter: hue-rotate(15deg) brightness(1.1);
    }
}
@keyframes bgPulse2 {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    100% {
        filter: hue-rotate(-20deg) brightness(1.12);
    }
}
@keyframes bgPulse3 {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    100% {
        filter: hue-rotate(10deg) brightness(1.08);
    }
}

/* Floating particles overlay */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.25);
    animation: float linear infinite;
}
@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-slide {
    display: none;
}
.hero-slide.active {
    display: flex;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero-tagline span {
    color: var(--sh-gold);
}
.hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 480px;
}
.btn-hero-primary {
    background: var(--sh-gold);
    color: var(--sh-dark);
    font-weight: 700;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.5);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.65);
}
.btn-hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.73rem 1.8rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Product card hero */
.hero-product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    color: #fff;
    text-align: center;
    animation: floatCard 4s ease-in-out infinite alternate;
    max-width: 340px;
    margin: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
@keyframes floatCard {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-16px);
    }
}
.hero-product-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 0.75rem;
}
.hero-product-badge {
    background: var(--sh-gold);
    color: var(--sh-dark);
    border-radius: 50px;
    padding: 0.2rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.8rem;
}
.hero-product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sh-gold);
}
.hero-product-old {
    text-decoration: line-through;
    opacity: 0.55;
    font-size: 0.9rem;
}
.hero-product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0.4rem 0;
}

/* Progress dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
}
.hero-dot.active {
    background: var(--sh-gold);
    transform: scale(1.4);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
    background: var(--sh-gold);
    color: var(--sh-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    letter-spacing: 0.04em;
}
.announce-bar a {
    color: var(--sh-dark);
    text-decoration: underline;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 5rem 0;
}
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sh-gold);
    margin-bottom: 0.4rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
}
[data-bs-theme="dark"] .section-title {
    color: #fff;
}
[data-bs-theme="light"] .section-title {
    color: var(--sh-dark);
}

/* ===== CATEGORY PILLS ===== */
#categorias {
    background: transparent;
}
.cat-card {
    border: 2px solid var(--bs-border-color);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bs-card-bg);
    box-shadow: var(--sh-card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}
.cat-card:hover {
    border-color: var(--sh-gold);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.2);
    color: inherit;
}
.cat-icon {
    font-size: 2.8rem;
    color: var(--sh-gold);
    /* display: block; */
    margin-bottom: 0.7rem;
}
.cat-label {
    font-weight: 600;
    font-size: 1rem;
}
.cat-count {
    font-size: 0.8rem;
    color: var(--sh-violet);
}
[data-bs-theme="dark"] .cat-count {
    color: var(--sh-gold);
    opacity: 0.7;
}

/* ===== PRODUCTS ===== */
#productos {
    background: transparent;
}
.product-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-card-bg);
    box-shadow: var(--sh-card-shadow);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(45, 27, 105, 0.2);
}
.product-img {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}
.product-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.15)
    );
}
.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sh-gold);
    color: var(--sh-dark);
    font-weight: 700;
    z-index: 1;
    border-radius: 8px;
    padding: 0.25rem 0.7rem;
}
.badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    z-index: 1;
    border-radius: 8px;
    padding: 0.25rem 0.7rem;
}
.product-body {
    padding: 1.2rem;
}
.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.product-cat {
    font-size: 0.78rem;
    color: var(--sh-violet);
}
[data-bs-theme="dark"] .product-cat {
    color: var(--sh-gold);
    opacity: 0.7;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sh-purple);
}
[data-bs-theme="dark"] .product-price {
    color: var(--sh-gold);
}
.product-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.5;
}
.btn-add {
    background: var(--sh-purple);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-add:hover {
    background: var(--sh-gold);
    color: var(--sh-dark);
}

/* Filter tabs */
.filter-pills .nav-link {
    border-radius: 50px !important;
    color: var(--bs-body-color) !important;
    border: 1px solid var(--bs-border-color) !important;
    margin: 0.2rem;
    font-size: 0.88rem;
    font-weight: 500;
}
.filter-pills .nav-link.active {
    background: var(--sh-purple) !important;
    color: #fff !important;
    border-color: var(--sh-purple) !important;
}

/* ===== OFFERS BANNER ===== */
#ofertas {
    background: var(--sh-purple);
    position: relative;
    overflow: hidden;
}
#ofertas::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 70% 50%,
        rgba(245, 166, 35, 0.2) 0%,
        transparent 70%
    );
}
.offer-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    color: #fff;
    text-align: center;
    transition: transform 0.25s;
}
.offer-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.13);
}
.offer-card .bi {
    font-size: 2.5rem;
    color: var(--sh-gold);
}
.offer-card h5 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0.8rem 0 0.4rem;
}
.countdown {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sh-gold);
    letter-spacing: 0.05em;
}
.countdown-label {
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 0.08em;
}

/* ===== NEWSLETTER ===== */
#newsletter {
    background: linear-gradient(135deg, var(--sh-dark) 0%, var(--sh-purple));
    color: #fff;
}
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    background: var(--sh-gold);
    color: var(--sh-dark);
    font-weight: 700;
    border: none;
    padding: 0.8rem 2rem;
}

/* ===== NEWS ===== */
.news-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-card-bg);
    box-shadow: var(--sh-card-shadow);
    transition: transform 0.25s;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.news-body {
    padding: 1.2rem;
}
.news-date {
    font-size: 0.78rem;
    color: var(--sh-gold);
    font-weight: 600;
}
.news-title {
    font-weight: 700;
    margin: 0.4rem 0;
    font-size: 1rem;
}
.news-excerpt {
    font-size: 0.88rem;
    opacity: 0.7;
}
.btn-read {
    color: var(--sh-purple);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
}
[data-bs-theme="dark"] .btn-read {
    color: var(--sh-gold);
}
.btn-read:hover {
    text-decoration: underline;
}

/* ===== TESTIMONIALS ===== */
#testimonios {
    background: transparent;
}
.testi-card {
    border-radius: 20px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-card-bg);
    box-shadow: var(--sh-card-shadow);
    padding: 2rem 1.5rem;
}
.testi-stars {
    color: var(--sh-gold);
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}
.testi-text {
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}
.testi-author {
    font-weight: 700;
    font-size: 0.95rem;
}
.testi-role {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===== BRANDS ===== */
#marcas {
    background: transparent;
}
.brand-chip {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sh-purple);
    transition: all 0.2s;
    box-shadow: var(--sh-card-shadow);
}
[data-bs-theme="dark"] .brand-chip {
    color: var(--sh-gold);
}
.brand-chip:hover {
    border-color: var(--sh-gold);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--sh-dark);
    color: #ccc;
    padding: 4rem 0 1.5rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--sh-gold);
}
.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.footer-link {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--sh-gold);
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 1.1rem;
    margin-right: 0.4rem;
    transition:
        background 0.2s,
        color 0.2s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--sh-gold);
    color: var(--sh-dark);
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}
.footer-bottom {
    font-size: 0.82rem;
    color: #777;
}

/* ===== BACK TO TOP ===== */
#backTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sh-gold);
    color: var(--sh-dark);
    border: none;
    font-size: 1.3rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.5);
    transition: transform 0.2s;
}
#backTop:hover {
    transform: translateY(-3px);
}
#backTop.visible {
    display: flex;
}

/* Fade-in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s,
        transform 0.6s;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .hero-product-card {
        margin-top: 2rem;
    }
    .hero-slide.active {
        flex-direction: column;
    }
}

/* ===== CATEGORY AUTO-SCROLL ===== */
.cat-auto-section {
    background: var(--bs-card-bg) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

.cat-auto-row {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    padding: 1rem 0;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.cat-auto-inner {
    display: flex;
    animation: scrollCategories 40s linear infinite;
    flex-shrink: 0;
}

.cat-auto-row:hover .cat-auto-inner {
    animation-play-state: paused;
}

.cat-pill {
    background: var(--bs-card-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: var(--sh-card-shadow);
}

.cat-pill:hover {
    background: var(--sh-purple);
    color: #fff;
    border-color: var(--sh-purple);
    transform: scale(1.05);
}

@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
