@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --bg-main: #f3e9e7;
    --primary: #d68e86;
    --primary-dark: #bf7068;
    --text-main: #4a4a4a;
    --card-shadow: 0 18px 40px rgba(214, 142, 134, 0.18);
    --success: #2ecc71;
    --cih-blue: #005eb8;
    --price-red: #c0392b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    margin: 0;
    direction: rtl;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0 32px;
}

/* =========================
   Layout
   ========================= */
.main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.container {
    width: calc(100% - 24px);
    max-width: 520px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    padding-bottom: 22px;
}

/* =========================
   Slider
   ========================= */
.slider-container {
    position: relative;
    width: 100%;
    background: #fdfbfb;
    padding-bottom: 8px;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 320px;
    scrollbar-width: none;
    background: #fdfbfb;
}

@media (max-width: 420px) {
    .slider-wrapper {
        height: 300px;
    }
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;     /* الصورة كاملة بدون قص */
    background-color: #fdfbfb;
    scroll-snap-align: center;
}

/* dots */
.slider-dots {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--primary);
    width: 26px;
    border-radius: 12px;
}

/* badge */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* =========================
   Title & Features
   ========================= */
h1 {
    font-size: 1.15rem;
    text-align: center;
    color: #333;
    margin: 14px 16px 8px;
    font-weight: 900;
    line-height: 1.4;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 16px;
}

.feat-item {
    font-size: 0.72rem;
    background: #fff5f4;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

/* =========================
   Price
   ========================= */
.price-tag {
    background: #fff0f0;
    border: 2px dashed #e74c3c;
    padding: 12px;
    margin: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.price-tag::after {
    content: "تخفيض 56% لفترة محدودة ⚡";
    position: absolute;
    top: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 15px;
    font-weight: bold;
}

.new-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--price-red);
}

.old-price {
    font-size: 0.9rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 600;
}

/* =========================
   Form
   ========================= */
.order-form {
    padding: 0 16px;
}

.form-header h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 12px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 38px 11px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    background: #fcfcfc;
    font-size: 0.9rem;
    text-align: right;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: #fff;
}

/* sizes */
.sizes-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.size-box {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
}

.size-label {
    font-weight: 900;
    font-size: 1rem;
    color: #555;
}

.size-box.active {
    border-color: var(--primary);
    background-color: #fff0ee;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(214, 142, 134, 0.35);
}

.error-msg {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 6px;
    font-weight: bold;
}

/* =========================
   Buttons
   ========================= */
.cta-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 6px 18px rgba(191, 112, 104, 0.35);
}

/* =========================
   Payment
   ========================= */
.payment-info {
    padding: 16px;
    text-align: center;
}

.success-header .check-icon {
    width: 52px;
    height: 52px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
}

.bank-card {
    background: #f4f8fb;
    border: 2px dashed #bddaf0;
    border-radius: 14px;
    padding: 15px;
    margin: 15px 0;
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--cih-blue);
}

.bank-header img {
    height: 20px;
}

.rib-number {
    font-family: monospace;
    font-size: 0.9rem;
    background: #fff;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #e1effa;
    direction: ltr;
}

.copy-btn {
    background: var(--cih-blue);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.whatsapp-btn,
.whatsapp-btn-mini {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* =========================
   Alerts & Utils
   ========================= */
.duplicate-alert {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    margin: 15px;
    border-radius: 14px;
    text-align: center;
}

.hidden {
    display: none;
}










