/* ===========================
   Base
   =========================== */
body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #0f172a;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ===========================
   Navbar
   =========================== */
.opticam-navbar {
    background: radial-gradient(circle at top left, #06b6d4 0, #0f79ff 40%, #020617 100%);
}

.navbar-brand {
    height: 64px;
    width: 128px;
}

.nav-link {
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===========================
   Container principal
   =========================== */
main.opticam-main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.opticam-shell {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===========================
   Hero da loja
   =========================== */
.store-hero {
    background: linear-gradient(135deg, #0f172a, #131d49);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    color: #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px 10px rgba(68, 68, 68, 0.25);
    border: 2px solid rgb(255, 255, 255);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(8, 47, 73, 0.9), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.store-hero-content,
.store-hero-aside {
    position: relative;
    z-index: 1;
}

.store-hero-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-hero-subtitle {
    font-size: 0.95rem;
    color: #cbd5f5;
    max-width: 32rem;
}

.store-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.store-hero-badge {
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.6);
}

.store-hero-cta {
    margin-top: 1.3rem;
}

.store-hero-cta .btn-primary {
    border-radius: 999px;
    padding-inline: 1.5rem;
    font-weight: 500;
}

/* ===========================
   Grid de produtos
   =========================== */
.store-section-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.store-section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* mobile: 1 coluna */
}

/* Telas médias: até 2 colunas */
@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Telas grandes: no máximo 3 colunas */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===========================
   Card de produto
   =========================== */
.product-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, translate 0.18s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(129, 140, 248, 0.35);
}

.product-card-img-wrapper {
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 0% 0%, #e0f2fe, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.product-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.product-name {
    font-size: 0.98rem;
    font-weight: 500;
    color: #0f172a;
}

.product-short-desc {
    font-size: 0.78rem;
    color: #6b7280;
    min-height: 2.1em;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 0.35rem;
    gap: 0.5rem;
}

.product-price-main {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.product-price-old {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-price-note {
    font-size: 0.7rem;
    color: #6b7280;
}

.product-price-pix {
    font-size: 0.8rem;
    font-weight: 500;
    color: #16a34a; /* verde Pix */
    margin-top: 0.15rem;
}

.product-detail-pix {
    font-size: 0.85rem;
    font-weight: 500;
    color: #16a34a;
    margin-top: 0.25rem;
}

.product-price-installments {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.1rem;
}

.product-detail-installments {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.15rem;
}

.product-detail-section {
    margin-top: 1.5rem;
}

.product-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.product-section-body {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}
.product-card-footer {
    padding: 0 1rem 1rem;
    margin-top: auto;
}

.btn-product {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
}

.btn-product-primary {
    background: linear-gradient(135deg, #0f79ff, #06b6d4);
    border: none;
    color: #fff;
    font-weight: 500;
}

.btn-product-primary:hover {
    filter: brightness(1.05);
}

.btn-product-ghost {
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #4b5563;
    background: #fff;
}

.btn-product-ghost:hover {
    background: #f9fafb;
}

/* ===========================
   Página de detalhe do produto
   =========================== */
.product-detail-price-card {
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
                radial-gradient(circle at 100% 120%, rgba(8, 47, 73, 0.10), transparent 55%),
                #ffffff;
}

.product-detail-thumbs img {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.product-detail-thumbs img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

/* ===========================
   Aplicações - Opticam
   =========================== */
.apps-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, translate 0.18s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apps-card:hover {
        transform: translateY(-4px);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(129, 140, 248, 0.35);
}

/* ===========================
   Home – cards de aplicações
   =========================== */

.home-applications {
    margin-top: 0.5rem;
}

.home-app-card {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    height: 100%;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-app-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.home-app-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #cbd5f5;
}

/* ===========================
   Página de contato
   =========================== */

.contact-card {
    border-radius: 1.5rem;
}

.contact-card .card-body {
    padding: 1.75rem 1.75rem;
}

.contact-info-card {
    background: #0f172a;
    border-radius: 1.5rem;
    padding: 1.75rem 1.75rem;
    color: #e5e7eb;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.contact-info-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.1rem;
}

.contact-info-value {
    font-size: 0.9rem;
}

.contact-info-value a {
    color: #e5e7eb;
    text-decoration: none;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

.contact-info-note {
    font-size: 0.8rem;
    color:darkorange;
}

.img-fluid {
    width: 25vw;
}

.product-thumb-btn.product-thumb-active {
    outline: 2px solid #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Pequenos ajustes responsivos */
@media (max-width: 1300px) {
    .store-hero {
        padding: 1.5rem 1.3rem;
        border-radius: 1.25rem;
    }

    .store-hero-title {
        font-size: 1.45rem;
    }
    .img-fluid {
    visibility: hidden;
    }
}
