/* =====================================================================
   Indian TradeBird – Homepage Theme (Home.dc "Trade Bird" look)
   ---------------------------------------------------------------------
   Re-skins the .itb-home homepage to the BLACK + RED (#E31E24) palette
   and Poppins typography from Home.dc.html.

   Colours + fonts ONLY. No markup, layout, binding, URL, SEO or
   JavaScript/functionality changes. This file only re-maps the design
   tokens used by home-redesign.css and repaints the few hard-coded
   accent colours, so it MUST be loaded AFTER home-redesign.css.
   Scoped under .itb-home so nothing leaks to other pages.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Re-map design tokens to the Home.dc palette                      */
/* ------------------------------------------------------------------ */
.itb-home {
    /* Brand blacks (header / footer / dark panels) */
    --itb-dark: #0d0d0d;
    --itb-dark-2: #1a1a1a;

    /* Signature red — Home.dc uses one red as both primary + accent */
    --itb-primary: #E31E24;
    --itb-primary-dark: #C4161C;
    --itb-accent: #E31E24;
    --itb-accent-dark: #C4161C;

    /* Text + neutrals */
    --itb-ink: #060606;
    --itb-muted: #777777;
    --itb-line: #ececec;
    --itb-line-2: #eaeaea;
    --itb-bg: #fafafa;
    --itb-card: #ffffff;

    /* Softer radii to match the mockup */
    --itb-radius: 10px;
    --itb-radius-sm: 6px;

    /* Neutral / red-tinted shadows */
    --itb-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .06);
    --itb-shadow-md: 0 6px 18px rgba(227, 30, 36, .10);
    --itb-shadow-lg: 0 12px 32px rgba(0, 0, 0, .14);
    --itb-shimmer: linear-gradient(100deg, #f1f1f1 30%, #f8f8f8 50%, #f1f1f1 70%);

    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* 2. Repaint hard-coded blue accents to the red palette               */
/* ------------------------------------------------------------------ */

/* Keyboard focus ring (was blue) */
.itb-home a:focus-visible,
.itb-home button:focus-visible,
.itb-home input:focus-visible,
.itb-home [tabindex]:focus-visible {
    outline: 3px solid rgba(227, 30, 36, .40);
}

/* Search "in-flight" spinner (was blue) */
.itb-home .itb-searching::after {
    border: 2px solid rgba(227, 30, 36, .25);
    border-top-color: #ea4e38;
}

/* ------------------------------------------------------------------ */
/* 3. Header polish — neutral greys on black                           */
/* ------------------------------------------------------------------ */
.itb-home .desktop-header-phone { color: #bbbbbb; }
.itb-home .desktop-header-account { color: #bbbbbb; }
.itb-home .desktop-header-account .top-nav-or { color: #444444; }

/* ------------------------------------------------------------------ */
/* 4. Left categories — light-pink hover/active (was light blue)       */
/* ------------------------------------------------------------------ */
.itb-home .leftcategories-linklist .accordion-menu > li.lcfather > a:hover,
.itb-home .leftcategories-linklist .accordion-menu > li.lcfather.is-active > a {
    color: #ea4e38;
    background: #FDF1F1;
    border-left-color: #ea4e38;
}
.itb-home .leftcategories-linklist .lcsubmenu > a:hover {
    color: #ea4e38;
    background: #FDF1F1;
}

/* ------------------------------------------------------------------ */
/* 5. Slideshow navigation — black bubble, red on hover                */
/* ------------------------------------------------------------------ */
.itb-home .index-slideshow-navigation { background: rgba(13, 13, 13, .55); }
.itb-home .index-slideshow-navigation:hover { background: #ea4e38; }

/* ------------------------------------------------------------------ */
/* 6. Quick-view hover uses brand red (token already red, ensure text) */
/* ------------------------------------------------------------------ */
.itb-home .button-compare-view .product-item-button-quick-view:hover {
    background: #ea4e38;
    color: #ffffff;
}

/* ==================================================================== */
/* 7. HOME v2 mockup redesign                                           */
/*    Full-width body sections (no persistent sidebar), text hero,      */
/*    circular category tiles, dark CTA and clean SEO grid.             */
/*    Visual only – header + footer untouched.                          */
/* ==================================================================== */

/* --- 7.1 Layout: single column, centered, no left sidebar ---------- */
/* Hard guard: the homepage must never scroll sideways. This file loads last,
   so it reliably clips any full-bleed overflow regardless of base theme CSS. */
html { overflow-x: hidden; }
.itb-home { overflow-x: hidden; }

.itb-home .layout-main.have-sidebar {
    display: block !important;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px 48px;
    grid-template-columns: none !important;
    gap: 0 !important;
}
/* Categories now live inside the hero, so hide the standalone sidebar */
.itb-home .layout-main > .left-categories { display: none !important; }
.itb-home .content-area { width: 100%; }

/* Neutralise the inner grid-container padding so sections align flush */
.itb-home .content-area .grid-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Hide the old slideshow block and the leftover promo banner strip */
.itb-home .itb-hide-block,
.itb-home #shopify-section-1551078681822 { display: none !important; }

/* --- 7.2 Hero ------------------------------------------------------ */
.itb-home .itb-hero { margin: 22px 0 34px; }
.itb-home .itb-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
}
@media (min-width: 992px) {
    .itb-home .itb-hero__grid {
        grid-template-columns: minmax(0, 260px) minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 32px;
    }
}

/* Hero: All Categories panel */
.itb-home .itb-hero__cats {
    display: flex;
    flex-direction: column;
    background: var(--itb-card);
    border: 1px solid var(--itb-line);
    border-radius: var(--itb-radius);
    box-shadow: var(--itb-shadow-sm);
    overflow: hidden;
    align-self: stretch;
}
.itb-home .itb-hero__cats-title {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--itb-dark);
    background-image: linear-gradient(120deg, #0d0d0d 0%, #1a1a1a 55%, #2a1416 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 18px;
}
.itb-home .itb-hero__cats-title em {
    font-size: 15px;
    color: #ea4e38;
    line-height: 1;
}
.itb-home .itb-hero__cats-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    flex: 1 1 auto;
    overflow-y: auto;
}
.itb-home .itb-hero__cats-list li { border-bottom: 1px solid var(--itb-line-2); }
.itb-home .itb-hero__cats-list li:last-child { border-bottom: 0; }
.itb-home .itb-hero__cats-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px 11px 18px;
    color: var(--itb-ink);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease, padding .15s ease;
}
/* Left accent bar that grows in on hover */
.itb-home .itb-hero__cats-list a::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #ea4e38;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .15s ease;
}
/* Small round category marker */
.itb-home .itb-hero__cats-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dbe0;
    transition: background .15s ease, box-shadow .15s ease;
}
.itb-home .itb-hero__cats-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.itb-home .itb-hero__cats-list a em { color: #b9c0c8; font-size: 12px; flex: 0 0 auto; transition: color .15s ease, transform .15s ease; }
.itb-home .itb-hero__cats-list a:hover {
    color: #ea4e38;
    background: #FDF1F1;
    padding-left: 21px;
}
.itb-home .itb-hero__cats-list a:hover::before { transform: scaleY(1); }
.itb-home .itb-hero__cats-list a:hover .itb-hero__cats-dot { background: #ea4e38; box-shadow: 0 0 0 3px rgba(227, 30, 36, .15); }
.itb-home .itb-hero__cats-list a:hover em { color: #ea4e38; transform: translateX(2px); }

/* Footer "View all" row */
.itb-home .itb-hero__cats-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 16px;
    border-top: 1px solid var(--itb-line);
    background: #fafafa;
    color: #ea4e38;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, color .15s ease;
}
.itb-home .itb-hero__cats-all em { font-size: 12px; transition: transform .15s ease; }
.itb-home .itb-hero__cats-all:hover { background: var(--itb-dark); color: #fff; }
.itb-home .itb-hero__cats-all:hover em { transform: translateX(3px); }

/* Hero: headline / intro */
.itb-home .itb-hero__intro { align-self: center; padding: 6px 0; }
.itb-home .itb-hero__eyebrow {
    display: inline-block;
    color: #ea4e38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.itb-home .itb-hero__title {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 800;
    color: var(--itb-ink);
    letter-spacing: -.5px;
}
.itb-home .itb-hero__title span { color: #ea4e38; }
.itb-home .itb-hero__desc {
    margin: 0 0 24px;
    max-width: 520px;
    color: var(--itb-muted);
    font-size: 15px;
    line-height: 1.6;
}
.itb-home .itb-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.itb-home .itb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--itb-radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.itb-home .itb-btn--primary { background: #ea4e38; color: #fff; border-color: #ea4e38; }
.itb-home .itb-btn--primary:hover { background: var(--itb-primary-dark); border-color: var(--itb-primary-dark); color: #fff; transform: translateY(-1px); }
.itb-home .itb-btn--ghost { background: transparent; color: var(--itb-ink); border-color: #d3d3d3; }
.itb-home .itb-btn--ghost:hover { border-color: var(--itb-ink); background: var(--itb-ink); color: #fff; }

.itb-home .itb-hero__stats { display: flex; flex-wrap: wrap; gap: 34px; }
.itb-home .itb-hero__stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--itb-ink); line-height: 1.1; }
.itb-home .itb-hero__stat span { display: block; font-size: 12.5px; color: var(--itb-muted); margin-top: 3px; }

/* Hero: featured dark card */
.itb-home .itb-hero__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--itb-dark);
    color: #fff;
    border-radius: var(--itb-radius);
    padding: 22px 22px 24px;
    overflow: hidden;
    box-shadow: var(--itb-shadow-lg);
}
.itb-home .itb-hero__feature::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(227, 30, 36, .55), transparent 70%);
    pointer-events: none;
}
.itb-home .itb-hero__feature-tag {
    position: relative;
    z-index: 1;
    color: #ea4e38;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.itb-home .itb-hero__feature-title { position: relative; z-index: 1; margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.35; color: #fff; }
.itb-home .itb-hero__feature-desc { position: relative; z-index: 1; margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: #b9b9b9; }
.itb-home .itb-hero__feature-media {
    display: block;
    border-radius: var(--itb-radius-sm);
    overflow: hidden;
    background: #222;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
}
.itb-home .itb-hero__feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.itb-home .itb-hero__feature-media:hover img { transform: scale(1.05); }
.itb-home .itb-hero__feature-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ea4e38;
    font-size: 13.5px;
    font-weight: 600;
}
.itb-home .itb-hero__feature-link em { font-size: 12px; transition: transform .15s ease; }
.itb-home .itb-hero__feature-link:hover { color: #fff; }
.itb-home .itb-hero__feature-link:hover em { transform: translateX(3px); }

/* --- 7.3 Section headings / view-all ------------------------------- */
.itb-home .itb-viewall { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #ea4e38; }
.itb-home .itb-viewall em { font-size: 12px; }
.itb-home .itb-viewall:hover { color: var(--itb-primary-dark); }
.itb-home .itb-section-sub { margin: 4px 0 0; text-align: center; color: var(--itb-muted); font-size: 13px; }

/* --- 7.4 Browse Categories: circular tiles ------------------------- */
/* Light band (like the Home v2 mockup). The section itself stays 100% wide
   and in normal flow so it always aligns with the hero and can NEVER cause a
   horizontal shift/scroll. The subtle edge-to-edge tint is painted with a big
   box-shadow spread that is clipped vertically, giving the full-bleed look
   without adding any real width. */
.itb-home .index-top-collection {
    position: relative;
    margin: 30px 0;
    width: 100%;
    background: var(--itb-bg);
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    padding: 44px 0;
    box-sizing: border-box;
    box-shadow: 0 0 0 100vmax var(--itb-bg);
    clip-path: inset(0 -100vmax);
}
/* Keep the inner grid flush with the hero container above it (no extra side
   padding) so "Browse Categories" lines up exactly under the hero. */
.itb-home .index-top-collection .grid-container {
    max-width: none;
    margin: 0 auto;
    padding: 0;
}
/* Clean heading like the mockup: title left, "View all" right, no divider */
.itb-home .index-top-collection .index-products-heading {
    margin: 0 0 24px;
    padding-bottom: 0;
    border-bottom: 0;
}
.itb-home .index-top-collection .index-products-title,
.itb-home .index-top-collection .index-products-title a {
    color: var(--itb-ink);
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}
.itb-home .index-top-collection-list { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 641px) { .itb-home .index-top-collection-list { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 1025px) { .itb-home .index-top-collection-list { grid-template-columns: repeat(8, 1fr) !important; } }

.itb-home .index-top-collection-item > .position-relative {
    align-items: center;
    text-align: center;
    padding: 20px 12px 18px;
}
.itb-home .index-top-collection-image {
    width: 74px !important;
    height: 74px !important;
    aspect-ratio: auto;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 12px;
    animation: none;
    border: 1px solid var(--itb-line);
    overflow: hidden;
    flex: 0 0 auto;
}
.itb-home .index-top-collection-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 50%;
}
.itb-home .index-top-collection-viewall { padding: 0; margin-top: 0; border-top: 0; }
.itb-home .index-top-collection-viewall .top-collection-action { justify-content: center; padding: 0 !important; font-size: 13px; font-weight: 600; }
.itb-home .index-top-collection-viewall .top-collection-action .top-collection-arrow { display: none; }
.itb-home .index-top-collection-item > .position-relative:hover .top-collection-action-text { color: #ea4e38; }

/* --- 7.5 Popular Products spacing ---------------------------------- */
.itb-home #CollectionProductGrid { margin-top: 30px; }
.itb-home #CollectionProductGrid .index-products-heading { margin-bottom: 18px; }
/* Home v2 shows a denser 6-up product row on wide desktops */
@media (min-width: 1200px) {
    .itb-home #main-collection-product-grid [data-collection-container] { grid-template-columns: repeat(6, 1fr); }
}

/* --- 7.6 Dark CTA strip -------------------------------------------- */
.itb-home .itb-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--itb-dark);
    background-image: linear-gradient(120deg, #0d0d0d 0%, #1a1a1a 60%, #2a1416 100%);
    border-radius: var(--itb-radius);
    padding: 30px 34px;
    color: #fff;
}
.itb-home .itb-cta__title { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #fff; text-transform: none; }
.itb-home .itb-cta__desc { margin: 0; font-size: 13.5px; color: #c4c4c4; }
.itb-home .itb-cta__btn { flex: 0 0 auto; padding: 13px 34px; }

/* --- 7.7 Our Blogs: outline "Full Blog" button --------------------- */
.itb-home .index-collection-slider .product-item-button-cart {
    background: transparent;
    color: #ea4e38;
    border: 1.5px solid #ea4e38;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 16px;
    display: inline-block;
    width: auto;
}
.itb-home .index-collection-slider .product-item-button-cart:hover { background: #ea4e38; }
.itb-home .index-collection-slider .product-item-button-cart span { color: #ea4e38; }
.itb-home .index-collection-slider .product-item-button-cart:hover span { color: #fff; }
.itb-home .index-collection-slider .product-group-buttons { text-align: left; }

/* --- 7.8 Shop All Categories: clean link grid ---------------------- */
.itb-home .index-text-tab-container { text-align: center; }
.itb-home .index-text-tab .index-text-tab-title a { font-size: 22px; }
.itb-home .index-text-tab .tabs-content { text-align: left; margin-top: 18px; }
.itb-home .index-text-tab .tabs-content h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--itb-muted); }
@media (min-width: 1025px) {
    .itb-home .index-text-tab .tabs-content p { column-count: 4; column-gap: 26px; }
}
.itb-home .index-text-tab .tabs-content p { line-height: 2.1; }
.itb-home .index-text-tab .tabs-content p a { color: var(--itb-ink); font-size: 13px; }
.itb-home .index-text-tab .tabs-content p a:hover { color: #ea4e38; }

/* --- 7.9 Responsive hero ------------------------------------------- */
@media (max-width: 991px) {
    .itb-home .itb-hero__title { font-size: 34px; }
    .itb-home .itb-hero__feature { order: 3; }
}
@media (max-width: 640px) {
    .itb-home .layout-main.have-sidebar { padding: 0 14px 40px; }
    .itb-home .itb-hero__title { font-size: 28px; }
    .itb-home .itb-hero__stats { gap: 22px; }
    .itb-home .itb-cta { padding: 24px; text-align: center; justify-content: center; }
    .itb-home .index-top-collection { padding: 32px 0; }
    .itb-home .index-top-collection .grid-container { padding: 0; }
    .itb-home .index-top-collection-list { grid-template-columns: repeat(3, 1fr) !important; }
}
