/* =====================================================================
   SHUBH CART — "1_shubh_cart" home UI theme
   Faithful reproduction of the Figma home design, wired to live data.
   Loaded LAST in the layout head so it overrides the StackFood theme.
   ===================================================================== */

:root {
    --s-primary: #003399;          /* royal blue: buttons, footer, trust bar */
    --s-primary-dark: #002a7a;
    --s-ink: #1e1e1e;              /* announcement bar / dark banners / headings */
    --s-cream: #fff2c9;
    --s-pink: #ffdbe0;
    --s-magenta: #cf2e5c;
    --s-red: #e8414f;             /* product prices */
    --s-muted: #6b7280;
    --s-line: #e7e9ef;
    --s-soft: #f5f6f8;

    /* Re-map the StackFood theme primary so shared widgets match the brand */
    --base: #003399;
    --base-2: #003399;
    --bs-base-rgb: 0, 51, 153;
    --web-primary: #003399;
    --web-secondary: #003399;
    --web-primary-10: rgba(0, 51, 153, .10);
    --web-primary-20: rgba(0, 51, 153, .20);
    --web-primary-40: rgba(0, 51, 153, .40);
}

body { font-family: 'Roboto', -apple-system, "Segoe UI", Arial, sans-serif; color: var(--s-ink); background: #fff; }
.web-text-primary, a.web-text-primary { color: var(--s-primary) !important; }
.btn--primary, .bg--primary { background-color: var(--s-primary) !important; }

.s-container { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.shubh-home { overflow-x: clip; }
.shubh-home img { max-width: 100%; }

/* ---- generic section header ---- */
.s-sec { padding: 30px 0; }
.s-sec--block { padding-left: 0; padding-right: 0; }
.s-block-link { display: block; }
.s-block-img { display: block; width: 100%; max-width: 1920px; margin: 0 auto; }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.s-head__l { min-width: 0; }
.s-head__title { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 0; color: var(--s-ink); }
.s-head__sub { font-size: 13px; color: var(--s-muted); margin: 6px 0 0; }
.s-head__link { font-size: 13.5px; font-weight: 600; color: var(--s-primary); text-decoration: none; white-space: nowrap; }
.s-head__link i { font-size: 11px; }
.s-head__link:hover { color: var(--s-primary-dark); }

/* ---- buttons ---- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px;
    font-weight: 600; font-size: 14px; line-height: 1; padding: 13px 28px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: all .18s ease; white-space: nowrap; }
.s-btn--primary { background: var(--s-primary); color: #fff; }
.s-btn--primary:hover { background: var(--s-primary-dark); color: #fff; }
.s-btn--dark { background: var(--s-ink); color: #fff; }
.s-btn--dark:hover { background: #000; color: #fff; }
.s-btn--light { background: #fff; color: var(--s-primary); }
.s-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.s-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =====================================================================
   ANNOUNCEMENT BAR + HEADER
   ===================================================================== */
.s-announce { background: var(--s-ink); color: #fff; font-size: 13px; text-align: center;
    padding: 8px 40px; position: relative; letter-spacing: .2px; }
.s-announce__arrow { position: absolute; top: 50%; transform: translateY(-50%); opacity: .8;
    cursor: pointer; font-size: 12px; }
.s-announce__arrow--l { left: 18px; } .s-announce__arrow--r { right: 18px; }

/* Hide StackFood top bar (phone/currency/lang strip) — replaced by announcement + header */
header .topbar { display: none !important; }

/* main header bar */
header .navbar-sticky.mobile-head { background: #fff !important; box-shadow: 0 1px 0 var(--s-line); }
header .navbar.navbar-light { padding-top: 14px; padding-bottom: 14px; }
header .navbar-brand img.__inline-11 { height: 46px; width: auto; }

/* "Shop By Category" pill injected in header */
.s-shopcat { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px;
    color: var(--s-ink); text-decoration: none; padding: 11px 16px; border-radius: 8px; background: var(--s-soft);
    border: 1px solid var(--s-line); white-space: nowrap; }
.s-shopcat:hover { color: var(--s-primary); }
.s-shopcat svg { width: 16px; height: 16px; }

/* search */
header .search_form .search-bar-input,
header .input-group-overlay .form-control {
    background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 8px;
    height: 46px; padding-left: 16px; font-size: 14px; }
header .search_button .input-group-text { background: var(--s-primary) !important; border-radius: 8px;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }

/* right-side toolbar icons */
header .navbar-tool-icon-box { background: var(--s-soft) !important; border-radius: 10px; color: var(--s-ink); }
header .navbar-tool-label { background: var(--s-magenta); }
header .navbar-toolbar .czi-heart { color: var(--s-magenta); }

/* call-support block injected in header */
.s-callsupport { display: flex; align-items: center; gap: 10px; }
.s-callsupport__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--s-soft);
    display: flex; align-items: center; justify-content: center; color: var(--s-primary); font-size: 16px; }
.s-callsupport__t small { display: block; font-size: 11px; color: var(--s-muted); line-height: 1.1; }
.s-callsupport__t b { font-size: 14px; color: var(--s-ink); }

/* category nav row */
header .navbar-stuck-menu { background: #fff; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
header .navbar-stuck-menu .nav-link { font-size: 13.5px; font-weight: 500; color: #2a2f3a; }
header .navbar-stuck-menu .nav-link:hover { color: var(--s-primary); }
header .category-menu-toggle-btn { color: var(--s-primary) !important; font-weight: 600; }

/* =====================================================================
   HERO
   ===================================================================== */
.s-hero { position: relative; width: 100%; overflow: hidden; height: clamp(440px, 44vw, 660px); background: #0f2a7a; }
.s-hero__slides { position: absolute; inset: 0; }
.s-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.s-slide.is-active { opacity: 1; }
.s-slide__ov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,52,.58) 0%, rgba(8,16,52,.25) 42%, rgba(8,16,52,0) 68%); }
.s-slide__ov--brand { background: linear-gradient(90deg, rgba(8,22,96,.85) 0%, rgba(18,46,140,.5) 44%, rgba(18,46,140,0) 72%); }
.s-slide__content { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; padding: 0 72px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.s-hero__eyebrow { color: #dde6ff; font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.s-hero__title { color: #fff; font-weight: 800; line-height: 1.04; letter-spacing: -1px; font-size: clamp(34px, 4.6vw, 64px); margin: 0 0 32px; text-shadow: 0 2px 20px rgba(0,0,0,.28); max-width: 600px; }
.s-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.s-hero__cta .s-btn { padding: 15px 36px; font-size: 15px; }
.s-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px;
    border-radius: 50%; border: 0; background: rgba(255,255,255,.82); color: #1e1e1e; font-size: 26px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; }
.s-hero__nav:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.s-hero__nav--prev { left: 24px; } .s-hero__nav--next { right: 24px; }
.s-hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 9px; }
.s-hero__dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: .25s; }
.s-hero__dots button.is-active { background: #fff; width: 30px; border-radius: 6px; }
/* generic transparent click zones (used by promos + connected banners) */
.s-hero__hit { position: absolute; display: block; z-index: 3; }
@media (max-width: 600px) {
    .s-hero { height: clamp(360px, 80vw, 460px); }
    .s-hero__title { font-size: 30px; }
    .s-hero__nav { display: none; }
    .s-slide__content { padding: 0 22px; }
}

/* =====================================================================
   SHOP BY CATEGORY  (image tiles + "50-60% OFF" overlay)
   ===================================================================== */
.s-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.s-cat { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5;
    text-decoration: none; box-shadow: 0 6px 20px rgba(20,30,80,.06); }
.s-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-cat:hover img { transform: scale(1.06); }
.s-cat__ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.72) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.s-cat__name { color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.s-cat__off { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.s-cat__shop { color: #fff; font-size: 12px; opacity: .9; margin-top: 4px; }
.s-cat__shop i { font-size: 10px; }

/* =====================================================================
   PROMO BANNERS (cream + pink)
   ===================================================================== */
.s-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.s-promo { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; }
.s-promo img { display: block; width: 100%; height: auto; }
.s-promo__hit { position: absolute; left: 8%; bottom: 12%; width: 30%; height: 22%; }
.s-promos-wrap { position: relative; max-width: 1920px; margin: 0 auto; }

/* =====================================================================
   POPULAR PRODUCTS (tabs + product cards)
   ===================================================================== */
.s-tabs { display: flex; flex-wrap: wrap; gap: 26px; border-bottom: 1px solid var(--s-line); margin-bottom: 22px; }
.s-tab { background: none; border: 0; padding: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--s-muted);
    cursor: pointer; position: relative; }
.s-tab.is-active { color: var(--s-primary); font-weight: 700; }
.s-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--s-primary); }

.s-prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.s-card { position: relative; background: #fff; border: 1px solid var(--s-line); border-radius: 12px;
    overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.s-card:hover { box-shadow: 0 12px 30px rgba(20,30,80,.10); transform: translateY(-3px); }
.s-card__imgwrap { position: relative; display: block; background: #f7f7f8; aspect-ratio: 1 / 1; overflow: hidden; }
.s-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.s-card__badge { position: absolute; top: 10px; left: 10px; background: var(--s-magenta); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; z-index: 2; }
.s-card__actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px;
    opacity: 0; transform: translateX(8px); transition: all .2s ease; z-index: 2; }
.s-card:hover .s-card__actions { opacity: 1; transform: translateX(0); }
.s-card__act { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--s-line);
    display: flex; align-items: center; justify-content: center; color: var(--s-ink); cursor: pointer; text-decoration: none; }
.s-card__act:hover { background: var(--s-primary); color: #fff; border-color: var(--s-primary); }
.s-card__body { padding: 14px; }
.s-card__title { font-size: 14px; font-weight: 600; margin: 0 0 2px; color: var(--s-ink);
    display: block; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card__title:hover { color: var(--s-primary); }
.s-card__cat { font-size: 12px; color: var(--s-muted); margin-bottom: 8px; }
.s-card__price { display: flex; align-items: baseline; gap: 8px; }
.s-card__price b { color: var(--s-red); font-size: 15px; font-weight: 800; }
.s-card__price del { color: #9aa1ad; font-size: 12.5px; }
.s-card__rating { margin-top: 7px; font-size: 12px; color: #6b7280; }
.s-card__rating i { color: #f7a000; font-size: 12px; }

/* =====================================================================
   FULL-WIDTH IMAGE BANNERS (flat50 / connected)
   ===================================================================== */
.s-banner { display: block; width: 100%; }
.s-banner img { display: block; width: 100%; height: auto; }
.s-connected { position: relative; }
.s-connected__acts { position: absolute; left: 4.2%; bottom: 12%; display: flex; gap: 14px; z-index: 3; }

/* =====================================================================
   WHY SHOP ON SHUBH CART
   ===================================================================== */
.s-why { background: var(--s-soft); border-radius: 16px; padding: 44px; display: grid;
    grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.s-why__title { font-size: 28px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.s-why__text { color: var(--s-muted); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.s-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.s-feat { display: flex; gap: 14px; }
.s-feat__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--s-primary); font-size: 19px;
    box-shadow: 0 4px 14px rgba(20,30,80,.08); }
.s-feat__title { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.s-feat__text { font-size: 12.5px; color: var(--s-muted); line-height: 1.5; margin: 0; }

/* =====================================================================
   SHOP BY BRANDS  (bordered grid)
   ===================================================================== */
.s-brands-grid { border: 1px solid var(--s-line); border-radius: 14px; overflow: hidden;
    display: grid; grid-template-columns: repeat(5, 1fr); }
.s-brand { display: flex; align-items: center; justify-content: center; padding: 34px 18px;
    border-right: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); min-height: 150px; }
.s-brand img { max-height: 70px; max-width: 150px; object-fit: contain; opacity: .92; transition: .2s; }
.s-brand:hover img { opacity: 1; transform: scale(1.04); }

/* =====================================================================
   TOP SELLERS
   ===================================================================== */
.s-sellers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.s-seller { border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; text-align: center;
    text-decoration: none; transition: box-shadow .2s ease; background: #fff; }
.s-seller:hover { box-shadow: 0 10px 26px rgba(20,30,80,.10); }
.s-seller__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f3f4f6; }
.s-seller__name { font-size: 14px; font-weight: 700; color: var(--s-ink); margin: 12px 0 8px; padding: 0 8px; }
.s-seller__link { display: inline-block; font-size: 13px; font-weight: 600; color: var(--s-primary);
    padding-bottom: 14px; }

/* =====================================================================
   TRUST BAR (blue)
   ===================================================================== */
.s-trust { background: var(--s-primary); }
.s-trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.s-trust__item { display: flex; align-items: center; gap: 14px; color: #fff; padding: 26px 10px;
    justify-content: center; }
.s-trust__item + .s-trust__item { border-left: 1px solid rgba(255,255,255,.18); }
.s-trust__ic { font-size: 26px; opacity: .95; }
.s-trust__t b { display: block; font-size: 15px; font-weight: 700; }
.s-trust__t span { font-size: 12px; opacity: .8; }

/* =====================================================================
   SEO TAG CLOUD
   ===================================================================== */
.s-seo { background: var(--s-soft); }
.s-seo__group { margin-bottom: 18px; }
.s-seo__title { font-size: 14px; font-weight: 700; color: var(--s-ink); margin: 0 0 8px; }
.s-seo__links { font-size: 13px; color: #9aa1ad; line-height: 1.9; }
.s-seo__links a { color: #9aa1ad; text-decoration: none; }
.s-seo__links a:hover { color: var(--s-primary); }

/* =====================================================================
   NEWSLETTER + CONTACT
   ===================================================================== */
.s-news { text-align: center; padding: 50px 0; }
.s-news__title { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.s-news__sub { color: var(--s-muted); font-size: 14px; margin-bottom: 26px; }
.s-news__form { display: flex; max-width: 720px; margin: 0 auto 26px; gap: 0; }
.s-news__input { flex: 1; height: 56px; border: 1px solid var(--s-line); background: var(--s-soft);
    border-radius: 8px 0 0 8px; padding: 0 20px; font-size: 14px; }
.s-news__btn { height: 56px; border: 0; background: var(--s-primary); color: #fff; font-weight: 600;
    padding: 0 38px; border-radius: 0 8px 8px 0; cursor: pointer; }
.s-news__contact { max-width: 720px; margin: 0 auto; border: 1.5px solid var(--s-primary); border-radius: 12px;
    display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; padding: 22px 30px; gap: 24px; }
.s-news__contact .sep { background: var(--s-primary); width: 1px; height: 46px; }
.s-news__ci { display: flex; align-items: center; gap: 12px; justify-content: center; }
.s-news__ci small { display: block; color: var(--s-muted); font-size: 12px; }
.s-news__ci b { font-size: 17px; color: var(--s-ink); }
.s-news__ci i { color: var(--s-muted); font-size: 18px; }

/* =====================================================================
   FOOTER (rebuilt)
   ===================================================================== */
.s-footer { background: #fff; border-top: 1px solid var(--s-line); padding-top: 50px; }
.s-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.s-footer__logo { height: 88px; width: auto; margin-bottom: 16px; }
.s-footer__about { color: var(--s-muted); font-size: 13.5px; line-height: 1.8; max-width: 360px; }
.s-footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.s-footer__socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--s-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; }
.s-footer__socials a:hover { background: var(--s-primary-dark); }
.s-footer__col h4 { font-size: 17px; font-weight: 700; margin: 0 0 18px; color: var(--s-ink); }
.s-footer__col ul { list-style: none; padding: 0; margin: 0; }
.s-footer__col li { margin-bottom: 12px; }
.s-footer__col a { color: var(--s-muted); font-size: 14px; text-decoration: none; }
.s-footer__col a:hover { color: var(--s-primary); }
.s-footer__bar { border-top: 2px solid var(--s-primary); padding: 22px 0; display: flex;
    justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.s-footer__bar p { margin: 0; font-size: 13.5px; color: var(--s-ink); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199px) {
    .s-cats, .s-prod-grid, .s-sellers-grid, .s-brands-grid { grid-template-columns: repeat(3, 1fr); }
    .s-why { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .s-cats, .s-prod-grid, .s-sellers-grid, .s-promos, .s-trust__inner,
    .s-brands-grid, .s-footer__top, .s-why__grid { grid-template-columns: 1fr 1fr; }
    .s-footer__top { grid-template-columns: 1fr 1fr; }
    .s-head__title, .s-news__title { font-size: 22px; }
    .s-news__contact { grid-template-columns: 1fr; }
    .s-news__contact .sep { display: none; }
    .s-trust__item + .s-trust__item { border-left: 0; }
}
@media (max-width: 480px) {
    .s-cats, .s-prod-grid, .s-sellers-grid, .s-promos, .s-brands-grid { grid-template-columns: 1fr; }
}
