/* Page Product Detail CSS */

/* Standard Page Banner */
.page-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner:before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, transparent 70%);
    filter: blur(60px);
}

.banner-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.banner-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.banner-breadcrumb a:hover {
    color: var(--accent);
}

.banner-breadcrumb .sep {
    font-size: 10px;
    color: #64748b;
}

.banner-breadcrumb .current {
    color: var(--accent);
    font-weight: 700;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .page-title { font-size: 28px; }
    .page-banner { padding: 50px 0; }
}

/* Product Detail Main Section */
.subpage-main {
    background: var(--white);
}

.product-detail-section {
    padding: 70px 0 90px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Gallery */
.gallery-wrap {
    position: sticky;
    top: 100px;
}

.main-image-box {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    height: 460px;
}

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

.main-prod-img:hover {
    transform: scale(1.05);
}

.thumb-list {
    display: flex;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f5f9;
    transition: var(--transition);
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--primary);
}

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

/* Detail Info */
.info-wrap {
    display: flex;
    flex-direction: column;
}

.detail-badge-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.badge-stock {
    background: #ecfdf5;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.rating-snippet {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
}

.rating-snippet .stars {
    color: #f59e0b;
    font-size: 13px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 16px;
    line-height: 1.25;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 14px;
    background: var(--light);
    padding: 16px 20px;
    border-radius: var(--radius-btn);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.current-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.original-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.save-badge {
    background: #ef4444;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.detail-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 24px;
}

/* Key Features Highlight Box */
.key-highlights-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 18px 20px;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    margin-bottom: 28px;
}

.key-highlights-box h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
}

.key-highlights-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.6;
}

/* Color Options */
.option-group {
    margin-bottom: 24px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-btn);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.color-btn.active,
.color-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.dot-black { background: #1e293b; }
.dot-silver { background: #94a3b8; }
.dot-indigo { background: #4f46e5; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.btn-buy-now {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

.btn-call-consult {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
}

/* Guarantee Points */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
}

.guarantee-item i {
    color: var(--primary);
    font-size: 18px;
}

/* Specs Accordion Section */
.detail-specs-section {
    background: var(--light);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.specs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spec-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.spec-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-box h4 i {
    color: var(--primary);
}

.spec-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.spec-row span:first-child {
    color: var(--gray);
}

.spec-row span:last-child {
    font-weight: 700;
    color: var(--dark);
}

@media (max-width: 991px) {
    .detail-grid { grid-template-columns: 1fr; }
    .gallery-wrap { position: static; }
    .specs-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .action-buttons { flex-direction: column; }
    .guarantee-grid { grid-template-columns: 1fr; }
    .main-image-box { height: 320px; }
    .detail-title { font-size: 26px; }
}
