/* ============================================
   Leo Beauty Single Product Page Styles
   ============================================ */

.leo-single-product {
    padding: 40px 0;
    background: #ffffff;
}

.leo-single-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding: 0 15px;
}

/* گالری تصاویر محصول */
.leo-product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.leo-product-gallery .woocommerce-product-gallery {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.leo-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* بخش اطلاعات محصول */
.leo-product-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* هدر محصول (عنوان و برند) */
.leo-product-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.leo-product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.leo-product-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.brand-label {
    color: var(--text-light);
    font-weight: 500;
}

.brand-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* امتیاز و موجودی */
.leo-product-meta-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--accent-color);
    border-radius: 10px;
}

.leo-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.leo-stars {
    display: flex;
    gap: 5px;
}

.leo-star {
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.leo-star.filled {
    color: #ffc107;
}

.rating-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-average {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.rating-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rating-link {
    color: var(--primary-color);
    font-size: 0.95rem;
    text-decoration: underline;
}

.rating-link:hover {
    color: var(--secondary-color);
}

.leo-no-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

/* وضعیت موجودی */
.leo-stock-info {
    margin-top: 10px;
}

.leo-stock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
}

.leo-stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.leo-stock-status.out-stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
}

.stock-icon {
    font-size: 1.2rem;
}

.stock-text {
    font-weight: 600;
}

.stock-detail {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 5px;
}

/* توضیح کوتاه */
.leo-short-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.leo-short-desc p {
    margin-bottom: 0;
}

/* بخش قیمت */
.leo-price-section {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c49564 100%);
    border-radius: 15px;
    color: #ffffff;
}

.leo-price-box {
    margin-bottom: 20px;
}

.leo-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.leo-price .woocommerce-Price-amount {
    color: #ffffff;
}

.leo-sale-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.leo-sale-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

.sale-percent {
    color: #ffffff;
}

.leo-original-price {
    font-size: 1.3rem;
}

.leo-original-price del {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
}

/* دکمه‌های اشتراک و علاقه‌مندی */
.leo-product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.leo-wishlist-btn,
.leo-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leo-wishlist-btn:hover,
.leo-share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.leo-wishlist-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.leo-wishlist-btn.added {
    background: rgba(255, 255, 255, 0.3);
}

.wishlist-icon,
.share-icon {
    font-size: 1.2rem;
}

/* منوی اشتراک */
.leo-share-dropdown {
    position: relative;
    flex: 1;
}

.leo-share-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    z-index: 100;
    min-width: 200px;
}

.leo-share-options.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-option:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.share-option span {
    font-size: 1rem;
}

/* فرم افزودن به سبد */
.leo-add-to-cart-wrapper {
    padding: 25px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 15px;
}

.leo-add-to-cart-wrapper .quantity {
    margin-bottom: 15px;
}

.leo-add-to-cart-wrapper .single_add_to_cart_button {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leo-add-to-cart-wrapper .single_add_to_cart_button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* اطلاعات ارسال و گارانتی */
.leo-product-shipping-info {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.leo-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leo-shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.shipping-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.shipping-details {
    flex: 1;
}

.shipping-details strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.shipping-details small {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ویژگی‌های کلیدی */
.leo-product-features {
    padding: 25px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.features-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.leo-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.leo-feature-item:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* اطلاعات متا */
.leo-meta-info {
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 100px;
}

.meta-value {
    color: var(--text-color);
    flex: 1;
}

.meta-value a {
    color: var(--primary-color);
    margin-left: 5px;
}

.meta-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* بخش تب‌ها */
.leo-product-tabs-wrapper {
    margin-top: 60px;
    padding: 0 15px;
}

.woocommerce-tabs {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.woocommerce-tabs .panel {
    padding: 0;
}

/* محصولات مشابه */
.leo-similar-products {
    margin-top: 60px;
    padding: 0 15px;
}

.leo-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.leo-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.leo-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.leo-product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.leo-product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leo-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.leo-product-card a {
    display: block;
    overflow: hidden;
}

.leo-product-card img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.leo-product-card:hover img {
    transform: scale(1.05);
}

.leo-product-info {
    padding: 20px;
}

.leo-product-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.leo-product-info h3 a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.leo-product-info h3 a:hover {
    color: var(--primary-color);
}

.leo-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.leo-price-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.leo-add-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.leo-add-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* نوتیفیکیشن */
.leo-notification {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 15px 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 250px;
}

.leo-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.leo-notification-success {
    border-right: 4px solid var(--success-color);
    color: var(--success-color);
}

.leo-notification-error {
    border-right: 4px solid var(--error-color);
    color: var(--error-color);
}

.leo-notification-info {
    border-right: 4px solid var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Single Product */
@media screen and (max-width: 1024px) {
    .leo-single-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .leo-product-gallery {
        position: static;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .leo-product-title {
        font-size: 2rem;
    }
    
    .leo-price {
        font-size: 2rem;
    }
    
    .leo-product-actions {
        flex-direction: column;
    }
    
    .leo-wishlist-btn,
    .leo-share-btn {
        width: 100%;
    }
    
    .leo-share-options {
        left: auto;
        right: 0;
    }
    
    .leo-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .woocommerce-tabs ul.tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .woocommerce-tabs ul.tabs li {
        width: 100%;
    }
    
    .woocommerce-tabs ul.tabs li a {
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    
    .woocommerce-tabs ul.tabs li.active a {
        border-bottom-color: var(--border-color);
        border-right: 3px solid var(--primary-color);
    }
}

@media screen and (max-width: 480px) {
    .leo-single-product {
        padding: 20px 0;
    }
    
    .leo-single-top {
        gap: 30px;
        padding: 0 10px;
    }
    
    .leo-product-title {
        font-size: 1.5rem;
    }
    
    .leo-price {
        font-size: 1.5rem;
    }
    
    .leo-products-grid {
        grid-template-columns: 1fr;
    }
    
    .leo-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
    }
}

