/**
 * Main CSS - Dandra
 * Estilos base, tipografia, botões e utilitários de layout
 */

body {
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-base);
}

/* Links */
a:hover {
    text-decoration: none;
}

/* Títulos */
h1 {
    max-width: 560px;
    margin: 13px 0 14px;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.05rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.1rem;
}

p {
    line-height: 1.6;
}

/* Botões (detalhes específicos por contexto nos arquivos de seção) */
.btn:disabled,
.quick-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================
   Header search - barra branca com lupa SEMPRE visível
   ========================================================== */
.header-search .search,
.header-search form.woocommerce-product-search {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 4px 0 16px;
    background: #FFFFFF;
    border: 1px solid #E7E2D9;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search .search input.search-field,
.header-search .search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #121212 !important;
    font-size: 0.9rem;
    box-shadow: none !important;
}

.header-search .search input::placeholder {
    color: #8A857C;
    opacity: 1;
}

/* Botão lupa: SEMPRE visível, sem depender de :focus-within */
.header-search .search .search-submit {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid !important;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6E6A63;
    cursor: pointer;
    transition: color 0.2s;
}

.header-search .search .search-submit:hover {
    color: #C5A059;
}

.header-search .search .search-submit svg {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
}

.header-search .search:focus-within {
    border-color: #C5A059;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Tamanho do logo do header */
.dandra-header-logo { max-height: 42px; width: auto; display: block; }
.dandra-logo-svg { display: flex; align-items: center; min-width: 0; }
.dandra-logo-svg svg { height: 42px; width: auto; max-width: 100%; display: block; }

/* Conteúdo padrão de páginas/posts */
.entry-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.entry-content {
    line-height: 1.75;
}

.entry-content img {
    border-radius: var(--radius-sm);
}

.entry-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.posted-on,
.byline {
    display: inline-block;
}

/* Paginação */
.pagination,
.posts-pagination {
    margin-top: 40px;
}

.pagination .nav-links,
.posts-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination .page-numbers,
.posts-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font-weight: 700;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.posts-pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Sidebar widgets */
.widget {
    margin-bottom: 35px;
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-soft);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.widget a:hover {
    color: var(--primary);
}
