@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --heading-color: #1e2a5e;
}

/*!
Theme Name: LojaEbooks
Theme URI: http://underscores.me/
Author: SSPS
Author URI: http://underscores.me/
Description: Tema para venda de ebooks
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: loja-ebooks
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

LojaEbooks is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* ============================================================
   FUNDO E TIPOGRAFIA GERAIS
   ============================================================ */
body {
    background: #f5f7fa;
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}
.site {
    max-width: 100%;
    margin: 0;
    background: #ffffff;
    box-shadow: none;
}

/* ============================================================
   CABEÇALHO, BUSCA E ESTRUTURA GERAL
   ============================================================ */

/* Container principal do cabeçalho */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid #e9edf2;
    padding: 15px 0 0 0;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Nome do site – alinhado à esquerda */
.site-branding {
    margin-bottom: 10px;
}
.site-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}
.site-title a {
    color: var(--heading-color);
    text-decoration: none;
}

/* Container cinza claro (menu + busca) – com flex corrigido */
.header-bottom {
    width: 100%;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px 16px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    gap: 15px;
    box-sizing: border-box;
    overflow: visible !important; /* Garante que a busca não seja cortada */
}

/* Menu – à esquerda, com largura automática */
.main-navigation {
    flex: 0 0 auto !important;
    order: 1;
    display: block !important;
}
.main-navigation ul {
    display: flex !important;
    gap: 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}
.main-navigation ul li a {
    text-decoration: none !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.2s !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
}
.main-navigation ul li a:hover {
    color: var(--accent) !important;
}
.menu-toggle {
    display: none !important;
}

/* Barra de busca – ocupa todo o espaço restante à direita, FORÇADA */
.header-search {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    min-width: 120px !important;
    order: 2;
    display: block !important;
    visibility: visible !important;
}
.header-search .search-form {
    display: flex !important;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100% !important;
}
.header-search .search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.header-search .search-field {
    flex: 1;
    border: none !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: transparent !important;
    outline: none !important;
    min-width: 0;
}
.header-search .search-field::placeholder {
    color: #94a3b8;
}
.header-search .search-submit {
    background: var(--accent) !important;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    transition: background 0.2s !important;
    min-height: 36px !important;
}
.header-search .search-submit:hover {
    background: var(--accent-hover) !important;
}
.header-search .search-submit svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Responsivo: mobile */
@media (max-width: 768px) {
    .site-header-inner {
        padding: 0 15px;
    }
    .header-bottom {
        flex-wrap: wrap !important;
        padding: 12px 15px;
        gap: 12px;
        border-radius: 10px;
        justify-content: center !important;
    }
    .main-navigation {
        order: 1 !important;
        width: 100% !important;
        text-align: center !important;
        flex: 0 0 100% !important;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 8px !important;
        justify-content: center !important;
    }
    .main-navigation ul li a {
        font-size: 13px !important;
        padding: 2px 4px !important;
    }
    .header-search {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        order: 2 !important;
        display: block !important;
    }
    .header-search .search-submit {
        min-height: 34px !important;
        padding: 4px 12px !important;
    }
    .menu-toggle {
        display: block !important;
        background: var(--accent) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 200px !important;
        text-align: center !important;
    }
    .main-navigation ul {
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        background: transparent !important;
        padding: 10px 0 0 0 !important;
    }
    .main-navigation.toggled ul {
        display: flex !important;
    }
    .main-navigation ul li {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative !important;
        display: block !important;
    }
    .main-navigation ul li:last-child {
        border-bottom: none !important;
    }
    .main-navigation ul li a {
        display: block !important;
        padding: 12px 20px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        color: var(--heading-color) !important;
        text-decoration: none !important;
        transition: background 0.15s !important;
    }
    .main-navigation ul li a:hover,
    .main-navigation ul li a:focus {
        background: #f1f5f9 !important;
        color: var(--accent) !important;
    }
    /* Submenus */
    .main-navigation ul ul {
        display: none !important;
        background: #f8fafc !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: none !important;
        box-shadow: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        border-radius: 0 !important;
        min-width: auto !important;
        width: 100% !important;
    }
    .main-navigation ul li.open > ul {
        display: flex !important;
    }
    .main-navigation ul ul li {
        border-bottom: 1px solid #e9edf2 !important;
        padding-left: 20px !important;
        width: 100% !important;
    }
    .main-navigation ul ul li:last-child {
        border-bottom: none !important;
    }
    .main-navigation ul ul a {
        font-weight: 400 !important;
        font-size: 15px !important;
        color: #334155 !important;
        padding: 10px 20px !important;
        background: #f8fafc !important;
        display: block !important;
        width: 100% !important;
    }
    .main-navigation ul ul a:hover,
    .main-navigation ul ul a:focus {
        background: #e9edf2 !important;
        color: var(--accent) !important;
    }
    .menu-item-has-children > a::after {
        content: " ▼" !important;
        font-size: 12px !important;
        color: #94a3b8 !important;
        margin-left: 6px !important;
        display: inline-block !important;
        transition: transform 0.2s !important;
    }
    .menu-item-has-children.open > a::after {
        transform: rotate(180deg) !important;
    }
}

/* ============================================================
   SELETOR DE CATEGORIAS (ACIMA DO GRID)
   ============================================================ */
.category-filter {
    text-align: left;
    margin: 30px auto 10px auto;
    max-width: 1200px;
    padding: 0 20px 0 40px;
    box-sizing: border-box;
}
.category-filter label {
    font-weight: 600;
    font-size: 1em;
    color: #1e293b;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}
.category-filter select {
    padding: 10px 40px 10px 20px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    font-size: 1em;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 200px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.category-filter select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
@media (max-width: 768px) {
    .category-filter {
        text-align: center;
        padding: 0 20px;
        margin-top: 20px;
    }
    .category-filter label {
        display: block;
        margin-bottom: 8px;
    }
    .category-filter select {
        width: 100%;
        max-width: 300px;
        padding-right: 35px;
    }
}

/* ============================================================
   GRID DA PÁGINA INICIAL - 4 COLUNAS
   ============================================================ */
.grid-books-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    padding: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.book-grid-item {
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    text-align: center !important;
    border: 1px solid #f1f5f9 !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
}
.book-grid-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}
.book-cover {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    background: #f8fafc !important;
}
.no-cover {
    height: 220px !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
}
.book-title {
    font-size: 1em !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
    padding: 12px 10px 8px 10px !important;
    margin: 0 !important;
}
.ver-mais-container {
    text-align: center !important;
    padding: 20px 0 60px 0 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.ver-mais-btn {
    display: inline-block !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    padding:	8px 30px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border: 2px solid #e2e8f0 !important;
    transition: 0.2s !important;
}
.ver-mais-btn:hover {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}
@media (max-width: 992px) {
    .grid-books-container { grid-template-columns: repeat(3, 1fr) !important; }
    .book-cover { height: 180px !important; }
}
@media (max-width: 768px) {
    .grid-books-container { grid-template-columns: repeat(2, 1fr) !important; }
    .book-cover { height: 150px !important; }
}

/* ============================================================
   PÁGINAS DE ARQUIVO (CATEGORIAS, TAGS)
   ============================================================ */
.archive-header {
    text-align: center;
    padding: 30px 20px 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.archive-title {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 10px;
}
.clear-filter {
    margin: 10px 0 20px 0;
}
.clear-filter-btn {
    display: inline-block;
    background: #f1f5f9;
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: 0.2s;
}
.clear-filter-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination-container {
    text-align: center;
    padding: 20px 0 50px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.pagination-container .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: 0.2s;
}
.pagination-container .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination-container .page-numbers:hover:not(.current) {
    background: #e2e8f0;
}

/* ============================================================
   CABEÇALHO HERÓI PARA POSTS (SINGLE)
   ============================================================ */
.post-hero {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 30px 0;
}
.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.post-hero-content {
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 0 20px;
}
.post-hero-title {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.post-hero-meta {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.post-hero-meta span {
    margin: 0;
    padding: 0;
}
.post-hero-meta .post-date {
    display: inline-block;
}
.post-hero-meta .post-author {
    display: inline-block;
    color: #ffffff;
    opacity: 1;
}
.post-hero-meta .post-date::after {
    content: "";
    display: none;
}
.post-no-hero {
    max-width: 850px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
    text-align: center;
}
.post-content-container {
    max-width: 850px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}
.post-content-container .entry-content {
    font-size: 1em;
    line-height: 1.8;
    color: #1e293b;
}
.post-content-container .entry-content p {
    margin-bottom: 1.5em;
}
.post-content-container .entry-content h2,
.post-content-container .entry-content h3 {
    margin-top: 1.8em;
    color: var(--heading-color);
}
@media (max-width: 768px) {
    .post-hero {
        height: 280px;
    }
    .post-hero-title {
        font-size: 2em;
    }
    .post-hero-meta {
        font-size: 0.9em;
    }
}
@media (max-width: 480px) {
    .post-hero {
        height: 220px;
    }
    .post-hero-title {
        font-size: 1.6em;
    }
}

/* ============================================================
   PÁGINA DE CONTATO - CAMPOS UNIFORMIZADOS (PADRÃO CHECKOUT)
   ============================================================ */

/* Container centralizado com padding adequado */
.contact-wrapper {
    max-width: 850px !important;
    margin: 40px auto !important;
    padding: 0 30px !important;
}

/* Ajuste do cabeçalho */
.contact-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}
.contact-title {
    font-size: 2.2em !important;
    font-weight: 800 !important;
    color: var(--heading-color) !important;
    margin-bottom: 5px !important;
}
.contact-subtitle {
    font-size: 1em !important;
    color: #64748b !important;
}

/* Conteúdo do formulário - fundo com borda arredondada */
.contact-content {
    background: #f8fafc !important;
    padding: 30px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Campos do formulário (mesmo padrão do checkout) */
.contact-form input,
.contact-form textarea {
    padding: 6px 10px !important;
    min-height: 34px !important;
    height: 34px !important;
    font-size: 0.9em !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    border: 1.5px solid #d1d5db !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    transition: border-color 0.2s !important;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}

/* Ajuste específico para textarea (altura automática) */
.contact-form textarea {
    height: auto !important;
    min-height: 80px !important;
    padding: 8px 10px !important;
    resize: vertical !important;
}

/* Reduz espaçamento entre as linhas do formulário */
.contact-form .form-group {
    margin-bottom: 8px !important;
}

/* Labels mais compactas */
.contact-form label {
    font-size: 0.85em !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    display: block !important;
    color: var(--heading-color) !important;
}

/* Botão "Enviar mensagem" */
.contact-submit {
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: 10px !important;
    display: inline-block !important;
    width: auto !important;
}
.contact-submit:hover {
    background: var(--accent-hover) !important;
}

/* Mensagens de sucesso/erro (já estilizadas, mas mantemos) */
.contact-success,
.contact-error {
    font-size: 0.95em !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    margin-bottom: 15px !important;
}

/* Responsivo: em telas menores, ajusta */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 0 15px !important;
    }
    .contact-content {
        padding: 20px !important;
    }
    .contact-title {
        font-size: 1.8em !important;
    }
    .contact-form input,
    .contact-form textarea {
        height: 30px !important;
        min-height: 30px !important;
        padding: 4px 8px !important;
        font-size: 0.85em !important;
    }
    .contact-form textarea {
        height: auto !important;
        min-height: 60px !important;
    }
    .contact-form .form-group {
        margin-bottom: 6px !important;
    }
    .contact-submit {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
        font-size: 1em !important;
    }
}

/* ============================================================
   WIDGETS DA PÁGINA DE BLOG/ARQUIVO
   ============================================================ */

/* Container dos widgets – centralizado e com largura limitada */
.sidebar,
.widget-area {
    max-width: 1200px;
    margin: 30px auto 20px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* Cada widget */
.widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Títulos dos widgets – centralizados */
.widget-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Listas dos widgets – sem marcadores e com espaçamento */
.widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.widget ul li {
    margin: 6px 0 !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid #f1f5f9;
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    text-decoration: none !important;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}
.widget ul li a:hover {
    color: var(--accent);
}

/* Widget de categorias – estilo dropdown (caso seja um select) */
.widget select {
    width: 100%;
    padding: 10px 15px;
    border-radius: 50px;
    border: 2px solid #d1d5db;
    background: #ffffff;
    font-size: 0.95em;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    transition: border-color 0.2s;
}
.widget select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ============================================================
   WIDGET DE TAGS – ESTILO NUVEM CENTRALIZADA SEM MOLDURA
   ============================================================ */
.widget_tag_cloud {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    text-align: center !important;
}
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    align-items: center;
}
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: none !important;
    border: none !important;
    padding: 2px 4px !important;
    color: #1e293b !important;
    font-size: 0.9em !important;
    text-decoration: none !important;
    transition: color 0.2s, transform 0.2s;
    font-weight: 500;
    line-height: 1.4;
}
/* Tamanhos variados baseados na popularidade */
.widget_tag_cloud .tagcloud a.tag-link-1 { font-size: 0.8em !important; }
.widget_tag_cloud .tagcloud a.tag-link-2 { font-size: 0.9em !important; }
.widget_tag_cloud .tagcloud a.tag-link-3 { font-size: 1.0em !important; }
.widget_tag_cloud .tagcloud a.tag-link-4 { font-size: 1.1em !important; }
.widget_tag_cloud .tagcloud a.tag-link-5 { font-size: 1.2em !important; }
.widget_tag_cloud .tagcloud a:hover {
    color: var(--accent) !important;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .widget_tag_cloud .tagcloud {
        gap: 6px 10px;
    }
}

/* Responsivo para os widgets */
@media (max-width: 992px) {
    .sidebar,
    .widget-area {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px;
    }
}
@media (max-width: 768px) {
    .sidebar,
    .widget-area {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    border-top: 2px solid #f1f5f9;
    font-size: 0.9em;
}

/* ============================================================
   FORÇA LAYOUT DA PÁGINA DA LOJA - ULTRA ESPECÍFICO
   ============================================================ */

/* Desktop: ordenação e resultado lado a lado */
body.archive.post-type-archive-product .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

body.archive.post-type-archive-product .woocommerce-products-header .woocommerce-ordering,
body.woocommerce-shop .woocommerce-products-header .woocommerce-ordering {
    flex: 0 0 auto !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

body.archive.post-type-archive-product .woocommerce-products-header .woocommerce-result-count,
body.woocommerce-shop .woocommerce-products-header .woocommerce-result-count {
    flex: 0 0 auto !important;
    margin: 0 !important;
    float: none !important;
}

/* Espaçamento lateral uniforme (40px) e inferior (50px) */
/* Espaçamento lateral uniforme (40px) e inferior (50px) */
body.archive.post-type-archive-product .site-main,
body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-bottom: 50px !important;
    box-sizing: border-box !important;
}

/* Remove padding extra do grid */
body.archive.post-type-archive-product ul.products,
body.woocommerce-shop ul.products {
    padding: 0 !important;
}

/* Mobile: ordenação ocupa 100% da largura */
@media (max-width: 768px) {
    body.archive.post-type-archive-product .woocommerce-products-header,
    body.woocommerce-shop .woocommerce-products-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    body.archive.post-type-archive-product .woocommerce-products-header .woocommerce-ordering,
    body.woocommerce-shop .woocommerce-products-header .woocommerce-ordering {
        width: 100% !important;
    }
    body.archive.post-type-archive-product .woocommerce-products-header .woocommerce-ordering select,
    body.woocommerce-shop .woocommerce-products-header .woocommerce-ordering select {
        width: 100% !important;
    }
}

/* ============================================================
   DESTAQUE PARA OS 3 PRIMEIROS POSTS (GRID INICIAL)
   ============================================================ */

/* Sombra suave voltada para a esquerda (sem contorno) */
.book-grid-item.destaque {
    box-shadow: -6px 6px 12px rgba(0,0,0,0.05) !important; /* Sombra à esquerda */
    border: none !important; /* Remove contorno */
    position: relative !important;
    background: #ffffff !important;
}

/* Badge acima do container (sem cobrir a imagem) */
.destaque-badge {
    background: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.7em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 4px 12px !important;
    border-radius: 4px 4px 0 0 !important; /* Apenas no topo */
    display: inline-block !important;
    margin-bottom: 6px !important; /* Espaço entre o badge e a imagem */
    box-shadow: 0 -2px 8px rgba(37,99,235,0.15) !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Ajuste para o hover dos cards com destaque */
.book-grid-item.destaque:hover {
    transform: translateY(-5px) !important;
    box-shadow: -8px 10px 20px rgba(0,0,0,0.08) !important;
}

/* Responsivo: ajusta o tamanho do badge em telas menores */
@media (max-width: 768px) {
    .destaque-badge {
        font-size: 0.6em !important;
        padding: 3px 8px !important;
    }
}

/* ============================================================
   FILTRO DE CATEGORIAS + BARRA DE BUSCA (LINHA ÚNICA)
   ============================================================ */

/* Container pai – exatamente o mesmo padding do grid */
.filter-and-search {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
}

/* Seletor de categorias – com altura e padding uniformes */
.category-filter {
    margin: 15px 0 10px 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.category-filter label {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.category-filter select {
    padding: 6px 35px 6px 10px !important; /* Igual ao checkout: 6px vertical, 10px horizontal */
    border-radius: 6px !important; /* Igual ao checkout */
    border: 1.5px solid #d1d5db !important;
    background: #ffffff !important;
    font-size: 0.9em !important; /* Igual ao checkout */
    font-weight: 500 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    min-height: 34px !important; /* Altura mínima igual ao checkout */
    height: 34px !important; /* Altura fixa igual ao checkout */
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.category-filter select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}

/* Barra de busca – mesma altura e padding */
.filter-and-search .header-search {
    flex: 1 1 300px !important;
    max-width: 500px !important;
    min-width: 180px !important;
    margin: 15px 0 10px 0 !important;
    display: flex !important;
    align-items: center !important;
}

.filter-and-search .header-search .search-form {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 6px !important; /* Igual ao checkout */
    overflow: hidden !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    height: 34px !important; /* Altura fixa igual ao checkout */
}
.filter-and-search .header-search .search-form:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}
.filter-and-search .header-search .search-field {
    flex: 1 !important;
    border: none !important;
    padding: 6px 10px !important; /* Igual ao checkout */
    font-size: 0.9em !important; /* Igual ao checkout */
    color: #1e293b !important;
    background: transparent !important;
    outline: none !important;
    min-width: 0 !important;
    height: 100% !important;
    line-height: 1.2 !important;
}
.filter-and-search .header-search .search-field::placeholder {
    color: #94a3b8 !important;
}
.filter-and-search .header-search .search-submit {
    background: var(--accent) !important;
    border: none !important;
    border-radius: 0 6px 6px 0 !important; /* Igual ao checkout */
    padding: 0 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    transition: background 0.2s !important;
    height: 100% !important;
    min-height: 34px !important;
}
.filter-and-search .header-search .search-submit:hover {
    background: var(--accent-hover) !important;
}
.filter-and-search .header-search .search-submit svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    display: block !important;
}

/* Responsivo: em telas menores, empilha */
@media (max-width: 768px) {
    .filter-and-search {
        padding: 0 15px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .filter-and-search .header-search {
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
    .filter-and-search .header-search .search-form {
        height: 30px !important; /* Ajuste para mobile */
    }
    .filter-and-search .header-search .search-submit {
        min-height: 30px !important;
    }
    .category-filter {
        margin: 10px 0 5px 0 !important;
        flex-wrap: wrap !important;
    }
    .category-filter select {
        height: 30px !important;
        min-height: 30px !important;
        font-size: 0.85em !important;
        padding: 4px 30px 4px 8px !important;
    }
}

/* ============================================================
   PÁGINAS ESTÁTICAS (POLÍTICA DE PRIVACIDADE, TERMOS E CONDIÇÕES)
   ============================================================ */

/* Container principal da página */
.page .site-main {
    max-width: 800px !important;      /* Largura máxima do conteúdo */
    margin: 40px auto !important;      /* Centraliza e dá espaçamento vertical */
    padding: 0 20px !important;        /* Espaçamento interno lateral */
}

/* Bloco de conteúdo (entry-content) */
.page .entry-content {
    text-align: justify !important;    /* Justifica o texto */
}

/* Aplica também aos títulos e parágrafos para garantir */
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content p {
    text-align: justify !important;    /* Justifica também títulos e parágrafos */
}

/* Caso queira centralizar o título principal da página (h1.entry-title) */
.page .entry-title {
    text-align: center !important;     /* Centraliza o título */
    margin-bottom: 30px !important;    /* Dá um espaçamento maior abaixo do título */
}

/* ============================================================
   AJUSTES VISUAIS - TIPOGRAFIA DE TÍTULOS
   ============================================================ */
.site-title,
.carousel-title,
.book-title,
.archive-title,
.contact-title,
h1, h2, h3 {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
    color: var(--heading-color);
}

/* ============================================================
   AJUSTES VISUAIS - CARDS DE PRODUTO
   ============================================================ */
.book-grid-item {
    box-shadow: none !important;
    border: 1px solid #eef1f5 !important;
    transition: border-color 0.25s ease, transform 0.25s ease !important;
}
.book-grid-item:hover {
    border-color: #dbe1e8 !important;
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-5px) !important;
}

/* ============================================================
   AJUSTES VISUAIS - ESPAÇAMENTO DO GRID E CABEÇALHO
   ============================================================ */
.grid-books-container {
    gap: 32px !important;
    padding: 50px 40px !important;
}

.site-header {
    padding: 24px 0 0 0;
}

/* ============================================================
   AJUSTES VISUAIS - BOTÕES COM CANTOS UNIFORMIZADOS
   ============================================================ */
.ver-mais-btn,
.contact-submit,
.single_add_to_cart_button,
#place_order {
    border-radius: 10px !important;
}

/* ============================================================
   AJUSTES VISUAIS - BADGE "DESTAQUE" FLUTUANTE
   ============================================================ */
.destaque-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: auto !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(4px);
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

/* ============================================================
   MENU PRINCIPAL - MAIÚSCULAS E FONTE MAIOR
   ============================================================ */
.main-navigation ul li a {
    text-transform: uppercase !important;
    font-size: 15px !important;
    letter-spacing: 0.03em !important;
}

@media (max-width: 768px) {
    .main-navigation ul li a {
        font-size: 15px !important;
    }
}

/* ============================================================
   ITEM "MINHA CONTA" ALINHADO À DIREITA DO MENU
   ============================================================ */
.main-navigation ul li {
    order: 1;
}

.main-navigation ul li.menu-item-conta {
    order: 99;
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .main-navigation ul li.menu-item-conta {
        order: 1;
        margin-left: 0 !important;
    }
}

/* ============================================================
   ÍCONE DE LOGIN NO MENU
   ============================================================ */
.main-navigation ul li.menu-item-conta a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.menu-login-icon {
    flex-shrink: 0;
    display: block;
}

/* ============================================================
   RODAPÉ - REDESIGN
   ============================================================ */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 40px 40px 24px 40px;
    text-align: left;
    color: #64748b;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.footer-columns h3 {
    font-size: 1em;
    color: var(--heading-color);
    margin-bottom: 12px;
}

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

.footer-columns ul li {
    margin-bottom: 8px;
}

.footer-columns ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-columns ul li a:hover {
    color: var(--accent);
}

.footer-col p {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 16px auto 0 auto;
    text-align: center;
    font-size: 0.85em;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}