/* ============================================================
   GUIA COMERCIAL - TEMA RADAR DE OFERTAS (MARKETPLACE & DESCONTOS)
   ============================================================ */
:root {
    --of-primary: #4f46e5;
    --of-primary-dark: #3730a3;
    --of-coral: #ff4757;
    --of-yellow: #ffa502;
    --of-green: #2ed573;
    --of-bg: #f8fafc;
    --of-card-bg: #ffffff;
    --of-text-dark: #1e293b;
    --of-text-muted: #64748b;
    --of-border: #e2e8f0;
    --of-radius: 12px;
    --of-radius-sm: 8px;
    --of-shadow: 0 4px 16px rgba(79,70,229,0.08);
    --of-shadow-hover: 0 10px 25px rgba(79,70,229,0.15);
    --of-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.theme-ofertas {
    background-color: var(--of-bg);
    color: var(--of-text-dark);
    font-family: var(--of-font);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.of-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* TOPBAR */
.of-topbar {
    background: linear-gradient(90deg, #3730a3, #4f46e5);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.of-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.of-topbar a {
    color: #ffd200;
    text-decoration: none;
    font-weight: 700;
}

/* NAVBAR */
.of-header {
    background: #ffffff;
    border-bottom: 1px solid var(--of-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.of-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}
.of-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.of-nav-search {
    flex: 1;
    max-width: 540px;
    position: relative;
}
.of-search-input {
    width: 100%;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 10px 48px 10px 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.of-search-input:focus {
    background: #ffffff;
    border-color: var(--of-primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}
.of-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--of-coral);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.of-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.of-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--of-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.of-btn-coral {
    background: var(--of-coral);
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255,71,87,0.3);
}
.of-btn-coral:hover {
    background: #ff2d42;
    transform: translateY(-1px);
}
.of-btn-primary {
    background: var(--of-primary);
    color: #ffffff !important;
}
.of-btn-outline {
    background: transparent;
    border: 1px solid var(--of-border);
    color: var(--of-text-dark) !important;
}

/* HERO OFERTAS */
.of-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    color: #ffffff;
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}
.of-hero-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.of-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--of-coral);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.of-hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
}
.of-hero-title span {
    color: #ffd200;
}
.of-hero-sub {
    font-size: 16px;
    color: #c7d2fe;
    margin: 0 0 32px;
}

/* CARDS DE DESTAQUES RELÂMPAGO */
.of-flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.of-flash-card {
    background: #ffffff;
    border-radius: var(--of-radius);
    padding: 16px;
    box-shadow: var(--of-shadow);
    border: 1px solid var(--of-border);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.of-flash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--of-shadow-hover);
    border-color: #a5b4fc;
}
.of-flash-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,71,87,0.1);
    color: var(--of-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.of-flash-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.of-flash-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* VITRINE DE PROMOÇÕES */
.of-section {
    padding: 48px 0;
}
.of-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.of-section-title h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--of-text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.of-section-title a {
    color: var(--of-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.of-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.of-product-card {
    background: #ffffff;
    border: 1px solid var(--of-border);
    border-radius: var(--of-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}
.of-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--of-shadow-hover);
}
.of-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--of-coral);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.of-product-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f1f5f9;
}
.of-product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.of-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.of-product-store {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}
.of-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.of-product-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--of-coral);
}
.of-product-btn-whatsapp {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
}

/* FOOTER OFERTAS */
.of-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.of-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}
.of-footer h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}
.of-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.of-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.of-footer a:hover {
    color: #ffffff;
}

@media (max-width: 767px) {
    .of-nav-search { display: none !important; }
    .of-nav-actions { display: none !important; }
    .of-header .of-nav-inner { height: 60px; }
    .of-logo img { height: 36px; }
    .of-hero-title { font-size: 26px; }
    .of-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .of-product-thumb { height: 120px; }
}
