/* Floating Django messages */

.message-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2000;
    display: grid;
    width: min(420px, calc(100% - 30px));
    gap: 12px;
}


.site-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 16px 18px;
    overflow: hidden;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-left: 5px solid;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(15px);
    animation: notificationSlideIn 0.45s ease both;
}


.site-alert.alert-success {
    border-left-color: var(--success);
}


.site-alert.alert-danger {
    border-left-color: var(--danger);
}


.site-alert.alert-warning {
    border-left-color: var(--warning);
}


.site-alert.alert-info {
    border-left-color: #0dcaf0;
}


.alert-icon {
    font-size: 1.3rem;
    line-height: 1;
}


.alert-success .alert-icon {
    color: var(--success);
}


.alert-danger .alert-icon {
    color: var(--danger);
}


.alert-warning .alert-icon {
    color: #d89b00;
}


.alert-info .alert-icon {
    color: #079bb9;
}


.alert-content {
    color: var(--dark-soft);
    font-size: 0.84rem;
    font-weight: 600;
}


.site-alert .btn-close {
    padding: 8px;
    box-shadow: none;
    font-size: 0.65rem;
}


/* Reusable buttons */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 800;
}


.button-primary:hover {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 25px rgba(12, 107, 79, 0.2);
    transform: translateY(-2px);
}


.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    color: var(--dark);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 800;
}


.button-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}


/* Product availability indicators */

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}


.availability-badge::before {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 4px currentColor;
    opacity: 0.75;
}


.availability-in-stock {
    color: #08794f;
    background: #e7f8f0;
}


.availability-low-stock {
    color: #b16d00;
    background: #fff3d9;
}


.availability-out-of-stock {
    color: #bd3540;
    background: #fdecef;
}


.availability-unavailable {
    color: #68756f;
    background: #edf1ef;
}


/* Empty states */

.empty-state {
    padding: 70px 25px;
    text-align: center;
    background: var(--surface-soft);
    border: 1px dashed #cbd7d1;
    border-radius: var(--radius-md);
}


.empty-state-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 24px;
    font-size: 2rem;
}


.empty-state h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}


.empty-state p {
    max-width: 500px;
    margin: 0 auto 22px;
    color: var(--muted);
}


/* Loading skeleton */

.skeleton {
    position: relative;
    overflow: hidden;
    background: #eaf0ed;
    border-radius: 8px;
}


.skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    content: "";
    transform: translateX(-100%);
    animation: skeletonLoading 1.5s infinite;
}


/* Scroll reveal */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}


.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


.reveal-delay {
    transition-delay: 0.15s;
}


/* Accessibility */

.visually-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 16px !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(244, 166, 35, 0.65);
    outline-offset: 3px;
}


/* Animations */

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes skeletonLoading {
    to {
        transform: translateX(100%);
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


@media (max-width: 575.98px) {
    .message-container {
        top: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }

    .site-alert {
        padding: 14px;
    }
}


/* =========================================================
   CHECKOUT READABILITY OVERRIDE
========================================================= */

.checkout-back-link {
    font-size: 14px;
    font-weight: 800;
}

.checkout-header-content > div:first-child > span {
    font-size: 13px;
    font-weight: 900;
}

.checkout-header-content p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

.checkout-security-badge strong {
    font-size: 14px;
    font-weight: 900;
}

.checkout-security-badge small {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-card-heading small {
    font-size: 12px;
    font-weight: 900;
}

.checkout-card-heading h2 {
    font-size: 31px;
    font-weight: 800;
}

.checkout-card-heading p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.checkout-step-number {
    font-size: 17px;
}

.checkout-field label {
    margin-bottom: 10px;
    color: #183c31;
    font-size: 14px;
    font-weight: 900;
}

.checkout-input {
    min-height: 54px;
    padding-right: 16px;
    padding-left: 16px;
    color: #183c31;
    font-size: 14px;
    font-weight: 600;
}

.checkout-input::placeholder {
    color: #8a9a94;
    font-size: 13px;
    font-weight: 500;
}

textarea.checkout-input {
    min-height: 125px;
    padding-top: 15px;
}

.checkout-field-error {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
}

.checkout-form-errors {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.checkout-choice-content strong {
    font-size: 15px;
    font-weight: 900;
}

.checkout-choice-content small {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.checkout-choice-icon {
    font-size: 22px;
}

.checkout-choice-check {
    font-size: 11px;
}

.checkout-subheading span {
    font-size: 11px;
    font-weight: 900;
}

.checkout-subheading h3 {
    font-size: 26px;
    font-weight: 800;
}

.checkout-checkbox-card strong {
    font-size: 14px;
    font-weight: 900;
}

.checkout-checkbox-card small {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-payment-notice {
    padding: 16px;
}

.checkout-payment-notice i {
    font-size: 18px;
}

.checkout-payment-notice p {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
}

/* ORDER SUMMARY */

.checkout-summary-heading span {
    font-size: 12px;
    font-weight: 900;
}

.checkout-summary-heading h2 {
    font-size: 34px;
    font-weight: 800;
}

.checkout-summary-product strong {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

.checkout-summary-product small {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
}

.checkout-summary-product > span {
    font-size: 13px;
    font-weight: 900;
}

.checkout-product-image b {
    width: 23px;
    height: 23px;
    font-size: 10px;
}

.checkout-summary-lines {
    padding: 24px 26px;
}

.checkout-summary-lines > div + div {
    margin-top: 18px;
}

.checkout-summary-lines span {
    font-size: 14px;
    font-weight: 700;
}

.checkout-summary-lines strong {
    font-size: 14px;
    font-weight: 900;
}

.checkout-summary-total {
    margin-right: 26px;
    margin-left: 26px;
    padding: 24px 0;
}

.checkout-summary-total span {
    font-size: 17px;
    font-weight: 900;
}

.checkout-summary-total small {
    max-width: 190px;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-summary-total > strong {
    font-size: 30px;
    font-weight: 900;
}

.checkout-submit-button {
    width: calc(100% - 52px);
    min-height: 58px;
    margin-right: 26px;
    margin-left: 26px;
    font-size: 14px;
    font-weight: 900;
}

.checkout-summary-security {
    margin: 18px 26px 26px;
    padding: 15px;
}

.checkout-summary-security i {
    font-size: 16px;
}

.checkout-summary-security p {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.65;
}

/* RADIO AND CHECKBOX SIZE */

.checkout-choice-card {
    min-height: 88px;
    padding: 18px;
}

.checkout-choice-card > input,
.checkout-checkbox-card > input {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .checkout-card-heading h2 {
        font-size: 27px;
    }

    .checkout-header-content p {
        font-size: 14px;
    }

    .checkout-choice-content strong {
        font-size: 14px;
    }

    .checkout-input {
        font-size: 16px;
    }
}







.masjid-support-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px !important;
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #075e42, #0a7a55);
    box-shadow: 0 8px 22px rgba(7, 94, 66, 0.22);
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.masjid-support-nav-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 94, 66, 0.32);
}

.masjid-support-nav-button i {
    color: #f5d675;
}

.floating-masjid-support {
    position: fixed;
    right: 24px;
    bottom: 104px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px 9px 9px;
    border: 1px solid rgba(245, 214, 117, 0.8);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #064934, #087554);
    box-shadow: 0 12px 34px rgba(4, 48, 34, 0.38);
    text-decoration: none;
    animation: masjidFloatingMovement 3.2s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-masjid-support:hover {
    color: #fff;
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 17px 40px rgba(4, 48, 34, 0.48);
}

.floating-masjid-support-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    flex: 0 0 45px;
    border-radius: 50%;
    color: #184d37;
    background: linear-gradient(145deg, #fff0a7, #d9ad38);
    font-size: 20px;
}

.floating-masjid-support-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.floating-masjid-support-text small {
    margin-bottom: 3px;
    color: #f5d675;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.floating-masjid-support-text strong {
    color: #fff;
    font-size: 13px;
}

@keyframes masjidFloatingMovement {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@media (max-width: 1199.98px) {
    .masjid-support-nav-button {
        margin-top: 8px;
        margin-bottom: 8px;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .floating-masjid-support {
        right: 15px;
        bottom: 96px;
        padding: 7px;
    }

    .floating-masjid-support-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .floating-masjid-support-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-masjid-support {
        animation: none;
    }
}






.masjid-support-nav-button {
    position: relative;
    z-index: 1055;
    pointer-events: auto !important;
    cursor: pointer;
}

.floating-masjid-support {
    position: fixed;
    z-index: 1090 !important;
    pointer-events: auto !important;
    cursor: pointer;
}

.floating-masjid-support *,
.masjid-support-nav-button * {
    pointer-events: none;
}

.hero-flag-background,
.flag-stream,
.flag-track,
.hero-glow,
.hero-orbit {
    pointer-events: none;
}
















.marhaba-services-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px !important;
    border: 1px solid rgba(35, 213, 232, 0.35);
    border-radius: 999px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #07152c, #176bff);
    box-shadow: 0 9px 24px rgba(23, 107, 255, 0.2);
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marhaba-services-nav-button i {
    color: #f5c75b;
}

.marhaba-services-nav-button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(23, 107, 255, 0.3);
}

@media (max-width: 1199.98px) {
    .marhaba-services-nav-button {
        margin: 8px 0;
        justify-content: center;
    }
}




