/* ===== شهد الزهور — Direction A: midnight navy + caramel ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: #0b0e15;
    color: #f6efe4;
    -webkit-font-smoothing: antialiased;
}

.kha-dark {
    background-color: #10141d;
    background-image:
        radial-gradient(120% 55% at 80% 0%, #1d2a44 0%, #10141d 55%, #0b0e15 100%);
    min-height: 100vh;
    padding: 0 0 96px;
}

.kha-dark section,
.kha-topbar,
.kha-footer,
.kha-cartbar {
    max-width: 880px;
    margin-inline: auto;
}

.kha-dark section {
    padding: 30px 20px;
}

.kha-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(232, 132, 60, 0.25);
}

.kha-toplogo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #e8843c;
    object-fit: cover;
    background: #faf3e3;
}

.kha-topname {
    color: #f5a862;
    font-weight: 700;
    font-size: 17px;
}

.kha-toptag {
    margin-inline-start: auto;
    background: rgba(232, 132, 60, 0.14);
    color: #f5a862;
    border: 1px solid #e8843c;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
}

.kha-hero {
    text-align: center;
    padding-top: 30px;
}

.kha-eyebrow {
    display: inline-block;
    color: #f5a862;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.kha-mascot {
    display: block;
    width: 216px;
    height: 216px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid #e8843c;
    object-fit: cover;
    background: #faf3e3;
    box-shadow: 0 0 0 10px rgba(232, 132, 60, 0.12), 0 20px 44px rgba(0, 0, 0, 0.55);
}

.kha-headline {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fdf8ee;
}

.kha-gold {
    color: #f5a862;
}

.kha-sub {
    color: #a8b3c5;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto 16px;
    max-width: 34ch;
}

.kha-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232, 132, 60, 0.14);
    color: #f5a862;
    border: 1px solid #e8843c;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 18px;
    margin-bottom: 20px;
}

.kha-badge::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e8843c;
    color: #10141d;
    font-size: 11px;
    font-weight: 700;
}

.kha-ctarow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.kha-cta {
    display: inline-block;
    background: linear-gradient(160deg, #f5a862 0%, #e8843c 55%, #c96a24 100%);
    color: #1d1208;
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    padding: 14px 38px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(232, 132, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.kha-story {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kha-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #171d2a;
    border: 1px solid rgba(232, 132, 60, 0.3);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.kha-stepnum {
    font-size: 26px;
    font-weight: 800;
    color: #e8843c;
    line-height: 1;
}

.kha-steptitle {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-steptext {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #a8b3c5;
}

.kha-products {
    padding-bottom: 8px;
}

.kha-sectiontitle {
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fdf8ee;
}

.kha-swipehint {
    color: #a8b3c5;
    font-size: 12px;
    margin: 0 0 14px;
}

.kha-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
}

.kha-carousel::-webkit-scrollbar {
    display: none;
}

.kha-tile {
    position: relative;
    flex: 0 0 236px;
    height: 356px;
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(232, 132, 60, 0.35);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    background: #141a27;
}

.kha-tileimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kha-tilebadge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: #10141d;
    color: #f5a862;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(232, 132, 60, 0.5);
}

.kha-tileoverlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(11, 14, 21, 0.94) 0%, rgba(11, 14, 21, 0.55) 60%, transparent 100%);
}

.kha-tilename {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-tiledetail {
    margin: 0 0 10px;
    font-size: 12px;
    color: #a8b3c5;
}

.kha-tilerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kha-tileprice {
    font-weight: 700;
    font-size: 15px;
    color: #f5a862;
}

.kha-tileadd {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #e8843c;
    color: #1d1208;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.kha-tileadd:active {
    transform: scale(0.97);
}

.kha-tileadd-added {
    background: #4d9e5f;
    color: #f4fff6;
}

.kha-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(16, 20, 29, 0.85);
    border: 1px solid rgba(232, 132, 60, 0.5);
    border-radius: 999px;
    padding: 2px;
}

.kha-stepbtn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #f5a862;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
}

.kha-qty {
    min-width: 20px;
    text-align: center;
    color: #fdf8ee;
    font-size: 13px;
    font-weight: 800;
}

.kha-footer {
    padding: 26px 20px 20px;
    border-top: 1px solid rgba(232, 132, 60, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.kha-footerbadge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(232, 132, 60, 0.14);
    color: #f5a862;
    border: 1px solid #e8843c;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 16px;
}

.kha-footerbadge::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8843c;
    color: #10141d;
    font-size: 10px;
    font-weight: 700;
}

.kha-fine {
    color: #7f8aa0;
    font-size: 12px;
    margin: 0;
    line-height: 1.8;
}

.kha-cartbar {
    position: fixed;
    bottom: 14px;
    inset-inline: 0;
    padding: 0 16px;
    z-index: 50;
}

.kha-cartbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin-inline: auto;
    background: linear-gradient(160deg, #f5a862 0%, #e8843c 55%, #c96a24 100%);
    color: #1d1208;
    border-radius: 999px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.kha-cartbar-count {
    background: #10141d;
    color: #f5a862;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.kha-cartbar-total {
    margin-inline-start: auto;
    font-size: 14px;
}

.kha-cartbar-go {
    background: #10141d;
    color: #f5a862;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
}

/* ===== Empty state / loading ===== */

.kha-empty {
    background: #171d2a;
    border: 1px dashed rgba(232, 132, 60, 0.45);
    border-radius: 22px;
    padding: 34px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kha-emptyimg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8843c;
    background: #faf3e3;
}

.kha-emptytitle {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-emptytext {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #a8b3c5;
    max-width: 36ch;
}

.kha-tileimg-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #233046 0%, #141a27 75%);
}

.kha-tileimg-empty img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.95;
}

.kha-loading {
    text-align: center;
    color: #a8b3c5;
    font-size: 14px;
    padding: 40px 0;
}

.kha-flash {
    margin: 10px 0 0;
    color: #4d9e5f;
    font-size: 13px;
    font-weight: 700;
}

.kha-finlink {
    color: #f5a862;
    text-decoration: none;
    border-bottom: 1px dotted rgba(245, 168, 98, 0.6);
}

/* ===== Admin panel ===== */

.kha-admin {
    margin: 10px 20px 0;
    background: #141a27;
    border: 2px dashed rgba(232, 132, 60, 0.55);
    border-radius: 22px;
    padding: 22px 18px;
}

@media (min-width: 768px) {
    .kha-admin {
        max-width: 840px;
        margin-inline: auto;
        padding: 28px;
    }
}

.kha-admin-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.kha-admintitle {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fdf8ee;
}

.kha-adminpill {
    background: #e8843c;
    color: #1d1208;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 12px;
}

.kha-adminhint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
    color: #a8b3c5;
}

.kha-adminsub {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #f5a862;
}

.kha-adminempty {
    margin: 0;
    font-size: 13px;
    color: #a8b3c5;
}

.kha-adminrow {
    background: #10141d;
    border: 1px solid rgba(232, 132, 60, 0.25);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kha-adminrow-editing {
    flex-direction: column;
    align-items: stretch;
}

.kha-adminthumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1d2a44;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kha-adminthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kha-admininfo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.kha-adminname {
    font-size: 14px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-adminmeta {
    font-size: 12px;
    color: #a8b3c5;
}

.kha-adminbtns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.kha-adminbtns .kha-btn-ghost,
.kha-adminbtns .kha-btn-danger,
.kha-adminbtns .kha-btn-danger-ghost {
    padding: 8px 16px;
    font-size: 12px;
}

/* ===== Photo picker (admin) ===== */

.kha-photopick {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #10141d;
    border: 1px dashed rgba(232, 132, 60, 0.45);
    border-radius: 12px;
    padding: 12px;
}

.kha-photopick img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #1d2a44;
    flex-shrink: 0;
}

.kha-photoinfo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.kha-photonote {
    font-size: 12px;
    color: #a8b3c5;
    line-height: 1.6;
}

/* ===== Forms ===== */

.kha-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.kha-formrow {
    display: flex;
    gap: 10px;
}

.kha-formrow .kha-label {
    flex: 1;
}

.kha-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #f6efe4;
    min-width: 0;
}

.kha-input {
    background: #10141d;
    border: 1px solid rgba(232, 132, 60, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fdf8ee;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.kha-input:focus {
    border-color: #e8843c;
    box-shadow: 0 0 0 3px rgba(232, 132, 60, 0.18);
}

.kha-input::placeholder {
    color: #5d6880;
}

.kha-textarea {
    resize: vertical;
    min-height: 72px;
}

.kha-error {
    margin: 0;
    color: #ff9d8a;
    font-size: 12px;
    font-weight: 700;
}

.kha-formactions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.kha-btn-primary {
    background: linear-gradient(160deg, #f5a862 0%, #e8843c 55%, #c96a24 100%);
    color: #1d1208;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(232, 132, 60, 0.3);
}

.kha-btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.kha-btn-ghost {
    background: transparent;
    color: #f5a862;
    border: 1px solid rgba(232, 132, 60, 0.5);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.kha-btn-danger {
    background: #b3362b;
    color: #ffe9e4;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.kha-btn-danger-ghost {
    background: transparent;
    color: #ff9d8a;
    border: 1px solid rgba(255, 157, 138, 0.45);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

/* ===== Cart / checkout page ===== */

.kha-cartpage {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kha-back {
    margin-inline-start: auto;
    color: #f5a862;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(232, 132, 60, 0.5);
    border-radius: 999px;
    padding: 7px 14px;
}

.kha-cartlines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kha-cartline {
    background: #171d2a;
    border: 1px solid rgba(232, 132, 60, 0.3);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kha-cthumb {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1d2a44;
}

.kha-cthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kha-cmain {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.kha-ctitle {
    font-size: 15px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-cdetail {
    font-size: 12px;
    color: #a8b3c5;
}

.kha-cprice {
    font-size: 14px;
    font-weight: 800;
    color: #f5a862;
}

.kha-cside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kha-cremove {
    background: none;
    border: 0;
    color: #ff9d8a;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kha-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #171d2a;
    border: 1px solid rgba(232, 132, 60, 0.3);
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #fdf8ee;
}

.kha-summarytotal {
    font-size: 19px;
    color: #f5a862;
}

.kha-formcard {
    background: #171d2a;
    border: 1px solid rgba(232, 132, 60, 0.3);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kha-formtitle {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fdf8ee;
}

.kha-whatsapp {
    display: block;
    text-align: center;
    background: linear-gradient(160deg, #f5a862 0%, #e8843c 55%, #c96a24 100%);
    color: #1d1208;
    font-weight: 800;
    font-size: 17px;
    border-radius: 999px;
    padding: 16px 24px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(232, 132, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.kha-whatsapp-off {
    opacity: 0.55;
}

.kha-wanote {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #a8b3c5;
    text-align: center;
}

.kha-clearcart {
    align-self: center;
}

/* ===== Login page (admin) ===== */

.kha-login {
    max-width: 420px;
    margin: 60px auto 0;
    background: #171d2a;
    border: 1px solid rgba(232, 132, 60, 0.3);
    border-radius: 22px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.kha-login img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid #e8843c;
    object-fit: cover;
    background: #faf3e3;
    margin: 0 auto;
}

.kha-logintitle {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fdf8ee;
}

.kha-loginsub {
    margin: 0;
    font-size: 13px;
    color: #a8b3c5;
    line-height: 1.8;
}

/* ===== Responsive ===== */

@media (min-width: 768px) {
    .kha-dark section {
        padding-inline: 32px;
    }

    .kha-topbar,
    .kha-footer {
        padding-inline: 32px;
    }

    .kha-headline {
        font-size: 46px;
    }

    .kha-sub {
        font-size: 17px;
    }

    .kha-mascot {
        width: 260px;
        height: 260px;
    }

    .kha-story {
        flex-direction: row;
        align-items: stretch;
    }

    .kha-step {
        flex: 1;
    }

    .kha-tile {
        flex-basis: 264px;
        height: 384px;
    }

    .kha-cartpage {
        max-width: 640px;
        margin-inline: auto;
        width: 100%;
    }

    .kha-carousel {
        margin-inline: -32px;
        padding-inline: 32px;
    }
}

/* wordmark: single caramel color, El Messiri display font, blossom over the zay dot */
.kha-headline {
    font-family: 'El Messiri', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 700;
    color: #f5a862;
    letter-spacing: 0;
}
.kha-topname {
    font-family: 'El Messiri', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
.kha-zuhur { position: relative; }
.kha-bloom {
    position: absolute;
    inset-inline-start: 31%;
    top: -0.06em;
    width: 0.38em;
    height: 0.38em;
    color: #f5a862;
    pointer-events: none;
}
.kha-bloom svg { width: 100%; height: 100%; display: block; }
.kha-topname .kha-bloom { width: 0.42em; height: 0.42em; top: -0.12em; inset-inline-start: 30%; }
