@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #b7007b;
    --primary-dark: #231247;
    --text-main: #333;
    --text-gray: #666;
    --border-color: #ddd;
    --bg-light: #f9f9f9;
    --orange-limited: #ff9900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-main);
}

/* Header */
.header {
    background: linear-gradient(90deg, #351356, #180935);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.header .logo img {
    height: 30px;
    margin-right: 15px;
}

.header-left i, .header-right i {
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-gray);
}
.breadcrumb .current {
    color: var(--primary-color);
}
.breadcrumb i.fa-chevron-left {
    font-size: 8px;
}

/* Product Area */
.product-page {
    padding: 0 20px;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#main-product-image {
    max-width: 100%;
    height: 300px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.thumbnail-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail-img.active {
    border-color: var(--primary-color);
}

/* Favorite Button */
.favorite-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text-gray);
    border-radius: 25px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}
.favorite-btn i {
    margin-left: 8px;
    font-size: 18px;
}

/* Product Info */
.product-info {
    text-align: right;
    margin-bottom: 20px;
}

.brand {
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin: 5px 0 10px;
}

.availability {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--orange-limited);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.price-section {
    text-align: right;
}

.monthly-price-display {
    font-size: 24px;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
}

.monthly-price-display .currency {
    font-size: 18px;
}

.monthly-price-display .per-month {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: normal;
}

.divider {
    border: none;
    border-top: 1px dotted var(--border-color);
    margin: 20px 0;
}

/* Options */
.option-group {
    margin-bottom: 25px;
}

.option-label {
    text-align: right;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.option-choices {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
    direction: ltr;
}

.choice-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
}

.choice-box.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.color-options {
    justify-content: flex-end;
}

.color-options .color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 2px;
    background-clip: content-box;
    box-shadow: 0 0 0 1px var(--border-color);
}

.color-options .color-box.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Payment Options */
.payment-options {
    margin-top: 30px;
}

.section-title {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    direction: rtl;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.plan-card {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.plan-details {
    text-align: right;
    flex: 1;
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    direction: ltr;
    display: inline-block;
}
.plan-price .currency { font-size: 14px; }
.plan-price .per-month { font-size: 14px; color: var(--text-gray); font-weight: normal; }

.commitment, .down-payment {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 14px;
    margin-top: 15px;
}

.radio-select {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 15px;
}

/* Fixed Footer */
.bottom-spacer {
    height: 100px;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.continue-btn {
    width: 100%;
    background-color: #e0e0e0;
    color: #888;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.continue-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Checkout Page Styles */
.checkout-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.checkout-container {
    flex: 1;
    padding: 30px 20px;
    background-color: white;
}
#checkoutForm {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
    text-align: right;
}
.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
}
.form-group input:focus, .form-group select:focus {
    outline: 2px solid var(--primary-color);
}
.submit-btn {
    width: 200px;
    margin: 30px auto;
    display: block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}
.submit-btn:hover {
    opacity: 0.9;
}
.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
