/*
 Theme Name:   DSP Safety Child
 Theme URI:    https://dspsafety.com.br
 Description:  Tema filho para DSP Safety - Loja de EPIs
 Author:       DSP Safety
 Template:     astra
 Version:      1.0.0
 Text Domain:  dsp-safety-child
*/

/* =============================================
   VARIÁVEIS E RESET
   ============================================= */
:root {
    --dsp-green:        #16a34a;
    --dsp-green-dark:   #15803d;
    --dsp-green-light:  #dcfce7;
    --dsp-navy:         #1e3a5f;
    --dsp-navy-dark:    #0f2440;
    --dsp-white:        #ffffff;
    --dsp-gray-50:      #f8fafc;
    --dsp-gray-100:     #f1f5f9;
    --dsp-gray-200:     #e2e8f0;
    --dsp-gray-400:     #94a3b8;
    --dsp-gray-600:     #475569;
    --dsp-gray-800:     #1e293b;
    --dsp-red:          #dc2626;
    --dsp-orange:       #f97316;
    --dsp-radius:       10px;
    --dsp-shadow:       0 2px 12px rgba(0,0,0,0.08);
    --dsp-shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
    --dsp-font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.dsp-theme {
    font-family: var(--dsp-font);
    color: var(--dsp-gray-800);
    background: var(--dsp-white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: var(--dsp-font); }

/* =============================================
   BARRA DE ANÚNCIOS
   ============================================= */
.dsp-announcement-bar {
    background: var(--dsp-navy);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.dsp-announcement-bar .highlight { color: #4ade80; font-weight: 700; }
.dsp-announcement-bar .sep { margin: 0 12px; opacity: 0.4; }

/* =============================================
   HEADER
   ============================================= */
.dsp-header {
    background: var(--dsp-white);
    border-bottom: 1px solid var(--dsp-gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s;
}
.dsp-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.dsp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.dsp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.dsp-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--dsp-green-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dsp-logo-text .brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--dsp-navy);
    line-height: 1.1;
}
.dsp-logo-text .sub {
    font-size: 10px;
    color: var(--dsp-gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Busca */
.dsp-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.dsp-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--dsp-gray-400);
}
.dsp-search input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border: 1.5px solid var(--dsp-gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: var(--dsp-gray-50);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.dsp-search input:focus {
    border-color: var(--dsp-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
    background: var(--dsp-white);
}

/* Dropdown de busca */
.dsp-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 10px;
    box-shadow: var(--dsp-shadow-hover);
    z-index: 1100;
    overflow: hidden;
}
.dsp-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background 0.15s;
    border-bottom: 1px solid var(--dsp-gray-100);
}
.dsp-search-item:last-child { border-bottom: none; }
.dsp-search-item:hover { background: var(--dsp-gray-50); }
.dsp-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.dsp-search-name { font-size: 13px; font-weight: 600; color: var(--dsp-gray-800); }
.dsp-search-price { font-size: 12px; color: var(--dsp-green); font-weight: 600; }

/* Ações do header */
.dsp-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.dsp-header-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dsp-gray-600);
    transition: color 0.15s;
    position: relative;
}
.dsp-header-actions a:hover { color: var(--dsp-green); }
.dsp-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--dsp-green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   MENU DE CATEGORIAS
   ============================================= */
.dsp-cat-nav {
    background: var(--dsp-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dsp-cat-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.dsp-cat-nav-inner::-webkit-scrollbar { display: none; }
.dsp-cat-nav-inner a {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
    border-bottom: 2px solid transparent;
}
.dsp-cat-nav-inner a:hover {
    color: var(--dsp-white);
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--dsp-green);
}

/* =============================================
   HERO
   ============================================= */
.dsp-hero {
    background: linear-gradient(135deg, var(--dsp-navy-dark) 0%, var(--dsp-navy) 60%, #1a4a7a 100%);
    color: var(--dsp-white);
    padding: 64px 20px;
    overflow: hidden;
}
.dsp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.dsp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22,163,74,0.2);
    border: 1px solid rgba(22,163,74,0.4);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.dsp-hero-content h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--dsp-white);
}
.dsp-hero-content h1 .accent { color: #4ade80; }
.dsp-hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.7;
}
.dsp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.dsp-hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    object-fit: cover;
}

/* =============================================
   BOTÕES
   ============================================= */
.dsp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dsp-green);
    color: var(--dsp-white);
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.dsp-btn-primary:hover {
    background: var(--dsp-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.35);
    color: var(--dsp-white);
}

.dsp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--dsp-white);
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.4);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.dsp-btn-outline:hover {
    border-color: var(--dsp-white);
    background: rgba(255,255,255,0.08);
    color: var(--dsp-white);
}

/* =============================================
   BARRA DE BENEFÍCIOS
   ============================================= */
.dsp-benefits {
    background: var(--dsp-white);
    border-bottom: 1px solid var(--dsp-gray-200);
    padding: 20px;
}
.dsp-benefits-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dsp-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 160px;
}
.dsp-benefit-icon { font-size: 22px; }
.dsp-benefit-title { font-size: 13px; font-weight: 700; color: var(--dsp-gray-800); }
.dsp-benefit-sub { font-size: 11px; color: var(--dsp-gray-400); }

/* =============================================
   SEÇÕES
   ============================================= */
.dsp-section {
    padding: 56px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.dsp-section.bg-gray {
    background: var(--dsp-gray-50);
    max-width: 100%;
    padding: 56px 20px;
}
.dsp-section.bg-gray > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.dsp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.dsp-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dsp-navy);
}
.dsp-section-header p {
    font-size: 14px;
    color: var(--dsp-gray-400);
    margin-top: 4px;
}
.dsp-section-header a {
    font-size: 14px;
    font-weight: 600;
    color: var(--dsp-green);
    white-space: nowrap;
}

/* =============================================
   GRID DE PRODUTOS
   ============================================= */
.dsp-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card de Produto */
.dsp-product-card {
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dsp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dsp-shadow-hover);
}

.dsp-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--dsp-gray-50);
}
.dsp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.dsp-product-card:hover .dsp-card-image img { transform: scale(1.04); }

.dsp-card-info {
    padding: 14px;
    flex: 1;
}
.dsp-card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--dsp-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dsp-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dsp-gray-800);
    line-height: 1.4;
    margin-bottom: 8px;
}
.dsp-card-name a { color: inherit; }
.dsp-card-name a:hover { color: var(--dsp-green); }

.dsp-card-price-cash {
    font-size: 18px;
    font-weight: 800;
    color: var(--dsp-green);
    margin-bottom: 2px;
}
.dsp-card-price-discount {
    font-size: 11px;
    color: var(--dsp-gray-400);
    margin-bottom: 4px;
}
.dsp-card-installments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--dsp-gray-600);
}

.dsp-card-btn {
    display: block;
    background: var(--dsp-green);
    color: var(--dsp-white);
    text-align: center;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
    border-top: 1px solid var(--dsp-gray-100);
}
.dsp-card-btn:hover { background: var(--dsp-green-dark); color: var(--dsp-white); }

/* =============================================
   BADGES
   ============================================= */
.dsp-badge-ca {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dsp-badge-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.dsp-badge-type.novidade  { background: #dcfce7; color: #15803d; }
.dsp-badge-type.oferta    { background: #fef2f2; color: #dc2626; }
.dsp-badge-type.exclusivo { background: #faf5ff; color: #7c3aed; }
.dsp-badge-type.ultimas   { background: #fff7ed; color: #c2410c; }

.dsp-badge-destaque {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dsp-navy);
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

/* =============================================
   DEPOIMENTOS
   ============================================= */
.dsp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.dsp-testimonial-card {
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 12px;
    padding: 24px;
}
.dsp-stars { color: #f59e0b; font-size: 18px; margin-bottom: 12px; }
.dsp-testimonial-text { font-size: 14px; color: var(--dsp-gray-600); line-height: 1.7; margin-bottom: 16px; }
.dsp-testimonial-author { display: flex; align-items: center; gap: 10px; }
.dsp-avatar {
    width: 36px; height: 36px;
    background: var(--dsp-navy);
    color: var(--dsp-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.dsp-author-name { font-size: 13px; font-weight: 700; }
.dsp-author-role { font-size: 11px; color: var(--dsp-gray-400); }

/* =============================================
   FOOTER
   ============================================= */
.dsp-footer {
    background: var(--dsp-navy-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 0;
}
.dsp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.dsp-footer h4 {
    color: var(--dsp-white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dsp-footer p { font-size: 13px; line-height: 1.7; }
.dsp-footer ul { list-style: none; }
.dsp-footer ul li { margin-bottom: 8px; }
.dsp-footer ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.dsp-footer ul li a:hover { color: var(--dsp-white); }
.dsp-footer-contact li { font-size: 13px; margin-bottom: 8px; }

.dsp-social-links { display: flex; gap: 10px; margin-top: 16px; }
.dsp-social-links a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s;
}
.dsp-social-links a:hover { background: var(--dsp-green); color: var(--dsp-white); }

.dsp-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--dsp-white);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
    transition: background 0.2s;
}
.dsp-footer-whatsapp:hover { background: #128c7e; color: var(--dsp-white); }

.dsp-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 12px;
}
.dsp-payment-icons { display: flex; gap: 8px; }
.dsp-payment-icons span {
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

/* WhatsApp flutuante */
.dsp-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dsp-whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.dsp-whatsapp-float svg { width: 28px; height: 28px; }

/* =============================================
   LOJA - BANNER E FILTROS
   ============================================= */
.dsp-shop-banner {
    background: linear-gradient(135deg, var(--dsp-navy-dark), var(--dsp-navy));
    color: var(--dsp-white);
    padding: 32px 20px;
}
.dsp-shop-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.dsp-shop-banner h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dsp-shop-banner p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.dsp-cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dsp-cat-filter {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.dsp-cat-filter:hover, .dsp-cat-filter.active {
    background: var(--dsp-green);
    color: var(--dsp-white);
    border-color: var(--dsp-green);
}

.dsp-shop-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dsp-gray-200);
}
.dsp-shop-count { font-size: 13px; color: var(--dsp-gray-400); }
.dsp-shop-sort {
    padding: 8px 12px;
    border: 1px solid var(--dsp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    background: var(--dsp-white);
    cursor: pointer;
    outline: none;
}

/* =============================================
   PRODUTO INDIVIDUAL
   ============================================= */
.dsp-product-single {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Galeria */
.dsp-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: var(--dsp-gray-50);
    border: 1px solid var(--dsp-gray-200);
    aspect-ratio: 1;
}
.dsp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}
.dsp-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.dsp-gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--dsp-gray-200);
    cursor: pointer;
    transition: border-color 0.15s;
}
.dsp-gallery-thumb.active { border-color: var(--dsp-green); }
.dsp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info do produto */
.dsp-product-info h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dsp-navy);
    margin-bottom: 12px;
    line-height: 1.3;
}
.dsp-product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.dsp-product-price-block { margin: 16px 0; }
.dsp-price-original { font-size: 14px; color: var(--dsp-gray-400); text-decoration: line-through; }
.dsp-price-cash { font-size: 32px; font-weight: 800; color: var(--dsp-green); }
.dsp-price-pix { font-size: 13px; color: var(--dsp-gray-400); margin-bottom: 6px; }
.dsp-price-installments {
    display: flex; align-items: center; gap: 5px;
    font-size: 14px; color: var(--dsp-gray-600);
    background: var(--dsp-gray-50);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
}

/* Quantidade */
.dsp-qty-selector { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.dsp-qty-btn {
    width: 36px; height: 36px;
    background: var(--dsp-gray-100);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.dsp-qty-btn:hover { background: var(--dsp-gray-200); }
.dsp-qty-input {
    width: 56px; height: 36px;
    text-align: center;
    border: 1px solid var(--dsp-gray-200);
    border-left: none; border-right: none;
    font-size: 15px; font-weight: 700;
    outline: none;
}

/* Botões de produto */
.dsp-product-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.dsp-btn-cart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--dsp-navy);
    color: var(--dsp-white);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    transition: background 0.2s;
    text-decoration: none;
}
.dsp-btn-cart:hover { background: var(--dsp-navy-dark); color: var(--dsp-white); }
.dsp-btn-buy {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--dsp-green);
    color: var(--dsp-white);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    transition: background 0.2s;
    text-decoration: none;
}
.dsp-btn-buy:hover { background: var(--dsp-green-dark); color: var(--dsp-white); }

/* Trust badges */
.dsp-trust-badges {
    display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0;
}
.dsp-trust-badge {
    font-size: 12px; font-weight: 600;
    background: var(--dsp-gray-50);
    border: 1px solid var(--dsp-gray-200);
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--dsp-gray-600);
}

/* Abas */
.dsp-product-tabs { margin-top: 24px; }
.dsp-tabs-nav { display: flex; border-bottom: 2px solid var(--dsp-gray-200); margin-bottom: 16px; }
.dsp-tab-btn {
    padding: 10px 16px;
    font-size: 13px; font-weight: 600;
    color: var(--dsp-gray-400);
    background: none; border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.dsp-tab-btn.active { color: var(--dsp-navy); border-bottom-color: var(--dsp-green); }
.dsp-tab-panel { display: none; }
.dsp-tab-panel.active { display: block; }
.dsp-tab-content { font-size: 14px; color: var(--dsp-gray-600); line-height: 1.8; }

/* =============================================
   CARRINHO
   ============================================= */
.dsp-cart-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.dsp-cart-page h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: var(--dsp-navy); }

.dsp-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 10px;
    margin-bottom: 12px;
}
.dsp-cart-item-img img {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 8px;
}
.dsp-cart-item-name { font-size: 14px; font-weight: 700; color: var(--dsp-gray-800); margin-bottom: 4px; }
.dsp-cart-item-remove { font-size: 12px; color: var(--dsp-red); margin-top: 8px; display: block; }
.dsp-cart-item-remove:hover { text-decoration: underline; }
.dsp-cart-item-price { font-size: 18px; font-weight: 800; color: var(--dsp-green); text-align: right; }
.dsp-cart-item-price-sub { font-size: 11px; color: var(--dsp-gray-400); text-align: right; }

/* Cupom */
.dsp-coupon-box {
    background: var(--dsp-gray-50);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}
.dsp-coupon-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.dsp-coupon-form { display: flex; gap: 8px; }
.dsp-coupon-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--dsp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}
.dsp-coupon-form button {
    padding: 9px 16px;
    background: var(--dsp-navy);
    color: var(--dsp-white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.dsp-coupon-form button:hover { background: var(--dsp-navy-dark); }

/* Resumo do pedido */
.dsp-order-summary {
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.dsp-order-summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--dsp-navy); }

.dsp-free-shipping-bar {
    background: #fef9c3;
    color: #854d0e;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.dsp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dsp-gray-100);
    color: var(--dsp-gray-600);
}
.dsp-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--dsp-navy);
    border-bottom: none;
    padding-top: 12px;
}

.dsp-btn-checkout {
    display: block;
    width: 100%;
    background: var(--dsp-green);
    color: var(--dsp-white);
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    margin-top: 16px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.dsp-btn-checkout:hover { background: var(--dsp-green-dark); color: var(--dsp-white); }

.dsp-btn-continue {
    display: block;
    width: 100%;
    background: var(--dsp-gray-100);
    color: var(--dsp-gray-600);
    text-align: center;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.dsp-btn-continue:hover { background: var(--dsp-gray-200); }

/* =============================================
   STEPPER DO CHECKOUT
   ============================================= */
.dsp-checkout-stepper {
    background: var(--dsp-white);
    border-bottom: 1px solid var(--dsp-gray-200);
    padding: 16px 20px;
}
.dsp-stepper-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dsp-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dsp-step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    background: var(--dsp-gray-200);
    color: var(--dsp-gray-400);
    transition: background 0.2s, color 0.2s;
}
.dsp-step.active .dsp-step-circle { background: var(--dsp-green); color: var(--dsp-white); }
.dsp-step.done .dsp-step-circle { background: var(--dsp-navy); color: var(--dsp-white); }
.dsp-step-label { font-size: 11px; font-weight: 600; color: var(--dsp-gray-400); }
.dsp-step.active .dsp-step-label { color: var(--dsp-green); }
.dsp-step.done .dsp-step-label { color: var(--dsp-navy); }
.dsp-step-line {
    flex: 1;
    height: 2px;
    background: var(--dsp-gray-200);
    margin: 0 8px;
    margin-bottom: 16px;
}
.dsp-step-line.active { background: var(--dsp-green); }

/* =============================================
   CHECKOUT FORM
   ============================================= */
.dsp-checkout-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.dsp-checkout-section {
    background: var(--dsp-white);
    border: 1px solid var(--dsp-gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.dsp-checkout-section h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--dsp-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dsp-gray-100);
}

.dsp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dsp-form-field { display: flex; flex-direction: column; gap: 5px; }
.dsp-form-field.full { grid-column: 1 / -1; }
.dsp-form-field label { font-size: 12px; font-weight: 600; color: var(--dsp-gray-600); }
.dsp-form-field label .required { color: var(--dsp-red); margin-left: 2px; }
.dsp-form-field input,
.dsp-form-field select {
    padding: 10px 12px;
    border: 1.5px solid var(--dsp-gray-200);
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--dsp-white);
}
.dsp-form-field input:focus,
.dsp-form-field select:focus {
    border-color: var(--dsp-green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

/* Itens do checkout */
.dsp-checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dsp-gray-100);
}
.dsp-checkout-item:last-child { border-bottom: none; }
.dsp-checkout-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.dsp-checkout-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.dsp-checkout-item-qty { font-size: 11px; color: var(--dsp-gray-400); }
.dsp-checkout-item-price { font-size: 14px; font-weight: 700; color: var(--dsp-green); white-space: nowrap; }

/* =============================================
   ANIMAÇÕES
   ============================================= */
.dsp-animate { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.dsp-animate.dsp-visible { opacity: 1; transform: translateY(0); }

/* Toast */
.dsp-toast {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: var(--dsp-navy);
    color: var(--dsp-white);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9998;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.dsp-toast.show { opacity: 1; transform: translateY(0); }
.dsp-toast.dsp-toast-success { background: var(--dsp-green); }
.dsp-toast.dsp-toast-error { background: var(--dsp-red); }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
    .dsp-products-grid { grid-template-columns: repeat(2, 1fr); }
    .dsp-footer-inner { grid-template-columns: 1fr 1fr; }
    .dsp-hero-inner { grid-template-columns: 1fr; }
    .dsp-hero-image { display: none; }
}

@media (max-width: 768px) {
    .dsp-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dsp-cart-page, .dsp-checkout-page { grid-template-columns: 1fr; }
    .dsp-product-single { grid-template-columns: 1fr; }
    .dsp-testimonials-grid { grid-template-columns: 1fr; }
    .dsp-form-grid { grid-template-columns: 1fr; }
    .dsp-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .dsp-benefits-inner { flex-direction: column; }
    .hide-mobile { display: none; }
    .dsp-hero { padding: 40px 20px; }
    .dsp-hero-btns { flex-direction: column; }
    .dsp-btn-primary, .dsp-btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .dsp-products-grid { grid-template-columns: 1fr; }
    .dsp-announcement-bar .sep { display: none; }
    .dsp-announcement-bar { font-size: 11px; }
}

/* =============================================
   OVERRIDES DO ASTRA E WOOCOMMERCE
   ============================================= */
.dsp-theme .ast-container { max-width: 100% !important; padding: 0 !important; }
.dsp-theme #ast-fixed-header { display: none !important; }
.dsp-theme .ast-above-header-wrap { display: none !important; }
.dsp-theme .ast-primary-header-bar { display: none !important; }
.dsp-theme .ast-below-header-wrap { display: none !important; }
.dsp-theme .ast-footer-overlay { display: none !important; }
.dsp-theme footer.site-footer { display: none !important; }
.dsp-theme .woocommerce-breadcrumb { display: none !important; }
.dsp-theme .woocommerce-notices-wrapper { max-width: 1200px; margin: 16px auto; padding: 0 20px; }

/* Estilo dos métodos de pagamento do WooCommerce */
.dsp-theme .wc_payment_methods { list-style: none; }
.dsp-theme .wc_payment_method { 
    border: 1.5px solid var(--dsp-gray-200); 
    border-radius: 8px; 
    padding: 12px 16px; 
    margin-bottom: 8px; 
    transition: border-color 0.15s;
}
.dsp-theme .wc_payment_method input[type="radio"]:checked + label { color: var(--dsp-green); }
.dsp-theme .wc_payment_method:has(input:checked) { border-color: var(--dsp-green); background: #f0fdf4; }


/* =============================================
   CHECKOUT - CAMPOS OCULTOS E CEP AUTOFILL
   ============================================= */
/* Ocultar campos desnecessários no checkout */
#billing_persontype_field,
#billing_cpf_field,
#billing_cnpj_field,
.dsp-hidden-field {
    display: none !important;
}

/* Mensagem de status do CEP */
.dsp-cep-msg {
    font-size: 11px;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    display: none;
}
.dsp-cep-msg.success {
    background: #f0fff0;
    color: #2d7a2d;
    display: block;
}
.dsp-cep-msg.error {
    background: #fff0f0;
    color: #c0392b;
    display: block;
}


/* =============================================
   DSP SAFETY — CHECKOUT ESTILIZADO
   ============================================= */

/* Seções do formulário de checkout */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 28px 32px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}

/* Títulos das seções */
.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1e3a5f !important;
  border-bottom: 2px solid #f97316 !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

/* Labels dos campos */
.woocommerce-checkout .form-row label {
  font-size: .8rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 5px !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

/* Campos de input */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #cbd5e0 !important;
  border-radius: 8px !important;
  font-size: .95rem !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  transition: border-color .2s, box-shadow .2s !important;
  box-sizing: border-box !important;
}

/* Focus dos campos */
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,.15) !important;
  outline: none !important;
  background: #fff !important;
}

/* Asterisco obrigatório */
.woocommerce-checkout .form-row .required { color: #f97316 !important; }

/* Checkbox "entregar em endereço diferente" */
.woocommerce-checkout #ship-to-different-address label {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1e3a5f !important;
  cursor: pointer !important;
}

/* Botão finalizar pedido */
.woocommerce-checkout #place_order {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 16px 32px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.35) !important;
  transition: transform .15s, box-shadow .15s !important;
}
.woocommerce-checkout #place_order:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(249,115,22,.45) !important;
}

/* =============================================
   DSP SAFETY — MINHA CONTA ESTILIZADA
   ============================================= */

.woocommerce-MyAccount-navigation {
  background: #1e3a5f !important;
  border-radius: 12px !important;
  padding: 16px 0 !important;
  margin-bottom: 24px !important;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 12px 24px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: .95rem !important;
  text-decoration: none !important;
  border-left: 3px solid transparent !important;
  transition: all .15s !important;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(249,115,22,.12) !important;
  color: #f97316 !important;
  border-left-color: #f97316 !important;
}
.woocommerce-MyAccount-content {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 28px 32px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
}

/* =============================================
   DSP SAFETY — PÁGINAS INSTITUCIONAIS
   ============================================= */

/* H1 das páginas */
.page .entry-content h1,
.single .entry-content h1 {
  font-size: 2rem !important;
  color: #1e3a5f !important;
  font-weight: 700 !important;
  border-bottom: 3px solid #f97316 !important;
  padding-bottom: 12px !important;
  margin-bottom: .6em !important;
}

/* H2 das páginas */
.page .entry-content h2,
.single .entry-content h2 {
  font-size: 1.35rem !important;
  color: #1e3a5f !important;
  font-weight: 700 !important;
  border-left: 4px solid #f97316 !important;
  padding-left: 12px !important;
  margin-top: 2em !important;
  margin-bottom: .6em !important;
}

/* H3 das páginas */
.page .entry-content h3,
.single .entry-content h3 {
  font-size: 1.1rem !important;
  color: #374151 !important;
  font-weight: 700 !important;
  margin-top: 1.5em !important;
  margin-bottom: .5em !important;
}

/* Parágrafos */
.page .entry-content p,
.single .entry-content p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #475569 !important;
  margin-bottom: 1.2em !important;
}

/* Listas */
.page .entry-content ul,
.page .entry-content ol,
.single .entry-content ul,
.single .entry-content ol {
  padding-left: 1.5em !important;
  margin-bottom: 1.2em !important;
}
.page .entry-content ul li,
.page .entry-content ol li,
.single .entry-content ul li,
.single .entry-content ol li {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #475569 !important;
  margin-bottom: .4em !important;
}

/* Negrito e links */
.page .entry-content strong,
.single .entry-content strong { color: #1e3a5f !important; }
.page .entry-content a,
.single .entry-content a { color: #f97316 !important; text-decoration: underline !important; }

/* Container das páginas institucionais */
.page .entry-content,
.single .entry-content {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 32px 24px !important;
}


/* =============================================
   CORREÇÃO: INPUT DE QUANTIDADE NO CARRINHO
   ============================================= */
.woocommerce .quantity input.qty,
.woocommerce-cart .quantity input.qty,
.woocommerce-page .quantity input.qty,
input.qty,
.qty {
  color: #1e293b !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #1e293b !important;
  opacity: 1 !important;
}


/* =============================================
   CORREÇÃO: INPUT DE QUANTIDADE dsp-qty-input
   ============================================= */
input.dsp-qty-input,
.dsp-qty-input {
  padding: 4px 6px !important;
  height: 44px !important;
  width: 60px !important;
  min-height: 44px !important;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  background-color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  overflow: visible !important;
}
