/* PEN SHOP GUIDE V1 — scoped styles; V4 universal type system stays in control */
body.psg-guide-page .site-content { background: #f5f8fc; }
body.psg-guide-page .site-content .ast-container { max-width: none; width: 100%; display: block; padding: 0; }
body.psg-guide-page #primary { float: none; margin: 0; width: 100%; padding: 0; }
body.psg-guide-page #main, body.psg-guide-page .site-main { padding: 0; margin: 0; }
body.psg-guide-page .site-content article, body.psg-guide-page .site-content .ast-article-single { padding: 0; margin: 0; background: transparent; box-shadow: none; }
body.psg-guide-page .site-content .entry-header { display: none !important; }
body.psg-guide-page .site-content .entry-content { margin: 0; }
body.psg-guide-page .site-content .entry-content > .wp-block-shortcode { margin: 0; }
.psg { --psg-blue: #2563eb; --psg-navy: #172b4d; --psg-ink: #4c5e78; --psg-border: #dfe7f2; color: var(--psg-navy); font-family: inherit; font-size: 16px; line-height: 1.7; }
.psg, .psg * { box-sizing: border-box; }
.psg button, .psg a { -webkit-tap-highlight-color: transparent; }
.psg :focus-visible { outline: 3px solid #7da9ff; outline-offset: 3px; }
.psg h1, .psg h2, .psg h3, .psg p { margin-top: 0; }
.psg h1, .psg h2, .psg h3 { font-family: inherit; }
.psg-layout { max-width: 1288px; margin: 0 auto; padding: 36px 24px 88px; }
.psg-overline { color: var(--psg-blue); letter-spacing: .14em; font-weight: 800; font-size: 11px; text-transform: uppercase; display: block; margin-bottom: 14px; }
.psg-overline-light { color: #a8caff; }
.psg-hero { border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 76% 15%, #2b4f86 0%, transparent 44%), linear-gradient(125deg,#122138,#1c365a); display: grid; grid-template-columns: 1fr .72fr; gap: 58px; align-items: center; padding: 60px 60px 58px; box-shadow: 0 18px 48px rgba(20,36,62,.12); }
.psg-hero h1 { color: white !important; font-weight: 750; font-size: clamp(36px,4.1vw,58px); line-height: 1.12; letter-spacing: -.052em; margin: 0 0 22px; }
.psg-hero h1 span { color: #9bc2ff; }
.psg-hero-copy > p { color: #ccd9ed; max-width: 560px; font-size: 16px; line-height: 1.85; margin: 0 0 28px; }
.psg-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; min-height: 48px; text-decoration: none !important; font-weight: 700; font-size: 14px; padding: 12px 20px; transition: transform .18s, background .18s; }
.psg-cta:hover { transform: translateY(-2px); }
.psg-cta-white { background: white; color: #172b4d !important; }
.psg-cta-white:hover { background: #edf3ff; }
.psg-cta-blue { background: #2563eb; color: white !important; }
.psg-cta-blue:hover { background: #1d4ed8; }
.psg-hero-visual { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 12px; }
.psg-hero-photo { background: #fff; border-radius: 14px; padding: 16px; min-height: 315px; display: flex; align-items: center; justify-content: center; }
.psg-hero-product-photo { width: 100%; height: 290px; object-fit: contain; display: block; border-radius: 9px; }
.psg-visual-caption { position: absolute; right: 27px; bottom: 27px; padding: 7px 12px; font-size: 11px; color: #34609f; border-radius: 7px; background: #edf4ff; font-weight: 750; }
.psg-notice { display: flex; align-items: flex-start; gap: 15px; background: #fff; border: 1px solid var(--psg-border); border-radius: 16px; padding: 24px 28px; margin: 22px 0 28px; box-shadow: 0 5px 20px rgba(20,36,62,.027); }
.psg-notice-icon { display: grid; place-items: center; border-radius: 50%; font-family: Georgia,serif; width: 30px; height: 30px; flex-shrink: 0; color: #2563eb; background: #eaf2ff; font-weight: 700; font-size: 18px; }
.psg-notice strong { display: block; margin-bottom: 3px; font-size: 15px; }
.psg-notice p { margin: 0; font-size: 14px; line-height: 1.75; color: #52637d; }
.psg-section { background: white; border: 1px solid var(--psg-border); border-radius: 22px; padding: 48px; margin: 28px 0 0; box-shadow: 0 6px 25px rgba(20,36,62,.035); }
.psg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.psg-section h2, .psg-bottom h2 { font-size: clamp(25px,2.7vw,34px) !important; color: var(--psg-navy); line-height: 1.24 !important; letter-spacing: -.035em; font-weight: 740; margin: 0 0 12px !important; }
.psg-section-head p { font-size: 15px; line-height: 1.8; max-width: 700px; color: var(--psg-ink); margin: 0; }
.psg-count { white-space: nowrap; color: #899cb6; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding-bottom: 6px; }
.psg-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.psg-tile { appearance: none; width: 100%; text-align: left; display: block; border: 1px solid #e4ebf5; border-radius: 15px; background: #fff; padding: 0; margin: 0; overflow: hidden; color: inherit; cursor: zoom-in; box-shadow: 0 3px 14px rgba(20,36,62,.025); transition: transform .18s, box-shadow .18s, border-color .18s; }
.psg-tile:hover { border-color: #c7d8ef; transform: translateY(-3px); box-shadow: 0 14px 35px rgba(20,36,62,.085); }
.psg-tile-media { min-height: 0; height: 312px; padding: 14px; display: flex; justify-content: center; align-items: center; position: relative; background: linear-gradient(155deg,#f8fbff,#fff); }
.psg-tile-media img { max-width: 100%; width: auto; height: 100%; object-fit: contain; display: block; }
.psg-zoom { position: absolute; top: 13px; right: 13px; background: #fff; color: #2563eb; width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; box-shadow: 0 3px 15px rgba(20,36,62,.08); font-size: 17px; }
.psg-tile-caption { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 16px 16px; border-top: 1px solid #edf2f8; }
.psg-tile-caption strong { color: var(--psg-navy); font-size: 13px; }
.psg-tile-caption > span { color: #2563eb; font-size: 12px; font-weight: 650; }
.psg-vent { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.psg-vent-copy p { margin: 0 0 17px; color: var(--psg-ink); font-size: 15px; line-height: 1.84; }
.psg-vent-copy p strong { color: var(--psg-navy); }
.psg-alert { border-left: 3px solid #eb9d4f; border-radius: 0 10px 10px 0; background: #fff7ed; padding: 15px 18px; margin-top: 22px; color: #8b4818; font-size: 13px; line-height: 1.7; }
.psg-alert strong { display: block; margin-bottom: 4px; }
.psg-alert span { display: block; }
.psg-vent-figure { margin: 0; border: 1px solid var(--psg-border); background: #fff; border-radius: 18px; padding: 15px; }
.psg-vent-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.psg-vent-figure figcaption { margin: 9px 7px 4px; color: #7c8ca4; font-size: 11px; line-height: 1.6; }
.psg-faq-list { margin-top: 8px; }
.psg-faq details { border-top: 1px solid #e4ebf4; padding: 0; }
.psg-faq details:last-child { border-bottom: 1px solid #e4ebf4; }
.psg-faq summary { color: var(--psg-navy); padding: 18px 36px 18px 2px; cursor: pointer; font-weight: 650; font-size: 15px; position: relative; list-style: none; }
.psg-faq summary::-webkit-details-marker { display: none; }
.psg-faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #2563eb; font-size: 23px; font-weight: 400; }
.psg-faq details[open] summary::after { content: '−'; }
.psg-faq details p { color: #52637d; font-size: 14px; line-height: 1.8; padding: 0 25px 19px 2px; margin: 0; }
.psg-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 20px; border: 1px solid var(--psg-border); background: #eaf1fb; padding: 34px 42px; margin-top: 28px; }
.psg-bottom .psg-overline { margin-bottom: 8px; }
.psg-bottom h2 { font-size: 27px !important; margin: 0 0 7px !important; }
.psg-bottom p { color: #52637d; font-size: 14px; margin: 0; }
/* Fullscreen gallery */
.psg-lightbox[hidden] { display:none !important; }
.psg-lightbox { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 999999; }
.psg-lightbox-backdrop { position: absolute; inset: 0; background: rgba(9,18,33,.91); }
.psg-lightbox-inner { width: min(1040px,calc(100vw - 100px)); height: min(91vh,1040px); position: relative; display: grid; place-items: center; }
.psg-lightbox-img { display: block; max-width: 100%; width: auto; max-height: calc(91vh - 60px); height: auto; object-fit: contain; border-radius: 8px; background: white; box-shadow: 0 20px 60px rgba(0,0,0,.27); }
.psg-lightbox-close, .psg-lightbox-arrow { appearance:none; border:0 !important; background: rgba(255,255,255,.95) !important; color: #172b4d !important; display: grid; place-items: center; border-radius: 50% !important; cursor:pointer; position:absolute; z-index: 3; box-shadow: 0 3px 15px rgba(0,0,0,.2); padding: 0 !important; line-height: 1 !important; }
.psg-lightbox-close { top: 2px; right: -42px; width: 43px; height: 43px; font-size: 30px !important; }
.psg-lightbox-arrow { top: 50%; transform: translateY(-50%); width: 43px; height: 43px; font-size: 38px !important; }
.psg-lightbox-prev { left: -54px; }
.psg-lightbox-next { right: -54px; }
.psg-lightbox-close:hover, .psg-lightbox-arrow:hover { background: #dceaff !important; }
.psg-lightbox-counter { position:absolute; bottom: 2px; color: white; font-size: 12px; font-weight: 700; letter-spacing:.12em; }
@media (max-width: 1024px) {
    .psg-layout { padding: 24px 20px 70px; }
    .psg-hero { padding: 45px 40px; gap: 30px; }
    .psg-section { padding: 34px; }
    .psg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .psg-vent { grid-template-columns: 1fr; }
    .psg-vent-figure { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 650px) {
    .psg-layout { padding: 14px 12px 48px; }
    .psg-hero { grid-template-columns: 1fr; padding: 32px 24px 25px; gap: 22px; border-radius: 16px; }
    .psg-hero h1 { font-size: 35px !important; }
    .psg-hero-copy > p { font-size: 15px; }
    .psg-hero-photo { min-height: 220px; }
    .psg-hero-product-photo { height: 220px; }
    .psg-notice { padding: 18px; margin: 14px 0; }
    .psg-section { padding: 25px 19px; border-radius: 16px; margin-top: 14px; }
    .psg-section-head { display: block; margin-bottom: 22px; }
    .psg-section h2 { font-size: 26px !important; }
    .psg-count { display: block; margin-top: 14px; }
    .psg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .psg-tile { border-radius: 11px; }
    .psg-tile-media { height: 205px; padding: 7px; }
    .psg-tile-caption { display: block; padding: 9px; }
    .psg-tile-caption strong { display: block; font-size: 12px; }
    .psg-tile-caption > span { display: block; font-size: 11px; }
    .psg-zoom { width: 23px; height: 23px; font-size: 13px; top: 7px; right: 7px; }
    .psg-bottom { padding: 25px; border-radius: 16px; flex-direction: column; align-items: flex-start; margin-top: 14px; }
    .psg-bottom h2 { font-size: 25px !important; }
    .psg-lightbox-inner { width: calc(100vw - 38px); height: 90vh; }
    .psg-lightbox-img { max-height: calc(90vh - 85px); }
    .psg-lightbox-close { right: 0; top: 2px; }
    .psg-lightbox-arrow { top: auto; bottom: 7px; transform: none; width: 40px; height: 40px; }
    .psg-lightbox-prev { left: 0; }
    .psg-lightbox-next { right: 0; }
    .psg-lightbox-counter { bottom: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .psg * { scroll-behavior: auto !important; transition: none !important; }
}

/* PEN SHOP GUIDE V2 — corecții pentru galerie și hover */
.psg button.psg-tile,
.psg button.psg-tile:focus {
    background: #ffffff !important;
    color: #172b4d !important;
    border-color: #e4ebf5 !important;
}
.psg button.psg-tile:hover,
.psg button.psg-tile:focus-visible {
    background: #f5f9ff !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 14px 35px rgba(37,99,235,.11) !important;
}
.psg .psg-tile-caption {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    text-align: center;
    padding: 14px 12px !important;
    background: #ffffff !important;
    border-top: 1px solid #edf2f8;
}
.psg button.psg-tile:hover .psg-tile-caption,
.psg button.psg-tile:focus-visible .psg-tile-caption {
    background: #eaf2ff !important;
    border-top-color: #d7e7ff;
}
.psg .psg-tile-caption > span {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    gap: 6px;
    justify-content: center;
    align-items: center;
}
.psg .psg-tile-caption strong { display: none !important; }
.psg .psg-tile:hover .psg-zoom { background: #2563eb !important; color: #fff !important; }
@media (max-width: 650px) {
    .psg .psg-tile-caption { padding: 10px 5px !important; }
    .psg .psg-tile-caption > span { font-size: 11px !important; }
}
