/* ─── Premium Product Page Styles ─── */
.product-page { padding: 24px 0 64px; }

.product-layout {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    gap: 24px;
    align-items: start;
}

.product-sidebar-left,
.product-sidebar-right {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-sidebar-right { top: 24px; }
.product-center { min-width: 0; }

.p-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.p-card:hover { border-color: rgba(212,168,67,0.3); }

.p-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.p-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.p-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.product-gallery {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    cursor: zoom-in;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-gallery:hover img { transform: scale(1.05); }

.product-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--bg-elevated);
}

.product-thumb:hover,
.product-thumb.active { border-color: var(--gold); }

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

.p-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.p-breadcrumb a { color: var(--text-muted); }
.p-breadcrumb a:hover { color: var(--gold); }
.p-breadcrumb span { color: var(--text-secondary); }

.p-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.p-name { font-size: 26px; font-weight: 900; line-height: 1.3; }
.p-actions { display: flex; gap: 8px; flex-shrink: 0; }

.p-action-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.p-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--accent-soft);
}

.p-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.p-stars { display: flex; gap: 2px; color: var(--gold); font-size: 15px; }
.p-stars-count { font-size: 13px; color: var(--text-muted); }
.p-desc { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }





.p-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 16px;
}

.p-qty button {
    border: none;
    background: none;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.p-qty button:hover { color: var(--gold); background: var(--accent-soft); }

.p-qty input {
    width: 52px;
    text-align: center;
    border: none;
    background: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}

.p-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.p-cta-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.p-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.p-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--orange-glow);
}

.p-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: transparent;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.p-btn-buy:hover { background: var(--accent-soft); transform: translateY(-2px); }

.p-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.p-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    font-size: 11px;
    color: var(--text-secondary);
}

.p-trust-badge i { color: var(--gold); font-size: 14px; }

.p-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.p-variant-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.p-variant-btn:hover { border-color: var(--gold); }

.p-variant-btn.active {
    border-color: var(--gold);
    background: var(--accent-soft);
    color: var(--gold);
}

.p-variant-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.p-features-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.p-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
}

.p-feature-item i { font-size: 24px; color: var(--gold); }
.p-feature-item span { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.p-tabs { margin-top: 40px; }

.p-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    margin-bottom: 24px;
}

.p-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font);
}

.p-tab-btn:hover { color: var(--text-secondary); }

.p-tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.p-tab-content { display: none; animation: fadeIn 0.3s ease; }
.p-tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.p-faq-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.p-faq-q {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.p-faq-q:hover { background: var(--bg-elevated); }
.p-faq-q i { transition: transform 0.3s ease; font-size: 12px; color: var(--text-muted); }
.p-faq-item.open .p-faq-q i { transform: rotate(180deg); }

.p-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.p-faq-item.open .p-faq-a { max-height: 300px; padding: 0 20px 16px; }

.p-related-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.p-related-card:hover { background: var(--bg-elevated); transform: translateX(4px); }

.p-related-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.p-related-img img { width: 100%; height: 100%; object-fit: cover; }
.p-related-info { flex: 1; min-width: 0; }
.p-related-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-related-price { font-size: 14px; font-weight: 700; color: var(--gold); }

.p-review-card {
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.p-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.p-review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    flex-shrink: 0;
}

.p-review-name { font-size: 14px; font-weight: 600; }
.p-review-date { font-size: 12px; color: var(--text-muted); }
.p-review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.p-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 100;
    gap: 12px;
    align-items: center;
}

.p-mobile-bar .p-btn-cart { padding: 12px; font-size: 14px; }

.p-skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(212,168,67,0.08) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 1200px) {
    .product-layout { grid-template-columns: 1fr 300px; }
    .product-sidebar-left { display: none; }
    /* Show trust strip as replacement for hidden left sidebar */
    .p-trust-strip-inline { display: flex; }
}

@media (max-width: 992px) {
    .product-layout { grid-template-columns: 1fr; }
    .product-sidebar-right { position: static; }
    .p-mobile-bar { display: flex; }
    /* Restack: gallery on top via flex order */
    .product-sidebar-right { order: -1; }
    .p-gallery-main img { max-height: 400px; width: 100%; object-fit: contain; }
}

@media (max-width: 768px) {
    .p-name { font-size: 22px; }
    .p-header { flex-direction: column; }
    .p-features-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .p-features-strip .p-feature-item { padding: 10px 8px; font-size: 12px; flex-direction: column; gap: 4px; text-align: center; }
    .p-features-strip .p-feature-item i { font-size: 18px; }
    .p-tab-btn { padding: 10px 12px; font-size: 12px; }
    .p-tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px; }
    .p-tabs-nav::-webkit-scrollbar { display: none; }
    .p-pricing { flex-direction: column; gap: 12px; }
    .p-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .p-info-grid { grid-template-columns: 1fr; }
    .product-buy-area { flex-direction: column; }
    .p-qty { width: 100%; }
    .p-btn-cart { width: 100%; justify-content: center; }
    .product-gallery { margin-bottom: 16px; }
}

@media (max-width: 480px) {
    .product-page { padding: 12px 0 80px; }
    .p-features-strip { grid-template-columns: repeat(2, 1fr); }
    .p-name { font-size: 18px; }
    .p-price { font-size: 28px; }
    .p-rating { flex-direction: column; align-items: flex-start; gap: 4px; }
    .p-gallery-main img { max-height: 280px; }
    .p-tab-content .glass { padding: 16px; }
    .p-review-card { padding: 14px; }
}

@media (max-width: 360px) {
    .product-page { padding: 8px 0 80px; }
    .p-name { font-size: 16px; }
    .p-features-strip .p-feature-item { padding: 8px 4px; font-size: 11px; }
    .p-features-strip { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .p-tab-btn { padding: 8px 10px; font-size: 11px; }
    .p-gallery-main img { max-height: 200px; }
    .p-amount-grid { grid-template-columns: 1fr; }
}