/* Góc trưng bày Sản phẩm OCOP & Truy xuất nguồn gốc */

.ocop-page {
    --oc-gold: #F59E0B;
    --oc-gold-deep: #9A3412;
    --oc-ink: #3A2205;
    color: var(--te-text);
}

.ocop-hero {
    padding: 40px 0 34px;
    background: radial-gradient(1100px 260px at 90% -10%, rgba(245, 158, 11, 0.12), transparent), var(--te-soft);
    border-radius: 16px;
    margin-bottom: 36px;
}

.ocop-hero .tech-breadcrumb {
    margin-bottom: 14px;
}

.ocop-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oc-gold-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocop-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--oc-gold);
    display: inline-block;
}

.ocop-hero h1 {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    color: var(--te-blue-900);
    margin: 10px 0 10px;
}

.ocop-hero p {
    max-width: 62ch;
    color: var(--te-muted);
    font-size: 15px;
}

.ocop-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.ocop-stats span {
    display: flex;
    flex-direction: column;
    font-size: 12.5px;
    color: var(--te-muted);
}

.ocop-stats strong {
    font-size: 22px;
    color: var(--oc-gold-deep);
    font-weight: 700;
}

.ocop-howto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.ocop-howto .step {
    background: #fff;
    border: 1px solid var(--te-line);
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: var(--hp-card-shadow);
}

.ocop-howto .step .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--oc-gold);
    color: var(--oc-ink);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}

.ocop-howto .step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--te-blue-900);
    margin-bottom: 6px;
}

.ocop-howto .step p {
    font-size: 13.5px;
    color: var(--te-muted);
    margin: 0;
}

.ocop-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.ocop-section-head h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--te-blue-900);
}

.ocop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .ocop-grid { grid-template-columns: repeat(2, 1fr); }
    .ocop-howto { grid-template-columns: 1fr; }
}

.ocop-card {
    background: #fff;
    border: 1px solid var(--te-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--hp-card-shadow);
    transition: box-shadow .18s ease, transform .18s ease;
    display: block;
}

.ocop-card:hover {
    box-shadow: var(--hp-card-hover-shadow);
    transform: translateY(-2px);
}

.ocop-card .thumb {
    position: relative;
    background: linear-gradient(135deg, var(--te-mint), var(--te-cyan-500));
}

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

.ocop-card .stars {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(15, 39, 66, 0.72);
    color: var(--oc-gold);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.ocop-card .body {
    padding: 12px 14px 14px;
}

.ocop-card .name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--te-text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ocop-card .origin {
    font-size: 11.5px;
    color: var(--te-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ocop-card .origin i {
    color: var(--oc-gold-deep);
}

.ocop-card .trace-tag {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--te-cyan-500);
    font-weight: 600;
}

.ocop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--te-muted);
    border: 1px dashed var(--te-line);
    border-radius: 12px;
    background: var(--te-soft);
}

.ocop-empty i {
    font-size: 32px;
    color: var(--oc-gold);
    margin-bottom: 12px;
    display: block;
}

/* ---------- Detail page ---------- */

.ocop-detail {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .ocop-detail { grid-template-columns: 1fr; }
}

.ocop-detail__gallery {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 400;
    margin: 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--te-mint), var(--te-cyan-500));
    position: relative;
    overflow: hidden;
}

.ocop-detail__gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.ocop-detail__stars {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(15, 39, 66, 0.72);
    color: var(--oc-gold);
    font-size: 14px;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.ocop-detail__name {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--te-blue-900);
    margin: 20px 0 6px;
}

.ocop-detail__origin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--te-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.ocop-detail__origin i {
    color: var(--oc-gold-deep);
}

.ocop-detail__desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--te-text);
    margin-bottom: 20px;
}

.ocop-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ocop-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--te-soft);
    border: 1px solid var(--te-line);
    color: var(--oc-gold-deep);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.ocop-trace-panel {
    border: 1px solid var(--te-line);
    border-radius: 14px;
    padding: 22px;
    background: var(--te-soft);
    position: sticky;
    top: 20px;
}

.ocop-trace-panel__head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0F7A4E;
    background: rgba(45, 212, 191, 0.16);
    padding: 6px 12px;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 18px;
}

.ocop-qr-box {
    background: #fff;
    border: 1px solid var(--te-line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.ocop-qr-box img {
    width: 148px;
    height: 148px;
}

.ocop-qr-caption {
    text-align: center;
    font-size: 11.5px;
    color: var(--te-muted);
    margin-bottom: 18px;
}

.ocop-trace-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid var(--te-line);
}

.ocop-trace-row:last-child { border-bottom: none; }

.ocop-trace-row .k {
    color: var(--te-muted);
    flex: none;
}

.ocop-trace-row .v {
    font-weight: 600;
    text-align: right;
    color: var(--te-text);
}

.ocop-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--te-blue-700);
    margin-bottom: 18px;
}

.ocop-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 720px) {
    .ocop-related-grid { grid-template-columns: repeat(2, 1fr); }
}
