
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;600;700&display=swap');

.bader-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.bader-qty {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-radius: 12px;
    overflow: hidden;
}

.bader-qty button {
    width: 42px;
    height: 42px;
    border: none;
    background: #7bbd42;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.bader-qty input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
}

.order-now {
    background: #7bbd42;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.order-now:hover {
    opacity: 0.9;
}

/* ===============================
   Variations UI
================================ */

.bader-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bader-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.bader-field select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
}

/* تحسين الأزرار */
.bader-actions button {
    transition: all .2s ease;
}

.bader-actions button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* تحسين ملخص الطلب */
.bader-summary {
    background: linear-gradient(180deg,#fafafa,#fff);
}

.bader-summary .total {
    color: #2e7d32;
}
/* ===============================
   خط El Messiri
================================ */

.bader-cod-wrapper {
    font-family: 'El Messiri', sans-serif;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    max-width: 640px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* العنوان */
.bader-cod-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #0ea5e9; /* أزرق سماوي */
}

/* Grid */
.bader-cod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* الحقول */
.bader-cod-wrapper input,
.bader-cod-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    font-size: 15px;
    outline: none;
}

.bader-cod-wrapper input:focus,
.bader-cod-wrapper select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.2);
}

/* الخيارات */
.bader-cod-options {
    margin: 15px 0;
}

.bader-cod-options label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* الألوان */
.bader-colors {
    display: flex;
    gap: 10px;
}

.bader-colors input {
    display: none;
}

.bader-colors span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

.bader-colors input:checked + span {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14,165,233,0.3);
}

/* الأحجام */
.bader-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bader-sizes input {
    display: none;
}

.bader-sizes span {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    cursor: pointer;
    font-size: 14px;
}

.bader-sizes input:checked + span {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.bader-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.bader-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.bader-summary-row.total {
    font-weight: bold;
    font-size: 17px;
    color: #0ea5e9;
}

/* زر الطلب + الكمية */
.bader-cod-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.bader-cod-submit {
    flex: 1;
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.bader-cod-submit:hover {
    background: #0284c7;
}

/* الكمية */
.bader-qty {
    display: flex;
    align-items: center;
}

.bader-qty button {
    background: #e0f2fe;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    color: #0284c7;
}

.bader-qty input {
    width: 50px;
    text-align: center;
    margin: 0 6px;
    border-radius: 8px;
}

/* موبايل */
@media (max-width: 600px) {
    .bader-cod-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   تحسين شكل اختيار الألوان
================================ */

.bader-colors {
    display: flex;
    gap: 14px;
    align-items: center;
}

.bader-colors label {
    position: relative;
    cursor: pointer;
}

.bader-colors input {
    display: none;
}

/* دائرة اللون */
.bader-colors span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-block;
    border: 3px solid #e5e7eb;
    transition: all 0.2s ease;
}

/* عند المرور */
.bader-colors label:hover span {
    transform: scale(1.08);
}

/* عند الاختيار */
.bader-colors input:checked + span {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.3);
}

/* علامة الصح */
.bader-colors input:checked + span::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

