/* ============================================================
   NANOTREND - Product Page Styles
   ============================================================ */

/* ---------- Gallery ---------- */
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111114;
    border: 1px solid var(--border-soft);
    aspect-ratio: 1 / 1.05;
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-main.zoomed img { transform: scale(2.1); cursor: zoom-out; }
.gallery-video { width: 100%; height: 100%; object-fit: contain; }
.gallery-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 13, 15, 0.75);
    border: 1px solid var(--border-soft);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 3;
}
.gallery-thumbs { display: flex; gap: 0.7rem; margin-top: 0.9rem; flex-wrap: wrap; }
.gallery-thumb {
    width: 74px;
    height: 84px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border-soft);
    background: #111114;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
    transition: border-color var(--transition), transform var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--gold); }

/* ---------- Detail ---------- */
.detail-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; margin-bottom: 0.8rem; }
.detail-price-now { font-size: 1.9rem; font-weight: 700; color: var(--gold-light); }
.detail-price-mrp { color: var(--text-muted); text-decoration: line-through; font-size: 1.1rem; }
.detail-price-off { color: var(--success); font-size: 0.85rem; font-weight: 500; }

/* ---------- Color Variants ---------- */
.color-swatch {
    width: 44px; height: 44px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.25);
    cursor: pointer; padding: 2px; transition: all .2s; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background-color: #d4af37;
}
.color-swatch:hover { border-color: var(--text-muted); transform: scale(1.08); }
.color-swatch.active { border-color: var(--gold-light); box-shadow: 0 0 0 2px var(--gold-light); }
.color-swatch img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.color-swatch:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.stock-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 0.42rem 0.95rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-card);
}
.stock-chip.in i { color: var(--success); }
.stock-chip.out i { color: var(--danger); }
.stock-chip i { color: var(--gold); }

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-dark-3);
}
.qty-control button {
    width: 42px;
    height: 46px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1rem;
    transition: background var(--transition);
}
.qty-control button:hover { background: rgba(212, 175, 55, 0.12); }
.qty-control input {
    width: 52px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }

.wish-btn { width: 48px; height: 48px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-dark-3); color: var(--text-secondary); font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition); }
.wish-btn:hover { border-color: var(--gold); color: var(--gold); }
.wish-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }

.trust-row { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 0.9rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.share-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Tabs ---------- */
.detail-tabs { border-bottom: 1px solid var(--border-soft); }
.detail-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.9rem 1.2rem;
    background: none;
}
.detail-tabs .nav-link:hover { color: var(--gold-light); }
.detail-tabs .nav-link.active { color: var(--gold); background: none; border-bottom-color: var(--gold); }
.detail-tab-content { padding: 2rem 0.5rem; color: var(--text-secondary); line-height: 1.8; }

/* ---------- Reviews ---------- */
.review-big-num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.bar-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.bar-track { flex: 1; height: 6px; background: var(--bg-dark-3); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold-gradient); border-radius: 4px; }
.review-photo { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }

/* Sticky quick actions on mobile */
@media (max-width: 767.98px) {
    .detail-price-now { font-size: 1.5rem; }
    .detail-tabs .nav-link { font-size: 0.72rem; padding: 0.7rem 0.6rem; }
}
