:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --accent-yellow: #ff3e3e;
    /* Red Accent */
    --gray-dark: #111111;
    --gray-light: #aaaaaa;
    --font-street: 'Archivo Black', sans-serif;
    --font-marker: 'Permanent Marker', cursive;
    --font-rough: 'Rock Salt', cursive;
    --font-stencil: 'Black Ops One', system-ui;
    --transition-fast: 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.underground {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    background: var(--bg-black);
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--gray-dark);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin-top: -80px;
    margin-bottom: -60px;
}

.search-bar {
    display: flex;
    background: transparent;
    padding: 0.5rem 1rem;
    width: 250px;
    margin-left: auto;
    /* Pushes it closer to the right */
    margin-right: 2rem;
    /* Creates some gap before the icons */
    border-bottom: 1px solid #ddd;
    /* Just a clean underline instead of a box */
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-white);
    /* Ensures text is visible on light bg */
    width: 100%;
    font-size: 0.8rem;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.action-icon:hover {
    color: var(--gray-light);
}

.action-icon.cart #cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-yellow);
    color: black;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.inline-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-nav a:hover {
    color: var(--gray-light);
}

.inline-nav a.highlight {
    color: #ff3e3e;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: var(--bg-black);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    border: 1px solid var(--gray-dark);
    margin-top: 0.5rem;
    
    /* Forçar layout vertical para anular o display: flex herdado do menu principal */
    display: flex;
    flex-direction: column;
    gap: 0;
    
    /* Configuração de transição suave sem reflow de layout */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

/* Ponte invisível para o mouse passar sobre o gap do menu sem fechá-lo */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content a {
    color: var(--text-white);
    padding: 0.6rem 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--accent-yellow);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Sidebar Promo */
.sidebar-promo {
    position: fixed;
    left: 20px;
    bottom: 100px;
    background: var(--bg-black);
    border: 2px solid #ddd;
    padding: 1.5rem;
    z-index: 500;
    width: 200px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.close-promo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
}

.promo-title {
    color: var(--accent-yellow);
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.promo-code {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.promo-code span {
    color: var(--accent-yellow);
    font-weight: 900;
}

.promo-extra {
    font-size: 0.65rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span {
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-street);
}

.time-block label {
    font-size: 0.5rem;
    text-transform: uppercase;
    color: var(--gray-light);
}

.time-separator {
    font-weight: 900;
    padding-top: 2px;
}

/* Hero Section */
.hero-underground {
    height: 80vh;
    background-color: var(--bg-black);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 650px;
    opacity: 0.5;
    pointer-events: none;
    filter: blur(2px) drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.bg-cross::before,
.bg-cross::after {
    content: '';
    position: absolute;
    background: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.bg-cross::before {
    width: 45px;
    height: 100%;
}

.bg-cross::after {
    width: 400px;
    height: 45px;
    top: 35%;
    /* Spiritual cross proportions */
}

/* Hero Side Images flanking the center cross */
.hero-side-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 420px;
    width: auto;
    object-fit: contain;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: auto;
}

.hero-side-img.left {
    right: calc(50% + 280px);
    height: 470px;
}

.hero-side-img.right {
    left: calc(50% + 280px);
}

.hero-side-img:hover {
    opacity: 1;
    transform: translateY(-52%) scale(1.02);
}

/* Hide on mobile/tablet to prevent overflow */
@media (max-width: 1024px) {
    .hero-side-img {
        display: none;
    }
}

/* Interactive Jesus Hover Background */
#jesus-hover-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 999;
}

.hover-icon {
    position: absolute;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    animation: word-fade 1.2s ease-out forwards;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes word-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-15deg);
    }

    15% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(1.4) rotate(15deg);
    }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo-center {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-center img {
    width: 750px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
}

/* Removed .hero-decor, .cross, .heart-diamond per user request */

.shop-now {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.8rem 2.5rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: var(--font-street);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.shop-now:hover {
    background: white;
    color: black;
}

/* ── Products / Carousel ─────────────────────────────────────── */
.street-products {
    padding: 1.5rem 10% 4rem 10%;
}

.section-title {
    font-family: var(--font-street);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.products-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4724 / 3690;
    overflow: hidden;
    cursor: pointer;
    transition: aspect-ratio 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img-wrap.category-baby_tee {
    aspect-ratio: 2000 / 1313;
}

.hover-hitbox {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 50%;
    height: 60%;
    z-index: 5;
    background: transparent;
}

.product-img-wrap:has(.hover-hitbox:hover) {
    aspect-ratio: 3 / 4;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: opacity 0.4s ease, transform 0.6s ease;
    display: block;
    transform: scale(1.0);
}

.product-img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    pointer-events: none;
}

.product-img-wrap:has(.hover-hitbox:hover) .main-img {
    opacity: 0;
}

.product-img-wrap:has(.hover-hitbox:hover) .hover-img {
    opacity: 1;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-yellow);
    color: #000;
    font-family: var(--font-street);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 10px;
    letter-spacing: 2px;
    z-index: 10;
    text-transform: uppercase;
}

.product-info {
    padding: 1.2rem 0;
    text-align: center;
}

.product-name {
    font-family: var(--font-street);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-price {
    color: var(--gray-light);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Product Buttons Group */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Show buttons on card hover */
.product-card:hover .product-buttons {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.buy-now,
.add-to-cart {
    padding: 0.7rem;
    font-family: var(--font-street);
    font-size: 0.7rem;
    width: 100%;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
}

.buy-now:hover,
.add-to-cart:hover {
    background: #ffffff;
    color: #000000;
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    font-size: 0.7rem;
    z-index: 2000;
}

#accept-cookies {
    background: white;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* Cart Sidebar & Overlay */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#cart-overlay.active {
    display: block;
    opacity: 1;
}

#cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #111111;
    border-left: 1px solid #222222;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right 0.2s ease-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

#cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-street);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

#close-cart,
#close-profile,
#close-auth {
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

#close-cart:hover,
#close-profile:hover,
#close-auth:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-msg {
    text-align: center;
    color: #888888;
    font-size: 0.8rem;
    margin-top: 2rem;
}

/* Cart Item Card */
.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #222222;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #222222;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.cart-item-price {
    font-size: 0.7rem;
    color: var(--gray-light);
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff3e3e;
    font-size: 0.65rem;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0;
    text-decoration: underline;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #222222;
    background: #111111;
    color: #ffffff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-family: var(--font-street);
    font-size: 1rem;
}

#cart-total-value {
    color: var(--accent-yellow);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    color: #000000;
    border: none;
    font-family: var(--font-street);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.checkout-btn:hover {
    background: var(--accent-yellow);
    color: #ffffff;
}

/* Auth Modal */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#auth-overlay.active {
    display: block;
    opacity: 1;
}

#auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: 90%;
    max-width: 400px;
    background: #111111;
    border: 1px solid #222222;
    padding: 3rem 2rem;
    z-index: 4100;
    display: none;
    opacity: 0;
    transition: all 0.2s ease-out;
}

#auth-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
}

.auth-view h2 {
    font-family: var(--font-street);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
}

.view-desc {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

#auth-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#auth-modal input,
.profile-content input {
    background: #1c1c1c;
    border: 1px solid #333333;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#auth-modal input:focus,
.profile-content input:focus {
    border-color: var(--accent-yellow);
    background: #2a2a2a;
    outline: none;
}

/* Purchase Modal Styling */
#purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 5000;
    display: none;
}

#purchase-modal-overlay.active {
    display: block;
}

#purchase-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    background: #111111;
    border: 1px solid #222222;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    /* Cheaper shadow */
    border-radius: 4px;
    z-index: 5100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#purchase-modal-overlay.active #purchase-modal {
    opacity: 1;
    transform: translate(-50%, -50%);
}

#close-purchase-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

#close-purchase-modal:hover {
    color: var(--accent-yellow);
    transform: rotate(90deg);
}

.purchase-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.purchase-left {
    flex: 1;
    background: #0a0a0a;
    border-right: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.purchase-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Cleaner fit */
}

.purchase-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 3rem;
    overflow-y: auto;
    background: #111111;
    position: relative;
}

.purchase-step {
    display: none;
    flex-direction: column;
    height: 100%;
}

.purchase-step.active {
    display: flex;
}

.purchase-title {
    font-family: var(--font-street);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #fff;
}

.purchase-price {
    font-family: var(--font-street);
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.purchase-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    text-align: justify;
}

.purchase-desc b {
    color: #fff;
    font-weight: 700;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 1.2rem;
    letter-spacing: 1.5px;
}

.size-selector {
    margin-bottom: 3rem;
}

.size-options {
    display: flex;
    gap: 1rem;
}

.size-btn {
    width: 55px;
    height: 55px;
    border: 1px solid #333333;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-street);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.size-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.size-btn.selected {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

#purchase-continue-btn:disabled {
    background: #222222;
    cursor: not-allowed;
    color: #555555;
    border: 1px solid #333333;
}

/* Address Form */
#purchase-address-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

#purchase-address-form input {
    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid #333333;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    outline: none;
}

#purchase-address-form input::placeholder {
    color: #666666;
}

#purchase-address-form input:focus {
    border-bottom: 1px solid #ffffff;
}

.address-row {
    display: flex;
    gap: 1.5rem;
}

.address-row input {
    flex: 1;
}

.purchase-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}

.checkout-btn.cancel {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

.checkout-btn.cancel:hover {
    background: #222222;
    color: #ffffff;
}

/* Responsive modal */
@media (max-width: 768px) {
    #purchase-modal {
        flex-direction: column;
        height: 90vh;
        max-height: 800px;
        overflow-y: auto;
        border-radius: 8px;
    }

    .purchase-content {
        flex-direction: column;
        height: auto;
    }

    .purchase-left {
        height: 300px;
        flex: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .purchase-right {
        padding: 2.5rem 2rem;
    }
}

.auth-btn {
    background: white;
    color: black;
    border: none;
    padding: 1rem;
    font-family: var(--font-street);
    font-weight: 900;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-fast);
}

.auth-btn:hover {
    background: var(--accent-yellow);
    color: white;
}

.auth-switch {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 1.5rem;
    color: var(--gray-light);
}

.auth-switch span {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-switch span:hover {
    color: var(--accent-yellow);
}

/* User Profile Sidebar */
#profile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #111111;
    border-left: 1px solid #222222;
    z-index: 4100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    /* explicit priority */
}

#profile-sidebar.active {
    transform: translateX(0);
}

#profile-sidebar.wide {
    width: 50vw;
}

@media (max-width: 768px) {
    #profile-sidebar.wide {
        width: 100vw;
    }
}

.profile-content {
    padding: 2rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-street);
    font-size: 0.7rem;
    color: var(--gray-light);
}

#prof-email:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-footer {
    padding: 2rem;
    border-top: 1px solid #222222;
    background: #111111;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-save-btn {
    margin-top: 0 !important;
    flex: 1;
}

.profile-logout-btn {
    background: transparent;
    border: 1px solid #ff3e3e;
    color: #ff3e3e;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.profile-logout-btn:hover {
    background: #ff3e3e;
    color: #ffffff;
}

footer {
    padding: 3rem 5% 2rem;
    background: #000;
    text-align: center;
    border-top: 2px solid var(--gray-dark);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.footer-brand {
    flex: 1.5;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-contact,
.footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

footer p {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-link svg {
    flex-shrink: 0;
}

.footer-legal {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-brand {
        justify-content: center;
    }
    .footer-legal {
        text-align: center;
    }
    .footer-link {
        justify-content: center;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border: 1px solid #eee;
    color: black;
    padding: 1rem 1.5rem;
    font-family: var(--font-street);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    pointer-events: all;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-yellow);
}

.toast.error::before {
    background: #ff3e3e;
}

.toast.success::before {
    background: #00ff00;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-fade-out {
    animation: toast-out 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}

/* Admin Dashboard Stylings */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ui-overlay.active {
    display: flex;
}

.admin-dashboard {
    background: #ffffff;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.admin-header h2 {
    font-family: var(--font-street);
    letter-spacing: 4px;
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #444;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-street);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.admin-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.admin-tab-content.active {
    display: flex;
    flex-direction: column;
}

.admin-actions {
    margin-bottom: 1.5rem;
}

.add-prod-btn {
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-family: var(--font-street);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.add-prod-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.admin-table-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    background: #fdfdfd;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

th,
td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f5f5;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: sticky;
    top: 0;
}

td {
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

.btn-edit,
.btn-del {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-family: var(--font-street);
    transition: all 0.2s ease;
}

.btn-del:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
}

.btn-edit:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Admin Modal */
.admin-modal {
    background: #ffffff;
    padding: 3rem;
    width: 450px;
    border: 1px solid #eee;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.1);
}

.admin-modal h3 {
    font-family: var(--font-street);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    color: #000;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.auth-btn.cancel {
    background: transparent;
    border: 1px solid #ddd;
    color: #888;
}

.auth-btn.cancel:hover {
    background: #f5f5f5;
    color: #000;
}

@media (max-width: 768px) {
    .search-bar {
        display: none;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .street-logo {
        font-size: 3rem;
    }

    .sidebar-promo {
        display: none;
    }
}

/* ── Profile Sidebar Views & Orders Tracking ────────────────── */
.profile-view {
    display: none;
    flex-direction: column;
    flex: 1;
    height: calc(100% - 90px); /* header height offset */
}

.profile-view.active {
    display: flex;
}

.orders-scroll-content {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.back-link-btn {
    background: transparent;
    border: none;
    color: var(--gray-light);
    font-family: var(--font-street);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: left;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link-btn:hover {
    color: #ffffff;
}

.auth-btn.outline-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 100%;
}

.auth-btn.outline-btn:hover {
    background: #ffffff;
    color: #000000;
}

.my-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.my-order-card {
    border: 1px solid #222222;
    background: #1c1c1c;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.my-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    padding-bottom: 0.5rem;
    font-family: var(--font-street);
    font-size: 0.75rem;
}

.my-order-id {
    color: #ffffff;
}

.my-order-status {
    color: var(--accent-yellow); /* blue */
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}

.my-order-status.delivered {
    color: #00ff00; /* green for delivered */
}

.my-order-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.my-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-order-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    background: #111;
    border: 1px solid #333;
}

.my-order-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my-order-item-name {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 700;
}

.my-order-item-price {
    font-size: 0.7rem;
    color: var(--gray-light);
}

.my-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333333;
    padding-top: 0.5rem;
    font-size: 0.75rem;
}

.my-order-total-label {
    color: var(--gray-light);
}

.my-order-total-value {
    font-family: var(--font-street);
    color: #ffffff;
}

/* ── MOBILE RESPONSIVENESS IMPROVEMENTS (max-width: 768px) ── */
@media (max-width: 768px) {
    /* Ajuste da logo principal e do hero */
    .hero-logo-center img {
        max-width: 80vw !important;
    }
    
    .hero-underground {
        min-height: 60vh;
    }

    /* Grid de produtos mobile: 2 colunas elegantes */
    .products-horizontal {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
        gap: 15px !important;
    }

    /* Mostrar botões de compra por padrão (pois não existe hover no mobile) */
    .product-buttons {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        margin-top: 0.5rem !important;
        gap: 0.3rem !important;
    }

    .buy-now,
    .add-to-cart {
        padding: 0.5rem !important;
        font-size: 0.6rem !important;
    }

    /* Ajuste do tamanho do título das seções */
    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Ajuste dos paddings gerais nas seções */
    .street-products {
        padding: 2rem 5% !important;
    }

    /* Ajustes da Nav Bar no mobile */
    .top-nav {
        padding: 1rem 5% !important;
    }

    .main-nav ul {
        gap: 0.8rem !important;
    }

    .nav-link {
        font-size: 0.65rem !important;
    }

    .street-logo {
        font-size: 2.2rem !important;
    }
}