/* =====================================================================
   Storefront — home + products (clean minimal shop theme)
   مستقل عن style.css حتى لا تتأثر صفحة المنتج الحالية.
   ===================================================================== */
:root {
    --st-ink: #121212;
    --st-body: #4a4a4a;
    --st-muted: #767676;
    --st-line: #e3e3e3;
    --st-line-2: #f0f0f0;
    --st-bg: #ffffff;
    --st-soft: #f6f5f3;
    --st-price: #008000;
    --st-sale: #b3202c;
    --st-max: 1300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--st-ink);
    background: var(--st-bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.st-wrap { max-width: var(--st-max); margin: 0 auto; padding: 0 24px; }

/* ===== Announcement bar (marquee) ===== */
.st-ann {
    background: var(--marquee-bg, var(--st-soft));
    border-bottom: 1px solid var(--st-line-2);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--marquee-fg, var(--st-ink));
    overflow: hidden;
    height: 52px;
    display: flex;
    align-items: center;
}
/* المسار يحتوي نسختين من المحتوى ليصبح الدوران متصلًا بلا قفزة */
.st-ann__track {
    display: flex;
    width: max-content;
    flex: 0 0 auto;
    animation: st-marquee 28s linear infinite;
}
.st-ann:hover .st-ann__track { animation-play-state: paused; }
.st-ann__group { display: flex; flex: 0 0 auto; }
.st-ann__group span {
    white-space: nowrap;
    padding: 0 26px;
    position: relative;
}
/* فاصل نقطي بين العبارات */
.st-ann__group span::after {
    content: "";
    position: absolute; inset-inline-end: -4px; top: 50%;
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor; opacity: .3; transform: translateY(-50%);
}
@keyframes st-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
[dir="rtl"] .st-ann__track { animation-name: st-marquee-rtl; }
@keyframes st-marquee-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
    .st-ann__track { animation: none; }
}
@media (max-width: 720px) {
    .st-ann { font-size: 15px; height: 44px; }
    .st-ann__track { animation-duration: 20s; }
    .st-ann__group span { padding: 0 18px; }
}

/* ===== Header ===== */
.st-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--st-line-2);
}
.st-header__in { display: flex; align-items: center; gap: 30px; height: 66px; }
.st-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.st-logo img { height: 34px; width: auto; }
.st-nav { display: flex; align-items: center; gap: 26px; }
.st-nav a {
    font-size: 14px; font-weight: 500; color: var(--st-ink);
    padding: 4px 0; border-bottom: 1.5px solid transparent; transition: border-color .15s;
}
.st-nav a:hover { border-bottom-color: var(--st-ink); }
.st-nav a.is-active { border-bottom-color: var(--st-ink); }

/* ===== Buttons ===== */
.st-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 30px; border-radius: 999px;
    font-weight: 500; font-size: 15px; transition: .18s; white-space: nowrap;
    border: 1px solid var(--st-ink); background: transparent; color: var(--st-ink);
}
.st-btn:hover { background: var(--st-ink); color: #fff; }
.st-btn--solid { background: var(--st-ink); color: #fff; }
.st-btn--solid:hover { background: #000; }
.st-btn--light { border-color: #fff; color: #fff; background: transparent; }
.st-btn--light:hover { background: #fff; color: var(--st-ink); }
.st-btn--block { width: 100%; }
.st-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ===== Hero ===== */
.st-hero { position: relative; }
.st-hero__media { position: relative; height: clamp(340px, 56vh, 560px); overflow: hidden; background: var(--st-soft); }
.st-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.st-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34));
}
.st-hero__body {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; text-align: center; padding: 0 24px;
}
.st-hero h1 {
    color: #fff; font-size: clamp(28px, 4.6vw, 46px); font-weight: 600;
    letter-spacing: -.01em; line-height: 1.3; text-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.st-hero p { color: rgba(255,255,255,.9); font-size: 16px; max-width: 52ch; }

/* ===== Section ===== */
.st-section { padding: 52px 0; }
.st-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.st-section__head h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; letter-spacing: -.02em; }
.st-section__head a { font-size: 14px; color: var(--st-ink); margin-inline-start: auto;
    border-bottom: 1px solid var(--st-ink); padding-bottom: 1px; }

/* page title (products page) */
.st-page-title { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; padding: 42px 0 10px; }

/* toolbar */
.st-toolbar {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 0 26px; border-bottom: 1px solid var(--st-line-2); margin-bottom: 28px;
}
.st-toolbar__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-inline-end: 4px; }
.st-toolbar__count { font-size: 14px; color: var(--st-muted); margin-inline-start: auto; }
.st-toolbar select {
    padding: 9px 14px; border: 1px solid var(--st-line); border-radius: 6px;
    font-family: inherit; font-size: 14px; background: #fff; color: var(--st-ink); cursor: pointer;
}
.st-toolbar select:focus { outline: none; border-color: var(--st-ink); }

/* ===== Product grid ===== */
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .st-grid { grid-template-columns: repeat(2, 1fr); } }

.st-card {
    background: #fff; border: 1px solid var(--st-line);
    border-radius: 16px;
    display: flex; flex-direction: column; overflow: hidden;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.st-card:hover {
    border-color: #d6d6d6;
    box-shadow: 0 10px 28px rgba(20, 18, 26, .09);
    transform: translateY(-3px);
}
.st-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--st-soft); }
.st-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.st-card:hover .st-card__media img { transform: scale(1.04); }
.st-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--st-muted); font-size: 13px; }
.st-badge {
    position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
    background: #fff; color: var(--st-ink); font-size: 12px; font-weight: 500;
    padding: 4px 12px; border-radius: 999px; border: 1px solid var(--st-line);
}
.st-card__body { padding: 15px 15px 18px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.st-card__title {
    font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--st-ink); margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.st-card__price {
    display: flex; align-items: baseline; justify-content: center; gap: 9px;
    margin-top: auto; margin-bottom: 14px; flex-wrap: wrap;
}
.st-card__now { font-size: 19px; font-weight: 700; color: var(--st-price); letter-spacing: -.01em; }
.st-card__was { font-size: 14px; color: var(--st-muted); text-decoration: line-through; }

/* ===== Empty ===== */
.st-empty { text-align: center; padding: 80px 24px; border: 1px solid var(--st-line); }
.st-empty strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.st-empty span { color: var(--st-muted); font-size: 14px; }

/* ===== Info strip ===== */
.st-info { background: #fff; }
.st-info__in {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    padding: 56px 0 64px;
}
.st-info__card {
    background: #fff;
    border: 1.5px solid var(--st-ink);
    border-radius: 22px;
    padding: 38px 30px 34px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: box-shadow .2s, transform .2s;
}
.st-info__card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,18,18,.09); }

.st-info__ic {
    display: grid; place-items: center;
    height: 64px; margin-bottom: 20px; color: var(--st-ink);
}
.st-info__ic svg { height: 58px; width: auto; }
/* بطاقة الشعار: نفس الارتفاع البصري للأيقونات */
.st-info__ic--logo img { height: 56px; width: auto; max-width: 190px; object-fit: contain; }
.st-info__word { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--st-ink); }

.st-info h3 {
    font-size: 17px; font-weight: 700; letter-spacing: -.01em;
    margin-bottom: 12px; line-height: 1.5;
}
.st-info p { font-size: 14.5px; color: var(--st-body); line-height: 1.75; max-width: 34ch; }

@media (max-width: 900px) {
    .st-info__in { grid-template-columns: 1fr; gap: 16px; padding: 36px 0 42px; }
    .st-info__card { padding: 30px 24px 28px; border-radius: 18px; }
    .st-info__ic { height: 54px; margin-bottom: 16px; }
    .st-info__ic svg { height: 48px; }
    .st-info__ic--logo img { height: 46px; }
}

/* ===== Footer ===== */
.st-footer { border-top: 1px solid var(--st-line-2); margin-top: 20px; padding: 40px 0 34px; }
.st-footer__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.st-footer p { color: var(--st-muted); font-size: 13.5px; }
.st-footer nav { display: flex; gap: 22px; margin-inline-start: auto; }
.st-footer nav a { font-size: 13.5px; color: var(--st-body); }
.st-footer nav a:hover { color: var(--st-ink); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .st-wrap { padding: 0 16px; }
    .st-header__in { height: 58px; gap: 16px; }
    .st-nav { gap: 16px; }
    .st-nav a { font-size: 13.5px; }
    .st-logo { font-size: 17px; }
    .st-grid { gap: 12px; }
    .st-card__body { padding: 12px 10px 14px; }
    .st-card__title { font-size: 13px; }
    .st-card__now { font-size: 16px; }
    .st-section { padding: 36px 0; }
    .st-toolbar { flex-wrap: wrap; }
}