/* ═══════════════════════════════════════════════════
   NUHA PRO THEME v2 – Product Detail Page
   Gallery, tabs, pricing box, plugin info
   ═══════════════════════════════════════════════════ */

.nuha-product {
    padding-top: calc(var(--nuha-header-h) + 40px);
    padding-bottom: var(--nuha-sp-20);
}
.nuha-product__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nuha-sp-12);
}
@media (min-width: 1024px) {
    .nuha-product__layout {
        grid-template-columns: 7fr 5fr;
    }
}

/* Breadcrumbs */
.nuha-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nuha-sp-2);
    margin-bottom: var(--nuha-sp-6);
    padding-left: 4px;
}
.nuha-breadcrumbs a {
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-light);
}
.nuha-breadcrumbs a:hover { text-decoration: underline; }
.nuha-breadcrumbs span {
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-main);
}

/* Gallery */
.nuha-gallery__main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--nuha-radius-xl);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nuha-border);
    position: relative;
    cursor: zoom-in;
    box-shadow: 0 20px 80px -20px rgba(14,165,233,0.15);
}
.nuha-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--nuha-duration-slow) var(--nuha-ease);
}
.nuha-gallery__main:hover img { transform: scale(1.05); }

.nuha-gallery__verified {
    position: absolute;
    top: 16px; left: 16px;
    z-index: var(--nuha-z-content);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: var(--nuha-radius-full);
    border: 1px solid var(--nuha-border);
    box-shadow: var(--nuha-shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--nuha-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nuha-text-heading);
}
.nuha-gallery__verified .material-symbols-outlined {
    font-size: 18px;
    color: var(--nuha-emerald-600);
}

.nuha-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--nuha-sp-4);
    margin-top: var(--nuha-sp-4);
}
.nuha-gallery__thumb {
    aspect-ratio: 16/9;
    border-radius: var(--nuha-radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--nuha-border);
    opacity: 0.7;
    transition: all var(--nuha-duration-fast) var(--nuha-ease);
    background: none;
    padding: 0;
}
.nuha-gallery__thumb:hover { opacity: 1; }
.nuha-gallery__thumb.is-active {
    border-width: 2px;
    border-color: var(--nuha-primary);
    box-shadow: 0 0 0 2px rgba(14,165,233,0.2);
    opacity: 1;
}
.nuha-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nuha-gallery__thumb--more {
    background: var(--nuha-bg-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nuha-text-light);
    font-weight: 500;
    font-size: var(--nuha-text-sm);
    opacity: 1;
}
.nuha-gallery__thumb--more:hover {
    background: var(--nuha-border);
}

/* Tabs */
.nuha-tabs { margin-top: var(--nuha-sp-8); }
.nuha-tabs__nav {
    display: flex;
    gap: var(--nuha-sp-8);
    border-bottom: 1px solid var(--nuha-border);
    margin-bottom: 0;
}
.nuha-tabs__btn {
    padding: var(--nuha-sp-4) 4px;
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--nuha-duration-fast) var(--nuha-ease);
}
.nuha-tabs__btn:hover {
    color: var(--nuha-text-body);
    border-bottom-color: var(--nuha-border);
}
.nuha-tabs__btn.is-active {
    color: var(--nuha-primary);
    font-weight: 700;
    border-bottom-color: var(--nuha-primary);
}
.nuha-tabs__panel {
    display: none;
    padding: var(--nuha-sp-6) 0;
    color: var(--nuha-text-body);
    line-height: var(--nuha-leading-relaxed);
}
.nuha-tabs__panel.is-active { display: block; }
.nuha-tabs__panel h3 {
    font-size: var(--nuha-text-xl);
    margin-bottom: var(--nuha-sp-2);
}
.nuha-tabs__panel p { margin-bottom: var(--nuha-sp-4); }

.nuha-tabs__tip {
    background: var(--nuha-blue-50);
    border: 1px solid rgba(14,165,233,0.15);
    border-radius: var(--nuha-radius-lg);
    padding: var(--nuha-sp-4);
    margin-top: var(--nuha-sp-6);
    display: flex;
    align-items: flex-start;
    gap: var(--nuha-sp-3);
}
.nuha-tabs__tip h4 {
    font-size: var(--nuha-text-sm);
    font-weight: 700;
    color: var(--nuha-text-main);
}
.nuha-tabs__tip p {
    font-size: var(--nuha-text-sm);
    color: var(--nuha-text-muted);
    margin: var(--nuha-sp-1) 0 0;
}

/* Right Column  */
.nuha-product__sidebar { position: relative; }
.nuha-product__sticky {
    position: sticky;
    top: calc(var(--nuha-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: var(--nuha-sp-6);
}

/* Product header info */
.nuha-product__meta {
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-4);
    margin-bottom: var(--nuha-sp-4);
    flex-wrap: wrap;
}
.nuha-product__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nuha-product__rating-score {
    font-weight: 900;
    font-size: var(--nuha-text-lg);
    color: var(--nuha-text-main);
}
.nuha-product__sep {
    color: var(--nuha-text-light);
    font-size: var(--nuha-text-sm);
}
.nuha-product__title {
    font-size: var(--nuha-text-4xl);
    font-weight: 700;
    line-height: var(--nuha-leading-tight);
    margin-bottom: var(--nuha-sp-3);
    color: var(--nuha-text-main);
}
.nuha-product__excerpt {
    font-size: var(--nuha-text-lg);
    color: var(--nuha-text-muted);
    line-height: var(--nuha-leading-snug);
}

/* Pricing Box */
.nuha-pricing {
    background: #fff;
    border: 1px solid var(--nuha-border);
    border-radius: var(--nuha-radius-xl);
    padding: var(--nuha-sp-6);
    box-shadow: var(--nuha-shadow-xl);
}
.nuha-pricing__toggle {
    display: flex;
    background: var(--nuha-bg-slate);
    padding: 4px;
    border-radius: var(--nuha-radius-lg);
    margin-bottom: var(--nuha-sp-6);
}
.nuha-pricing__toggle-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--nuha-duration-fast) var(--nuha-ease);
}
.nuha-pricing__toggle-btn.is-active {
    background: #fff;
    color: var(--nuha-text-main);
    font-weight: 700;
    box-shadow: var(--nuha-shadow-sm);
}
.nuha-pricing__price {
    font-size: var(--nuha-text-4xl);
    font-weight: 700;
    color: var(--nuha-text-main);
    margin-bottom: 4px;
}
.nuha-pricing__original {
    color: var(--nuha-text-light);
    text-decoration: line-through;
    font-size: var(--nuha-text-sm);
    margin-left: var(--nuha-sp-2);
}
.nuha-pricing__note {
    font-size: var(--nuha-text-sm);
    color: var(--nuha-text-muted);
    margin-bottom: var(--nuha-sp-6);
}
.nuha-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--nuha-sp-8);
}
.nuha-pricing__features li {
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-3);
    font-size: var(--nuha-text-sm);
    color: var(--nuha-text-body);
    padding: 6px 0;
}
.nuha-pricing__features .material-symbols-outlined {
    font-size: 20px;
    color: var(--nuha-emerald-600);
}
.nuha-pricing__secure {
    margin-top: var(--nuha-sp-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--nuha-sp-2);
    font-size: var(--nuha-text-xs);
    color: var(--nuha-text-light);
}

/* Plugin Info */
.nuha-plugin-info {
    background: var(--nuha-bg-off);
    border-radius: var(--nuha-radius-xl);
    padding: var(--nuha-sp-5);
    border: 1px solid var(--nuha-border-light);
}
.nuha-plugin-info__title {
    font-weight: 700;
    color: var(--nuha-text-main);
    font-size: var(--nuha-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--nuha-sp-4);
}
.nuha-plugin-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nuha-sp-3) 0;
}
.nuha-plugin-info__row + .nuha-plugin-info__row {
    border-top: 1px solid var(--nuha-border);
}
.nuha-plugin-info__label {
    font-size: var(--nuha-text-sm);
    color: var(--nuha-text-muted);
}
.nuha-plugin-info__value {
    font-size: var(--nuha-text-sm);
    font-weight: 500;
    color: var(--nuha-text-main);
}
.nuha-plugin-info__value a {
    color: var(--nuha-primary);
    font-weight: 700;
}
.nuha-plugin-info__value a:hover { text-decoration: underline; }
