﻿/* =========================================================
   GEDIAN SPORTS - INDEX STORE / OFFERS
   Web adaptation of the Gedian mobile-store visual system
   ========================================================= */

.gs-store {
    --store-green: #5B8C3B;
    --store-green-dark: #466f2d;
    --store-green-soft: #edf5e8;
    --store-navy: #111827;
    --store-text: #475569;
    --store-muted: #8b96a4;
    --store-border: #e2e7df;
    --store-red: #e92929;
    padding: 26px 24px 28px;
    overflow: hidden;
    border: 1px solid #dde5d9;
    border-radius: 28px;
    background: #fff;
    color: var(--store-text);
    font-family: "Tajawal","Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
    box-shadow: 0 13px 34px rgba(35,58,27,.055), inset 0 1px 0 rgba(255,255,255,.95);
}

/* =========================================================
   Header
   ========================================================= */

.gs-store-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.gs-store-head-copy {
    min-width: 0;
}

.gs-store-eyebrow {
    display: none;
}

.gs-store-head h2 {
    margin: 0;
    color: var(--store-navy);
    font-size: clamp(1.55rem,1.3rem + .65vw,2.05rem);
    font-weight: 900;
    line-height: 1.2;
}

.gs-store-head-copy > strong {
    display: block;
    margin-top: 5px;
    color: var(--store-green);
    font-size: 1rem;
    font-weight: 900;
}

.gs-store-head-copy > p {
    margin: 2px 0 0;
    color: #8b909a;
    font-size: .84rem;
}

.gs-store-count {
    flex: 0 0 auto;
    min-width: 74px;
    padding: 8px 10px;
    display: grid;
    place-items: center;
    border: 1px solid #dae5d4;
    border-radius: 14px;
    background: var(--store-green-soft);
    text-align: center;
}

    .gs-store-count span {
        color: #73806f;
        font-size: .66rem;
    }

    .gs-store-count b {
        margin-top: 1px;
        color: var(--store-green-dark);
        font-family: Arial,"Tajawal",sans-serif;
        font-size: 1.03rem;
        font-weight: 900;
    }

/* =========================================================
   Categories
   ========================================================= */

.gs-store-category-scroll {
    margin-top: 21px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .gs-store-category-scroll::-webkit-scrollbar {
        display: none;
    }

.gs-store-categories {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-store-category {
    min-width: 95px;
    min-height: 43px;
    padding: 8px 17px;
    border: 1px solid #dfe3e4;
    border-radius: 999px;
    background: #fff;
    color: #526071;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15,23,42,.02);
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

    .gs-store-category:hover {
        border-color: #cbd9c4;
        background: #f8faf7;
        color: var(--store-green-dark);
        transform: translateY(-1px);
    }

    .gs-store-category.is-active {
        border-color: var(--store-green);
        background: var(--store-green);
        color: #fff;
        box-shadow: 0 7px 15px rgba(91,140,59,.18);
    }

/* =========================================================
   Store states
   ========================================================= */

.gs-store-state {
    min-height: 170px;
    margin-top: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #d8e2d4;
    border-radius: 18px;
    background: #fafcf9;
    text-align: right;
}

    .gs-store-state.is-error {
        border-style: solid;
        border-color: #efd1cc;
        background: #fff8f7;
    }

.gs-store-state-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--store-green-soft);
    color: var(--store-green-dark);
    font-size: 1.15rem;
    font-weight: 900;
}

.gs-store-state.is-error .gs-store-state-icon {
    background: #fee9e6;
    color: #ad4438;
}

.gs-store-state strong {
    display: block;
    color: var(--store-navy);
    font-size: .92rem;
}

.gs-store-state p {
    margin: 3px 0 0;
    color: var(--store-muted);
    font-size: .77rem;
}

/* =========================================================
   Two-column product feed
   ========================================================= */

.gs-store-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.gs-store-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe3e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15,23,42,.035), 0 1px 3px rgba(15,23,42,.02);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .gs-store-card:hover {
        border-color: rgba(91,140,59,.44);
        box-shadow: 0 16px 30px rgba(42,69,30,.11), 0 4px 9px rgba(15,23,42,.045);
        transform: translateY(-3px);
    }

    .gs-store-card[hidden] {
        display: none !important;
    }

.gs-store-card-link {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

    .gs-store-card-link:hover {
        color: inherit;
    }

/* =========================================================
   Product media
   ========================================================= */

.gs-store-media {
    position: relative;
    aspect-ratio: 1.13 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.88),transparent 46%), #eef5ea;
}

.gs-store-card:nth-child(4n + 1) .gs-store-media {
    background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.9),transparent 45%), #eef6ea;
}

.gs-store-card:nth-child(4n + 2) .gs-store-media {
    background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.9),transparent 45%), #edf4fb;
}

.gs-store-card:nth-child(4n + 3) .gs-store-media {
    background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.92),transparent 45%), #f6f0ff;
}

.gs-store-card:nth-child(4n + 4) .gs-store-media {
    background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.9),transparent 45%), #fff5e8;
}

.gs-store-product-image {
    width: 100%;
    height: 100%;
    padding: 13px;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform .2s ease;
}

.gs-store-card:hover .gs-store-product-image {
    transform: scale(1.025);
}

.gs-store-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    color: rgba(70,111,45,.52);
}

    .gs-store-media-placeholder > span {
        width: 70px;
        height: 70px;
        display: grid;
        place-items: center;
        border: 2px solid rgba(91,140,59,.18);
        border-radius: 22px;
        background: rgba(255,255,255,.5);
        font-size: 1.9rem;
        font-weight: 900;
    }

    .gs-store-media-placeholder small {
        margin-top: 5px;
        font-family: Arial,sans-serif;
        font-size: .55rem;
        font-weight: 900;
        letter-spacing: .08em;
    }

.gs-store-category-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    min-height: 31px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #536071;
    font-size: .7rem;
    font-weight: 900;
    backdrop-filter: blur(7px);
    box-shadow: 0 5px 11px rgba(15,23,42,.05);
}

.gs-store-offer-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    min-height: 32px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    box-shadow: 0 6px 13px rgba(15,23,42,.10);
}

    .gs-store-offer-badge.is-special-offer {
        background: #e7292a;
    }

    .gs-store-offer-badge.is-special {
        background: #7c3aed;
    }

.gs-store-second-image {
    position: absolute;
    left: 11px;
    bottom: 10px;
    width: 46px;
    height: 46px;
    padding: 2px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.95);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 15px rgba(15,23,42,.12);
}

    .gs-store-second-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

/* =========================================================
   Product body
   ========================================================= */

.gs-store-body {
    flex: 1;
    padding: 14px 15px 13px;
    display: flex;
    flex-direction: column;
}

    .gs-store-body h3 {
        min-height: 2.9em;
        margin: 0;
        display: -webkit-box;
        overflow: hidden;
        color: var(--store-navy);
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.gs-store-product-context {
    min-width: 0;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #848d99;
    font-size: .7rem;
}

    .gs-store-product-context span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .gs-store-product-context span:first-child {
            max-width: 58%;
        }

    .gs-store-product-context i {
        color: #c0c6cc;
        font-style: normal;
    }

.gs-store-price-row {
    min-height: 43px;
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gs-store-price {
    color: var(--store-green);
    font-family: "Tajawal",Arial,sans-serif;
    font-size: 1.17rem;
    font-weight: 900;
}

.gs-store-price-note {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 6px;
    background: #fff1ef;
    color: #b94a40;
    font-size: .62rem;
    font-weight: 900;
}

.gs-store-info-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
}

.gs-store-info-item {
    min-width: 0;
    min-height: 51px;
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ebeeea;
    border-radius: 10px;
    background: #fafbf9;
}

.gs-store-info-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--store-green-soft);
    color: var(--store-green-dark);
    font-size: .77rem;
    font-weight: 900;
}

    .gs-store-info-icon.is-contact {
        background: #eaf7ef;
        color: #27844b;
    }

.gs-store-info-item > div {
    min-width: 0;
}

.gs-store-info-item small,
.gs-store-info-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-store-info-item small {
    color: #9aa2aa;
    font-size: .58rem;
}

.gs-store-info-item strong {
    margin-top: 1px;
    color: #667168;
    font-size: .67rem;
    font-weight: 800;
}

.gs-store-card-footer {
    min-height: 36px;
    margin-top: 10px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border-top: 1px solid #ecefeb;
}

    .gs-store-card-footer > span {
        min-width: 0;
        overflow: hidden;
        color: #59677a;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: Arial,"Tajawal",sans-serif;
        font-size: .67rem;
        font-weight: 900;
    }

    .gs-store-card-footer > strong {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--store-green-dark);
        font-size: .68rem;
        font-weight: 900;
    }

    .gs-store-card-footer i {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        background: var(--store-green-soft);
        font-style: normal;
        transition: transform .16s ease, background .16s ease, color .16s ease;
    }

.gs-store-card:hover .gs-store-card-footer i {
    transform: translateX(-2px);
    background: var(--store-green);
    color: #fff;
}

/* =========================================================
   Filter empty state
   ========================================================= */

.gs-store-filter-empty {
    min-height: 170px;
    margin-top: 18px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border: 1px dashed #d9e3d5;
    border-radius: 17px;
    background: #fafcf9;
}

    .gs-store-filter-empty[hidden] {
        display: none !important;
    }

    .gs-store-filter-empty > span {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--store-green-soft);
        color: var(--store-green-dark);
        font-size: 1.15rem;
    }

    .gs-store-filter-empty strong {
        margin-top: 8px;
        color: var(--store-navy);
        font-size: .9rem;
    }

    .gs-store-filter-empty p {
        margin: 3px 0 0;
        color: var(--store-muted);
        font-size: .72rem;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .gs-store {
        padding-inline: 18px;
    }

    .gs-store-category {
        min-width: 88px;
    }
}

@media (max-width: 767.98px) {
    .gs-store {
        padding: 22px 14px 24px;
        border-radius: 22px;
    }

    .gs-store-head h2 {
        font-size: 1.55rem;
    }

    .gs-store-head-copy > strong {
        font-size: .92rem;
    }

    .gs-store-category-scroll {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .gs-store-grid {
        gap: 10px;
    }

    .gs-store-body {
        padding: 11px;
    }

        .gs-store-body h3 {
            font-size: .88rem;
        }

    .gs-store-price {
        font-size: 1.02rem;
    }

    .gs-store-info-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .gs-store-head {
        gap: 10px;
    }

    .gs-store-count {
        min-width: 64px;
    }

    .gs-store-category {
        min-width: 82px;
        min-height: 40px;
        padding-inline: 13px;
        font-size: .76rem;
    }

    .gs-store-grid {
        gap: 8px;
    }

    .gs-store-media {
        aspect-ratio: 1 / 1;
    }

    .gs-store-product-image {
        padding: 8px;
    }

    .gs-store-category-badge,
    .gs-store-offer-badge {
        top: 8px;
        min-height: 27px;
        padding: 4px 7px;
        font-size: .61rem;
    }

    .gs-store-category-badge {
        right: 8px;
    }

    .gs-store-offer-badge {
        left: 8px;
    }

    .gs-store-second-image {
        left: 8px;
        bottom: 8px;
        width: 38px;
        height: 38px;
    }

    .gs-store-body {
        padding: 9px;
    }

        .gs-store-body h3 {
            min-height: 2.75em;
            font-size: .78rem;
            line-height: 1.38;
        }

    .gs-store-product-context {
        margin-top: 4px;
        font-size: .6rem;
    }

    .gs-store-price-row {
        min-height: 34px;
        margin-top: 6px;
    }

    .gs-store-price {
        font-size: .9rem;
    }

    .gs-store-price-note {
        display: none;
    }

    .gs-store-info-row {
        display: none;
    }

    .gs-store-card-footer {
        min-height: 31px;
        margin-top: 6px;
        padding-top: 6px;
    }

        .gs-store-card-footer > span {
            font-size: .58rem;
        }

        .gs-store-card-footer > strong {
            font-size: .6rem;
        }

        .gs-store-card-footer i {
            width: 21px;
            height: 21px;
        }
}

@media (max-width: 390px) {
    .gs-store-grid {
        grid-template-columns: 1fr;
    }

    .gs-store-media {
        aspect-ratio: 16 / 11;
    }

    .gs-store-info-row {
        display: grid;
    }
}
