:root{
    --os-yellow:#ffd900;
    --os-black:#111;
    --os-text:#1f2937;
    --os-muted:#6b7280;
    --os-bg:#f6f7fb;
    --os-card:#ffffff;
    --os-border:#e5e7eb;
}

main.product-page{
    display:flex;
    flex-direction:column;
    gap:28px;
    padding:32px 20px 80px;
    background:linear-gradient(180deg,#f7f8fb 0%,#fff 100%);
}

.breadcrumb{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    color:var(--os-muted);
    font-size:.95rem;
    align-items:center;
}

.breadcrumb a{
    color:var(--os-black);
    font-weight:700;
    text-decoration:none;
}

.breadcrumb a:hover{
    color:var(--os-yellow);
}

.product-hero{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(320px, 1.1fr) minmax(320px, .9fr);
    gap:30px;
    background:var(--os-card);
    border:1px solid var(--os-border);
    border-radius:28px;
    padding:28px;
    box-shadow:0 24px 60px rgba(15,23,42,.08);
}

.product-media{
    background:#fafafa;
    border:1px solid #eceff3;
    border-radius:24px;
    padding:18px;
}

.product-media img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 18px 35px rgba(0,0,0,.08);
}

.gallery-thumbs{
    display:flex;
    gap:10px;
    margin-top:14px;
    flex-wrap:wrap;
}

.gallery-thumb{
    border:none;
    padding:0;
    background:transparent;
    width:74px;
    height:74px;
    border-radius:16px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:0 8px 16px rgba(0,0,0,.08);
    transition:transform .2s ease, box-shadow .2s ease;
}

.gallery-thumb:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 22px rgba(0,0,0,.12);
}

.gallery-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-summary{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.product-category{
    display:inline-flex;
    width:fit-content;
    align-items:center;
    padding:8px 14px;
    border-radius:999px;
    background:#fff7cc;
    color:#8a6d00;
    font-weight:800;
    letter-spacing:.3px;
}

.product-summary h1{
    margin:0;
    font-size:clamp(2rem, 3.4vw, 3.3rem);
    line-height:1.05;
    color:var(--os-black);
}

.product-brand{
    margin:0;
    color:var(--os-text);
    font-size:1rem;
}

.product-description{
    background:#f9fafb;
    border:1px solid var(--os-border);
    border-radius:20px;
    padding:18px;
}

.product-description h2{
    margin:0 0 10px;
    font-size:1.15rem;
}

.product-description p{
    margin:0;
    color:var(--os-text);
    line-height:1.85;
    max-height:220px;
    overflow:auto;
    padding-right:8px;
}

.product-description p::-webkit-scrollbar{
    width:8px;
}
.product-description p::-webkit-scrollbar-thumb{
    background:#d6dbe6;
    border-radius:999px;
}

.product-price{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-radius:18px;
    background:linear-gradient(135deg,#fff3a3 0%, #ffd900 100%);
}

.current-price{
    font-size:2rem;
    font-weight:900;
    color:var(--os-black);
}

.product-colors-wrap h2,
.product-attributes strong,
.detail-card h2,
.related-products h2,
.product-block h2{
    margin:0 0 12px;
    color:var(--os-black);
}

.product-colors{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.color-circle{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    box-shadow:0 0 0 2px #fff, 0 0 0 3px #d1d5db;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}

.color-circle:hover{
    transform:scale(1.12);
    box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--os-yellow);
}

.product-attributes{
    display:grid;
    gap:10px;
    padding:18px;
    border-radius:20px;
    background:#fff;
    border:1px solid var(--os-border);
}

.product-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px 18px;
    border:none;
    border-radius:14px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn-primary{
    background:var(--os-yellow);
    color:#111;
    box-shadow:0 10px 18px rgba(255,217,0,.35);
}

.btn-secondary{
    background:#fff;
    color:#111;
    border:1px solid var(--os-border);
}

.share-btn svg{
    width:18px;
    height:18px;
}

.product-details{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 420px;
    gap:24px;
}

.detail-card{
    background:var(--os-card);
    border:1px solid var(--os-border);
    border-radius:24px;
    padding:26px;
    box-shadow:0 16px 40px rgba(17,24,39,.06);
}

.feature-list{
    margin:0;
    padding-left:18px;
    color:var(--os-text);
    line-height:1.8;
}

.form-panel{
    display:grid;
    gap:14px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group input,
.form-group textarea{
    width:100%;
    border:1px solid #d7dbe3;
    background:#fafbfc;
    border-radius:14px;
    padding:14px 15px;
    font:inherit;
    color:var(--os-text);
    box-sizing:border-box;
}

.form-group textarea{
    resize:vertical;
    min-height:160px;
}

.pdf-viewer-container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    background:var(--os-card);
    border:1px solid var(--os-border);
    border-radius:24px;
    padding:22px;
    box-shadow:0 16px 40px rgba(17,24,39,.06);
}

.pdf-viewer-container.hidden{
    display:none;
}

.pdf-viewer-header{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    margin-bottom:16px;
}

#pdfViewerIframe{
    width:100%;
    min-height:720px;
    border:1px solid var(--os-border);
    border-radius:18px;
}

.product-block{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    background:var(--os-card);
    border:1px solid var(--os-border);
    border-radius:24px;
    padding:26px;
    box-shadow:0 16px 40px rgba(17,24,39,.05);
}

.extra-gallery,
.-gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
}

.extra-gallery img,
.-gallery-grid img{
    width:100%;
    border-radius:18px;
    object-fit:cover;
    aspect-ratio:1 / 1;
}

.related-products{
    width:100%;
    max-width:1400px;
    margin:10px auto 0;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:18px;
}

.product-card{
    background:var(--os-card);
    border:1px solid var(--os-border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 16px 36px rgba(17,24,39,.06);
}

.product-card img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
}

.product-card-body{
    padding:18px;
    display:grid;
    gap:8px;
}

.product-card h3{
    margin:0;
    font-size:1.05rem;
}

.product-card .price{
    margin:0;
    font-weight:900;
}

.btn-small{
    width:100%;
}

.faq-list{
    display:grid;
    gap:10px;
}

.faq-list details{
    border:1px solid var(--os-border);
    border-radius:14px;
    padding:12px 14px;
    background:#fafafa;
}

.faq-list summary{
    cursor:pointer;
    font-weight:800;
}

@media (max-width: 1100px){
    .product-hero,
    .product-details{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){
    main.product-page{
        padding:20px 12px 60px;
    }

    .product-hero,
    .detail-card,
    .pdf-viewer-container,
    .product-block{
        padding:18px;
        border-radius:20px;
    }

    .product-actions{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    #pdfViewerIframe{
        min-height:460px;
    }
}

.product-card .cat{font-size:.78rem;font-weight:900;color:#8a6d00;text-transform:uppercase;}


.site-breadcrumb{
    width:min(1520px,calc(100% - 24px));
    margin:12px auto 0;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    color:#64748b;
    font-size:.92rem;
}
.site-breadcrumb a{color:inherit;text-decoration:none}
.site-breadcrumb a:hover{color:#111}
.breadcrumb-separator{opacity:.55}
.breadcrumb-current{font-weight:700;color:#111}

.skeleton-grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));padding:20px;max-width:1200px;margin:0 auto}
.skeleton-card{min-height:360px;border-radius:18px;background:linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%);background-size:400% 100%;animation:skeleton-shimmer 1.2s ease-in-out infinite}
@keyframes skeleton-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}


.zoom-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:24px;
}
.zoom-modal.open{display:flex}
.zoom-modal img{
    max-width:min(92vw,1100px);
    max-height:88vh;
    object-fit:contain;
    border-radius:24px;
    box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.zoom-close{
    position:absolute;
    top:18px;
    right:18px;
    width:48px;
    height:48px;
    border:0;
    border-radius:999px;
    background:#fff;
    color:#111;
    font-size:2rem;
    line-height:1;
    cursor:pointer;
}
.product-media img{cursor:zoom-in}
.extra-gallery .zoom-trigger{border:0;background:transparent;padding:0;cursor:zoom-in}
.extra-gallery .zoom-trigger img{display:block}


.product-specs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:22px 0}
.spec-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.spec-card h2{margin:0 0 12px;font-size:1.05rem}
.color-pill-list,.certificate-list{display:flex;flex-wrap:wrap;gap:8px}
.color-pill,.certificate-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f8fafc;border:1px solid #e5e7eb;font-size:.88rem;font-weight:700}
.sizes-table{width:100%;border-collapse:collapse}
.sizes-table th,.sizes-table td{padding:10px 12px;border-bottom:1px solid #e5e7eb;text-align:left}
.sizes-table th{background:#f8fafc}
.spec-empty,.tech-sheet-note{color:#64748b}
.auto-faq-section{margin-top:18px}
