/*
Theme Name: FotoPrint Studio Elementor
Theme URI: https://www.fotoprintdigital.ro/
Author: FotoPrint Digital
Author URI: https://www.fotoprintdigital.ro/
Description: Temă WordPress ușoară, 100% compatibilă Elementor, creată pentru FotoPrint Digital Râmnicu Vâlcea. Reproduce designul laboratorului foto (crom „studio modern" + conținut „paper & copper"), este complet editabilă în Elementor (gratuit sau Pro) și complet responsivă. Fără HTML static — totul e PHP nativ WordPress + widget-uri Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fpse
Tags: elementor, photo-laboratory, e-commerce, woocommerce, responsive, custom-logo, custom-menu
*/

/* =========================================================
   1. TOKENURI DE DESIGN (extras din designul actual)
   ========================================================= */
:root {
    /* — Crom (antet, meniu, subsol) — */
    --fpse-ink: #172033;
    --fpse-muted: #687187;
    --fpse-accent: #ec1764;
    --fpse-accent-dark: #c80e50;
    --fpse-cyan: #13b6d4;
    --fpse-soft: #f5f7fb;
    --fpse-border: #e6e9f0;
    --fpse-footer-bg: #111827;
    --fpse-footer-line: #293143;
    --fpse-shadow: 0 16px 45px rgba(23, 32, 51, .1);
    --fpse-radius: 18px;
    --fpse-container: 1240px;

    /* — Conținut (hero, secțiuni, pagini) — */
    --paper: #f4efe6;
    --paper-2: #ebe4d6;
    --ink: #1a1410;
    --ink-soft: #4a3f36;
    --muted: #7a6d62;
    --line: rgba(26, 20, 16, .12);
    --copper: #b4532a;
    --copper-2: #8f3d1c;
    --gold: #c4a574;
    --cream: #fbf7f0;
    --white: #fffcf7;
    --radius-sm: 14px;
    --radius-lg: 28px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
    --chrome: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* =========================================================
   2. BAZĂ
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--chrome);
    font-size: 16px;
    line-height: 1.65;
    color: var(--fpse-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, video, iframe, svg { max-width: 100%; height: auto; }

a { color: var(--fpse-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--fpse-accent-dark); }

button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 { font-family: var(--chrome); line-height: 1.2; margin: 0 0 .5em; }

.container {
    width: min(calc(100% - 32px), var(--fpse-container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link:focus {
    clip: auto !important; width: auto; height: auto;
    left: 16px; top: 16px; padding: 12px 18px; z-index: 99999;
    background: #fff; color: #111; border-radius: 8px;
}

/* =========================================================
   3. ANTET IMPLICIT (fallback identic, dacă nu există
      un Header construit în Elementor / Elementor Pro)
   ========================================================= */
.fpm-topbar { color: #fff; background: var(--fpse-ink); font-size: 13px; }
.fpm-topbar-inner {
    min-height: 36px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.fpm-topbar a { color: #fff; margin-left: 24px; }
.fpm-topbar a:hover { color: #9eeaf4; }

.fpm-head-main {
    min-height: 88px;
    display: grid;
    grid-template-columns: 270px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 34px;
}
.site-branding { display: flex; align-items: center; }
.custom-logo { display: block; max-width: 225px; max-height: 66px; width: auto; height: auto; }
.text-logo, .footer-brand {
    font-size: 24px; font-weight: 800; letter-spacing: -1.1px;
    color: var(--fpse-ink);
}
.text-logo strong { color: var(--fpse-accent); }
.text-logo span, .footer-brand span {
    display: block; font-size: 9px; letter-spacing: 4px;
    color: var(--fpse-muted); line-height: .6; margin-left: 2px;
}

.fpm-head-search { display: flex; }
.search-form {
    height: 46px; position: relative; display: flex; width: 100%;
    border: 1px solid var(--fpse-border); border-radius: 999px;
    background: var(--fpse-soft); overflow: hidden;
}
.search-form label { flex: 1; }
.search-field { width: 100%; height: 100%; padding: 0 54px 0 20px; border: 0; outline: 0; background: transparent; color: var(--fpse-ink); }
.search-submit {
    position: absolute; right: 4px; top: 4px; width: 38px; height: 38px;
    border: 0; border-radius: 50%; color: #fff; background: var(--fpse-accent);
    font-size: 18px; line-height: 1; cursor: pointer;
}
.search-submit:hover { background: var(--fpse-accent-dark); }

.fpm-head-actions { display: flex; align-items: center; gap: 22px; }
.fpm-head-actions > a {
    position: relative; display: flex; align-items: center; gap: 7px;
    color: var(--fpse-ink); font-size: 14px; font-weight: 700;
}
.fpm-head-actions > a:hover { color: var(--fpse-accent); }
.fpm-cart-count {
    position: absolute; right: -10px; top: -11px;
    display: grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: var(--fpse-accent); color: #fff; font-size: 11px;
}

.menu-toggle {
    display: none; width: 44px; height: 44px;
    border: 0; background: none; padding: 9px; cursor: pointer;
}
.menu-toggle > span:not(.screen-reader-text) {
    display: block; height: 2px; background: var(--fpse-ink); margin: 5px 0;
    transition: transform .25s ease, opacity .2s ease;
}

.main-navigation { border-block: 1px solid var(--fpse-border); background: #fff; }
.main-navigation ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { display: block; padding: 14px 0; color: var(--fpse-ink); font-size: 14px; font-weight: 750; }
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--fpse-accent); }
.main-navigation li { position: relative; }
.main-navigation .sub-menu {
    display: none; position: absolute; z-index: 30; top: 100%; left: -18px;
    min-width: 230px; padding: 10px 18px;
    box-shadow: var(--fpse-shadow); border-radius: 0 0 12px 12px; background: #fff;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .sub-menu a { padding: 9px 0; }

/* =========================================================
   4. SUBSOL IMPLICIT (fallback)
   ========================================================= */
.site-footer { padding-top: 65px; background: var(--fpse-footer-bg); color: #b6bece; font-size: 14px; }
.fpm-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 32px;
    padding-bottom: 50px;
}
.site-footer .footer-brand { color: #fff; }
.site-footer .footer-brand strong { color: var(--fpse-accent); }
.site-footer h2, .site-footer .widget-title { margin: 0 0 17px; color: #fff; font-size: 15px; font-family: var(--chrome); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #c9d0dc; }
.site-footer a:hover { color: #fff; }
.footer-hours-label { display: block; font-weight: 600; margin-bottom: 6px; color: #fff; }
.fpm-footer-bottom { border-top: 1px solid var(--fpse-footer-line); font-size: 12px; }
.fpm-footer-bottom .container {
    min-height: 52px; display: flex; flex-wrap: wrap; gap: 8px 24px;
    align-items: center; justify-content: space-between;
}

/* =========================================================
   5. CONȚINUT PAGINI (când NU sunt construite în Elementor)
   ========================================================= */
.site-main { min-height: 40vh; }
body:not(.elementor-page) .site-main {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    padding-block: 48px 72px;
}
body:not(.elementor-page) .site-main .container { width: min(820px, calc(100% - 40px)); }
body:not(.elementor-page) .site-main h1,
body:not(.elementor-page) .site-main h2,
body:not(.elementor-page) .site-main h3 {
    font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
}
body:not(.elementor-page) .site-main h1 { font-size: clamp(32px, 5vw, 54px); }
body:not(.elementor-page) .site-main h2 { font-size: clamp(26px, 4vw, 40px); }
body:not(.elementor-page) .site-main a { color: var(--copper); }
body:not(.elementor-page) .entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
body:not(.elementor-page) .entry-content p { color: var(--ink-soft); }

/* Butoane „paper & copper" reutilizabile */
.btn, .fpse-btn,
body:not(.elementor-page) .site-main a.button,
body:not(.elementor-page) .site-main button.button {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; padding: 14px 22px;
    font-size: 15px; font-weight: 500; min-height: 48px;
    cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease;
}
.btn-primary, .fpse-btn-primary { background: var(--copper) !important; color: #fff !important; }
.btn-primary:hover, .fpse-btn-primary:hover { background: var(--copper-2) !important; }
.btn-ghost, .fpse-btn-ghost { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
.btn-ghost:hover, .fpse-btn-ghost:hover { background: rgba(26, 20, 16, .06) !important; }

/* =========================================================
   6. WOOCOMMERCE (stilul „paper & copper" al magazinului)
   ========================================================= */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product {
    width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--fpse-radius);
    overflow: hidden;
    padding: 0 0 16px !important;
    display: flex; flex-direction: column;
    position: relative;
}
.woocommerce ul.products li.product img { width: 100% !important; aspect-ratio: 1; object-fit: cover; height: auto; margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: var(--serif) !important; font-weight: 500; font-size: 20px;
    padding: 12px 16px 0 !important; color: var(--ink); line-height: 1.2;
}
.woocommerce ul.products li.product .price {
    padding: 4px 16px 0; color: var(--copper) !important; font-weight: 600;
    font-family: var(--sans) !important; font-size: 15px !important;
}
.woocommerce ul.products li.product .price del { color: var(--muted) !important; opacity: .7; }
.woocommerce ul.products li.product .star-rating { margin: 6px 16px 0; }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    min-width: auto; min-height: auto; line-height: 1.6;
    margin: 10px 0 0 10px !important; padding: 3px 10px;
    background: var(--copper); color: #fff; font-size: 12px;
    border-radius: 999px; font-family: var(--sans); font-weight: 500; text-transform: none;
    position: absolute; top: 0; left: 0; z-index: 2;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-checkout .place-order .button {
    background: var(--copper) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 500 !important; font-family: var(--sans) !important;
    padding: 10px 22px !important; margin: 10px 16px 0 !important;
    transition: background .2s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--copper-2) !important; }
.woocommerce ul.products li.product .added_to_cart {
    margin: 8px 0 0 16px; color: var(--copper); font-size: 13px;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-info, .woocommerce-error {
    background: var(--cream); border-top-color: var(--copper); color: var(--ink-soft);
}
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color: var(--muted); }
.woocommerce span.onsale { position: absolute; }

/* Pagină produs */
.woocommerce div.product p.price { color: var(--copper); font-family: var(--sans); }
.woocommerce div.product .product_title { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--copper) !important; color: #fff !important; border-radius: 999px !important;
}
.woocommerce div.product form.cart .button:hover { background: var(--copper-2) !important; }

/* =========================================================
   7. RESPONSIVITATE (breakpoint-uri ca pe site-ul actual)
   ========================================================= */
@media (max-width: 1100px) {
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
    .fpm-topbar-inner { justify-content: center; }
    .fpm-head-main { grid-template-columns: auto auto 1fr; gap: 16px; min-height: 70px; }
    .fpm-head-search { display: none; }
    .menu-toggle { display: block; justify-self: end; order: 3; }
    .fpm-head-actions { gap: 14px; }
    .fpm-head-actions > a span:not(.fpm-cart-count) { display: none; }

    .main-navigation {
        position: fixed; inset: 0; z-index: 999; display: none;
        background: #fff; overflow-y: auto; padding-top: 24px;
    }
    body.menu-open .main-navigation { display: block; }
    body.menu-open .menu-toggle { position: fixed; right: 12px; top: 14px; z-index: 1000; background: #fff; border-radius: 8px; }
    body.menu-open .menu-toggle > span:nth-child(2) { opacity: 0; }
    body.menu-open .menu-toggle > span:first-child { transform: translateY(7px) rotate(45deg); }
    body.menu-open .menu-toggle > span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 40px; }
    .main-navigation a { font-size: 18px; padding: 12px 0; width: 100%; }
    .main-navigation .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }

    .fpm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .fpm-footer-grid > section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .fpm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 36px 0 20px; }
    .fpm-footer-bottom .container { flex-direction: column; text-align: left; }
    .woocommerce ul.products { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; padding: 8px 10px 0 !important; }
    .woocommerce ul.products li.product .price { padding: 2px 10px 0; font-size: 13px !important; }
    .woocommerce ul.products li.product .button { margin: 8px 10px 0 !important; font-size: 13px; padding: 8px 16px !important; }
}

@media (max-width: 400px) {
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* =========================================================
   8. COMPATIBILITATE ELEMENTOR
   ========================================================= */
/* Lățimea implicită a secțiunilor Elementor = „wrap"-ul de 1180px */
body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1180px !important; }
body .elementor-section .elementor-container { gap: 0; }
body.page .elementor-section-boxed .elementor-container { max-width: 1180px; }

/* Tipografie moștenită corect în editor */
.elementor-kit-*, .elementor-page { font-family: var(--chrome); }

/* Widget-uri shortcode în Elementor */
.elementor-widget-shortcode .search-form { height: 46px; }
.elementor-widget-shortcode .fpm-head-actions { gap: 18px; }

/* Asigură lățime maximă pentru media în editor */
.elementor-widget-image img { max-width: 100%; }

/* Accesibilitate: focus vizibil */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--fpse-accent); outline-offset: 2px;
}
