@import url("shalom-theme.css");
/* ==========================================================
   Shalom storefront theme (Bagisto) - mirrors the WordPress site
   public/themes/default/assets/css/shalom-home.css
   Brand: red #E50000, green #18A65B (from the WP child theme)
   ========================================================== */
:root {
    --sh-red: #E50000;
    --sh-red-dark: #c40000;
    --sh-green: #18A65B;
    --sh-green-dark: #14914e;
    --sh-text: #1f2937;
    --sh-muted: #6b7280;
    --sh-border: #e4e4e4;
    --sh-alt: #f7f7f7;
    --sh-radius: 10px;
    --sh-footer-bg: #1f1f1f;
    --sh-topbar-bg: #E50000;
    --sh-topbar-text: #ffffff;
}

/* Selection + scrollbar, same as WP */
::selection { background: var(--sh-green); color: #fff; }
::-webkit-scrollbar { width: 6px; background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #E61922; }

/* ---------- Top utility bar ---------- */
.sh-topbar { background: var(--sh-topbar-bg); font-size: 13px; color: var(--sh-topbar-text); }
.sh-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 60px; flex-wrap: wrap; }
.sh-topbar a { color: inherit; text-decoration: none; }
.sh-topbar a:hover { color: #fff; text-decoration: underline; }
.sh-topbar-left, .sh-topbar-right { display: flex; gap: 20px; align-items: center; }
.sh-topbar-right a { font-weight: 500; }
@media (max-width: 767px) {
    .sh-topbar-inner { padding: 6px 16px; justify-content: center; font-size: 12px; }
    .sh-topbar-right { display: none; }
}

/* ---------- Header re-colour (keeps Bagisto's header logic) ---------- */
header .group:hover { border-color: var(--sh-red) !important; }
header .hover\:border-navyBlue:hover { border-color: var(--sh-red) !important; }
header a:hover { color: var(--sh-red); }

/* ---------- Layout helpers ---------- */
.sh-home { color: var(--sh-text); }
.sh-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sh-section { padding: 56px 0; }
.sh-alt { background: var(--sh-alt); }
.sh-center { text-align: center; }
.sh-title { font-size: 32px; line-height: 1.2; font-weight: 600; margin-bottom: 28px; font-family: Poppins, sans-serif; }
.sh-title.sh-center { text-align: center; }
.sh-accent { color: var(--sh-red); }
.sh-lead { max-width: 760px; margin: 0 auto 16px; color: var(--sh-muted); line-height: 1.7; }
.sh-link { color: var(--sh-red); font-weight: 500; text-decoration: none; }
.sh-link:hover { color: var(--sh-green); }
.sh-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sh-row-head .sh-title { margin-bottom: 20px; }
@media (max-width: 767px) {
    .sh-section { padding: 36px 0; }
    .sh-title { font-size: 24px; margin-bottom: 20px; }
    .sh-container { padding: 0 16px; }
}

/* ---------- Explore categories ---------- */
.sh-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sh-cat { text-align: center; text-decoration: none; color: inherit; }
.sh-cat-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--sh-radius); overflow: hidden; background: var(--sh-alt); border: 1px solid var(--sh-border); transition: transform .25s ease, box-shadow .25s ease; }
.sh-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-cat:hover .sh-cat-img { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.sh-cat-name { display: block; margin-top: 12px; font-weight: 500; }
.sh-cat:hover .sh-cat-name { color: var(--sh-red); }
@media (max-width: 991px) { .sh-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .sh-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Product cards ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sh-card { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 6px; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.sh-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); transform: translateY(-3px); }
.sh-card-img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--sh-alt); }
.sh-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-card-body { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sh-card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.sh-card-body h3 a { color: inherit; text-decoration: none; }
.sh-card-body h3 a:hover { color: var(--sh-red); }
.sh-card-body ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--sh-muted); list-style: disc; }
.sh-price { font-weight: 600; color: var(--sh-text); margin-top: auto; }
.sh-price .line-through, .sh-price s { color: var(--sh-muted); font-weight: 400; }
.sh-btn { display: block; text-align: center; background: var(--sh-red); color: #fff !important; padding: 10px 12px; border-radius: var(--sh-radius); font-size: 14px; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.sh-btn:hover { background: var(--sh-green); transform: translateY(-2px); }
@media (max-width: 1240px) { .sh-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px)  { .sh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Promise ---------- */
.sh-promise { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.sh-promise-item { text-align: center; }
.sh-promise-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(24,166,91,.1); color: var(--sh-green); margin-bottom: 12px; }
.sh-promise-item p { font-size: 14px; font-weight: 500; line-height: 1.4; }
@media (max-width: 991px) { .sh-promise { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .sh-promise { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonials ---------- */
.sh-testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sh-testi-card { background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 24px; margin: 0; }
.sh-stars { color: #FFCE40; letter-spacing: 2px; margin-bottom: 10px; }
.sh-testi-card blockquote { margin: 0 0 16px; color: var(--sh-muted); line-height: 1.6; }
.sh-testi-card figcaption strong { display: block; }
.sh-testi-card figcaption span { font-size: 13px; color: var(--sh-muted); }
@media (max-width: 991px) { .sh-testi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sh-testi { grid-template-columns: 1fr; } }

/* ---------- Insights ---------- */
.sh-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sh-insight { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 5px; text-decoration: none; color: inherit; }
.sh-insight img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; }
.sh-insight span { display: block; padding: 12px 8px; font-weight: 500; }
.sh-insight:hover span { color: var(--sh-red); }
@media (max-width: 991px) { .sh-insights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sh-insights { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.sh-faq { max-width: 860px; }
.sh-faq-item { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); margin-bottom: 12px; background: #fff; }
.sh-faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sh-faq-item summary::-webkit-details-marker { display: none; }
.sh-faq-item summary::after { content: "+"; color: var(--sh-red); font-size: 22px; line-height: 1; }
.sh-faq-item[open] summary::after { content: "\2212"; }
.sh-faq-item p { padding: 0 20px 18px; color: var(--sh-muted); line-height: 1.7; }

/* ---------- Footer ---------- */
.sh-footer { background: var(--sh-footer-bg); color: #d1d5db; margin-top: 0; }
.sh-footer a { color: #d1d5db; text-decoration: none; }
.sh-footer a:hover { color: #fff; }
.sh-footer-inner { max-width: 1320px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; gap: 32px; }
.sh-footer h4 { color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 16px; }
.sh-footer ul { display: grid; gap: 10px; font-size: 14px; }
.sh-footer-logo img { max-width: 170px; height: auto; margin-bottom: 14px; }
.sh-footer-tag { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.sh-footer-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-footer-btn { display: inline-block; padding: 9px 16px; border-radius: var(--sh-radius); background: var(--sh-red); color: #fff !important; font-size: 13px; font-weight: 500; }
.sh-footer-btn.alt { background: transparent; border: 1px solid #fff; }
.sh-footer-btn:hover { background: var(--sh-green); border-color: var(--sh-green); }
.sh-social { display: flex; gap: 12px; margin-top: 4px; }
.sh-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4b5563; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.sh-social a:hover { background: var(--sh-red); border-color: var(--sh-red); }
.sh-footer-bottom { border-top: 1px solid #374151; }
.sh-footer-bottom-inner { max-width: 1320px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.sh-footer-bottom img { max-height: 28px; width: auto; }
@media (max-width: 1060px) { .sh-footer-inner { grid-template-columns: repeat(3, 1fr); } .sh-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575px)  { .sh-footer-inner { grid-template-columns: repeat(2, 1fr); padding: 36px 16px 24px; } .sh-footer-bottom-inner { justify-content: center; text-align: center; } }

/* ==========================================================
   Hero slider (copied 1:1 from the WordPress child theme)
   ========================================================== */
.hero-slider {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2560 / 692 !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .hero-slider {
        aspect-ratio: 1280 / 800 !important;
    }
}

.hero-track {
    display: flex !important;
    height: 100% !important;
    transition: transform 0.5s ease !important;
    will-change: transform !important;
}

.hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
}

/* Nav arrows — glass effect */
.hero-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
    transition: background 0.25s ease, transform 0.25s ease !important;
    padding: 0 !important;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.hero-nav-prev {
    left: 16px !important;
}

.hero-nav-next {
    right: 16px !important;
}

@media (max-width: 767px) {
    .hero-nav {
        width: 34px !important;
        height: 34px !important;
    }
    .hero-nav-prev {
        left: 10px !important;
    }
    .hero-nav-next {
        right: 10px !important;
    }
}
/* ---- Category page: narrower filter sidebar (overrides Tailwind classes) ---- */
@media (min-width: 768px) {
    .flex.items-start.md\:mt-10 > div:has(> .panel-side) {
        flex: 0 0 250px !important;
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
    .flex.items-start.md\:mt-10 .panel-side {
        width: 250px !important;
        min-width: 0 !important;
        max-width: 250px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
    .flex.items-start.md\:mt-10 .panel-side input,
    .flex.items-start.md\:mt-10 .panel-side select {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
}

/* ---- Hide Bagisto WebMCP tool forms (they render below the footer and push it up) ----
   Visually hidden instead of display:none so the tools stay registered. */
form[toolname] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
