/* DESIGN TOKENS */
:root {
    --bg-main: #0a0a0b;
    --bg-card: #121214;
    --bg-drawer: rgba(18, 18, 20, 0.95);
    --color-primary: #e63946;
    --color-success: #10b981;
    --text-light: #ffffff;
    --text-gray: #a1a1aa;
    --border-color: #27272a;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --transition-fast: 0.2s ease-out;
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.blocked {
    overflow: hidden;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1001;
}

/* HEADER */
.navbar {
    position: fixed;
    top: 32px;
    width: 100%;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: transform 0.4s ease, top 0.4s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    top: 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 0.9;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-slow);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-light);
}

.nav-item.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.icon-action {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
}

.icon-action:hover {
    color: var(--color-primary);
}

.cart-dot {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-primary);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
}

.mobile-only {
    display: none;
}

/* MOBILE MENU */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-drawer);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.mobile-menu-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.mobile-nav-item {
    background: none;
    border: none;
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--color-primary);
}

/* HERO */
.hero-section {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-top: 60px;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.4) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-label {
    background: var(--color-primary);
    color: var(--text-light);
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--bg-main);
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary.full-width {
    width: 100%;
}

/* VITRINE & CARDS */
.catalog-section {
    max-width: 1600px;
    margin: 6rem auto;
    padding: 0 4%;
    min-height: 50vh;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: 1px;
}

.items-count {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading Effect */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, #1a1a1c 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 4/5;
    margin-bottom: 1.2rem;
}

.skeleton-text {
    height: 1.2rem;
    margin-bottom: 0.5rem;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--bg-card);
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .card-image {
    transform: scale(1.06);
}

.quick-add-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card:hover .quick-add-overlay {
    transform: translateY(0);
}

.quick-add-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    color: var(--text-light);
}

.size-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}

.size-btn:hover,
.size-btn.selected {
    background: var(--text-light);
    color: var(--bg-main);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.product-card:hover .card-title {
    color: var(--color-primary);
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

/* FAB Suporte */
.fab-support {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    animation: floatFab 3s infinite ease-in-out;
}

.fab-support:hover {
    transform: scale(1.1);
}

@keyframes floatFab {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* DRAWER CARRINHO & FRETE GRÁTIS */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-drawer);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.cart-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
    line-height: 1;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Shipping Tracker */
.shipping-tracker {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.shipping-message {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    text-align: center;
}

.shipping-message strong {
    color: var(--text-light);
}

.shipping-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s;
}

.shipping-bar-fill.success {
    background: var(--color-success);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-body::-webkit-scrollbar {
    width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.drawer-footer {
    padding: 2rem;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.subtotal-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1.2rem;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-card);
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: auto;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.qty-control button {
    background: none;
    border: none;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.qty-control button:hover {
    background: var(--bg-card);
}

.qty-control span {
    font-size: 0.9rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

.remove-btn:hover {
    color: var(--color-primary);
}

/* MODAIS & QUICK VIEW */
.modal-system {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    padding: 1rem;
}

.modal-system[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-slow);
    position: relative;
}

.modal-system[aria-hidden="false"] .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 1px;
}

.modal-body {
    padding: 2rem 1.5rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Quick View com Galeria */
.quick-view-box {
    max-width: 900px;
}

.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.2rem;
}

.qv-layout {
    display: flex;
    flex-direction: row;
}

.qv-image-side {
    width: 50%;
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
}

.qv-image-side img#qv-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    flex-grow: 1;
}

.qv-gallery {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.qv-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.qv-thumb.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.qv-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-info-side {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qv-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.qv-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.qv-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.qv-size-section {
    margin-bottom: 2.5rem;
}

.qv-sizes {
    justify-content: flex-start;
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--text-light);
    color: var(--bg-main);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
    color: var(--color-success);
}

/* BUSCA FULLSCREEN */
.search-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 10vh 5%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.search-fullscreen[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 4%;
    font-size: 2.5rem;
}

.search-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.search-input-large {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    padding-bottom: 1rem;
    outline: none;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.search-input-large:focus {
    border-color: var(--color-primary);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-results-grid::-webkit-scrollbar {
    display: none;
}

.search-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.search-card:hover {
    background: var(--bg-card);
}

.search-card img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 2px;
}

.search-card-info {
    display: flex;
    flex-direction: column;
}

.search-card-title {
    font-weight: 700;
    font-size: 1rem;
}

.search-card-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1;
}

/* FOOTER */
.premium-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 4%;
    margin-top: 6rem;
    text-align: center;
    background: var(--bg-card);
}

.premium-footer .brand {
    align-items: center;
    margin-bottom: 1rem;
}

.premium-footer p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .qv-layout {
        flex-direction: column;
    }

    .qv-image-side,
    .qv-info-side {
        width: 100%;
    }

    .qv-image-side img#qv-img {
        height: 350px;
    }

    .quick-view-box {
        max-height: 90vh;
        overflow-y: auto;
    }

    .qv-info-side {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        justify-content: center;
    }

    .fab-support {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}