/* PriceLines — main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--pl-font-size,15px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--pl-font,'Inter',system-ui,sans-serif); color: var(--pl-text,#1a1a1a); background: var(--pl-bg,#f5f5f5); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

.pl-container { width: 100%; max-width: var(--pl-container,1280px); margin-inline: auto; padding-inline: 24px; }
.pl-container--wide { max-width: var(--pl-container, 1800px); }

/* Header */

/* Main */
.pl-main { min-height: 60vh; padding-block: 40px; }

/* Buttons */
.pl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: filter .18s, transform .12s; line-height: 1.2; font-family: inherit; }
.pl-btn--dark    { background: var(--pl-text,#1a1a1a); color: #fff; }
.pl-btn--dark:hover { filter: brightness(1.3); }
.pl-btn--ghost   { background: #fff; color: #333; border: 1.5px solid #e0e0e0; }
.pl-btn--ghost:hover { background: #f5f5f5; }
.pl-btn--primary { background: var(--pl-primary,#c0392b); color: #fff; }
.pl-btn--primary:hover { filter: brightness(.88); transform: translateY(-1px); }
.pl-input { border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 9px 14px; font-size: .9rem; font-family: inherit; outline: none; transition: border-color .15s; background: #fff; }
.pl-input:focus { border-color: var(--pl-text,#1a1a1a); }

/* Footer */

/* Responsive */

/* ════════════════════════════════════════════════════════════
 * MINHA CONTA — Layout moderno
 * ════════════════════════════════════════════════════════════ */

/* Wrapper principal — reset WC floats e grid moderno */
.woocommerce-account .woocommerce { display: grid !important; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none !important; }
.woocommerce-MyAccount-navigation { float: none !important; width: auto !important; clear: none !important; }
.woocommerce-MyAccount-content { float: none !important; width: auto !important; clear: none !important; }
@media (max-width: 768px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr !important; } }

/* ── Sidebar / Navegação ─────────────────────────────────── */
.woocommerce-MyAccount-navigation { position: sticky; top: 24px; }

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid #f3f4f6; }
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a { display: block; padding: 13px 20px; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; transition: background .15s, color .15s; }
.woocommerce-MyAccount-navigation ul li a:hover { background: #f9fafb; color: var(--pl-primary,#c0392b); }
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a { background: var(--pl-primary,#c0392b); color: #fff !important; font-weight: 700; }

/* ── Boas-vindas (topo da sidebar) ─────────────────────── */
.il-account-welcome { padding: 20px; background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.il-account-welcome__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--pl-primary,#c0392b); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.il-account-welcome__info { min-width: 0; }
.il-account-welcome__name { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-account-welcome__badge { display: inline-block; padding: 2px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

/* ── Conteúdo ────────────────────────────────────────────── */
.woocommerce-MyAccount-content { background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 2px 12px rgba(0,0,0,.07); min-height: 300px; }
@media (max-width: 600px) { .woocommerce-MyAccount-content { padding: 20px 16px; } }

/* ── Títulos dentro do conteúdo ─────────────────────────── */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { font-size: 18px; font-weight: 800; color: #111827; margin: 0 0 20px; }

/* ── Tabela de encomendas ────────────────────────────────── */
.woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-orders-table thead th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; border-bottom: 2px solid #f3f4f6; }
.woocommerce-orders-table tbody td { padding: 14px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.woocommerce-orders-table tbody tr:last-child td { border-bottom: none; }
.woocommerce-orders-table tbody tr:hover td { background: #fafafa; }
.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; margin-right: 4px; background: #f3f4f6; color: #374151; transition: background .15s; }
.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover { background: var(--pl-primary,#c0392b); color: #fff; }

/* ── Status badges ───────────────────────────────────────── */
.woocommerce-order-status { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.woocommerce-order-status.status-completed { background: #dcfce7; color: #166534; }
.woocommerce-order-status.status-processing { background: #dbeafe; color: #1e40af; }
.woocommerce-order-status.status-on-hold { background: #fef3c7; color: #92400e; }
.woocommerce-order-status.status-cancelled { background: #fef2f2; color: #dc2626; }
.woocommerce-order-status.status-pending { background: #f9fafb; color: #6b7280; }
.woocommerce-order-status.status-refunded { background: #f5f3ff; color: #7c3aed; }

/* ── Estatísticas — grid de cards ────────────────────────── */
.il-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.il-stat-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; padding: 14px 16px; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.il-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.il-stat-card__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.il-stat-card__value { font-size: 20px; font-weight: 800; color: #111827; margin: 0 0 2px; line-height: 1.1; }
.il-stat-card__value .woocommerce-Price-amount,
.il-stat-card__value bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.il-stat-card__label { font-size: 11px; color: #9ca3af; margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }

/* ── Formulários da conta ────────────────────────────────── */
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row { margin-bottom: 14px; }
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label { font-size: 13px; font-weight: 600; color: #374151; display: block; margin-bottom: 5px; }
.woocommerce-EditAccountForm input,
.woocommerce-address-fields input,
.woocommerce-EditAccountForm select,
.woocommerce-address-fields select { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: inherit; color: #111827; background: #fff; box-sizing: border-box; }
.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-EditAccountForm select:focus,
.woocommerce-address-fields select:focus { outline: none; border-color: var(--pl-primary,#c0392b); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button,
.woocommerce-MyAccount-content .button { background: var(--pl-primary,#c0392b) !important; color: #fff !important; border: none !important; padding: 10px 24px !important; border-radius: 8px !important; font-weight: 700 !important; font-size: 14px !important; cursor: pointer !important; text-decoration: none !important; }
.woocommerce-EditAccountForm .button:hover,
.woocommerce-MyAccount-content .button:hover { filter: brightness(1.1) !important; }

/* ── Toggle estatísticas mobile ─────────────────────────── */
.il-stats-toggle { display: none; }
@media (max-width: 600px) {
    .il-stats-toggle { display: block; width: 100%; padding: 11px 16px; margin-bottom: 14px; background: #111827; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
    .il-stats-grid { display: none; }
    .il-stats-grid.is-open { display: grid; }
}

/* ══ GRID DO CATÁLOGO — carregado no main.css para garantir prioridade ══ */
body.woocommerce ul.products,
body.woocommerce-page ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--il-shop-cols, 4), 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
}
@media (max-width: 1200px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 900px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 600px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── Seleção de texto (arrastar o rato / pressionar no telemóvel) com o dourado do site ── */
::selection { background: #D0AB65; color: #1a1a1a; text-shadow: none; }
::-moz-selection { background: #D0AB65; color: #1a1a1a; text-shadow: none; }

/* ── Barra de scroll com o dourado do site ──
   Chrome / Edge / Safari (computador): ::-webkit-scrollbar — "pastilha" dourada arredondada sobre uma calha clara.
   Firefox: scrollbar-color (não permite cantos, mas fica com as mesmas cores).
   Telemóveis usam a barra do sistema (fina e por cima do conteúdo) — não muda.
   As zonas que o tema já esconde (carrosséis, etc.) continuam escondidas: as regras delas são mais específicas. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f5f2ec; }
::-webkit-scrollbar-thumb {
    background: #D0AB65;
    border-radius: 999px;
    border: 3px solid #f5f2ec;          /* afasta a pastilha das margens: fica mais fina e elegante */
    min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background: #b8923f; }
::-webkit-scrollbar-thumb:active { background: #a07c30; }
::-webkit-scrollbar-corner { background: #f5f2ec; }
/* Dentro de caixas (menus, listas, painéis) a barra é mais discreta */
body *::-webkit-scrollbar { width: 8px; height: 8px; }
body *::-webkit-scrollbar-track { background: transparent; }
body *::-webkit-scrollbar-thumb { border: 2px solid transparent; background-clip: padding-box; background-color: rgba(208,171,101,.75); }
body *::-webkit-scrollbar-thumb:hover { background-color: #b8923f; }
@supports (-moz-appearance: none) {
    html { scrollbar-color: #D0AB65 #f5f2ec; }
    body * { scrollbar-color: rgba(208,171,101,.75) transparent; }
}
