/* Galla E-commerce - Shared Styles */

:root {
    --primary: #8B5CF6;
    --primary-deep: #5A189A;
    --primary-dark: #3C096C;
    --background-dark: #0f0814;
    --slate-950: #050308;
    --metallic-silver: linear-gradient(90deg, transparent, #C0C0C0, #E8E8E8, #C0C0C0, transparent);
}

/* Impede scroll horizontal no mobile causado pelos brilhos decorativos
   (blobs de 600-800px). `clip` não cria contêiner de rolagem, então o
   header sticky continua funcionando. */
html,
body {
    overflow-x: clip !important;
}

/* Material Symbols preenchido (estrelas de avaliação etc.) */
.fill-1 {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Respeita quem pede menos movimento no sistema */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.glass {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.cosmetic-glow {
    box-shadow: 0 0 50px -10px rgba(139, 92, 246, 0.4);
}

.metallic-text {
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 30%, #6d28d9 50%, #c4b5fd 70%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    padding-left: 0.1em;
    margin-left: -0.1em;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-wordmark {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.25em;
    /* Amplo como solicitado */
    font-weight: 300;
    text-transform: uppercase;
}

/* Premium Button Styles */
.btn-premium {
    background: transparent !important;
    border: 1px solid rgba(139, 92, 246, 0.5);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.25), inset 0 0 18px rgba(139, 92, 246, 0.08);
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(76, 29, 149, 0.12));
    pointer-events: none;
    opacity: 1;
}

/* Shine effect animation */
.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: none;
    animation: btn-shine 4s infinite;
}

@keyframes btn-shine {
    0% {
        left: -60%;
    }

    25% {
        left: 110%;
    }

    100% {
        left: 110%;
    }
}

.btn-premium:hover {
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.5), inset 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.9);
    background: rgba(139, 92, 246, 0.12) !important;
}

/* Specific CTA Pulse for "Quero minha base agora" */
.btn-cta-pulse {
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Metallic Dividers */
.metallic-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #C0C0C0, #E8E8E8, #C0C0C0, transparent);
    margin: 4rem 0;
    opacity: 0.4;
}

/* Metallic Border for Cards */
.metallic-border {
    position: relative;
    border: 1px solid transparent;
    border-radius: 24px;
}

.metallic-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: linear-gradient(90deg, transparent, #C0C0C0, #E8E8E8, #C0C0C0, transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
}

/* Result Spotlight Effect */
.result-spotlight {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 12px;
    position: relative;
}

.result-image {
    border-radius: 12px;
    box-shadow: inset 0 0 20px #000;
}

/* Cart Dropdown Styles */
#cartDropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #0f0814;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin-top: 10px;
    padding: 20px;
    animation: slideDown 0.2s ease-out forwards;
}

@media (max-width: 1023px) {
    #cartDropdown {
        position: absolute;
        top: 100%;
        bottom: auto;
        left: 16px;
        right: 16px;
        width: auto;
        margin-top: 10px;
        border-radius: 16px;
        max-height: 75vh;
    }
    #cartDropdown::before {
        right: 132px !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    #cartDropdown {
        left: 24px;
        right: 24px;
    }
}

#cartDropdown.active {
    display: flex !important;
}

#cartDropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #0f0814;
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transform: rotate(45deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results Styles */
#searchResults {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f0814;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#searchResults.active {
    display: block;
}

.search-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Animations */
.animate-marquee {
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out forwards;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Galla Difference Section */
.galla-diff-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.galla-diff-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .galla-diff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.galla-diff-card {
    width: 100%;
    min-height: 380px;
    padding: 32px;
    background-color: rgba(26, 11, 46, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.galla-diff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.45);
    background-color: rgba(26, 11, 46, 0.5);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18), 0 0 25px rgba(139, 92, 246, 0.05);
}

.galla-diff-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-weight: 700;
}

.galla-diff-text {
    font-size: 15px;
    line-height: 1.6;
    color: #D1C4E9;
    font-weight: 300;
}

.galla-diff-header-title {
    color: #FFFFFF;
    text-align: center;
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .galla-diff-header-title {
        font-size: 2.5rem;
    }
}

.galla-diff-header-subtitle {
    color: #c4b5fd;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .galla-diff-header-subtitle {
        font-size: 1.1rem;
    }
}

.galla-diff-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    object-fit: contain;
}
