/**
 * Uttarakhand product pages — enterprise-grade layout & typography
 */

html:has(body.uk-product-page) {
    font-size: 16px;
}

body.uk-product-page {
    font-family: "DM Sans", system-ui, sans-serif;
    color: #1e293b;
    background: #f8faf9;
}

.uk-product-main {
    display: block;
}

/* ── Breadcrumb ── */
.uk-product-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #dce8e0;
    padding: 0.75rem 0;
}

.uk-product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.uk-product-breadcrumb li + li::before {
    content: "/";
    color: #94a3b8;
    margin-right: 0.35rem;
}

.uk-product-breadcrumb a {
    color: #0f5132;
    text-decoration: none;
    font-weight: 600;
}

.uk-product-breadcrumb a:hover {
    text-decoration: underline;
}

.uk-product-breadcrumb [aria-current="page"] {
    color: #64748b;
    font-weight: 500;
}

/* ── Hero ── */
.uk-product-hero {
    background: linear-gradient(135deg, #082818 0%, #0f5132 55%, #145a32 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 3rem) 0;
    position: relative;
    overflow: hidden;
}

.uk-product-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(240, 196, 25, 0.12), transparent 60%);
    pointer-events: none;
}

.uk-product-hero .container {
    position: relative;
    z-index: 1;
}

.uk-product-hero-media {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.15);
    line-height: 0;
    background: #0a2e1a;
}

.uk-product-hero-media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.uk-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.uk-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.uk-product-badge--gi {
    background: #f0c419;
    color: #082818;
}

.uk-product-badge--type {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.uk-product-badge--trade {
    background: rgba(240, 196, 25, 0.2);
    color: #fde68a;
    border: 1px solid rgba(240, 196, 25, 0.35);
}

.uk-product-hero-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.uk-product-hero-lead {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.5rem;
    max-width: 54ch;
}

.uk-product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.uk-product-hero-actions .rts-btn {
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    border-radius: 10px;
}

.uk-product-hero-actions .rts-btn.btn-primary {
    background: #f0c419 !important;
    border-color: #f0c419 !important;
    color: #082818 !important;
}

.uk-product-hero-actions .rts-btn.btn-primary:hover {
    background: #e5b800 !important;
    border-color: #e5b800 !important;
}

.uk-product-hero-actions .rts-btn.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}

.uk-product-hero-actions .rts-btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.uk-product-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .uk-product-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.uk-product-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    text-align: center;
}

.uk-product-stat strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f0c419;
    margin-bottom: 0.2rem;
}

.uk-product-stat span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* ── Trust strip ── */
.uk-product-trust {
    background: #fff;
    border-bottom: 1px solid #e2ebe5;
    padding: 1rem 0;
}

.uk-product-trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.uk-product-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f5132;
}

.uk-product-trust-item i {
    color: #f0c419;
    font-size: 1.1rem;
}

/* ── Body layout ── */
.uk-product-body {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.uk-product-content {
    min-width: 0;
}

.uk-product-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .uk-product-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.uk-product-panel {
    background: #fff;
    border: 1px solid #dce8e0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(8, 40, 24, 0.06);
    margin-bottom: 1.25rem;
}

.uk-product-panel--cta {
    border-top: 4px solid #0f5132;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.uk-product-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #082818;
    margin: 0 0 0.75rem;
}

.uk-product-panel-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.25rem;
}

.uk-product-panel .rts-btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.uk-product-panel .rts-btn.btn-outline {
    background: transparent !important;
    border: 2px solid #0f5132 !important;
    color: #0f5132 !important;
}

.uk-product-spec-mini {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uk-product-spec-mini li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef4f0;
    font-size: 0.9rem;
}

.uk-product-spec-mini li:last-child {
    border-bottom: 0;
}

.uk-product-spec-mini strong {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.uk-product-spec-mini span {
    text-align: right;
    color: #0f172a;
    font-weight: 600;
}

/* ── Content sections ── */
.uk-product-section {
    background: #fff;
    border: 1px solid #e2ebe5;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(8, 40, 24, 0.04);
}

.uk-product-section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: #082818;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #d8f0e0;
}

.uk-product-section p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1rem;
    text-align: left;
}

.uk-product-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

@media (max-width: 575px) {
    .uk-product-spec-grid {
        grid-template-columns: 1fr;
    }
}

.uk-product-spec-card {
    background: #f8faf9;
    border: 1px solid #e2ebe5;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.uk-product-spec-card label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.uk-product-spec-card span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #082818;
    line-height: 1.4;
}

/* ── Gemini SEO content ── */
.uk-product-page .gemini-seo-content {
    margin-bottom: 0;
}

.uk-product-page .gemini-seo-content .lead.gemini-ai-summary {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #1e293b;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #0f5132;
    padding: 1.25rem 1.35rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
}

.uk-product-page .gemini-quick-answers,
.uk-product-page .gemini-citation-facts,
.uk-product-page .gemini-spec-table,
.uk-product-page .gemini-keyword-block,
.uk-product-page .buyer-keyword-index,
.uk-product-page .gemini-seo-section {
    background: #fff;
    border: 1px solid #e2ebe5;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 2px 12px rgba(8, 40, 24, 0.04);
}

.uk-product-page .gemini-seo-content h2,
.uk-product-page .gemini-seo-content h3.h4,
.uk-product-page .gemini-seo-content h3.h3 {
    color: #082818;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.uk-product-page .gemini-seo-content h3.h6 {
    color: #0f5132;
    font-weight: 700;
    font-size: 1rem;
}

.uk-product-page .gemini-seo-content ul {
    padding-left: 1.25rem;
}

.uk-product-page .gemini-seo-content ul li {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #334155;
}

.uk-product-page .gemini-seo-content .table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.uk-product-page .gemini-seo-content .table th {
    background: #0f5132 !important;
    color: #fff !important;
    font-weight: 700;
    width: 38%;
    vertical-align: top;
}

.uk-product-page .gemini-seo-content .table td {
    vertical-align: top;
    color: #334155;
}

.uk-product-page .buyer-keyword-index .list-inline-item {
    background: #ecf7f0;
    color: #0f5132;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem !important;
}

/* ── FAQ ── */
.uk-product-page .uk-gemini-faq {
    background: #fff;
    border: 1px solid #e2ebe5;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
}

.uk-product-page .uk-gemini-faq > h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #082818;
    margin-bottom: 1rem;
}

.uk-product-page .uk-gemini-faq > p.mb-4 {
    color: #64748b;
    font-size: 1rem;
}

.uk-product-page .uk-gemini-faq article {
    border: 1px solid #e8f0eb !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.25rem !important;
    margin-bottom: 0.85rem !important;
    background: #fafcfb;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uk-product-page .uk-gemini-faq article:hover {
    border-color: #b8d4c4 !important;
    box-shadow: 0 4px 16px rgba(15, 81, 50, 0.08);
}

.uk-product-page .uk-gemini-faq article h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f5132 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.45;
}

.uk-product-page .uk-gemini-faq article p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 !important;
}

/* ── Related products ── */
.uk-product-related {
    margin-top: 0.5rem;
}

.uk-product-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .uk-product-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.uk-product-related-card {
    display: flex;
    flex-direction: column;
    background: #f8faf9;
    border: 1px solid #e2ebe5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uk-product-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 81, 50, 0.12);
    border-color: #9ec4ad;
    color: inherit;
}

.uk-product-related-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.uk-product-related-card span {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #082818;
    line-height: 1.35;
}

/* ── Bottom CTA ── */
.uk-product-cta-band {
    background: linear-gradient(135deg, #082818 0%, #0f5132 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    text-align: center;
}

.uk-product-cta-band h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.uk-product-cta-band p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.uk-product-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.uk-product-cta-actions .rts-btn.btn-primary {
    background: #f0c419 !important;
    border-color: #f0c419 !important;
    color: #082818 !important;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
}

/* Header on product pages */
body.page-product .header-top-area-wrapper {
    background: #082818;
}

body.page-product .header-main {
    background: #ecf7f0;
}

body.page-product .rts-btn.btn-primary {
    background: #0f5132 !important;
    border-color: #0f5132 !important;
}

/* Hide legacy breadcrumb/hero if any remain */
.uk-product-page .rts-breadcrumb-area:not(.uk-product-breadcrumb),
.uk-product-page .about-page-hero-image {
    display: none !important;
}
