/* ════════════════════════════════════════════════════════════
   NEW2 TEMPLATE — Electrotech Webstore
   ════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #08152a;
    --navy-mid: #0d1f3c;
    --navy-light: #132847;
    --orange: #e8a020;
    --orange-dark: #c98510;
    --white: #ffffff;
    --text-muted: #8fa4c0;
    --border: rgba(255, 255, 255, 0.10);
    --font: 'Inter', 'Segoe UI', Arial, sans-serif;
    --radius: 10px;
    --transition: all 0.22s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: #f0f4f8;
    color: #1a2a3a;
    font-size: 15px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── TOP BAR ────────────────────────────────────────────────── */
#n2-topbar {
    background: var(--navy);
    border-bottom: 1px solid var(--border);
}

.n2-topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    flex-wrap: wrap;
}

/* Logo */
.n2-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.n2-logo img {
    height: 48px;
    width: auto;
}

.n2-logo-text {
    color: var(--white);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.65;
    line-height: 1.3;
    max-width: 120px;
}

/* Primary Nav */
.n2-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.n2-nav li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
    opacity: 0.85;

    font-weight: 700;
    color: var(--orange);

}

.n2-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* CTA Buttons (top right) */
.n2-topbtns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.n2-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    background: #102344de;
}

.n2-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.n2-btn-outline .n2-arrow {
    width: 24px;
    height: 24px;
    border: 0px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Contact info top-right */
.n2-contact-topright {
    color: var(--white);
    text-align: right;
    font-size: 13px;
    line-height: 1.5;
    flex-shrink: 0;
}

.n2-contact-topright .phone {
    font-weight: 700;
    font-size: 14px;
    color: var(--orange);
}

.n2-contact-topright .email {
    opacity: 0.7;
    font-size: 12px;
}


/* ── SEARCH BAR ROW ─────────────────────────────────────────── */
#n2-search-row {
    background: var(--navy);
    padding: 12px 0;
}

.n2-search-row-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Breadcrumbs */
.n2-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.n2-bc-home {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.n2-bc-home:hover {
    opacity: 1;
}

.n2-bc-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    user-select: none;
}

.n2-bc-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.n2-bc-item:hover {
    color: var(--orange);
}

.n2-bc-current {
    color: var(--orange);
    font-weight: 600;
    cursor: default;
}

/* Search form */
.n2-search-form {
    display: flex;
    align-items: center;
    background: #102344de;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    padding: 0 8px 0 20px;
}

.n2-search-form.full {
    width: 100%;
    margin: 0 25%;
}

.n2-search-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 6px;
    letter-spacing: 0.03em;
}

.n2-search-form input[type="text"] {
    flex: 1;
    min-width: 320px;
    border: none;
    outline: none;
    padding: 11px 12px;
    font-family: var(--font);
    font-size: 14.5px;
    color: #fff;
    background: transparent;
}

.n2-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.n2-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 18px 10px 10px;
    color: #1a2a3a;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.n2-search-btn:hover {
    color: var(--orange);
}


/* ── HEADER WRAPPER (topbar + search + hero) ────────────────── */
#n2-header {
    background: #001437 url('../img/new2/hero-bg2.jpg') top center no-repeat;
    /*background-size: cover;*/
}

/* ── TOP BAR: transparent — inherits header bg ───────────────── */
#n2-topbar {
    background: transparent;
}

/* ── SEARCH ROW: transparent — inherits header bg ────────────── */
#n2-search-row {
    background: transparent;
}

/* ── HERO ───────────────────────────────────────────────────── */
#n2-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 90px;
    min-height: 480px;
}

/*
#n2-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8,21,42,0.97) 38%, rgba(8,21,42,0.55) 70%, rgba(8,21,42,0.15) 100%);
    pointer-events: none;
}

#n2-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(232,160,32,0.04) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.06'%3E%3Cpath d='M10 0v60M20 0v60M30 0v60M40 0v60M50 0v60M0 10h60M0 20h60M0 30h60M0 40h60M0 50h60'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
    */

.n2-hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.n2-hero-left {
    color: var(--white);
}

.n2-hero-h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    background: -webkit-linear-gradient(209deg, #ffffff, #ffedd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.n2-hero-divider {
    width: 44px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
    margin-bottom: 20px;
}

.n2-hero-sub {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.82;
    margin-bottom: 44px;
    line-height: 1.5;
}

/* Feature icon row */
.n2-features {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.n2-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    opacity: 0.9;
}

.n2-feat-icon {
    width: 52px;
    height: 52px;
    border: 0x solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;

    backdrop-filter: blur(4px);
}

.n2-feat-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    color: #e8a020;
    line-height: 1.3;
    max-width: 95px;
}

/* Hero product image */
.n2-hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.n2-hero-right img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
    animation: n2-float 5s ease-in-out infinite;
}

@keyframes n2-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── SERVICE CARDS (floating) ───────────────────────────────── */
#n2-services {
    background: transparent;
    padding: 0 28px;
    position: relative;
    z-index: 10;
    margin-top: -52px;
}

.n2-services-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.n2-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.n2-card {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 2px solid #edf0f4;
    transition: var(--transition);
    cursor: pointer;
    border-image: linear-gradient(0deg, #fff, #c6cfde, #fff) 1;
}

.n2-card:last-child {
    border-right: none;
}

.n2-card:hover {
    background: #fafbff;
    transform: translateY(-3px);
}

.n2-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 30px;
    color: var(--orange);
}

.n2-card-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.n2-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f1d2e;
    margin-bottom: 8px;
}

.n2-card p {
    font-size: 13px;
    color: var(--orange-dark);
    line-height: 1.55;
    font-weight: 500;
}

/* ── ABOUT / CTA SECTION ────────────────────────────────────── */
#n2-about {
    max-width: 1300px;
    margin: 64px auto 60px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    align-items: center;
}


.n2-about-text {
    font-size: 18px;
    font-weight: 700;
    color: #08152a;
    line-height: 1.6;
    margin-bottom: 36px;
}

.n2-about-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}





/* ── ABOUT / CTA SECTION ────────────────────────────────────── */
#n2-content {
    max-width: 1300px;
    margin: 64px auto 60px;
    padding: 0 28px;

    align-items: center;
}


.n2-content-text {
    font-size: 18px;
    font-weight: 700;
    color: #08152a;
    line-height: 1.6;
    margin-bottom: 36px;
}

.n2-content-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}





/* Dark pill buttons */
.n2-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--navy);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.n2-btn-dark:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 21, 42, 0.22);
}

.n2-btn-dark .icon {
    font-size: 15px;
}

.n2-btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--orange);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 50px;
    border: 2px solid var(--navy);
    transition: var(--transition);
    white-space: nowrap;
}

.n2-btn-orange:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.n2-btn-orange .icon {
    font-size: 15px;
}

.n2-about-right img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(8, 21, 42, 0.18);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
#n2-footer {
    background: var(--navy);
    background: url(../img/new2/Footer.svg) center center no-repeat #001537;
    padding: 32px 28px 24px;
    margin-top: 0;
}

.n2-footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.n2-footer-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.n2-footer-contact {
    text-align: right;
}

.n2-footer-contact .phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    display: block;
    margin-bottom: 4px;
}

.n2-footer-contact .email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.n2-footer-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 20px;
}

.n2-footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1.8;
}

.n2-footer-bottom a {
    color: var(--orange);
    opacity: 0.8;
    transition: var(--transition);
}

.n2-footer-bottom a:hover {
    opacity: 1;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .n2-hero-inner {
        grid-template-columns: 1fr;
    }

    .n2-hero-right {
        display: none;
    }

    #n2-about {
        grid-template-columns: 1fr;
    }

    .n2-about-right {
        display: none;
    }

    .n2-cards {
        grid-template-columns: 1fr;
    }

    .n2-card {
        border-right: none;
        border-bottom: 1px solid #edf0f4;
    }

    .n2-card:last-child {
        border-bottom: none;
    }

    .n2-topbar-inner {
        padding: 0;
    }

    .n2-nav {
        gap: 2px;
    }

    .n2-contact-topright {
        display: none;
    }
}

@media (max-width: 640px) {
    .n2-features {
        gap: 16px;
    }

    .n2-topbtns {
        display: none;
    }

    .n2-nav li a {
        font-size: 12px;
        padding: 6px 8px;
    }
}


/* ══════════════════════════════════════════════════════════════
   SEARCH PAGE — #bigsearch bar
   ══════════════════════════════════════════════════════════════ */

#n2-content {
    padding: 0;
}

#bigsearch {
    background: #206dbc;
    border-bottom: 8px solid #175286;
    box-shadow: 0 150px 140px -160px rgba(0, 0, 0, .75) inset;
    padding: 30px 25px;
    text-align: center;
    width: 100%;
}

#bigsearch form .nw {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 700px;
    width: 100%;
}

#bigsearch input[type="text"] {
    flex: 1 1 300px;
    min-width: 0;
    border: 1px solid #14609a;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-size: 17px;
    line-height: 1;
    padding: 10px 14px;
    background: #fff;
    color: #111;
    outline: none;
}

#bigsearch form a {
    background: #3b3b3b;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 -15px 25px -15px rgba(0, 0, 0, .5) inset;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    flex-shrink: 0;
}

#bigsearch form a img {
    display: block;
}

/* limit dropdown */
#bigsearch .limitpp {
    display: inline-flex;
    align-items: stretch;
    margin-left: 8px;
}

#bigsearch .limitpp select {
    border: 1px solid #14609a;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
    padding: 8px 10px;
    cursor: pointer;
}

#resultshead {
    color: #fff;
    font-size: 13px;
    padding: 14px 0 0;
}

#resultshead .key {
    color: #fffe91;
    font-weight: 600;
}

#resultshead .pages {
    background: #175286;
    border-radius: 4px;
    padding: 3px 8px;
    margin-left: 6px;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID — flexbox, 4 cols → 2 → 1
   ══════════════════════════════════════════════════════════════ */

#productlist {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

#productlist>div.size {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    /* handled by .row padding */
}

/* Each card wrapper */
#productlist .row {
    width: 25%;
    padding: 12px;
    box-sizing: border-box;
}

/* The card itself */
#productlist .product {
    display: flex;
    flex-direction: column;
    background: #3b3b3b;
    overflow: hidden;
    border-radius: 3px;
    text-decoration: none;
    height: 100%;
    transition: box-shadow 200ms ease;
}

#productlist .product:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

/* Image */
#productlist .crop {
    overflow: hidden;
    flex-shrink: 0;
}

#productlist .row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    transition: opacity 200ms ease, transform 200ms ease;
}

#productlist .product:hover img {
    opacity: .85;
    transform: scale(1.02);
}

/* Text info */
#productlist .manu {
    color: #a5a5a5;
    display: block;
    font-size: 12px;
    padding: 10px 10px 0;
}

#productlist .part {
    color: #fff;
    display: block;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 10px 2px;
    transition: background 200ms;
}

#productlist .desc {
    color: #a5a5a5;
    display: block;
    font-size: 11px;
    padding: 2px 10px 10px;
    flex: 1;
    /* push prices to bottom */
    transition: background 200ms;
}

#productlist .product:hover .part,
#productlist .product:hover .manu,
#productlist .product:hover .desc {
    background: #111;
}

/* Price bands — flex row at bottom */
#productlist .cb {
    display: none;
}

/* was clearfix, not needed */

/* Override old float-based c-4 columns with flex */
#productlist .product>.c-4 {
    width: auto !important;
    float: none !important;
}

#productlist .product {
    /* price row wrapper — use a sub-flex */
}

/* Wrap the three price divs in a flex row automatically */
#productlist .new,
#productlist .ref,
#productlist .rep {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    position: relative;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

/* Force price row to be a flex row */
#productlist .product>.new,
#productlist .product>.ref,
#productlist .product>.rep {
    /* These are siblings — make a pseudo flex-row via a wrapper trick.
       Since PHP outputs them as siblings, we use CSS grid on the parent. */
}

/* Better approach: use CSS grid on the .product for the price zone */
#productlist .product {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    /* crop / manu / part / desc / (space) / price-row */
}

/* Make the three price bands sit in one row */
#productlist .new {
    background: #175286;
    grid-row: 6;
}

#productlist .ref {
    background: #14609a;
    grid-row: 6;
}

#productlist .rep {
    background: #2783e1;
    grid-row: 6;
}

/* Use subgrid/columns trick: price cells use grid column */
#productlist .product {
    grid-template-columns: 1fr 1fr 1fr;
}

#productlist .crop {
    grid-column: 1 / -1;
}

#productlist .manu {
    grid-column: 1 / -1;
}

#productlist .part {
    grid-column: 1 / -1;
}

#productlist .desc {
    grid-column: 1 / -1;
    grid-row: 4 / 6;
}

#productlist .cb {
    display: none;
}

#productlist .new {
    grid-column: 1;
}

#productlist .ref {
    grid-column: 2;
}

#productlist .rep {
    grid-column: 3;
}

/* Price labels */
#productlist .type {
    color: rgba(255, 255, 255, .7);
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
}

/* Quantity badge */
#productlist .qty {
    background: #3aa615;
    border-radius: 100%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    position: absolute;
    top: -12px;
    right: 6px;
}

/* ── No results ── */
#noresults {
    padding-top: 30px;
    clear: both;
}

#noresults li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

/* ── Pagination ── */
#pagination {
    text-align: center;
    padding: 20px 0 40px;
}

#pagination ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
}

#pagination ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    background: #fff;
    color: #175286;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 150ms, color 150ms;
}

#pagination ul li a:hover {
    background: #175286;
    color: #fff;
}

#pagination ul li a.current {
    background: #175286;
    color: #fff;
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    #productlist .row {
        width: 33.333%;
    }
}

@media (max-width: 700px) {
    #productlist .row {
        width: 50%;
    }

    #bigsearch input[type="text"] {
        flex-basis: 180px;
    }
}

@media (max-width: 420px) {
    #productlist .row {
        width: 100%;
    }
}