/* Product View Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Karla', sans-serif;
    direction: rtl;
    background: #f8f9fa;
    color: #333;
}

/* Header Styles */
.integrated-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.header-logo-icon {
    width: 45px;
    height: 45px;
    background: #2c3e50;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.header-logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    background: #fafafa;
    font-size: 0.9rem;
    direction: rtl;
}

.header-search .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.header-cart {
    position: relative;
    width: 50px;
    height: 50px;
    background: #2c3e50;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.header-cart:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Product View Container */
.product-view-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Product Image Slider */
.product-image-slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slider-arrow.slider-prev {
    left: 15px;
}

.slider-arrow.slider-next {
    right: 15px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #3498db;
    border-color: #2980b9;
    transform: scale(1.3);
}

.indicator:hover {
    background: #3498db;
    border-color: #2980b9;
}

/* Product Details Section */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.product-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.highlights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.highlight {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: #28a8b8;
    margin: 1rem 0;
}

/* Color Selection */
.color-selection h3,
.quantity-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.color-options {
    display: flex;
    gap: 0.75rem;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover,
.color-btn.active {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Size Selection */
.size-selection h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.size-btn:hover,
.size-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #2c3e50;
    color: white;
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-main {
    width: 100%;
    padding: 1rem;
    background: #28a8b8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.add-to-cart-main:hover {
    background: #28a8b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Payment Info */
.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.payment-method i {
    color: #28a8b8;
    font-size: 1rem;
}

/* Copy Link Button */
.copy-link-btn {
    width: 100%;
    padding: 0.75rem;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-link-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Policy Buttons */
.policy-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.policy-btn {
    padding: 0.75rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.policy-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f8f9fa;
}

.policy-btn i {
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-view {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .slider-container {
        height: 300px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow.slider-prev {
        left: 10px;
    }

    .slider-arrow.slider-next {
        right: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-price {
        font-size: 1.6rem;
    }

    .color-options,
    .size-options {
        gap: 0.25rem;
    }

    .size-btn {
        padding: 0.4rem 0.8rem;
        min-width: 40px;
    }

    .header-search {
        display: none;
    }

    .integrated-header {
        padding: 1rem;
    }
}

/* Sale Price Styles for Product View */
.product-price .sale-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 1rem 0;
}

.product-price .original-price {
    font-size: 1.5rem;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 600;
}

.product-price .sale-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e74c3c;
}

.product-price .discount-badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.25rem;
}