/*
 * Wholesale-only styles. Loaded after design-system.css.
 *
 * design-system.css is byte-identical in both apps and is safe to copy between
 * them; anything that exists only on the trade site lives here instead, so that
 * stays true.
 *
 * The LAYOUT follows magiceco.co.in (the owner's reference, an IndiaMART
 * seller site): identity and contact first, a category icon row, one product
 * row per category, a contact panel on every page. The LOOK is ours — every
 * colour, radius, shadow and easing here is a token from design-system.css.
 * A component that invents its own value is how the site drifts.
 */

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: var(--g-r-pill);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--g-fast) var(--g-ease), color var(--g-fast) var(--g-ease),
                box-shadow var(--g-fast) var(--g-ease), transform var(--g-fast) var(--g-ease);
}
.gw-btn:hover { transform: translateY(-1px); }
.gw-btn i { font-size: 1.15em; }
.gw-btn--sm { padding: 8px 12px; font-size: 12.5px; }

.gw-btn--primary { background: var(--g-brand); color: #fff; box-shadow: var(--g-shadow-sm); }
.gw-btn--primary:hover { background: var(--g-brand-deep); color: #fff; box-shadow: var(--g-shadow-md); }

.gw-btn--ghost { background: var(--g-surface); color: var(--g-ink); border-color: var(--g-line); }
.gw-btn--ghost:hover { border-color: var(--g-brand); color: var(--g-brand); }

/* WhatsApp's own green: the button is recognised by its colour before its label. */
.gw-btn--whatsapp { background: #25D366; color: #fff; }
.gw-btn--whatsapp:hover { background: #1EBE5A; color: #fff; }

/* ── Price ───────────────────────────────────────────────────────────────── */
.g-trade-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.g-trade-now { font-weight: 700; font-size: 17px; color: var(--g-ink); }
.g-trade-request { font-weight: 600; font-size: 13.5px; color: var(--g-brand); }

.price-text .g-trade-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--g-ink-3);
    margin-bottom: 2px;
}

/* ── Trade terms on the product page ─────────────────────────────────────── */
.g-trade-terms {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--g-line);
    border-radius: var(--g-r-sm);
    background: var(--g-surface-2);
    font-size: 13.5px;
    color: var(--g-ink-2);
}
.g-trade-terms li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.g-trade-terms i { color: var(--g-brand); font-size: 16px; line-height: 1.2; }
.g-trade-terms strong { color: var(--g-ink); }

/* ── Header: call button and the Products panel ──────────────────────────── */
.gw-hd-call {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--g-r-pill);
    background: var(--g-brand-soft);
    color: var(--g-brand);
    text-decoration: none;
    white-space: nowrap;
}
.gw-hd-call > i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: var(--g-r-pill);
    background: var(--g-brand);
    color: #fff;
    font-size: 15px;
}
.gw-hd-call span { display: flex; flex-direction: column; font-weight: 700; font-size: 13px; line-height: 1.15; }
.gw-hd-call small { font-weight: 500; font-size: 10.5px; color: var(--g-ink-3); }
.gw-hd-call:hover { background: var(--g-brand); color: #fff; }
.gw-hd-call:hover small { color: rgba(255, 255, 255, .8); }
@media (min-width: 1200px) { .gw-hd-call { display: inline-flex; } }

.gw-nav-ico { font-size: 16px; vertical-align: -2px; margin-right: 2px; }

/* Desktop panels exist from 1200px (design-system.css). The base rule there is
   `.g-hd-nav li.g-has-panel > ul.g-panel` — match its specificity or lose. */
@media (min-width: 1200px) {
    .g-hd-nav li.g-has-panel > ul.g-panel.gw-panel { min-width: min(880px, 92vw); }
    .gw-panel-cols {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px 20px;
    }
}
.gw-panel-col { display: flex; flex-direction: column; min-width: 0; }
.gw-panel-head {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--g-ink) !important;
    padding: 6px 10px;
}
.gw-panel-head:hover { color: var(--g-brand) !important; }

/* ── Intro: identity, trade terms, featured products ─────────────────────── */
.gw-intro {
    padding: 28px 0 8px;
    background:
        radial-gradient(60% 80% at 0% 0%, var(--g-brand-soft) 0%, transparent 70%),
        radial-gradient(50% 70% at 100% 10%, var(--g-accent-soft) 0%, transparent 70%);
}
.gw-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}
.gw-intro-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    border-radius: var(--g-r-xl);
    /* Frosted glass, the site's chrome treatment: saturation so the brand
       wash bleeds through rather than greying, a lit 1px rim, real depth. */
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--g-shadow-md);
}
.gw-intro-copy .g-eyebrow { align-self: flex-start; }
.gw-intro-copy h1 {
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -.01em;
    color: var(--g-ink);
    margin: 8px 0 12px;
}
.gw-intro-lead { font-size: 16px; color: var(--g-ink-2); margin: 0 0 18px; max-width: 46ch; }
.gw-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.gw-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--g-r-pill);
    background: var(--g-surface);
    border: 1px solid var(--g-line);
    font-size: 13px;
    font-weight: 500;
    color: var(--g-ink-2);
}
.gw-chips i { color: var(--g-brand); font-size: 15px; }
.gw-intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.gw-intro-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
}
.gw-mini {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 12px;
    border-radius: var(--g-r-lg);
    background: var(--g-surface);
    box-shadow: var(--g-shadow-sm);
    text-decoration: none;
    color: var(--g-ink);
    transition: box-shadow var(--g-mid) var(--g-ease), transform var(--g-mid) var(--g-ease);
}
.gw-mini:hover { box-shadow: var(--g-shadow-lg); transform: translateY(-2px); color: var(--g-ink); }
.gw-mini img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--g-r-md);
    background: var(--g-surface-2);
}
.gw-mini-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gw-mini .g-trade-now { font-size: 15px; }
.gw-mini--all {
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--g-brand) 0%, var(--g-brand-deep) 100%);
}
.gw-mini--all:hover { color: #fff; }
.gw-mini--all i { font-size: 22px; }

/* ── Bulk-quote band: brand photo, copy over its empty left third ────────── */
.gw-quote-band-wrap { padding: 18px 0 6px; }
.gw-quote-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 36px 40px;
    border-radius: var(--g-r-xl);
    background: var(--g-surface-2);
    box-shadow: var(--g-shadow-sm);
}
/* Image 0, wash 1, copy 2 — explicit, never negative (see CLAUDE.md:
   a negative z-index child can paint behind its parent's own background). */
.gw-quote-band img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}
.gw-quote-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
        rgba(247, 241, 234, .86) 0%, rgba(247, 241, 234, .58) 34%,
        rgba(247, 241, 234, .10) 56%, rgba(247, 241, 234, 0) 70%);
}
.gw-quote-body { position: relative; z-index: 2; max-width: 26rem; }
.gw-quote-body h2 {
    margin: 8px 0 10px;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--g-ink);
}
.gw-quote-body p { margin: 0 0 18px; font-size: 15px; color: var(--g-ink-2); }

@media (max-width: 767px) {
    /* Portrait photo: empty space at the TOP, so the copy sits there. */
    .gw-quote-band {
        align-items: flex-start;
        min-height: 0;
        aspect-ratio: 4 / 5;
        padding: 26px 22px;
        border-radius: var(--g-r-lg);
    }
    .gw-quote-band img { object-position: 50% 15%; }
    .gw-quote-band::before {
        background: linear-gradient(to bottom,
            rgba(247, 241, 234, .90) 0%, rgba(247, 241, 234, .60) 36%,
            rgba(247, 241, 234, 0) 60%);
    }
}

/* ── Category icon row ──────────────────────────────────────────────────── */
.gw-cats { padding: 22px 0 6px; }
.gw-cats-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}
.gw-cat {
    flex: 0 0 auto;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--g-ink);
    scroll-snap-align: start;
}
.gw-cat-img {
    width: 84px;
    height: 84px;
    border-radius: var(--g-r-pill);
    overflow: hidden;
    background: var(--g-surface-2);
    box-shadow: 0 0 0 3px var(--g-surface), 0 0 0 4px var(--g-line);
    transition: box-shadow var(--g-fast) var(--g-ease);
}
.gw-cat:hover .gw-cat-img { box-shadow: 0 0 0 3px var(--g-surface), 0 0 0 5px var(--g-brand); }
.gw-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.gw-cat-name { font-size: 12.5px; font-weight: 500; text-align: center; line-height: 1.25; }

/* ── Category sections and the trade card ────────────────────────────────── */
.gw-section { padding: 26px 0 6px; }
.gw-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--g-line);
}
.gw-section-head h2 {
    font-size: 21px;
    font-weight: 700;
    text-transform: none;
    color: var(--g-ink);
    margin: 0;
}
.gw-section-count { font-size: 13px; font-weight: 500; color: var(--g-ink-3); margin-left: 8px; }
.gw-section-all { font-weight: 600; font-size: 14px; color: var(--g-brand); text-decoration: none; white-space: nowrap; }
.gw-section-all:hover { color: var(--g-brand-deep); }

.gw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.gw-card {
    display: flex;
    flex-direction: column;
    background: var(--g-surface);
    border: 1px solid var(--g-line);
    border-radius: var(--g-r-lg);
    padding: 8px;
    transition: box-shadow var(--g-mid) var(--g-ease), border-color var(--g-mid) var(--g-ease);
}
.gw-card:hover { box-shadow: var(--g-shadow-md); border-color: transparent; }
.gw-card-media { display: block; border-radius: var(--g-r-md); overflow: hidden; background: var(--g-surface-2); }
.gw-card-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--g-slow) var(--g-ease-out);
}
.gw-card:hover .gw-card-media img { transform: scale(1.04); }
.gw-card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 4px 2px; }
.gw-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--g-ink);
    text-decoration: none;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gw-card-name:hover { color: var(--g-brand); }
.gw-card-meta { font-size: 12.5px; color: var(--g-ink-3); margin: 2px 0 10px; }
.gw-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: auto; }

/* ── About teaser, factsheet ─────────────────────────────────────────────── */
.gw-about-teaser { padding: 30px 0 4px; }
.gw-about-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    border-radius: var(--g-r-xl);
    background: var(--g-surface-2);
    border: 1px solid var(--g-line);
}
.gw-about-card h2 { font-size: 22px; font-weight: 700; text-transform: none; margin: 6px 0 6px; color: var(--g-ink); }
.gw-about-card p { margin: 0; color: var(--g-ink-2); max-width: 70ch; }

.gw-facts { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 24px;
            border: 1px solid var(--g-line); border-radius: var(--g-r-md); overflow: hidden; }
.gw-facts th, .gw-facts td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--g-line); font-size: 14.5px; }
.gw-facts tr:last-child th, .gw-facts tr:last-child td { border-bottom: 0; }
.gw-facts th { width: 34%; background: var(--g-surface-2); color: var(--g-ink-2); font-weight: 600; }

/* ── Contact panel, every page ───────────────────────────────────────────── */
.gw-contact { padding: 34px 0; }
.gw-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    border-radius: var(--g-r-xl);
    color: var(--g-chrome-ink);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(182, 44, 95, .45) 0%, transparent 60%),
        var(--g-chrome);
    box-shadow: var(--g-shadow-lg);
}
.gw-contact-card .g-eyebrow { color: var(--g-chrome-ink-2); }
.gw-contact-card h2 { color: var(--g-chrome-ink); font-size: 24px; font-weight: 700; text-transform: none; margin: 6px 0 8px; }
.gw-contact-addr { color: var(--g-chrome-ink-2); margin: 0 0 8px; display: flex; gap: 6px; }
.gw-contact-map { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gw-contact-map:hover { color: var(--g-accent); }
.gw-contact-ways { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.gw-contact-ways .gw-btn--ghost { background: transparent; color: var(--g-chrome-ink); border-color: var(--g-chrome-line); }
.gw-contact-ways .gw-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .gw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gw-grid > :nth-child(5) { display: none; }
}
@media (max-width: 991px) {
    .gw-intro-grid { grid-template-columns: 1fr; }
    .gw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gw-grid > :nth-child(4) { display: none; }
    .gw-contact-card { grid-template-columns: 1fr; }
    .gw-contact-ways { justify-content: flex-start; }
}
@media (max-width: 576px) {
    .gw-intro { padding-top: 16px; }
    .gw-intro-copy { padding: 22px 18px; border-radius: var(--g-r-lg); }
    .gw-intro-actions .gw-btn { flex: 1 1 auto; }
    .gw-intro-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-intro-featured > :nth-child(5) { display: none; }
    .gw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gw-grid > :nth-child(4) { display: flex; }
    .gw-grid > :nth-child(5) { display: none; }
    .gw-card { padding: 6px; border-radius: var(--g-r-md); }
    .gw-card-name { font-size: 13px; }
    .gw-card-actions { grid-template-columns: 1fr; }
    .gw-card-actions .gw-btn--ghost { display: none; }
    .g-trade-now { font-size: 15px; }
    .gw-section-head h2 { font-size: 18px; }
    .gw-section-count { display: block; margin: 2px 0 0; }
    .gw-about-card { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
    .gw-contact-card { padding: 22px 18px; border-radius: var(--g-r-lg); }
    .gw-contact-ways .gw-btn { flex: 1 1 100%; }
    .gw-facts th { width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
    .gw-btn, .gw-mini, .gw-card, .gw-card-media img { transition: none; }
    .gw-btn:hover, .gw-mini:hover { transform: none; }
    .gw-card:hover .gw-card-media img { transform: none; }
}

/* Product page: bulk quote under the cart buttons */
.gw-quote-btn { margin-top: 12px; width: 100%; white-space: normal; text-align: center; }

/* Header type-ahead panel (2026-10-05). Hangs below the search pill; the pill
   is overflow:visible for exactly this (design-system.css). */
.g-hd-search .g-ws-search-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000;
    background: #fff; border-radius: var(--g-r-md, 14px);
    box-shadow: var(--g-shadow-lg, 0 16px 40px rgba(0,0,0,.14));
    max-height: 360px; overflow: auto; padding: 6px;
}
.g-ws-search-panel .search-results-list { list-style: none; margin: 0; padding: 0; height: auto !important; overflow: visible !important; }
.g-ws-search-panel .search-li a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: inherit; }
.g-ws-search-panel .search-li a:hover { background: var(--g-surface-2, #f6f2f0); }
.g-ws-search-panel .search-li img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.g-ws-search-panel .search-li span { font-size: 14px; line-height: 1.3; }
.g-ws-search-panel .no-results, .g-ws-search-panel .search-loading, .g-ws-search-panel .search-error { padding: 12px; font-size: 14px; color: #6b6b6b; }

/* Cart drawer: progress to the trade minimum (2026-10-05). */
.gw-cart-min { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--g-brand, #B62C5F); font-weight: 500; }
.gw-cart-min.is-met { color: #2e7d32; }

/* WebP <picture> wrappers (2026-10-05). display:contents takes the wrapper out
   of layout, so each <img> is sized against the same box as before — a
   positioned or auto-height <picture> is what collapsed retail's photos to
   0px tall once (CLAUDE.md, "A positioned <picture> collapses…"). */
.gw-card-media picture, .gw-mini picture, .gw-cat-img picture { display: contents; }
