/* Abu Al-Dahab Store Core - Frontend CSS */

/* Payment Box Styling on Checkout */
.abualdahab-payment-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.abualdahab-vf-box {
    border-right: 4px solid #c4122f;
}

.abualdahab-ip-box {
    border-right: 4px solid #4f1787;
}

.abualdahab-account-info {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.abualdahab-account-info .info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.abualdahab-account-info .info-row:last-child {
    border-bottom: none;
}

.abualdahab-account-info .label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.abualdahab-account-info .value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
}

.abualdahab-account-info .wallet-number {
    font-size: 18px;
    color: #c4122f;
    letter-spacing: 1px;
}

.abualdahab-account-info .ipa-highlight {
    font-size: 16px;
    color: #4f1787;
    letter-spacing: 0.5px;
}

.dahab-copy-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dahab-copy-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.abualdahab-form-fields .form-row {
    margin-bottom: 12px;
}

.abualdahab-form-fields label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.abualdahab-form-fields input[type="text"],
.abualdahab-form-fields input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.abualdahab-form-fields .description {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Thank you notice */
.abualdahab-thankyou-notice {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.abualdahab-thankyou-notice.vodafone-cash {
    border-color: #fca5a5;
    background: #fffafa;
}

.abualdahab-thankyou-notice.instapay {
    border-color: #ddd6fe;
    background: #faf5ff;
}

.abualdahab-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.abualdahab-table th,
.abualdahab-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.abualdahab-table th {
    width: 40%;
    color: #475569;
}

.abualdahab-table .price-highlight {
    font-size: 18px;
    font-weight: 800;
    color: #c4122f;
}

/* Product badges in loop */
.abualdahab-loop-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.abualdahab-loop-badges .badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.abualdahab-loop-badges .discount-badge {
    background: #dc2626;
    color: #ffffff;
}

.abualdahab-loop-badges .brand-badge {
    background: #1e293b;
    color: #ffffff;
}

/* Single product meta & buttons */
.abualdahab-product-top-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.abualdahab-product-top-meta .meta-brand-tag {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.abualdahab-product-top-meta .meta-model-tag {
    color: #64748b;
    font-size: 13px;
}

.abualdahab-product-top-meta .meta-warranty-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.abualdahab-quick-inquiry {
    margin: 16px 0;
}

.dahab-whatsapp-btn {
    background: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.2s ease !important;
}

.dahab-whatsapp-btn:hover {
    background: #128C7E !important;
}

/* Trust features box */
.abualdahab-trust-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin: 20px 0;
}

.abualdahab-trust-box .trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abualdahab-trust-box .trust-item .icon {
    font-size: 24px;
}

.abualdahab-trust-box .trust-item .text strong {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
}

.abualdahab-trust-box .trust-item .text span {
    font-size: 12px;
    color: #64748b;
}

/* Tracking Timeline */
.abualdahab-tracking-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.tracking-header {
    text-align: center;
    margin-bottom: 24px;
}

.tracking-header h2 {
    color: #c4122f;
    margin-bottom: 6px;
}

.abualdahab-tracking-form .tracking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media(max-width:600px) {
    .abualdahab-tracking-form .tracking-form-grid {
        grid-template-columns: 1fr;
    }
}

.abualdahab-tracking-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.abualdahab-tracking-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.tracking-btn {
    width: 100%;
    padding: 14px !important;
    background: #c4122f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.tracking-timeline {
    position: relative;
    margin: 30px 0;
    padding-right: 30px;
    border-right: 3px solid #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 25px;
}

.timeline-step .step-icon {
    position: absolute;
    right: -45px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timeline-step.is-complete .step-icon {
    border-color: #059669;
    background: #ecfdf5;
}

.timeline-step.is-complete h4 {
    color: #059669;
}

.timeline-step h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.timeline-step p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.tracking-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.order-status-pill {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

/* Category cards grid */
.abualdahab-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.abualdahab-categories-grid .category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.abualdahab-categories-grid .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    border-color: #c4122f;
}

.abualdahab-categories-grid .cat-img-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.abualdahab-categories-grid .cat-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.abualdahab-categories-grid h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #1e293b;
}

.abualdahab-categories-grid .count {
    font-size: 12px;
    color: #64748b;
}
