/* =========================================
   Product Detail Page Styles
   ========================================= */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: flex-start;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-box {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Product Info */
.product-main-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Meta Badges */
.product-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-category { background-color: #e0f2fe; color: #0284c7; }
.badge-brand { background-color: #f3e8ff; color: #9333ea; }
.badge-gender { background-color: #dcfce7; color: #16a34a; }
.badge-color { background-color: #f1f5f9; color: #475569; }
.badge-color-2 { background-color: #f8eec4; color: #f65a06; }

/* Description */
.product-full-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Price */
.product-detail-price {
    margin-bottom: 25px;
}

.product-detail-price .price-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-detail-price .old-price {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-detail-price .new-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Important Notice Box */
.important-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(to left, #fffbea, #fef08a);
    border-right: 4px solid #eab308;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
    animation: pulseNotice 2s infinite;
}

@keyframes pulseNotice {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.notice-icon {
    font-size: 1.5rem;
}

.notice-text {
    font-size: 0.95rem;
    color: #854d0e;
    line-height: 1.6;
}

/* Actions (Quantity & Add to Cart) */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    height: 50px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    background-color: #f8f9fc;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: #e2e8f0;
}

#qtyInput {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    outline: none;
    -moz-appearance: textfield; /* Remove spin buttons */
}
#qtyInput::-webkit-outer-spin-button,
#qtyInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    flex-grow: 1;
    height: 50px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .main-image-box {
        height: 350px;
    }
    .product-actions {
        flex-direction: column;
    }
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    .qty-btn {
        width: 60px;
    }
    #qtyInput {
        width: calc(100% - 120px);
    }
}


/* استایل کلی برای بج‌های ویژگی */
.badge-feature {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin: 4px;
    border: 1px solid transparent;
}

/* تنوع رنگی */
.f-color-1 { background-color: #e3f2fd; border-color: #2196f3; color: #1976d2; } /* آبی */
.f-color-2 { background-color: #e8f5e9; border-color: #4caf50; color: #2e7d32; } /* سبز */
.f-color-3 { background-color: #fff3e0; border-color: #ff9800; color: #e65100; } /* نارنجی */
.f-color-4 { background-color: #f3e5f5; border-color: #9c27b0; color: #7b1fa2; } /* بنفش */
.f-color-5 { background-color: #fce4ec; border-color: #e91e63; color: #c2185b; } /* صورتی */
.f-color-6 { background-color: #e0f7fa; border-color: #00bcd4; color: #006064; } /* فیروزه‌ای */
