:root {
    --rukn-orange: #ff7a18;
    --rukn-orange-light: #fdba74;
    --rukn-green: #16a34a;
    --rukn-gray: #f3f4f6;
    --muted: #6b7280;
}

body {
    font-family: "Cairo",sans-serif;
    background: #F1F1F1;
    color: #111827;
}

.container-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15,23,42,.12);
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

    .container-box::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 4px;
        background: linear-gradient(90deg,var(--rukn-orange),var(--rukn-orange-light));
        opacity: .95;
    }

.no-top-bar::before {
    display: none !important;
}

.container-box.no-top-bar {
    overflow: visible;
}

.soft-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.btn-orange {
    background: var(--rukn-orange);
    color: #fff;
}

    .btn-orange:hover {
        background: #e56a00;
    }

/* Ads cards */
.ad-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #fed7aa;
    transition: .25s;
}

    .ad-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(15,23,42,.12);
    }

.badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Fav heart (ads) */
.ad-fav-btn .heart-filled {
    display: none;
}

.ad-fav-btn.is-active .heart-outline {
    display: none;
}

.ad-fav-btn.is-active .heart-filled {
    display: block;
}

.ad-fav-btn:hover .heart-outline {
    transform: scale(1.15);
    transition: transform .2s ease, filter .2s ease;
    filter: drop-shadow(0 0 3px rgba(255,122,24,.4));
}

.ad-fav-btn:hover.is-active .heart-filled {
    transform: scale(1.15);
    transition: transform .2s ease, filter .2s ease;
    filter: drop-shadow(0 0 4px rgba(255,122,24,.5));
}

.ad-fav-btn.is-active .heart-filled {
    animation: favPulse .25s ease-out;
}

@keyframes favPulse {
    0% {
        transform: scale(.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.heart-outline, .heart-filled {
    transform-origin: center;
}

.ad-hint {
    opacity: 0;
    transform: translateX(6px);
    transition: .2s ease;
}

.ad-card:hover .ad-hint {
    opacity: 1;
    transform: translateX(0);
}

@keyframes ruknNudgeLeft {
    0%,100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-6px);
    }
}

.ad-hint-arrow {
    display: inline-flex;
    transition: transform .2s ease,color .2s ease;
}

.group:hover .ad-hint-arrow {
    animation: ruknNudgeLeft .65s ease-in-out infinite;
}

/* Stars input (user review) */
.star {
    width: 38px;
    height: 38px;
    cursor: pointer;
    fill: #e5e7eb;
    transition: .2s;
}

    .star.active {
        fill: #ff7a00;
    }

    .star:hover {
        transform: scale(1.08);
    }

/* SVG Stars (overall + list) */
.stars-row {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.star-svg {
    display: block
}

/* Popup */
.popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 99999;
}

.popup-box {
    width: min(560px,100%);
    background: #fff;
    border-radius: 22px;
    border: 1px solid #eee;
    box-shadow: 0 20px 60px rgba(15,23,42,.25);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

    .popup-box::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 4px;
        background: linear-gradient(90deg,var(--rukn-orange),var(--rukn-orange-light));
    }

.popup-label {
    font-size: 12px;
    font-weight: 900;
    color: #374151;
}

.popup-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.meta-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* Pagination */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 800;
    font-size: 12px;
    color: #111827;
    transition: .15s;
}

    .page-btn:hover {
        border-color: #fdba74;
        background: #fff7ed;
    }

    .page-btn[disabled] {
        opacity: .45;
        cursor: not-allowed;
    }

    .page-btn.active {
        border-color: rgba(255,122,24,.35);
        background: rgba(255,122,24,.10);
        color: var(--rukn-orange);
    }

/* Tabs */
.tab-btn {
    position: relative;
    color: #6b7280;
    font-weight: 800;
    transition: color .2s ease;
}

    .tab-btn::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        height: 3px;
        background: var(--rukn-orange);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .25s ease;
        border-radius: 3px;
    }

    .tab-btn:hover {
        color: var(--rukn-orange);
    }

        .tab-btn:hover::after {
            transform: scaleX(.6);
        }

    .tab-btn.is-active {
        color: var(--rukn-orange);
    }

        .tab-btn.is-active::after {
            transform: scaleX(1);
        }

/* Social pills */
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    color: #374151;
    white-space: nowrap;
    transition: .15s;
}

    .social-pill:hover {
        background: #fff7ed;
        border-color: #fed7aa;
        color: var(--rukn-orange);
        transform: translateY(-1px);
    }

.social-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--rukn-orange);
}

/* Simple “before purchase” bar */
.purchase-mini {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

    .purchase-mini .row {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 0;
        border-top: 1px solid #e5e7eb;
    }

    .purchase-mini .item {
        padding: 14px 14px;
        text-align: right;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        background: linear-gradient(180deg,#fff,#fff);
    }

        .purchase-mini .item + .item {
            border-right: 1px solid #e5e7eb;
        }

    .purchase-mini .ico {
        width: 36px;
        height: 36px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: var(--rukn-orange);
        flex: 0 0 auto;
    }

    .purchase-mini .t {
        font-size: 12px;
        font-weight: 900;
        color: #111827;
        line-height: 1.2;
    }

    .purchase-mini .d {
        font-size: 11px;
        color: #6b7280;
        margin-top: 4px;
        line-height: 1.4;
    }

@media(max-width:640px) {
    .purchase-mini .row {
        grid-template-columns: 1fr;
    }

    .purchase-mini .item + .item {
        border-right: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* =====================================================================
   Store header layout (2026-09-26)
   - Quick actions (follow / share / report) as pills on the cover, far left
   - Contact card = sidebar column, pulled up to overlap the cover (desktop)
   Plain CSS on purpose: arbitrary Tailwind classes aren't in the compiled
   build, and lg:grid-cols-[minmax(0,1fr),360px] compiles to invalid CSS.
   ===================================================================== */

/* ---- Quick-action pills on the cover ---- */
.sp-cover-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.sp-action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    padding: 0 6px;
    border-width: 1px;
    border-style: solid;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    box-shadow: 0 6px 18px rgba(15,23,42,.14);
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.sp-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color .15s, color .15s;
}

    .sp-action-icon svg {
        width: 17px;
        height: 17px;
    }

/* mobile: icon-only; label from sm up */
.sp-action-label {
    display: none;
    white-space: nowrap;
}

.sp-action-pill--follow:hover { border-color: #fdba74; background-color: #fff7ed; color: #c2410c; }
.sp-action-pill--follow:hover .sp-action-icon { color: var(--rukn-orange); }
.sp-action-pill--share:hover { border-color: #7dd3fc; background-color: #f0f9ff; color: #0369a1; }
.sp-action-pill--share:hover .sp-action-icon { color: #0284c7; }
.sp-action-pill--report:hover { border-color: #fda4af; background-color: #fff1f2; color: #be123c; }
.sp-action-pill--report:hover .sp-action-icon { color: #e11d48; }

@media (min-width: 640px) {
    .sp-cover-actions {
        top: 20px;
        left: 20px;
        gap: 12px;
    }

    .sp-action-pill {
        height: 48px;
        min-width: 140px;
        padding: 0 20px;
        font-size: 15px;
        border-radius: 16px;
    }

    .sp-action-label {
        display: inline;
    }
}

/* ---- Message warning inside the contact card ---- */
.sp-msg-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.7;
}

    .sp-msg-warning svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

/* ---- Cover: same 4:1 shape as the recommended 1600×400 image, so a cover
   of that size fills the whole area at every screen width (24.5) ---- */
#heroParallax {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 1;
    min-height: 110px;
}

/* ---- Desktop layout: contact card inside the header (left), tabs full width below ---- */
@media (min-width: 1024px) {
    .sp-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* header and card share row 1; the header stretches to contain the card */
    .sp-hero {
        grid-column: 1;
        grid-row: 1;
    }

    .sp-aside {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;      /* RTL → left side */
        align-self: start;
        width: 360px;
        margin-top: 200px;      /* cover is 280px → card overlaps its lower 80px */
        margin-left: 24px;
        margin-bottom: 24px;
        z-index: 5;
    }

    .sp-content {
        grid-column: 1;
        grid-row: 2;
    }

    /* keep store info clear of the card (24px inset + 360px card + breathing room) */
    .sp-hero-lower {
        padding-left: calc(360px + 24px + 1.5rem);
    }

    .sp-stats {
        max-width: 640px;
    }
}

/* ---- Store cover (24.5): always fill the full height, width follows the
   image's proportions, centred. Side gaps are filled by a blurred copy. ---- */
.sp-cover-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.15);
    opacity: .75;
}

.sp-cover-img {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translateX(-50%);
}
