/* ==================== Reset & Global ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', sans-serif; background-color: #f9f9f9; color: #333; direction: rtl; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Product Detail Section */
.product-detail-section { padding: 40px 0; }

.product-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px;
}

/* Product Image */
.product-image-box {
    background: white; padding: 40px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-product-image { max-width: 100%; height: auto; max-height: 400px; object-fit: contain; }

/* Product Info */
.product-info-box { padding: 10px 0; }
.product-title { font-size: 32px; color: #2c3e50; margin-bottom: 10px; }
.product-model { font-size: 18px; color: #7f8c8d; margin-bottom: 20px; }

.product-price-box {
    background: #eaf6f9; padding: 15px 25px; border-radius: 12px; margin-bottom: 25px;
    display: inline-block; width: 100%;
}
.price { font-size: 32px; color: #42aac7; font-weight: 700; display: block; }
.vat-text { font-size: 13px; color: #7f8c8d; }

.in-stock { color: #27ae60; font-weight: 600; font-size: 16px; margin-bottom: 20px; display: block; }

/* Quantity Selector */
.quantity-selector { margin-bottom: 25px; }
.quantity-selector label { display: block; font-weight: 600; margin-bottom: 10px; }
.quantity-controls {
    display: flex; align-items: center; border: 2px solid #ecf0f1; border-radius: 8px; width: fit-content;
}
.qty-minus, .qty-plus {
    background: #f8f9fa; border: none; width: 40px; height: 40px; font-size: 18px; cursor: pointer; transition: 0.2s;
}
.qty-minus:hover, .qty-plus:hover { background: #e2e6ea; }
.quantity-controls input {
    width: 60px; height: 40px; text-align: center; border: none; font-size: 18px; font-weight: bold;
    border-right: 1px solid #ecf0f1; border-left: 1px solid #ecf0f1;
}

/* Action Buttons */
.action-buttons { display: flex; gap: 15px; margin-bottom: 30px; }
.add-to-cart-main, .buy-now-btn {
    flex: 1; padding: 15px; font-size: 16px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.add-to-cart-main { background: #42aac7; color: white; }
.add-to-cart-main:hover { background: #358ea8; }
.buy-now-btn { background: #2c3e50; color: white; }
.buy-now-btn:hover { background: #1a252f; }

/* Product Features */
.product-features { background: white; padding: 20px; border-radius: 10px; border-right: 4px solid #8bc636; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.product-features h3 { margin-bottom: 10px; font-size: 18px; }
.product-features li { padding: 5px 0; color: #555; font-size: 14px; }

/* ==================== TABS STYLES (New Design) ==================== */
.product-tabs-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.tab-btn:hover {
    color: #42aac7;
    background: #f1f3f5;
}

.tab-btn.active {
    color: #42aac7;
    border-bottom-color: #42aac7;
    background: white;
}

.tabs-body {
    padding: 40px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 { margin-bottom: 20px; color: #2c3e50; font-size: 22px; }
.tab-content p { line-height: 1.8; color: #555; margin-bottom: 15px; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.specs-table tr { border-bottom: 1px solid #f1f1f1; }
.specs-table td { padding: 15px; }
.specs-table td:first-child { font-weight: bold; width: 30%; background: #fdfdfd; color: #555; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Related Products */
.related-products { margin-top: 60px; }
.related-products h2 { text-align: center; margin-bottom: 30px; color: #333; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: white; padding: 15px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.product-card img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 10px; }
.product-card h3 { font-size: 16px; margin-bottom: 5px; }
.product-card .add-to-cart-btn { display: inline-block; padding: 8px 15px; background: #42aac7; color: white; border-radius: 5px; margin-top: 10px; font-size: 14px; }

/* Cart Modal */
.cart-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; justify-content: flex-end; }
.cart-modal.active { display: flex; }
.cart-content { background: white; width: 100%; max-width: 400px; height: 100%; padding: 20px; display: flex; flex-direction: column; animation: slideIn 0.3s ease; }
.cart-header { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.close-cart { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: contain; }
.checkout-btn { width: 100%; background: #27ae60; color: white; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 15px; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* Responsive */
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .tabs-header { flex-direction: column; }
    .tab-btn { border-bottom: 1px solid #eee; border-left: 3px solid transparent; text-align: right; }
    .tab-btn.active { border-left-color: #42aac7; border-bottom-color: transparent; }
}
