/*
Theme Name: Loja do Fotógrafo
Theme URI: https://gruposdmarketing.com.br/
Author: Grupo SD
Description: Tema próprio da Loja do Fotógrafo, preparado para WooCommerce e para o plugin SD Trade Flow.
Version: 0.1.3
Text Domain: loja-do-fotografo
*/

:root {
    --ldf-wine: #8f1f1a;
    --ldf-wine-dark: #64130f;
    --ldf-ink: #211918;
    --ldf-muted: #766c6a;
    --ldf-line: #eadfdd;
    --ldf-soft: #f9f4f2;
    --ldf-white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ldf-ink); background: #fff; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--ldf-wine); }
img { max-width: 100%; height: auto; }
.ldf-container { width: min(100% - 32px, 1280px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ldf-topbar { padding: 8px 0; background: #5f5b5a; color: #fff; text-align: center; font-size: 13px; }
.ldf-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ldf-line); }
.ldf-header-main { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.ldf-logo { display: inline-flex; align-items: center; justify-self: center; text-decoration: none; }
.ldf-logo img { width: 68px; height: 68px; object-fit: contain; }
.ldf-search { display: flex; align-items: center; min-height: 46px; max-width: 390px; border: 1px solid var(--ldf-line); border-radius: 14px; overflow: hidden; background: var(--ldf-soft); }
.ldf-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 14px; font: inherit; }
.ldf-search button { width: 48px; align-self: stretch; border: 0; background: var(--ldf-wine); color: #fff; cursor: pointer; }
.ldf-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.ldf-header-actions a { color: var(--ldf-ink); text-decoration: none; font-size: 13px; font-weight: 800; }
.ldf-nav { border-top: 1px solid var(--ldf-line); }
.ldf-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 14px 0; }
.ldf-nav a { color: var(--ldf-ink); text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ldf-nav a:hover { color: var(--ldf-wine); }

.ldf-hero { position: relative; overflow: hidden; min-height: 560px; display: grid; align-items: center; background: linear-gradient(135deg, #fff 0%, #faf5f3 56%, #f0dfdc 100%); }
.ldf-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: 30px; border-radius: 50%; border: 100px solid rgba(143,31,26,.06); }
.ldf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: center; padding: 74px 0; }
.ldf-kicker { display: inline-flex; color: var(--ldf-wine); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.ldf-hero h1 { max-width: 760px; margin: 12px 0 16px; font-size: clamp(48px, 7vw, 88px); line-height: .97; letter-spacing: -.065em; }
.ldf-hero p { max-width: 650px; margin: 0; color: var(--ldf-muted); font-size: 19px; line-height: 1.65; }
.ldf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ldf-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 13px; text-decoration: none; font-weight: 850; }
.ldf-button-primary { background: var(--ldf-wine); color: #fff; box-shadow: 0 12px 28px rgba(143,31,26,.22); }
.ldf-button-secondary { border: 1px solid var(--ldf-line); background: #fff; color: var(--ldf-ink); }
.ldf-hero-visual { min-height: 370px; display: grid; place-items: center; position: relative; }
.ldf-hero-visual-card { width: min(100%, 420px); aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 44px; background: rgba(255,255,255,.82); border: 1px solid rgba(143,31,26,.13); box-shadow: 0 32px 90px rgba(102,48,42,.14); transform: rotate(3deg); }
.ldf-hero-visual-card img { width: 72%; }

.ldf-benefits { border-block: 1px solid var(--ldf-line); background: #fff; }
.ldf-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ldf-benefit { padding: 22px; text-align: center; border-right: 1px solid var(--ldf-line); }
.ldf-benefit:last-child { border-right: 0; }
.ldf-benefit strong { display: block; font-size: 14px; }
.ldf-benefit span { display: block; margin-top: 4px; color: var(--ldf-muted); font-size: 12px; }

.ldf-section { padding: 76px 0; }
.ldf-section-soft { background: var(--ldf-soft); }
.ldf-section-head { max-width: 760px; margin-bottom: 30px; }
.ldf-section-head h2 { margin: 7px 0 9px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.05em; }
.ldf-section-head p { margin: 0; color: var(--ldf-muted); font-size: 17px; line-height: 1.6; }
.ldf-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ldf-category-card { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid var(--ldf-line); border-radius: 22px; background: #fff; text-decoration: none; color: var(--ldf-ink); box-shadow: 0 10px 32px rgba(75,35,31,.05); }
.ldf-category-card span { color: var(--ldf-wine); font-size: 32px; margin-bottom: auto; }
.ldf-category-card strong { font-size: 20px; }
.ldf-category-card small { margin-top: 5px; color: var(--ldf-muted); }

.ldf-content { min-height: 60vh; padding: 54px 0 80px; }
.ldf-content .entry-content { width: min(100%, 1180px); margin-inline: auto; }
.ldf-content h1.entry-title { font-size: clamp(40px, 6vw, 70px); letter-spacing: -.05em; }

.ldf-content-sdtf { min-height: 100vh; padding: 0; background: #fbf8f7; }
.ldf-content-sdtf > .ldf-container { width: 100%; max-width: none; }
.ldf-content-sdtf .entry-content { width: 100%; max-width: none; }

.ldf-footer { padding: 46px 0 24px; background: #201817; color: #fff; }
.ldf-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; }
.ldf-footer img { width: 82px; filter: brightness(0) invert(1); opacity: .94; }
.ldf-footer p { max-width: 480px; color: rgba(255,255,255,.6); line-height: 1.6; }
.ldf-footer h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.ldf-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.ldf-footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: 12px; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { border: 1px solid var(--ldf-line); border-radius: 18px; overflow: hidden; padding-bottom: 16px; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding-inline: 14px; }
.woocommerce ul.products li.product .price { padding-inline: 14px; color: var(--ldf-wine); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 10px; background: var(--ldf-wine); color: #fff; }

@media (max-width: 900px) {
    .ldf-header-main { grid-template-columns: 1fr auto; }
    .ldf-search { display: none; }
    .ldf-logo { justify-self: start; }
    .ldf-hero-grid { grid-template-columns: 1fr; }
    .ldf-hero-visual { min-height: 300px; }
    .ldf-category-grid { grid-template-columns: 1fr 1fr; }
    .ldf-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ldf-topbar { font-size: 11px; }
    .ldf-header-main { min-height: 68px; }
    .ldf-logo img { width: 54px; height: 54px; }
    .ldf-header-actions a:not(:last-child) { display: none; }
    .ldf-nav { overflow-x: auto; }
    .ldf-nav ul { justify-content: flex-start; flex-wrap: nowrap; width: max-content; padding-inline: 16px; }
    .ldf-hero { min-height: auto; }
    .ldf-hero-grid { padding: 54px 0; }
    .ldf-hero-visual { display: none; }
    .ldf-benefits-grid { grid-template-columns: 1fr; }
    .ldf-benefit { border-right: 0; border-bottom: 1px solid var(--ldf-line); }
    .ldf-benefit:last-child { border-bottom: 0; }
    .ldf-category-grid { grid-template-columns: 1fr; }
}
