/* Werkteh-inspired theme overrides (kept as additive layer) */
:root {
    --wt-bg: #ffffff;
    --wt-surface: #ffffff;
    --wt-surface-2: #f7f7f8;
    --wt-border: #e6e7ea;
    --wt-text: #111827;
    --wt-muted: #6b7280;
    --wt-accent: #e11d48; /* sale badge */
    --wt-link: #111827;
    --wt-link-hover: #000000;
    --wt-cta: #111827;
    --wt-cta-hover: #000000;
}

body {
    background: var(--wt-bg);
    color: var(--wt-text);
}

/* Left drawer: categories (mobile-like) */
.category-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.category-drawer.is-open {
    display: block;
}

body.category-drawer-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.category-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.category-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(420px, 92vw);
    background: #0b213c; /* brand navy (rgb 11,33,60) */
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow: auto;
}

.category-drawer.is-open .category-drawer__panel {
    transform: translateX(0);
}

.category-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.category-drawer__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.category-drawer__close {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
}

.category-drawer__nav {
    padding: 10px 0 24px;
}

.category-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-drawer__item {
    position: relative;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.24);
}

.category-drawer__link {
    display: block;
    padding: 18px 52px 18px 18px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.category-drawer__chev {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 34px;
    padding: 0;
}

.category-drawer__item.is-expanded .category-drawer__chev {
    transform: translateY(-50%) rotate(90deg);
}

.category-drawer__sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 18px;
}

.category-drawer__subitem {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-drawer__sublink {
    display: block;
    padding: 12px 18px 12px 12px;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.category-drawer__sublink:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Static composite promo grid (uploaded asset at public/feane/images/home-promo-grid.png) */
.wt-hero-static-wrap {
    padding-top: 18px;
    padding-bottom: 10px;
}

.wt-hero-static__link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.2);
    line-height: 0;
}

.wt-hero-static__link:hover {
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.26);
}

.wt-hero-static__img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    display: block;
}

/* Avoid full viewport hero height when only static promo image is shown */
.hero_area.hero-slider-only.wt-hero-static-promo {
    min-height: 0 !important;
}

.hero_area.hero-slider-only.wt-hero-static-promo > .bg-box {
    display: none !important;
}

.promo-tiles--after-static {
    padding-top: 8px;
}

/* Homepage promo tiles (werkteh-like banners) */
.promo-tiles {
    padding: 18px 0 6px;
}

.promo-tiles__wrap {
    max-width: 1320px;
}

.promo-tiles__grid {
    display: grid;
    gap: 14px;
}

.promo-tile {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background-color: #111827;
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.18);
}

.promo-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.0));
}

.promo-tile__content {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-tile__title {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.15;
    text-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.promo-tile__subtitle {
    font-weight: 600;
    opacity: 0.92;
    font-size: 0.95rem;
    text-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.promo-tile__btn {
    align-self: flex-start;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #0b213c;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

@media (max-width: 991px) {
    .promo-tiles__grid--1 {
        grid-template-columns: 1fr;
        grid-template-rows: 360px;
    }

    .promo-tiles__grid--2 {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 220px;
    }

    .promo-tiles__grid--3 {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 220px 220px;
    }

    .promo-tiles__grid--4 {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 220px 220px 220px;
    }

    .promo-tiles__grid--5 {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 160px 160px 160px 160px;
    }

    .promo-tiles__grid--6 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }

    .promo-tiles__grid--6 .promo-tiles__row-bottom {
        display: contents;
    }

    .promo-tile--1 { grid-column: 1; grid-row: 1; }
    .promo-tile--2 { grid-column: 1; grid-row: 2; }
    .promo-tile--3 { grid-column: 1; grid-row: 3; }
    .promo-tile--4 { grid-column: 1; grid-row: 4; }
    .promo-tile--5 { grid-column: 1; grid-row: 5; }
    .promo-tile--6 { grid-column: 1; grid-row: 6; }
}

@media (min-width: 992px) {
    /* 5 tiles: large left + 2 stacked right + 2 bottom */
    .promo-tiles__grid--5 {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }

    .promo-tiles__grid--5 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .promo-tiles__grid--5 .promo-tile--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .promo-tiles__grid--5 .promo-tile--3 {
        grid-column: 2;
        grid-row: 2;
    }

    .promo-tiles__grid--5 .promo-tile--4 {
        grid-column: 1;
        grid-row: 3;
    }

    .promo-tiles__grid--5 .promo-tile--5 {
        grid-column: 2;
        grid-row: 3;
    }

    /* 4 tiles: same as 5 but bottom banner spans full width */
    .promo-tiles__grid--4 {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }

    .promo-tiles__grid--4 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .promo-tiles__grid--4 .promo-tile--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .promo-tiles__grid--4 .promo-tile--3 {
        grid-column: 2;
        grid-row: 2;
    }

    .promo-tiles__grid--4 .promo-tile--4 {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    /* 3 tiles: large left + 2 stacked right (no bottom row) */
    .promo-tiles__grid--3 {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 220px 220px;
    }

    .promo-tiles__grid--3 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .promo-tiles__grid--3 .promo-tile--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .promo-tiles__grid--3 .promo-tile--3 {
        grid-column: 2;
        grid-row: 2;
    }

    /* 2 tiles: side-by-side */
    .promo-tiles__grid--2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px;
    }

    .promo-tiles__grid--2 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .promo-tiles__grid--2 .promo-tile--2 {
        grid-column: 2;
        grid-row: 1;
    }

    /* 1 tile: hero */
    .promo-tiles__grid--1 {
        grid-template-columns: 1fr;
        grid-template-rows: 380px;
    }

    .promo-tiles__grid--1 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1;
    }

    /* 6 tiles: large left + stacked right + 3 bottom */
    .promo-tiles__grid--6 {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 220px 220px auto;
    }

    .promo-tiles__grid--6 .promo-tile--1 {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .promo-tiles__grid--6 .promo-tile--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .promo-tiles__grid--6 .promo-tile--3 {
        grid-column: 2;
        grid-row: 2;
    }

    .promo-tiles__grid--6 .promo-tiles__row-bottom {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 14px;
    }

    .promo-tiles__grid--6 .promo-tiles__row-bottom .promo-tile {
        min-height: 200px;
    }
}

/* Homepage: product rows under promo grid */
.werkteh-home {
    background: #fff;
}

.home-products {
    padding: 10px 0 40px;
}

.home-products__wrap {
    max-width: 1320px;
}

.home-products__section {
    padding-top: 6px;
}

.home-products__section + .home-products__section {
    margin-top: 28px;
}

.home-products__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.home-products__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #111827;
}

.home-products__see-all {
    font-weight: 800;
    color: #111827 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.home-products__see-all:hover {
    text-decoration: underline !important;
}

/* Werkteh-like homepage strips: categories, manufacturers, product carousels */
.wt-hblock {
    margin-bottom: 36px;
}

.wt-hblock--cats {
    margin-top: 8px;
}

.wt-hblock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.wt-hblock__lead {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.wt-hblock__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111827;
}

.wt-hblock__title--inline {
    letter-spacing: 0.06em;
    font-size: 1.2rem;
    text-transform: none;
}

.wt-hblock__title--block {
    margin-bottom: 14px;
}

.wt-hblock__see {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af !important;
    text-decoration: none !important;
}

.wt-hblock__see:hover {
    color: #111827 !important;
    text-decoration: underline !important;
}

.wt-hblock__nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wt-hnav {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wt-hnav:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.wt-strip__viewport {
    overflow: hidden;
    margin: 0 -4px;
    padding: 0 4px;
}

.wt-strip__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wt-strip__track::-webkit-scrollbar {
    display: none;
}

.wt-cats__track {
    gap: 22px;
    padding-top: 4px;
}

.wt-cat {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 104px;
    text-align: center;
    text-decoration: none !important;
    color: #6b7280 !important;
}

.wt-cat__img-wrap {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.wt-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-cat__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

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

@media (max-width: 1199px) {
    .wt-mfg__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .wt-mfg__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wt-mfg-tile {
    position: relative;
    display: flex;
    min-height: 120px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
    background: #374151;
}

.wt-mfg-tile__inner {
    position: relative;
    z-index: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 120px;
}

.wt-mfg-tile__name {
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.wt-mfg-tile__tag {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.wt-mfg-tile--dewalt {
    background: linear-gradient(135deg, #febd17 0%, #f59e0b 45%, #111 45%, #111 100%);
}

.wt-mfg-tile--makita {
    background: linear-gradient(135deg, #00897a 0%, #00695c 100%);
}

.wt-mfg-tile--milwaukee {
    background: linear-gradient(135deg, #db0032 0%, #9f001f 100%);
}

.wt-mfg-tile--ryobi {
    background: linear-gradient(135deg, #0fad00 0%, #087a00 100%);
}

.wt-mfg-tile--knipex {
    background: linear-gradient(135deg, #e30613 0%, #9a040e 100%);
}

.wt-pcards {
    gap: 16px;
    padding-top: 4px;
}

.wt-pcard {
    flex: 0 0 260px;
    scroll-snap-align: start;
    width: 260px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.wt-pcard__media-wrap {
    position: relative;
    padding-top: 10px;
}

.wt-pcard__hang {
    position: absolute;
    top: 0;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.wt-pcard__hang-chain {
    width: 2px;
    height: 10px;
    background: linear-gradient(180deg, #9ca3af, #d1d5db);
    border-radius: 1px;
}

.wt-pcard__hang-badge {
    margin-top: -1px;
    background: #0b213c;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(11, 33, 60, 0.35);
    border: 2px solid #fff;
}

.wt-pcard__hang-label {
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wt-pcard__media {
    display: block;
    background: #fff;
    border-bottom: 1px solid #eee;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.wt-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.wt-pcard__body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.wt-pcard__title-link {
    text-decoration: none !important;
    color: inherit;
}

.wt-pcard__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #6b7280;
    min-height: 2.7em;
}

.wt-pcard__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wt-pcard__price-old {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.wt-pcard__price-sale {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0b213c;
    letter-spacing: 0.02em;
}

.wt-pcard__price-reg {
    font-size: 1.1rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: 0.02em;
}

.wt-pcard__cta-form {
    margin-top: auto;
}

.wt-pcard__cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 6px;
    background: #0b213c;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    cursor: pointer;
}

.wt-pcard__cta:hover {
    background: #071a30;
}

.wt-pcard__cta-ico {
    flex-shrink: 0;
}

/* Header: dark navy bar + white nav type (align with brand #0b213c) */
.abacus-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.abacus-header__nav-wrap {
    background: #0b213c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.abacus-header__nav-link {
    color: #fff !important;
    font-weight: 700;
}

.abacus-header__nav-link:hover,
.abacus-header__nav-item.show > .abacus-header__nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.abacus-header__mega.mega-menu {
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.abacus-header__icon-link {
    color: #fff;
}

.abacus-header__icon-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Catalog: lighter background, tighter cards */
.catalog-shop {
    background: var(--wt-surface-2);
}

.catalog-filters,
.catalog-card,
.catalog-list__item,
.catalog-toolbar {
    background: var(--wt-surface);
    border-color: var(--wt-border);
}

.catalog-main__title {
    color: var(--wt-text);
    letter-spacing: 0.02em;
}

.catalog-breadcrumbs__link {
    color: var(--wt-text);
}

.catalog-breadcrumbs__link:hover {
    color: #000;
}

.catalog-card {
    border-radius: 10px;
}

.catalog-card__media {
    border-bottom: 1px solid var(--wt-border);
}

.catalog-card__name--link {
    color: var(--wt-text);
}

.catalog-card__link:hover .catalog-card__name--link {
    color: #000;
}

.catalog-card__price-old {
    color: var(--wt-muted);
}

.catalog-card__sale-badge {
    background: var(--wt-accent);
}

/* Buttons and form controls */
.catalog-toolbar__btn {
    background: var(--wt-cta);
    border-radius: 8px;
}

.catalog-toolbar__btn:hover {
    background: var(--wt-cta-hover);
}

.catalog-toolbar__search input,
.catalog-toolbar__select {
    border-radius: 8px;
    border-color: var(--wt-border);
}

/* Footer: dark strip + centered menu (replaces old tagline block) */
.footer_section--modern {
    background: #050a14 !important;
}

.footer_section__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.25rem 0.5rem 0;
}

.footer_section__menu-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer_section__menu-link:hover,
.footer_section__menu-link:focus {
    color: #fbbf24 !important;
    border-bottom-color: rgba(251, 191, 36, 0.45);
    outline: none;
}

