/* =====================================================================
   SHAH STEEL GREY THEME
   Loaded last on every public page (see includes/header.php), so it
   overrides the older black/red/orange styles in style.css.
   Grey sets the mood to match the shop; red is kept for the brand:
   logo, prices, main buttons and thin accent lines.
   ===================================================================== */

:root {
    --g-concrete: #eceef0;   /* page background */
    --g-mist: #dde1e5;       /* soft panels */
    --g-line: #d3d8dd;       /* light borders */
    --g-border: #b9bfc6;     /* product card borders */
    --g-steel: #9aa1a9;      /* muted icons */
    --g-slate: #5a6068;      /* feature boxes: offers, showroom */
    --g-slate-dk: #474c53;
    --g-graphite: #33373d;   /* dark buttons, footer */
    --g-graphite-dk: #26292e;
    --g-ink: #1f2226;        /* headings */
    --g-muted: #656b73;      /* body text */
    --g-red: #e30613;
    --g-red-dk: #b80510;

    --hw-primary: var(--g-graphite);
    --hw-primary-dark: var(--g-graphite-dk);
    --hw-primary-light: var(--g-slate);
    --hw-dark: var(--g-ink);
    --hw-light: var(--g-concrete);
    --hw-gray: var(--g-steel);
    --hw-border: var(--g-line);
    --hw-shadow: 0 10px 28px rgba(31, 34, 38, 0.08);
    --hw-shadow-strong: 0 18px 44px rgba(31, 34, 38, 0.16);
}

body {
    background: var(--g-concrete) !important;
    color: var(--g-ink);
}

/* ---------- Menu bar: light grey so the logo stands out ---------- */
.hw-navbar {
    background: #f7f8f9 !important;
    border-bottom: 1px solid var(--g-line);
    box-shadow: 0 6px 20px rgba(31, 34, 38, 0.08);
}
body.home-hero-top.navbar-visible .hw-navbar {
    box-shadow: 0 8px 24px rgba(31, 34, 38, 0.14);
}
.hw-brand,
.hw-brand-copy strong {
    color: var(--g-ink) !important;
}
.hw-navbar .nav-link {
    color: #3d4248 !important;
}
.hw-navbar .nav-link:hover,
.hw-navbar .nav-link.active {
    color: var(--g-ink) !important;
}
.hw-navbar .nav-link::after {
    background: var(--g-red);
    height: 3px;
}
.hw-phone-item .nav-link {
    color: var(--g-ink) !important;
}
.hw-phone-item i {
    color: var(--g-red);
}
.hw-call-btn {
    border: 1px solid var(--g-border) !important;
    color: var(--g-ink) !important;
}
.hw-call-btn:hover {
    background: var(--g-mist) !important;
    color: var(--g-ink) !important;
}
.hw-navbar-toggler {
    border-color: var(--g-border) !important;
}
.hw-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2333373d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.hw-basket-btn {
    border-color: var(--g-border);
    color: var(--g-ink);
}
.hw-basket-btn:hover,
.hw-basket-btn:focus-visible {
    background: var(--g-mist);
    color: var(--g-ink);
}
.hw-products-toggle {
    color: var(--g-ink) !important;
}
@media (max-width: 991px) {
    .hw-navbar .navbar-collapse {
        border-top-color: var(--g-line);
    }
}

/* Products drop-down menu: graphite panel */
.hw-products-mega-inner {
    background: linear-gradient(135deg, rgba(51, 55, 61, 0.98), rgba(38, 41, 46, 0.98));
}

/* ---------- Homepage banner ---------- */
/* Image-only banner: show the whole picture at its real shape, never stretched */
.industrial-hero.hero-image-only {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: #f7f8f9 !important;
}
.industrial-hero.hero-image-only::before {
    display: none;
}
.industrial-hero.hero-image-only .industrial-hero-inner {
    display: none;
}
.hero-banner-picture,
.hero-banner-picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Banner with text on top: photo fills the space (cropped, never stretched) */
.industrial-hero:not(.hero-image-only) {
    background-image: var(--hero-desktop) !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: var(--g-graphite) !important;
}
.industrial-hero:not(.hero-image-only)::before {
    background:
        linear-gradient(90deg, var(--g-red) 0, var(--g-red) 8px, transparent 8px),
        linear-gradient(110deg, rgba(31, 34, 38, 0.86) 0%, rgba(51, 55, 61, 0.62) 55%, rgba(51, 55, 61, 0.30) 100%);
}
@media (max-width: 767px) {
    .industrial-hero:not(.hero-image-only) {
        background-image: var(--hero-mobile, var(--hero-desktop)) !important;
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ---------- Category pills and search ---------- */
.category-pill {
    background: #fff !important;
    color: var(--g-ink) !important;
    border: 1px solid var(--g-line) !important;
    box-shadow: none !important;
}
.category-pill:hover {
    border-color: var(--g-red) !important;
    color: var(--g-ink) !important;
    transform: none;
}
.category-pill.active {
    background: var(--g-graphite) !important;
    border-color: var(--g-graphite) !important;
    color: #fff !important;
}
.category-pill i {
    color: inherit !important;
}
.category-dropdown .dropdown-menu {
    border: 1px solid var(--g-line);
    box-shadow: var(--hw-shadow-strong);
}
.search-input {
    border-color: var(--g-line) !important;
}
.search-input:focus {
    border-color: var(--g-slate) !important;
    box-shadow: 0 0 0 3px rgba(90, 96, 104, 0.15) !important;
}

/* ---------- Section headings: ink text with a red marker ---------- */
.section-header {
    border-bottom: 2px solid var(--g-line) !important;
}
.section-header h4 {
    color: var(--g-ink) !important;
}
.section-header i {
    color: var(--g-red) !important;
}
.section-header .badge {
    background: var(--g-graphite) !important;
}
.home-kicker {
    background: var(--g-mist);
    color: var(--g-slate);
}
.home-section-title i {
    color: var(--g-red);
}

/* Secondary buttons ("View All ...") in graphite */
.g-btn-dark {
    background: var(--g-graphite) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
}
.g-btn-dark:hover {
    background: var(--g-ink) !important;
    color: #fff !important;
}

/* Round scroll arrows */
.scroll-btn,
.scroll-btn-small,
.offer-scroll-btn {
    background: var(--g-graphite) !important;
    box-shadow: 0 4px 14px rgba(31, 34, 38, 0.28) !important;
}
.scroll-btn:hover,
.offer-scroll-btn:hover {
    background: var(--g-red) !important;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--g-steel) !important;
}

/* ---------- Product cards: steel-grey border, red on hover ---------- */
.product-card {
    border: 2px solid var(--g-border) !important;
    box-shadow: 0 6px 18px rgba(31, 34, 38, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
    border-color: var(--g-red) !important;
    box-shadow: 0 14px 30px rgba(31, 34, 38, 0.14);
}
.product-image-container {
    background: #f6f7f8 !important;
    border-bottom: 1px solid var(--g-concrete) !important;
}
.category-tag {
    background: var(--g-concrete);
    color: var(--g-muted);
}
.product-price {
    color: var(--g-red) !important;
}
.badge-top {
    background: linear-gradient(to bottom, #4a4f56 0%, var(--g-graphite) 100%) !important;
}

/* ---------- Special Offers: slate box ---------- */
.offer-card {
    border: 2px solid var(--g-border) !important;
    border-top: 4px solid var(--g-red) !important;
}
.offer-card:hover {
    border-color: var(--g-red) !important;
}

/* ---------- Showroom & Store slideshow ---------- */
.showroom-shell {
    background: linear-gradient(135deg, var(--g-slate), var(--g-slate-dk)) !important;
    box-shadow: 0 12px 30px rgba(40, 44, 50, 0.22) !important;
}
.showroom-shell .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.18) !important;
}
.showroom-shell .section-header h4 {
    color: #fff !important;
}
.industrial-showroom-carousel {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}
/* Wide on computers (16:9, never taller than 70% of the screen), 4:3 on phones */
.industrial-showroom-carousel .carousel-item {
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    background: var(--g-graphite-dk) !important;
}
.industrial-showroom-carousel .carousel-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.industrial-showroom-carousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.6) !important;
}
.industrial-showroom-carousel .carousel-indicators button.active {
    background-color: var(--g-red) !important;
}
.industrial-showroom-carousel .carousel-control-prev,
.industrial-showroom-carousel .carousel-control-next {
    background: rgba(31, 34, 38, 0.6) !important;
    border-radius: 50%;
    color: #fff;
    box-shadow: none !important;
}
.industrial-showroom-carousel .carousel-control-prev:hover,
.industrial-showroom-carousel .carousel-control-next:hover {
    background: var(--g-red) !important;
}
@media (max-width: 767px) {
    .industrial-showroom-carousel .carousel-item {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Shop by Category ---------- */
.industrial-category-card {
    background: var(--g-graphite) !important;
    border: 1px solid var(--g-line) !important;
}
.industrial-category-card .category-card-image {
    background: linear-gradient(135deg, #4a4f56, var(--g-graphite)) !important;
}
.industrial-category-card .category-card-overlay {
    background: linear-gradient(to top, rgba(31, 34, 38, 0.55), rgba(31, 34, 38, 0.12) 60%, rgba(31, 34, 38, 0)) !important;
}
.industrial-category-card .category-card-content {
    background: linear-gradient(to top, rgba(31, 34, 38, 0.96), rgba(31, 34, 38, 0.25)) !important;
}
.category-card-accent {
    background: linear-gradient(90deg, var(--g-slate), var(--g-red)) !important;
}

/* ---------- Why Choose Us ---------- */
.why-choose-grid {
    background: var(--g-mist);
    padding: 18px;
    border-radius: 18px;
}
.why-card {
    border: 1px solid var(--g-line) !important;
    border-top: 1px solid var(--g-line) !important;
    box-shadow: none !important;
}
.why-card i {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--g-graphite);
    border-bottom: 3px solid var(--g-red);
    color: #fff !important;
    font-size: 1.35rem !important;
}
@media (max-width: 576px) {
    .why-choose-grid {
        padding: 10px;
    }
}

/* ---------- Reviews and Brands ---------- */
.home-reviews,
.home-brands {
    border-color: var(--g-line) !important;
}
.home-brands .brand-item {
    border-color: var(--g-line) !important;
}
/* Brand logos always show in their original colours */
.home-brands .brand-item img {
    filter: none !important;
    opacity: 1 !important;
}

/* ---------- Call to action: graphite with a red stripe ---------- */
.home-cta {
    background:
        linear-gradient(90deg, var(--g-red) 0, var(--g-red) 8px, transparent 8px),
        linear-gradient(135deg, var(--g-graphite) 0%, var(--g-graphite-dk) 100%) !important;
}
.home-cta-kicker {
    color: #c9cdd2 !important;
}
.home-cta-call {
    background: var(--g-red) !important;
    color: #fff !important;
}
.home-cta-call:hover {
    background: var(--g-red-dk) !important;
    color: #fff !important;
}

/* ---------- Footer ---------- */
.site-footer {
    background:
        linear-gradient(90deg, var(--g-red) 0, var(--g-red) 6px, transparent 6px),
        var(--g-graphite-dk) !important;
}
.footer-section h5 {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--g-red);
}
.footer-section p,
.footer-section a {
    color: #b9bec4;
}
.footer-brand-logo {
    background: #f7f8f9 !important;
}
.footer-bottom {
    border-top-color: #3a3e44 !important;
    color: #8d939a !important;
}

/* ---------- Page headers on product, category and search pages ---------- */
.category-page-header {
    background:
        linear-gradient(90deg, var(--g-red) 0, var(--g-red) 6px, transparent 6px),
        linear-gradient(135deg, var(--g-graphite) 0%, var(--g-slate-dk) 100%) !important;
}

/* ---------- About page: same greys ---------- */
body #about-root {
    --ab-ink: #33373d;
    --ab-ink-2: #474c53;
    --ab-bg: #eceef0;
    --ab-text: #1f2226;
    --ab-muted: #656b73;
    --ab-line: #d3d8dd;
    --ab-chip: #dde1e5;
}

/* ---------- Product page: grey instead of pink tints ---------- */
.product-gallery-stage,
.product-gallery-feature-media,
.product-image-container,
.product-popup-image {
    background: #f6f7f8 !important;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    border-color: var(--g-red) !important;
}
.product-gallery-feature-copy {
    background: linear-gradient(135deg, var(--g-graphite), var(--g-slate-dk)) !important;
}
.product-detail-category,
.tile-coverage-kicker {
    background: var(--g-mist) !important;
    color: var(--g-graphite) !important;
}
.tile-coverage-calculator {
    background: #f6f7f8 !important;
    border: 1px solid var(--g-line) !important;
}
.tile-coverage-input:focus {
    border-color: var(--g-slate) !important;
    box-shadow: 0 0 0 4px rgba(90, 96, 104, 0.15) !important;
}
.tile-coverage-result-item.highlight {
    background: #fff !important;
    border: 2px solid var(--g-red) !important;
}
.product-popup-content {
    border-color: var(--g-line) !important;
}

/* ---------- Paint colour charts (chart page, paint category band, product box) ---------- */
html:root {
    --cc-ink: #33373d;
    --cc-ink-2: #474c53;
    --cc-bg: #eceef0;
    --cc-text: #1f2226;
    --cc-muted: #656b73;
    --cc-line: #d3d8dd;
    --cc-chip: #dde1e5;
}

/* ---------- Category page sub-category list ---------- */
.subcategory-link.active {
    background: linear-gradient(135deg, #474c53, var(--g-graphite)) !important;
}
.subcategory-chip.active {
    background: var(--g-graphite) !important;
    border-color: var(--g-graphite) !important;
}
.category-sidebar .list-group-item.active {
    background: var(--g-graphite) !important;
    border-color: var(--g-graphite) !important;
}

/* ---------- Offers page ---------- */
.hw-hero-minimal .text-warning,
.empty-state > i {
    color: var(--g-steel) !important;
}
.hw-hero-minimal h1 .bi-gift {
    color: var(--g-red) !important;
}
.btn-outline-primary,
.btn-outline-warning {
    color: var(--g-graphite) !important;
    border-color: var(--g-border) !important;
    background: #fff !important;
}
.btn-outline-primary:hover,
.btn-outline-warning:hover {
    color: #fff !important;
    background: var(--g-graphite) !important;
    border-color: var(--g-graphite) !important;
}
.empty-state {
    border-color: var(--g-border) !important;
}
.empty-state .btn i {
    font-size: 1rem !important;
    margin: 0 !important;
}

/* Sort drop-down on product lists */
.form-select:focus {
    border-color: var(--g-slate) !important;
    box-shadow: 0 0 0 3px rgba(90, 96, 104, 0.15) !important;
}

/* ---------- Category drop-down lists (hover a category button) ---------- */
.category-dropdown .dropdown-menu {
    background: var(--g-graphite) !important;
    border: 1px solid var(--g-slate) !important;
    box-shadow: 0 16px 36px rgba(31, 34, 38, 0.28) !important;
}
.category-dropdown .dropdown-item:hover,
.category-dropdown .dropdown-item:focus {
    background: var(--g-slate) !important;
    color: #fff !important;
}
.category-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.14) !important;
}
