/* =========================================================
GEDIAN SPORTS - INDEX STORE / OFFERS
Compact two-card store + icon-only categories
========================================================= */
.gs-store {
--store-green: #5B8C3B;
--store-green-dark: #466f2d;
--store-green-soft: #edf5e8;
--store-navy: #17283b;
--store-text: #334155;
--store-muted: #7b867f;
--store-border: #e1e7df;
width: 100%;
padding: 10px;
border: 1px solid var(--store-border);
border-radius: 18px;
background: #fff;
color: var(--store-text);
font-family: "Tajawal","Segoe UI",Tahoma,Arial,sans-serif;
}
.gs-store * {
box-sizing: border-box;
}
/* Header restored to compact layout */
.gs-store-head {
min-height: 52px;
padding: 2px 4px 7px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
border-bottom: 1px solid #edf1eb;
}
.gs-store-head h2 {
margin: 0;
color: var(--store-navy);
font-size: 1.14rem;
font-weight: 900;
line-height: 1.25;
}
.gs-store-head p {
margin: 3px 0 0;
color: var(--store-green);
font-size: .67rem;
font-weight: 800;
}
.gs-store-count {
flex: 0 0 34px;
width: 34px;
height: 34px;
display: grid;
place-items: center;
border: 1px solid #d7e4d0;
border-radius: 10px;
background: var(--store-green-soft);
color: var(--store-green-dark);
font-family: Arial,"Tajawal",sans-serif;
font-size: .73rem;
font-weight: 900;
}
/* Icon-only category rail */
.gs-store-category-rail {
margin: 7px 0 9px;
padding: 4px 5px;
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
overflow-x: auto;
border: 1px solid #edf0eb;
border-radius: 12px;
background: #fafcf9;
scrollbar-width: none;
}
.gs-store-category-rail::-webkit-scrollbar {
display: none;
}
.gs-store-category {
flex: 0 0 38px;
width: 38px;
height: 38px;
padding: 7px;
display: grid;
place-items: center;
border: 1px solid #dfe6dc;
border-radius: 10px;
background: #fff;
color: var(--store-green-dark);
cursor: pointer;
box-shadow: 0 2px 6px rgba(15,23,42,.025);
transition: .15s ease;
}
.gs-store-category:hover {
border-color: #c9dbc0;
background: #f4f9f1;
transform: translateY(-1px);
}
.gs-store-category.is-active {
border-color: var(--store-green);
background: var(--store-green);
box-shadow: 0 5px 12px rgba(91,140,59,.18);
}
.gs-store-category > img,
.gs-store-category img {
width: 22px !important;
height: 22px !important;
min-width: 22px !important;
min-height: 22px !important;
max-width: 22px !important;
max-height: 22px !important;
display: block !important;
object-fit: contain !important;
}
.gs-store-category.is-active > img {
filter: brightness(0) invert(1);
}
/* One visible two-card row; more products scroll inside the tab */
.gs-store-feed-scroll {
width: 100%;
max-height: 505px;
overflow-y: auto;
overflow-x: hidden;
padding: 1px 3px 5px;
scrollbar-width: thin;
scrollbar-color: #b9cbb0 #f0f4ee;
}
.gs-store-feed-scroll::-webkit-scrollbar {
width: 7px;
}
.gs-store-feed-scroll::-webkit-scrollbar-track {
background: #f0f4ee;
border-radius: 999px;
}
.gs-store-feed-scroll::-webkit-scrollbar-thumb {
background: #b9cbb0;
border-radius: 999px;
}
.gs-store-grid {
display: grid;
grid-template-columns: repeat(2,minmax(0,1fr));
gap: 11px;
}
.gs-store-card {
min-width: 0;
overflow: hidden;
border: 1px solid #dfe6dc;
border-radius: 15px;
background: #fff;
box-shadow: 0 6px 18px rgba(15,23,42,.045);
transition: .16s ease;
}
.gs-store-card:hover {
border-color: #cadbc2;
box-shadow: 0 12px 25px rgba(48,78,34,.09);
transform: translateY(-2px);
}
.gs-store-card[hidden] {
display: none !important;
}
/* Product media */
.gs-store-media {
position: relative;
height: 292px;
overflow: hidden;
background: #f5f8f3;
}
.gs-store-media-link,
.gs-store-slides {
width: 100%;
height: 100%;
display: block;
}
.gs-store-slides {
position: relative;
}
.gs-store-product-image,
.gs-store-media-placeholder {
position: absolute;
inset: 0;
width: 100% !important;
height: 100% !important;
max-width: 100% !important;
max-height: 100% !important;
opacity: 0;
pointer-events: none;
transition: opacity .18s ease;
}
.gs-store-product-image {
display: block !important;
padding: 4px;
object-fit: contain !important;
object-position: center center;
background: #fff;
}
.gs-store-product-image.is-active,
.gs-store-media-placeholder.is-active {
opacity: 1;
pointer-events: auto;
}
.gs-store-media-placeholder {
display: grid;
place-items: center;
background: linear-gradient(145deg,#eef5ea,#f9fbf8);
color: #96a292;
}
.gs-store-media-placeholder svg {
width: 52px !important;
height: 52px !important;
max-width: 52px !important;
max-height: 52px !important;
}
/* Small icon category marker over image — no visible category words */
.gs-store-category-badge {
position: absolute;
right: 9px;
top: 9px;
z-index: 8;
width: 32px;
height: 32px;
padding: 5px;
display: grid;
place-items: center;
border: 1px solid rgba(255,255,255,.9);
border-radius: 9px;
background: rgba(255,255,255,.94);
box-shadow: 0 4px 10px rgba(15,23,42,.09);
}
.gs-store-category-badge img {
width: 20px !important;
height: 20px !important;
min-width: 20px !important;
min-height: 20px !important;
max-width: 20px !important;
max-height: 20px !important;
display: block !important;
object-fit: contain !important;
}
.gs-store-offer-badge {
position: absolute;
left: 9px;
top: 9px;
z-index: 8;
min-height: 27px;
padding: 4px 8px;
display: inline-flex;
align-items: center;
border-radius: 999px;
color: #fff;
font-size: .62rem;
font-weight: 900;
box-shadow: 0 4px 10px rgba(15,23,42,.10);
}
.gs-store-offer-badge.is-special-offer {
background: #dc352d;
}
.gs-store-offer-badge.is-special {
background: #7847df;
}
/* Carousel controls */
.gs-store-gallery-arrow {
position: absolute;
top: 50%;
z-index: 10;
width: 30px;
height: 30px;
margin-top: -15px;
padding: 0;
display: grid;
place-items: center;
border: 1px solid rgba(255,255,255,.9);
border-radius: 50%;
background: rgba(30,46,34,.64);
color: #fff;
font-family: Arial,sans-serif;
font-size: 1.2rem;
line-height: 1;
cursor: pointer;
backdrop-filter: blur(4px);
}
.gs-store-gallery-arrow:hover {
background: var(--store-green);
}
.gs-store-gallery-arrow.is-prev {
right: 8px;
}
.gs-store-gallery-arrow.is-next {
left: 8px;
}
.gs-store-gallery-dots {
position: absolute;
left: 50%;
bottom: 8px;
z-index: 10;
display: flex;
align-items: center;
gap: 4px;
transform: translateX(-50%);
}
.gs-store-gallery-dot {
width: 6px;
height: 6px;
padding: 0;
border: 0;
border-radius: 50%;
background: rgba(28,44,32,.35);
cursor: pointer;
}
.gs-store-gallery-dot.is-active {
width: 16px;
border-radius: 999px;
background: var(--store-green);
}
/* Compact text area */
.gs-store-body {
padding: 9px 10px 10px;
}
.gs-store-title-link {
color: inherit;
text-decoration: none;
}
.gs-store-body h3 {
min-height: 36px;
margin: 0;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
color: var(--store-navy);
font-size: .83rem;
font-weight: 900;
line-height: 1.42;
}
.gs-store-price-row {
min-height: 30px;
margin-top: 4px;
display: flex;
align-items: center;
}
.gs-store-price {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 5px;
color: var(--store-green);
font-size: .97rem;
font-weight: 900;
}
.gs-store-price > span {
font-family: Arial,"Tajawal",sans-serif;
font-size: 1rem;
}
.gs-store-price > small {
color: var(--store-green-dark);
font-size: .64rem;
font-weight: 900;
}
.gs-store-meta-row {
margin-top: 5px;
display: grid;
grid-template-columns: minmax(0,1fr) auto;
align-items: center;
gap: 7px;
color: #7e8981;
}
.gs-store-meta-item {
min-width: 0;
display: flex;
align-items: center;
gap: 5px;
font-size: .61rem;
}
.gs-store-meta-item > span:last-child {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* All utility icons use the same small phone-icon scale */
.gs-store-small-icon {
flex: 0 0 22px;
width: 22px !important;
height: 22px !important;
min-width: 22px !important;
min-height: 22px !important;
max-width: 22px !important;
max-height: 22px !important;
padding: 3px;
display: grid;
place-items: center;
overflow: hidden;
border-radius: 7px;
background: #f0f5ed;
color: var(--store-green-dark);
}
.gs-store-small-icon svg,
.gs-store-small-icon img {
width: 16px !important;
height: 16px !important;
min-width: 16px !important;
min-height: 16px !important;
max-width: 16px !important;
max-height: 16px !important;
display: block !important;
object-fit: contain !important;
}
.gs-store-small-icon.is-whatsapp {
background: #eaf8ee;
}
.gs-store-contact-row {
min-height: 39px;
margin-top: 7px;
padding-top: 7px;
display: grid;
grid-template-columns: 22px minmax(0,1fr) auto;
align-items: center;
gap: 7px;
border-top: 1px solid #edf0ec;
}
.gs-store-contact-copy {
min-width: 0;
}
.gs-store-contact-copy small,
.gs-store-contact-copy strong {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.gs-store-contact-copy small {
color: #929c95;
font-size: .55rem;
}
.gs-store-contact-copy strong {
margin-top: 1px;
color: #526058;
font-size: .63rem;
}
.gs-store-details-button {
min-height: 28px;
padding: 4px 7px;
display: inline-flex;
align-items: center;
gap: 4px;
border: 1px solid #d6e2d0;
border-radius: 8px;
background: var(--store-green-soft);
color: var(--store-green-dark);
text-decoration: none;
font-size: .59rem;
font-weight: 900;
}
.gs-store-details-button:hover {
border-color: var(--store-green);
background: var(--store-green);
color: #fff;
}
.gs-store-state,
.gs-store-filter-empty {
min-height: 150px;
padding: 20px;
display: grid;
place-items: center;
align-content: center;
text-align: center;
}
.gs-store-state strong,
.gs-store-filter-empty strong {
color: var(--store-navy);
font-size: .82rem;
}
.gs-store-state span {
margin-top: 3px;
color: var(--store-muted);
font-size: .68rem;
}
.gs-store-filter-empty[hidden] {
display: none !important;
}
@media (max-width: 767.98px) {
.gs-store {
padding: 7px;
border-radius: 14px;
}
.gs-store-media {
height: 235px;
}
.gs-store-feed-scroll {
max-height: 430px;
}
.gs-store-grid {
gap: 7px;
}
.gs-store-category {
flex-basis: 35px;
width: 35px;
height: 35px;
padding: 6px;
}
.gs-store-category > img,
.gs-store-category img {
width: 20px !important;
height: 20px !important;
min-width: 20px !important;
min-height: 20px !important;
max-width: 20px !important;
max-height: 20px !important;
}
}
@media (max-width: 430px) {
.gs-store-grid {
grid-template-columns: 1fr;
}
.gs-store-media {
height: 265px;
}
.gs-store-feed-scroll {
max-height: 520px;
}
}