/* ========================================
   Product Page Styles Only
   لا تعيد تعيين Global Styles
   ======================================== */

/* Product Page Wrapper */
.product-page-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 60px;
    padding-top: 20px;
}

/* Breadcrumb */
.product-breadcrumb {
    padding: 12px 0;
    background: transparent;
    margin-bottom: 15px;
}

.product-breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.product-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.product-breadcrumb li:last-child {
    color: #666;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 4px;
}

/* Main Layout */
.product-main-layout {
    display: grid;
    grid-template-columns: 2fr 500px;
    gap: 20px;
    margin-bottom: 30px;
}

.product-left-content {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-brand {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.product-country {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* Rating Box */
.product-rating-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #fffbf0, #fff9e6);
    border-radius: 10px;
    border: 1px solid #ffd700;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    font-size: 18px;
    color: #fbbf24;
}

.rating-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rating-score {
    font-weight: 600;
    color: #333;
}

.rating-separator {
    color: #ccc;
}

.rating-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.rating-link:hover {
    text-decoration: underline;
}

/* Product Image */
.product-image-box {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-image-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-main-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-image-box:hover .product-main-image {
    transform: scale(1.05);
}

.product-no-image {
    font-size: 120px;
    color: #ddd;
}

/* Out of Stock Badge */
.out-of-stock-badge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255,68,68,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Promo Banner */
.promo-banner-below-image {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promo-banner-below-image .banner-icon {
    font-size: 36px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promo-banner-below-image .banner-text {
    font-size: 14px;
    color: #0369a1;
    font-weight: 600;
}

/* Purchase Sidebar */
.product-purchase-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.purchase-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.purchase-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.stock-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.stock-status-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.purchase-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Amount Selection */
.amount-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-option-btn {
    position: relative;
    padding: 18px 12px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.amount-option-btn .btn-main-amount {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

.amount-option-btn .btn-sender-amount {
    display: block;
    font-size: 13px;
    color: #0066cc;
    margin-top: 6px;
    font-weight: 600;
}

.amount-option-btn .btn-original-price {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    font-weight: 400;
}

.amount-option-btn:hover {
    border-color: #0066cc;
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.25);
}

.amount-option-btn.selected {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border-color: #0066cc;
    box-shadow: 0 8px 24px rgba(0,102,204,0.5);
    transform: translateY(-3px) scale(1.02);
}

.amount-option-btn.selected .btn-main-amount {
    color: white;
}

.amount-option-btn.selected .btn-sender-amount,
.amount-option-btn.selected .btn-original-price {
    color: rgba(255,255,255,0.95);
}

/* Custom Amount Input */
.custom-amount-input-box {
    margin-bottom: 20px;
    display: none;
}

.custom-amount-input-box.show {
    display: block;
}

.custom-amount-input-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.custom-amount-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.custom-amount-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.amount-range-hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* Coins Info - نسخة صغيرة جدًا */
.coins-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;                 /* مسافة صغيرة بين العناصر */
    padding: 3px 10px;        /* حشو قليل جدًا */
    background: linear-gradient(135deg, #fff9e6, #ffed4e);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;           /* نص صغير جدًا */
    font-weight: 700;
    color: #d97706;
    border: 2px solid #fbbf24;
    min-height: 26px;          /* ارتفاع صغير جدًا */
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.25);
}

.coin-icon {
    font-size: 14px;           /* أيقونة صغيرة */
    animation: coinRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.25));
}

@keyframes coinRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* تحسين للهاتف */
@media (max-width: 480px) {
    .coins-info-box {
        gap: 4px;
        padding: 2px 8px;
        font-size: 11px;
        min-height: 24px;
    }

    .coin-icon {
        font-size: 12px;
    }
}

/* Price Display */
.price-display-box {
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-radius: 12px;
    border: 2px solid #ff6b6b;
    text-align: center;
}

.price-final {
    font-size: 42px;
    font-weight: 800;
    color: #e31837;
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(227, 24, 55, 0.1);
}

.price-breakdown {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.price-breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* Action Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-buy-now-large {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    margin-bottom: 12px;
    font-size: 18px;
    padding: 18px;
}

.btn-buy-now-large:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.btn-add-to-cart {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
    margin-bottom: 20px;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Info Cards */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.info-card-icon {
    font-size: 24px;
    margin-top: 2px;
}

.info-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.info-card-body p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.info-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.info-link:hover {
    text-decoration: underline;
}

/* Description Tabs */
.product-description-area {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.description-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-nav-button {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-nav-button:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-nav-button.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.tab-content-panel {
    display: none;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.tab-content-panel.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 9999;
    transition: bottom 0.4s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-notification.success {
    background: linear-gradient(135deg, #28a745, #20993d);
}

.toast-notification.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.toast-notification.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

/* Mobile Sticky Button */
.mobile-buy-button-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 2px solid #e0e0e0;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.mobile-buy-button-sticky .sticky-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-buy-button-sticky .sticky-price {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    color: #e31837;
}

.mobile-buy-button-sticky .sticky-btn {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-main-layout {
        grid-template-columns: 1fr;
    }
    
    .product-purchase-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-left-content {
        padding: 20px;
    }
    
    .purchase-card {
        padding: 20px;
    }
    
    .product-main-title {
        font-size: 22px;
    }
    
    .product-image-box {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .product-main-image {
        max-height: 250px;
    }
    
    .price-final {
        font-size: 28px;
    }
    
    .amount-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-buy-button-sticky {
        display: block;
    }
    
    .purchase-card .btn-buy-now-large,
    .purchase-card .btn-add-to-cart {
        display: none;
    }
    
    .product-page-wrapper {
        padding-bottom: 100px;
    }
    
    .product-description-area {
        padding: 25px;
    }
    
    .tab-nav-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .amount-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .amount-option-btn {
        padding: 14px 10px;
    }
}