/**
 * Loja pública - nav preto, conteúdo claro (pegada ecommerce).
 */

:root {
    --loja-nav-bg: #0b0b0b;
    --loja-nav-border: #232323;
    --loja-nav-text: #f4f4f4;
    --loja-gold: #d9b65d;
    --loja-gold-soft: #f2dfab;
    --loja-page-bg: #ffffff;
    --loja-surface: #ffffff;
    --loja-border: #e8e8e8;
    --loja-text: #121212;
    --loja-muted: #777777;
    --loja-max: 1240px;
    --loja-radius: 8px;
    --loja-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

.loja-body {
    margin: 0;
    font-family: var(--loja-font);
    background: var(--loja-page-bg);
    color: var(--loja-text);
}

.loja-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--loja-nav-bg);
    border-bottom: 1px solid var(--loja-nav-border);
}

.loja-top-meta {
    border-bottom: 1px solid #1a1a1a;
    background: #050505;
}

.loja-top-meta__inner {
    max-width: var(--loja-max);
    margin: 0 auto;
    padding: 5px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.loja-top-meta__item {
    color: #dadada;
    font-size: 0.68rem;
    line-height: 1.3;
}

.loja-header__bar {
    border-bottom: 1px solid #171717;
}

.loja-header__inner {
    max-width: var(--loja-max);
    margin: 0 auto;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.loja-logo {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.loja-logo__img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.loja-logo__text {
    margin: 0;
    color: var(--loja-gold-soft);
    font-size: 0.9rem;
    font-weight: 800;
}

.loja-search {
    min-width: 0;
}

.loja-search__input {
    width: 100%;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #2f2f2f;
    background: #151515;
    color: #f8f8f8;
    padding: 0 12px;
    font-size: 0.82rem;
    outline: none;
}

.loja-search__input:focus {
    border-color: var(--loja-gold);
    box-shadow: 0 0 0 2px rgba(217, 182, 93, 0.24);
}

.loja-search__input::placeholder {
    color: #a2a2a2;
}

.loja-header__icons {
    display: flex;
    gap: 6px;
}

.loja-icon-btn {
    border: 1px solid #2f2f2f;
    background: #161616;
    color: #f2f2f2;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 700;
}

.loja-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.loja-icon-btn--ghost {
    border-color: #d7d7d7;
    background: #ffffff;
    color: #292929;
}

.loja-cart-count {
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--loja-gold);
    color: #171717;
    font-size: 10px;
    font-weight: 800;
}

.loja-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #2f2f2f;
    background: #161616;
    color: #f8f8f8;
    padding: 0 10px;
}

.loja-nav {
    max-width: var(--loja-max);
    margin: 0 auto;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.loja-nav__link {
    text-decoration: none;
    white-space: nowrap;
    color: var(--loja-nav-text);
    border: 1px solid #2f2f2f;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.loja-nav__link:hover,
.loja-nav__link.is-active {
    background: linear-gradient(135deg, var(--loja-gold-soft) 0%, var(--loja-gold) 100%);
    border-color: var(--loja-gold);
    color: #171717;
}

.loja-main {
    max-width: var(--loja-max);
    margin: 0 auto;
    padding: 14px 12px 86px;
    background: #ffffff;
}

.loja-hero {
    border: 1px solid var(--loja-border);
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
    margin-bottom: 14px;
}

.loja-hero__viewport {
    position: relative;
    aspect-ratio: 21 / 8;
}

.loja-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loja-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.loja-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loja-hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 22%, rgba(0,0,0,0.58) 100%);
}

.loja-hero__content {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
}

.loja-hero__content h2 {
    margin: 0 0 4px;
    font-size: clamp(1.05rem, 2.3vw, 1.6rem);
}

.loja-hero__content p {
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.loja-hero__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.loja-hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.58);
}

.loja-hero__dot.is-active {
    background: var(--loja-gold);
}

.loja-section {
    margin-top: 14px;
}

.loja-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.loja-section__title,
.loja-page-title {
    margin: 0;
    color: #111111;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.loja-muted {
    margin: 0;
    color: var(--loja-muted);
    font-size: 0.78rem;
}

.loja-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.loja-pill {
    text-decoration: none;
    color: #222222;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.loja-pill:hover {
    border-color: var(--loja-gold);
    color: #111111;
}

.loja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px 12px;
}

.loja-card {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transition: transform 0.16s ease;
}

.loja-card:hover {
    transform: translateY(-2px);
}

.loja-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.loja-card__media {
    position: relative;
    aspect-ratio: 1;
    background: #f3f3f3;
    border-radius: 2px;
    overflow: hidden;
}

.loja-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loja-card__placeholder {
    width: 100%;
    height: 100%;
    background: #ececec;
}

.loja-card__badges {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loja-badge {
    border-radius: 999px;
    border: 1px solid rgba(217, 182, 93, 0.75);
    background: #fffdf6;
    color: #8c6515;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 7px;
}

.loja-card__body {
    padding: 7px 1px 0;
}

.loja-card__name {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #111111;
    min-height: 2.4em;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loja-card__price {
    margin: 0;
    font-size: 1.52rem;
    font-weight: 800;
    color: #e2783f;
    line-height: 1;
}

.loja-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0 0;
}

.loja-btn {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.loja-btn--soft {
    border-color: #d8d8d8;
    background: #ffffff;
    color: #222222;
    padding: 0 11px;
}

.loja-btn--icon {
    width: 30px;
    min-width: 30px;
    padding: 0;
    border: 1px solid #2a2a2a;
    background: #ffffff;
    color: #1d1d1d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loja-btn--icon .loja-icon-svg {
    width: 14px;
    height: 14px;
}

.loja-btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-color: #d0d0d0;
    color: #121212;
    background: #ffffff;
    padding: 0 16px;
}

.loja-breadcrumb {
    margin: 0 0 10px;
    font-size: 0.77rem;
    color: #777777;
}

.loja-breadcrumb a {
    color: #222222;
    text-decoration: none;
}

.loja-breadcrumb__sep {
    margin: 0 4px;
    color: #999999;
}

.loja-pdp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.loja-pdp__media {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
}

.loja-pdp__img,
.loja-pdp__placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.loja-pdp__title {
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1.2rem, 2.8vw, 1.9rem);
}

.loja-pdp__sku {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #7a7a7a;
}

.loja-card__badges--inline {
    position: static;
    margin-bottom: 8px;
}

.loja-pdp__price {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    font-weight: 900;
}

.loja-pdp__stock {
    margin: 0 0 12px;
}

.loja-pdp__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.loja-pdp__desc {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e4;
}

.loja-pdp__desc-title {
    margin: 0 0 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #222222;
}

.loja-prose {
    color: #333333;
    font-size: 0.9rem;
}

.loja-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.loja-pagination__link {
    color: #111111;
    font-size: 0.82rem;
    font-weight: 700;
}

.loja-pagination__info {
    color: #777777;
    font-size: 0.8rem;
}

.loja-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
}

.loja-cart-drawer.is-open {
    pointer-events: auto;
}

.loja-cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.loja-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 94vw);
    background: #ffffff;
    border-left: 1px solid #dddddd;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.23s ease;
}

.loja-cart-drawer.is-open .loja-cart-drawer__backdrop {
    opacity: 1;
}

.loja-cart-drawer.is-open .loja-cart-drawer__panel {
    transform: translateX(0);
}

.loja-cart-drawer__head,
.loja-cart-drawer__foot {
    padding: 12px;
    border-bottom: 1px solid #ececec;
}

.loja-cart-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loja-cart-drawer__items {
    flex: 1;
    overflow: auto;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.loja-cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 8px;
    align-items: center;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
}

.loja-cart-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.loja-cart-empty {
    padding: 14px;
    text-align: center;
    color: #777777;
}

.loja-cart-total {
    margin: 0 0 10px;
}

.loja-cart-total strong {
    color: #111111;
}

.loja-mobile-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 90;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #d7d7d7;
    background: rgba(255,255,255,0.95);
}

.loja-mobile-bar a,
.loja-mobile-bar button {
    border: 1px solid #dddddd;
    background: #ffffff;
    border-radius: 7px;
    color: #222222;
    font-size: 0.69rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 8px 4px;
}

.loja-footer {
    margin-top: 22px;
    border-top: 1px solid #ececec;
    padding: 14px 12px;
}

.loja-footer__inner {
    max-width: var(--loja-max);
    margin: 0 auto;
}

.loja-footer__copy {
    margin: 0;
    text-align: center;
    color: #8a8a8a;
    font-size: 0.75rem;
}

.loja-skeleton {
    min-height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #efefef 0%, #f8f8f8 45%, #efefef 100%);
    background-size: 220% 100%;
    animation: loja-shimmer 1.1s linear infinite;
}

@keyframes loja-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 900px) {
    .loja-hero__viewport {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 760px) {
    .loja-nav-toggle {
        display: inline-flex;
    }

    .loja-nav {
        display: none;
        padding-top: 0;
    }

    .loja-nav.is-open {
        display: flex;
    }

    .loja-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 8px;
    }

    .loja-mobile-bar {
        display: grid;
    }
}

@media (max-width: 430px) {
    .loja-top-meta__inner {
        padding: 5px 8px;
        gap: 4px 8px;
    }

    .loja-top-meta__item {
        font-size: 0.64rem;
    }

    .loja-header__inner {
        padding: 8px;
        gap: 8px;
    }

    .loja-logo__img {
        height: 30px;
    }

    .loja-search__input {
        height: 32px;
        font-size: 0.78rem;
        padding: 0 10px;
    }

    .loja-icon-btn,
    .loja-nav-toggle {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }

    .loja-main {
        padding: 10px 8px 74px;
    }

    .loja-hero {
        margin-bottom: 10px;
    }

    .loja-grid {
        gap: 8px;
    }

    .loja-card__body {
        padding: 8px;
    }

    .loja-card__name {
        font-size: 0.72rem;
    }

    .loja-card__price {
        font-size: 1rem;
    }

    .loja-card__actions {
        gap: 6px;
        padding: 3px 0 0;
    }

    .loja-btn {
        min-height: 28px;
        font-size: 0.6rem;
    }
}
