.loco-products-page,
.loco-product-detail-page {
    width: 100%;
    padding: 44px 18px 78px;
}


.loco-product-detail-page * {
    box-sizing: border-box;
}

.loco-product-detail-page a {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.loco-product-detail-page a:hover {
    transform: translateY(-1px);
}

.loco-products-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.loco-products-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px;
    align-items: end;
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(240, 155, 196, 0.18), transparent 34%),
        radial-gradient(circle at 88% 5%, rgba(99, 102, 241, 0.18), transparent 32%),
        #080d16;
    border: 1px solid #222a3a;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.loco-products-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #a8c7ff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loco-products-header h1,
.loco-product-detail-copy h1 {
    margin: 0;
    color: #eef2ff;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.loco-products-header p,
.loco-product-detail-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: #a8b3cf;
    font-size: 1.05rem;
    line-height: 1.7;
}

.loco-products-hero-side {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
}

.loco-products-hero-side span {
    color: #f09bc4;
    font-weight: 1000;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.loco-products-hero-side strong {
    color: #fff;
    font-size: 1.15rem;
}

.loco-products-hero-side small {
    color: #a8b3cf;
    line-height: 1.5;
}

.loco-products-toolbar {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.loco-products-search,
.loco-products-sort {
    height: 46px;
    color: #f8fafc;
    background: #0b111f;
    border: 1px solid #232c3e;
    border-radius: 12px;
    outline: none;
}

.loco-products-search {
    width: min(100%, 380px);
    padding: 0 15px;
}

.loco-products-sort {
    padding: 0 15px;
    font-weight: 900;
}

.loco-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.loco-product-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-width: 0;
    color: #f8fafc;
    background: #080d16;
    border: 1px solid #222a3a;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.loco-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 155, 196, 0.46);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.loco-product-card[hidden] {
    display: none !important;
}

.loco-product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.loco-product-image-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.26), transparent 35%),
        radial-gradient(circle at 70% 40%, rgba(111, 124, 255, 0.20), transparent 32%),
        #101827;
}

.loco-product-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.86;
    transition: transform 0.25s ease;
}

.loco-product-card:hover .loco-product-image {
    transform: scale(1.045);
}

.loco-product-image-fallback {
    display: grid;
    position: absolute;
    inset: 0;
    place-items: center;
    font-size: 4rem;
    font-weight: 1000;
    color: rgba(255, 255, 255, 0.58);
}

.loco-product-image:not([style*="display: none"]) + .loco-product-image-fallback {
    display: none;
}

.loco-product-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(8, 13, 22, 0.92));
    pointer-events: none;
}

.loco-product-badges {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.loco-product-pill,
.loco-product-price-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 1000;
    line-height: 1;
}

.loco-product-pill-green {
    color: #16d474;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.loco-product-pill-red {
    color: #ff9b9b;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.loco-product-pill-blue {
    color: #a8c7ff;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.24);
}

.loco-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.loco-product-title-row {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.loco-product-title-row h2 {
    margin: 0 !important;
    color: #ffffff;
    font-size: 1.35rem !important;
    line-height: 1.1;
}


.loco-product-body p {
    min-height: 58px;
    margin: 0 0 16px !important;
    color: #a8b3cf;
    font-size: 0.94rem;
    line-height: 1.6;
}

.loco-product-mini-features,
.loco-product-highlight-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.loco-product-mini-features span,
.loco-product-highlight-list span {
    color: #dbe4f7;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 900;
}

.loco-product-actions,
.loco-product-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
}

.loco-product-info,
.loco-product-buy,
.loco-product-disabled {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    font-weight: 1000;
    font-size: 0.86rem;
    white-space: nowrap;
    text-decoration: none !important;
}

.loco-product-info {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.loco-product-buy {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.loco-product-disabled {
    color: #ffb4b4;
    background: rgba(239, 68, 68, 0.13);
}

.loco-product-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: #8b95a8;
    font-size: 0.95rem;
}

.loco-product-breadcrumbs a {
    color: #f09bc4;
    text-decoration: none;
    font-weight: 900;
}

.loco-product-breadcrumbs strong {
    color: #e8edf7;
}

.loco-product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 20px;
}

.loco-product-detail-copy,
.loco-product-detail-image-wrap,
.loco-product-info-card,
.loco-product-disclaimer-card,
.loco-product-faq-card,
.loco-product-steps article {
    background: #080d16;
    border: 1px solid #222a3a;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.loco-product-detail-copy {
    padding: clamp(24px, 4vw, 44px);
}

.loco-product-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.loco-product-price-chip {
    color: #ffffff;
    background: rgba(240, 155, 196, 0.16);
    border: 1px solid rgba(240, 155, 196, 0.28);
}

.loco-product-highlight-list {
    margin: 22px 0 0;
}

.loco-product-detail-actions {
    margin-top: 24px;
}

.loco-product-detail-image-wrap {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.30), transparent 38%),
        radial-gradient(circle at 70% 40%, rgba(168, 85, 247, 0.18), transparent 34%),
        #0b1020;
}

.loco-product-detail-image-wrap img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 430px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    opacity: 0.96;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
}

.loco-product-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.loco-product-steps article {
    padding: 20px;
}

.loco-product-steps span {
    color: #f09bc4;
    font-weight: 1000;
    font-size: 0.85rem;
}

.loco-product-steps strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 1.05rem;
}

.loco-product-steps p {
    margin: 8px 0 0;
    color: #a8b3cf;
    line-height: 1.55;
}

.loco-product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.loco-product-info-card,
.loco-product-disclaimer-card,
.loco-product-faq-card {
    padding: 24px;
}

.loco-product-info-card h2,
.loco-product-disclaimer-card h2,
.loco-product-faq-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.25rem;
}

.loco-product-info-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.loco-product-info-card li {
    position: relative;
    padding-left: 25px;
    color: #dbe4f7;
    line-height: 1.55;
}

.loco-product-info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #15d179;
    font-weight: 1000;
}

.loco-product-faq-card,
.loco-product-disclaimer-card {
    margin-top: 18px;
}

.loco-product-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.loco-product-faq-grid article {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.loco-product-faq-grid h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}

.loco-product-faq-grid p,
.loco-product-disclaimer-card p {
    margin: 0;
    color: #a8b3cf;
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .loco-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .loco-products-hero-card,
    .loco-product-detail-hero,
    .loco-product-info-grid,
    .loco-product-steps,
    .loco-product-faq-grid {
        grid-template-columns: 1fr;
    }

    .loco-product-detail-image-wrap {
        min-height: 240px;
        padding: 14px;
    }

    .loco-product-detail-image-wrap img {
        max-height: 320px;
    }
}

@media (max-width: 560px) {
    .loco-products-grid {
        grid-template-columns: 1fr !important;
    }

    .loco-products-search,
    .loco-products-sort,
    .loco-product-info,
    .loco-product-buy,
    .loco-product-disabled {
        width: 100%;
    }

    .loco-product-actions,
    .loco-product-detail-actions {
        align-items: stretch !important;
        flex-direction: column;
    }
}

/* Patch v5: preço promocional automático (-50%).
   O preço guardado no admin continua a ser o preço atual; o site mostra o preço antigo como o dobro. */
.loco-price-box {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.loco-product-title-row .loco-price-box {
    max-width: 190px;
}

.loco-price-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #03110a;
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.loco-price-old {
    color: #8791aa;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.loco-price-current {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 1000;
    letter-spacing: -0.02em;
}

.loco-product-detail-meta .loco-price-box {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
}


/* Patch v6: produto mais premium, preço arrumado e launcher realmente global. */
.loco-products-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(147, 51, 234, 0.18), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.12), transparent 32%);
}

.loco-products-hero-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(43, 13, 68, 0.68)),
        radial-gradient(circle at 20% 10%, rgba(168, 85, 247, 0.28), transparent 38%),
        radial-gradient(circle at 88% 20%, rgba(59, 130, 246, 0.18), transparent 32%),
        #070812 !important;
}

.loco-products-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
}

.loco-products-hero-card > * { position: relative; z-index: 1; }

.loco-products-kicker {
    color: #d8b4fe !important;
}

.loco-products-header h1,
.loco-product-detail-copy h1 {
    text-shadow: 0 16px 55px rgba(168, 85, 247, .36);
}

.loco-products-hero-side {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(216, 180, 254, 0.20) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 45px rgba(0,0,0,.22);
}

.loco-products-grid {
    align-items: stretch;
}

.loco-product-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(14, 7, 25, .98)) !important;
    border-color: rgba(168, 85, 247, .24) !important;
}

.loco-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(168,85,247,.28), transparent 34%, rgba(236,72,153,.18));
    opacity: 0;
    transition: opacity .2s ease;
}

.loco-product-card:hover::before { opacity: .55; }
.loco-product-card > * { position: relative; z-index: 1; }

.loco-product-image-wrap {
    height: 190px !important;
    border-bottom: 1px solid rgba(168,85,247,.18);
}

.loco-product-body {
    gap: 12px;
}

.loco-product-title-row {
    align-items: flex-start !important;
    gap: 14px !important;
}

.loco-product-title-row h2 {
    max-width: 56%;
}

.loco-price-box {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 112px !important;
    max-width: 150px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(216, 180, 254, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.loco-price-topline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.loco-price-discount {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 20px !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    font-size: .68rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.loco-price-old {
    padding: 0 !important;
    color: #b6bed3 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .74rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    white-space: nowrap !important;
}

.loco-price-current,
.loco-price-current-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    font-size: .95rem !important;
    font-weight: 1000 !important;
    line-height: 1.1 !important;
    letter-spacing: -.02em !important;
    white-space: nowrap !important;
}

.loco-product-detail-meta .loco-price-box {
    align-items: flex-start !important;
    min-width: 142px !important;
    max-width: none !important;
}

.loco-product-detail-hero-premium {
    align-items: stretch !important;
}

.loco-product-detail-copy,
.loco-product-detail-image-wrap,
.loco-product-info-card,
.loco-product-faq-card,
.loco-product-disclaimer-card,
.loco-product-steps article {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(12, 7, 24, 0.96)) !important;
    border-color: rgba(168, 85, 247, 0.26) !important;
    box-shadow: 0 20px 65px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.loco-product-detail-copy {
    padding: clamp(24px, 4vw, 44px) !important;
}

.loco-product-detail-lead {
    font-size: 1.08rem !important;
}

.loco-product-detail-image-wrap {
    overflow: hidden;
    min-height: 420px !important;
}

.loco-product-detail-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 35%, transparent 34%, rgba(6, 4, 13, .42));
}

.loco-product-detail-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-height: 520px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

.loco-product-steps article span {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: #fff !important;
}

@media (max-width: 720px) {
    .loco-product-title-row {
        flex-direction: column;
    }
    .loco-product-title-row h2 {
        max-width: none;
    }
    .loco-price-box {
        align-items: flex-start !important;
        width: 100% !important;
        max-width: none !important;
    }
    .loco-price-topline {
        justify-content: flex-start !important;
    }
}
