/* ============================================================
   GLOCKEN SHOP — loja.css v3
   Estilo Alpha: dark nav, fundo claro, editorial, bold
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:   #0a0a0a;
    --white:   #ffffff;
    --gray-bg: #f4f4f4;
    --gray-1:  #e8e8e8;
    --gray-2:  #aaaaaa;
    --gray-3:  #666666;
    --yellow:  var(--font-color-act, #fad335);
    --green:   #25d366;
    --radius:  0px;
    --font:    'Inter', sans-serif;
}

body { font-family: var(--font); background: var(--gray-bg); color: var(--black); }

/* ============================================================
   TOPBAR
   ============================================================ */
.loja-topbar {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.loja-topbar span { color: var(--yellow); }

/* ============================================================
   NAV
   ============================================================ */
.nav-loja {
    position: sticky;
    top: 0;
    background: var(--black);
    height: 72px;
    display: flex;
    align-items: center;
    z-index: 900;
    border-bottom: 1px solid #1a1a1a;
}

.container-nav-loja {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-loja {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.logo-loja span { color: var(--yellow); }

.menu-loja-desktop {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}
.menu-loja-desktop a {
    color: #777;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s;
}
.menu-loja-desktop a:hover,
.menu-loja-desktop a.active { color: var(--white); }

/* Dropdown */
.dropdown { position: relative; }
.dropbtn { cursor: pointer; }
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    background: #111;
    min-width: 180px;
    border: 1px solid #222;
    z-index: 999;
    padding: 6px 0;
}
.dropdown-content a {
    color: #777;
    padding: 10px 18px;
    display: block;
    font-size: 11.5px;
    transition: all .2s;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dropdown-content a:hover { background: #1a1a1a; color: var(--white); padding-left: 24px; }
.dropdown:hover .dropdown-content { display: block; }
.active-sub { color: var(--white) !important; }

.nav-loja-right { display: flex; align-items: center; gap: 16px; }

.btn-voltar-site {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #666;
    padding: 7px 13px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: .2s;
}
.btn-voltar-site:hover { border-color: var(--white); color: var(--white); }

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--yellow);
    color: var(--black);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity .2s;
}
.cart-btn:hover { opacity: .85; }
#cart-counter {
    background: var(--black);
    color: var(--yellow);
    font-size: 10px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
}

/* Toggle mobile */
.loja-mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.loja-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: .3s;
}

/* Menu mobile */
.loja-mobile-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 270px;
    height: calc(100vh - 72px);
    background: #0d0d0d;
    z-index: 999;
    padding: 28px 24px;
    transition: right .4s cubic-bezier(.77,0,.175,1);
    border-left: 2px solid var(--yellow);
    overflow-y: auto;
}
.loja-mobile-menu.active { right: 0; }
.loja-mobile-menu ul { list-style: none; }
.loja-mobile-menu ul li { border-bottom: 1px solid #1a1a1a; }
.loja-mobile-menu ul li a {
    color: #aaa;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 0;
    display: block;
    transition: color .2s;
}
.loja-mobile-menu ul li a:hover,
.loja-mobile-menu ul li a.active { color: var(--yellow); }
.loja-mobile-menu .separator { border: none; border-top: 1px solid #222; margin: 8px 0; }
.loja-mobile-menu .back-link { color: #444 !important; font-size: 11px !important; }

@media (max-width: 992px) {
    .menu-loja-desktop, .btn-voltar-site { display: none; }
    .loja-mobile-toggle { display: flex; }
}

/* ============================================================
   MAIN
   ============================================================ */
.loja-main { background: var(--gray-bg); min-height: 100vh; }

/* ============================================================
   HERO — espaço vazio elegante com texto
   ============================================================ */
.loja-hero {
    background: var(--black);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}
.loja-hero::before {
    content: 'GLOCKEN';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 220px;
    font-weight: 900;
    color: rgba(255,255,255,.03);
    letter-spacing: -12px;
    pointer-events: none;
    white-space: nowrap;
}
.loja-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.loja-hero-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.loja-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--yellow);
}
.loja-hero h1 {
    font-size: clamp(44px, 8vw, 100px);
    font-weight: 900;
    color: var(--white);
    line-height: 0.9;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.loja-hero h1 span { color: var(--yellow); }
.loja-hero p {
    font-size: 13px;
    color: #555;
    max-width: 380px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .loja-hero { padding: 60px 5%; }
    .loja-hero h1 { letter-spacing: -2px; }
}

/* ============================================================
   FILTROS / TABS DE CATEGORIA
   ============================================================ */
.loja-filtros {
    background: var(--white);
    border-bottom: 1px solid var(--gray-1);
    position: sticky;
    top: 72px;
    z-index: 100;
}
.filtros-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.filtros-inner::-webkit-scrollbar { display: none; }
.filtro-btn {
    padding: 16px 22px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .2s;
    display: block;
}
.filtro-btn:hover { color: var(--black); }
.filtro-btn.active { color: var(--black); border-bottom-color: var(--black); }

/* ============================================================
   SEÇÃO DE PRODUTOS
   ============================================================ */
.loja-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 5%;
}
.loja-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
}
.loja-section-header h2 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.loja-section-header .count {
    font-size: 12px;
    color: var(--gray-2);
    font-weight: 500;
}

/* ============================================================
   GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CARD DE PRODUTO
   ============================================================ */
.product-card {
    background: var(--white);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.product-img-box {
    position: relative;
    aspect-ratio: 3/4;
    background: #ebebeb;
    overflow: hidden;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .5s ease, transform .7s ease;
    display: block;
}
.img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.product-card:hover .img-main { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; transform: scale(1.05); }

.badge-discount {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--black);
    color: var(--yellow);
    font-weight: 900;
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: 0.5px;
    z-index: 10;
}

.btn-buy-overlay {
    position: absolute;
    bottom: -60px;
    left: 0; width: 100%;
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 13px;
    text-decoration: none;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: bottom .3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.product-card:hover .btn-buy-overlay { bottom: 0; }

/* Info */
.product-info {
    padding: 14px 14px 18px;
    background: var(--white);
}
.product-cat {
    font-size: 9.5px;
    color: var(--gray-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 4px;
}
.product-price-de {
    font-size: 10.5px;
    color: var(--gray-2);
    text-decoration: line-through;
}
.product-price-por {
    font-size: 15px;
    font-weight: 900;
    color: var(--black);
}
.product-installments {
    font-size: 10px;
    color: var(--gray-2);
    display: block;
    margin-bottom: 10px;
}
.btn-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 9px;
    background: var(--black);
    color: var(--yellow);
    border: none;
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background .2s;
    font-family: var(--font);
}
.btn-add-card:hover { background: #222; }

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--gray-2);
}
.no-products p { font-size: 13px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.no-products a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
}

/* ============================================================
   PÁGINA DE PRODUTO
   ============================================================ */
.product-page {
    background: var(--white);
    min-height: 100vh;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
}

/* Galeria estilo editorial */
.product-gallery {
    padding: 40px 40px 40px 5%;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: opacity .3s;
}
.gallery-grid img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4/5;
}
.gallery-grid img:hover { opacity: .9; }

/* Detalhes */
.product-details {
    padding: 60px 5% 60px 40px;
    border-left: 1px solid var(--gray-1);
}
.product-cat-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}
.product-details h1 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 28px;
}

/* Preço */
.product-price-box {
    background: var(--gray-bg);
    padding: 20px;
    margin-bottom: 28px;
    border-left: 3px solid var(--yellow);
}
.price-de {
    font-size: 11px;
    color: var(--gray-2);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
.price-big {
    font-size: 38px;
    font-weight: 900;
    color: var(--black);
    display: block;
    line-height: 1;
    letter-spacing: -2px;
}
.price-parcel {
    font-size: 12px;
    color: var(--gray-3);
    margin-top: 6px;
    display: block;
}

/* Tamanhos */
.tamanhos-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-2);
    margin-bottom: 10px;
    display: block;
}
.tamanhos-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tamanho-item {
    border: 1px solid var(--gray-1);
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-3);
    cursor: pointer;
    transition: all .2s;
    background: var(--white);
    min-width: 44px;
    text-align: center;
    user-select: none;
}
.tamanho-item:hover { border-color: var(--black); color: var(--black); }
.tamanho-item.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Descrição */
.description-content {
    border-top: 1px solid var(--gray-1);
    padding-top: 24px;
    margin-bottom: 32px;
}
.description-content strong {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-2);
    display: block;
    margin-bottom: 12px;
}
.description-content p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--gray-3);
}

/* Botões de ação */
.produto-acoes { display: flex; flex-direction: column; gap: 8px; }
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    font-weight: 900;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    width: 100%;
    font-family: var(--font);
}
.btn-checkout-primary { background: var(--black); color: var(--yellow); }
.btn-checkout-primary:hover { background: #1a1a1a; }
.btn-checkout-wpp { background: var(--green); color: var(--white); }
.btn-checkout-wpp:hover { background: #1eb954; }

/* Responsivo produto */
@media (max-width: 900px) {
    .product-wrapper { grid-template-columns: 1fr; }
    .product-gallery {
        position: static;
        padding: 20px 5%;
        max-height: none;
    }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
    .gallery-grid img:first-child { aspect-ratio: 3/4; }
    .product-details { padding: 28px 5%; border-left: none; border-top: 1px solid var(--gray-1); }
    .price-big { font-size: 30px; }
}

/* ============================================================
   CARRINHO
   ============================================================ */
.carrinho-page {
    background: var(--gray-bg);
    min-height: 100vh;
    padding: 0;
    font-family: var(--font);
}
.carrinho-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}
.carrinho-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--black);
}
.btn-back-loja {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-2);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .2s;
}
.btn-back-loja:hover { color: var(--black); }
.carrinho-title {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 16px;
    margin-bottom: 2px;
    gap: 12px;
    border-bottom: 1px solid var(--gray-1);
}
.item-info h4 {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.item-info span { font-size: 12px; color: var(--gray-2); }
.remove-btn {
    color: #ccc;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 15px;
    padding: 8px;
    transition: color .2s;
    flex-shrink: 0;
}
.remove-btn:hover { color: var(--black); }

.cart-total-box {
    background: var(--white);
    padding: 22px;
    margin-top: 2px;
    border-top: 3px solid var(--black);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.cart-total-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-2);
    font-weight: 700;
}
.cart-total-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -1px;
}
.btn-finish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    padding: 17px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font);
    transition: background .2s;
}
.btn-finish:hover { background: #1eb954; }

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
}
.empty-cart i { font-size: 44px; color: #ddd; display: block; margin-bottom: 18px; }
.empty-cart p { font-size: 12px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px; }
.empty-cart a {
    display: inline-block;
    padding: 13px 30px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER LOJA
   ============================================================ */
.footer-loja {
    background: var(--black);
    color: var(--white);
    padding: 70px 0 0;
    margin-top: 80px;
}
.container-footer-loja {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5% 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.logo-footer { font-size: 26px; font-weight: 900; margin-bottom: 14px; letter-spacing: -1px; }
.logo-footer span { color: var(--yellow); }
.footer-column > p { color: #555; font-size: 13px; line-height: 1.6; max-width: 260px; margin-bottom: 18px; }
.footer-column h3 {
    font-size: 9.5px; font-weight: 700;
    text-transform: uppercase; color: #444;
    margin-bottom: 18px; letter-spacing: 2px;
}
.footer-column ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-column ul li a {
    color: #666; text-decoration: none;
    font-size: 13px; font-weight: 500; transition: color .2s;
}
.footer-column ul li a:hover { color: var(--white); }
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-methods img { height: 20px; filter: grayscale(1) brightness(1.5); }
.security-badge {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #1a1a1a; padding: 8px 12px;
    font-size: 9.5px; font-weight: 700; color: var(--green);
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 14px;
}
.social-icons-loja { display: flex; gap: 14px; margin-top: 18px; }
.social-icons-loja a { color: #444; font-size: 17px; transition: color .2s; }
.social-icons-loja a:hover { color: var(--white); }

.footer-loja-bottom { border-top: 1px solid #111; padding: 20px 5%; }
.container-bottom {
    max-width: 1300px; margin: 0 auto;
    display: flex; justify-content: space-between;
    font-size: 9.5px; color: #333;
    text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
}
.container-bottom a { color: inherit; text-decoration: none; }

/* Modal suporte */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(6px);
    z-index: 99999; display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #0d0d0d; color: var(--white);
    width: 90%; max-width: 460px;
    padding: 40px; border: 1px solid #1a1a1a;
    position: relative;
}
.close-modal {
    position: absolute; top: 14px; right: 14px;
    background: #1a1a1a; border: none; color: var(--white);
    width: 30px; height: 30px; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.close-modal:hover { background: #333; }
.support-text h3 {
    font-size: 13px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 14px;
    padding-left: 12px; border-left: 3px solid var(--yellow);
}
.support-text p { color: #777; line-height: 1.7; font-size: 13px; }
.support-text strong { color: var(--white); }

/* ============================================================
   RESPONSIVO FOOTER
   ============================================================ */
@media (max-width: 992px) { .container-footer-loja { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .container-footer-loja { grid-template-columns: 1fr; }
    .container-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .payment-methods { justify-content: center; }
}