/* --- پالت رنگی آینده‌نگرانه و لوکس برند سویل --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(45, 27, 53, 0.08);
    --neon-glow: rgba(188, 138, 95, 0.15);
    --text-main: #231326;
    --transition-premium: cubic-bezier(0.25, 1, 0.5, 1);
}

.product-detail-wrapper {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    overflow: hidden;
}

/* هاله‌های نورانی استاتیک در بک‌دراپ لایه‌های اصلی */
.ambient-glow-1 {
    position: absolute; top: 10%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(188, 138, 95, 0.12) 0%, rgba(255,255,255,0) 70%);
    filter: blur(60px); z-index: -1; pointer-events: none;
}
.ambient-glow-2 {
    position: absolute; bottom: 5%; left: -5%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(45, 27, 53, 0.05) 0%, rgba(255,255,255,0) 70%);
    filter: blur(50px); z-index: -1; pointer-events: none;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: start;
}

/* --- گالری فلوید سه بعدی کاتالوگ --- */
.product-gallery-section {
    position: sticky;
    top: 150px;
}

.main-image-viewport-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    padding: 12px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(45, 27, 53, 0.04);
}

.main-image-viewport {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding-top: 100%;
    width: 100%;
    overflow: hidden;
}

.main-image-viewport img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-premium), opacity 0.3s ease;
}

.main-image-viewport-wrapper:hover .main-image-viewport img {
    transform: scale(1.04);
}

.detail-badge-discount {
    position: absolute; top: 20px; right: 20px;
    background: linear-gradient(135deg, #E63946, #D90429);
    color: white; font-size: 12px; font-weight: 800;
    padding: 6px 14px; border-radius: 30px; letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.3);
    z-index: 10;
}

/* گرید تامب‌نیل با رینگ مدرن */
.product-thumbnails-grid {
    display: flex; gap: 16px; margin-top: 24px;
}

.thumb-box {
    width: 84px; height: 84px; background: var(--glass-bg);
    border-radius: 16px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    cursor: pointer; overflow: hidden; padding: 4px;
    transition: all 0.4s var(--transition-premium);
}

.thumb-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.thumb-box.active {
    border-color: var(--rose-gold);
    box-shadow: 0 0 0 4px var(--neon-glow);
    transform: translateY(-4px);
}

.gallery-more-trigger {
    background: linear-gradient(135deg, var(--deep-plum), #1e1124) !important;
    border: none; position: relative;
}

.trigger-overlay {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; width: 100%; height: 100%;
}
.trigger-overlay span { font-size: 16px; font-weight: 700; color: var(--rose-gold); }
.trigger-overlay small { font-size: 10px; opacity: 0.7; margin-top: 2px; }

/* --- استایل دهی به اطلاعات محصول کاتالوگ سویل --- */
.breadcrumb-nav {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #777; margin-bottom: 24px;
}
.breadcrumb-nav a { text-decoration: none; color: inherit; transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--rose-gold); }
.breadcrumb-nav svg { opacity: 0.4; }
.active-crumb { color: var(--deep-plum); font-weight: bold; }

.detail-header-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px; padding: 30px; margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(45, 27, 53, 0.02);
}

.detail-brand-tag {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    color: var(--rose-gold); background: rgba(188, 138, 95, 0.12);
    padding: 6px 16px; border-radius: 30px; margin-bottom: 16px;
    text-transform: uppercase;
}

.detail-title-text {
    font-size: 34px; color: var(--text-main); font-weight: 800;
    line-height: 1.3; margin-bottom: 16px;
}

/* توضیحات بازشونده نرم سال ۲۰۲۶ */
.sevil-desc-container { position: relative; }
.detail-full-desc {
    font-size: 14.5px; color: #5a525d; line-height: 1.8;
    max-height: 84px; overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sevil-desc-container.expanded .detail-full-desc { max-height: 1000px; }

.read-more-btn {
    display: inline-flex; align-items: center; gap: 4px;
    color: #D90429; font-size: 12.5px; font-weight: 800;
    cursor: pointer; margin-top: 10px;
}
.read-more-btn svg { transition: transform 0.3s; }
.read-more-btn:hover svg { transform: translateY(2px); }
.sevil-desc-container.expanded .read-more-btn { display: none; }

/* مسترکارت شیشه‌ای قیمت */
.detail-pricing-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px; padding: 26px 30px; margin-bottom: 30px;
    box-shadow: 0 30px 60px rgba(45, 27, 53, 0.03);
}

.pricing-row-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.border-top-glass { border-top: 1px solid rgba(45, 27, 53, 0.06); }

.price-label { font-size: 13px; color: #6a5f6e; font-weight: bold; }
.current-price-lux { font-size: 26px; font-weight: 800; color: var(--deep-plum); }
.current-price-lux.text-discount { color: #D90429; }
.old-price-strike { font-size: 14px; color: #aaa; text-decoration: line-through; margin-left: 10px; font-weight: normal; }
.current-price-lir { font-size: 19px; font-weight: 700; color: #444; }

.stock-status-row { margin-top: 8px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.05); }
.stock-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: bold; color: var(--sage-green); }
.stock-badge.out-of-stock { color: #888; }
.pulse-dot { width: 8px; height: 8px; background: var(--sage-green); border-radius: 50%; animation: sevilPulse 2s infinite; }

/* دکمه افزودن خرید مدرن با فیلتر نوری متحرک */
.add-to-cart-action-form { display: flex; gap: 20px; margin-bottom: 40px; }

.quantity-selector-box {
    display: flex; align-items: center; background: rgba(255,255,255,0.8);
    border: 1px solid var(--glass-border); border-radius: 20px;
    overflow: hidden; height: 60px; box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}
.qty-btn {
    width: 54px; height: 100%; background: none; border: none;
    font-size: 22px; color: var(--deep-plum); cursor: pointer; transition: background 0.2s;
}
.qty-btn:hover { background: rgba(45, 27, 53, 0.04); }
.quantity-selector-box input {
    width: 44px; text-align: center; border: none; background: none;
    font-size: 16px; font-weight: 800; color: var(--deep-plum);
}

.sevil-btn-primary-cart {
    flex-grow: 1; height: 60px; position: relative;
    background: linear-gradient(135deg, var(--deep-plum), #1a0e1f);
    color: white; border: none; border-radius: 20px;
    font-size: 16px; font-weight: 800; display: flex;
    align-items: center; justify-content: center; gap: 12px;
    cursor: pointer; overflow: hidden;
    box-shadow: 0 15px 35px rgba(45, 27, 53, 0.2);
    transition: transform 0.3s var(--transition-premium), box-shadow 0.3s;
}

.btn-shine-effect {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    animation: sevilShine 4s infinite linear;
}

@keyframes sevilShine {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.sevil-btn-primary-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(45, 27, 53, 0.3);
}

/* سیستم فیلدهای کاتالوگ جنگو */
.detail-interactive-accordion {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 10px 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.01);
}
.accordion-trigger {
    width: 100%; padding: 18px 0; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 800; color: var(--deep-plum); cursor: pointer;
}
.arrow-icon svg { transition: transform 0.3s var(--transition-premium); opacity: 0.6; }
.accordion-item.active .arrow-icon svg { transform: rotate(180deg); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--transition-premium); }
.accordion-item.active .accordion-content { max-height: 1000px; }

.features-spec-list { list-style: none; padding: 10px 0 20px 0; }
.features-spec-list li {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid rgba(45, 27, 53, 0.04);
}
.features-spec-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.feature-bullet-hex {
    width: 6px; height: 6px; background: var(--rose-gold);
    border-radius: 50%; margin-top: 8px; flex-shrink: 0;
    box-shadow: 0 0 10px var(--rose-gold);
}
.feature-text-group { display: flex; flex-direction: column; gap: 2px; }
.feature-title-label { font-size: 12px; color: #928596; font-weight: 700; }
.feature-value-desc { font-size: 14px; color: var(--text-main); font-weight: bold; }

/* --- مدال گالری نیمه شیشه‌ای تاریک --- */
.sevil-gallery-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200000; display: none; align-items: center; justify-content: center; padding: 24px;
}
.sevil-gallery-modal.is-open { display: flex !important; }

.gallery-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 14, 31, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}

.gallery-modal-content {
    position: relative; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    width: 100%; max-width: 750px; max-height: 80vh;
    border-radius: 36px; padding: 36px; overflow-y: auto; z-index: 5;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.2);
    transform: translateY(30px); opacity: 0;
    transition: transform 0.5s var(--transition-premium), opacity 0.5s;
}
.sevil-gallery-modal.is-open .gallery-modal-content { transform: translateY(0); opacity: 1; }

.gallery-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.gallery-modal-header h3 { font-size: 18px; color: var(--deep-plum); font-weight: 800; }
.close-gallery-modal {
    background: rgba(45, 27, 53, 0.06); color: var(--deep-plum); border: none;
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.gallery-modal-body-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.modal-grid-thumb {
    position: relative; aspect-ratio: 1; background: white; border-radius: 20px; overflow: hidden; cursor: pointer;
    border: 1px solid var(--glass-border); transition: all 0.3s;
}
.modal-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-grid-thumb:hover { transform: scale(1.03); border-color: var(--rose-gold); }

/* --- سیستم کامپوزیتی ریسپانسیو موبایل سال ۲۰۲۶ --- */
@media (max-width: 992px) {
    .product-detail-container { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery-section { position: relative; top: 0; }
    .product-detail-wrapper { padding-top: 130px; }
    .detail-title-text { font-size: 28px; }
}

@media (max-width: 576px) {
    .product-detail-wrapper { padding-left: 20px; padding-right: 20px; }
    .add-to-cart-action-form { flex-direction: column; gap: 14px; }
    .quantity-selector-box { width: 100%; justify-content: space-between; }
    .qty-btn { width: 30%; }
    .detail-header-card { padding: 20px; }
    .detail-pricing-card { padding: 20px; }
}