/*
 * KEC Website — Three-Color Design System
 *
 * Color 1 — Yellow:  #FFCC31  → accents, buttons, highlights, icons
 * Color 2 — White:   #FFFFFF  → backgrounds, header, cards
 * Color 3 — Black:   #000000  → text, footer, headings, banner
 */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yellow:       #FFCC31;
    --yellow-hover: #e4be4b;
    --white:        #FFFFFF;
    --black:        #000000;
    --black-soft:   #1A1A1A;
    --text-muted:   #444444;
    --border:       #E5E5E5;
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
    --radius:       12px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

/* ── Top quotation bar ── */
.site-topbar {
    background: #111111;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 204, 49, 0.35);
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 42px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    flex-wrap: wrap;
}

.site-topbar-copy {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-topbar-phone {
    color: var(--yellow);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    margin-left: 0.2rem;
}

.site-topbar-phone:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-topbar-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.85rem;
    border: 1px solid var(--yellow);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.site-topbar-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

/* ── Header ── */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 88px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--black);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--yellow);
    color: var(--black);
}

.main-nav a.active {
    box-shadow: inset 0 -2px 0 var(--black);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.65rem;
    min-width: 44px;
    min-height: 44px;
    z-index: 300;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

/* ── Video Section ── */
.video-section {
    padding: 3rem 0;
    background: var(--white);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    background: var(--black);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.video-placeholder-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    border: 2px dashed rgba(255, 204, 49, 0.5);
}

.video-placeholder-inner i {
    font-size: 4rem;
    color: var(--yellow);
    opacity: 0.9;
}

.video-placeholder-inner p {
    font-size: 1.25rem;
    font-weight: 700;
}

.video-placeholder-inner span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-placeholder--embed {
    border: none;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: var(--black);
    text-decoration: underline;
}


/* ── Trust Section ── */
.trust-section {
    padding: 5rem 0;
    background: var(--white);
}

.trust-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.trust-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.trust-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
}

.trust-text strong {
    color: var(--black);
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
}

/* ── CTA Section ── */
.cta-section {
    background: var(--black);
    padding: 4rem 0;
}

.cta-inner {
    text-align: center;
    color: var(--white);
}

.cta-inner h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-inner p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 48px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 204, 49, 0.4);
}

/* ── Footer ── */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
    border-top: 4px solid var(--yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer-logo-accent {
    width: 4px;
    align-self: stretch;
    min-height: 76px;
    background: linear-gradient(180deg, var(--yellow) 0%, rgba(255, 204, 49, 0.35) 100%);
    border-radius: 999px;
    flex-shrink: 0;
}

.footer-logo-mark {
    display: flex;
    align-items: center;
    min-width: 0;
    line-height: 0;
}

.footer-logo-img-wrap {
    display: inline-block;
    line-height: 0;
}

.footer-logo .logo-img {
    height: 86px;
    width: auto;
    max-width: 210px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    object-fit: contain;
    display: block;
    /* White text + bright #FFCC31 bolt on black footer */
    filter: invert(1) hue-rotate(189deg) saturate(5.5) brightness(4);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-logo:hover .logo-img {
    opacity: 0.95;
    transform: scale(1.02);
}

.footer-logo-fallback {
    align-items: center;
    gap: 0.65rem;
}

.footer-logo-fallback .logo-icon {
    margin-bottom: 0;
}

.footer-logo-fallback .logo-text {
    color: var(--white);
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.footer-company-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-contact h4,
.footer-hours h4,
.footer-social h4 {
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
}

.footer-contact ul,
.footer-hours ul {
    list-style: none;
}

.footer-contact li,
.footer-hours li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-contact i,
.footer-hours i {
    color: var(--yellow);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    word-break: break-word;
}

.footer-contact a:hover {
    color: var(--yellow);
}

.footer-phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-phone-list a {
    display: block;
}

.footer-phone-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 0.35rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    transition: all 0.2s;
}

.social-icons a:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.social-note {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-credit-link {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s, opacity 0.2s;
}

.footer-credit-link:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .trust-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .site-topbar-inner {
        gap: 0.7rem;
        min-height: 0;
    }

    .site-topbar-copy {
        font-size: 0.78rem;
    }

    .header-inner {
        padding: 0.65rem 1rem;
        gap: 1rem;
    }

    .logo-img {
        height: 62px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
        padding: 5rem 1.25rem 2rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        transition: right 0.3s ease;
        z-index: 200;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .main-nav a {
        padding: 1rem 1.15rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .video-section {
        padding: 1.5rem 0;
    }

    .video-placeholder {
        border-radius: 8px;
        max-height: none;
    }

    .video-placeholder-inner i {
        font-size: 2.75rem;
    }

    .video-placeholder-inner p {
        font-size: 1.05rem;
    }

    .video-placeholder-inner span {
        font-size: 0.8rem;
        text-align: center;
        padding: 0 1rem;
    }

    .trust-section {
        padding: 3rem 0;
    }

    .trust-header {
        margin-bottom: 2rem;
    }

    .trust-header h2 {
        font-size: 1.45rem;
    }

    .trust-text p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .trust-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 1.85rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-inner h3 {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    .cta-inner p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .btn-primary {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .site-footer {
        padding: 3rem 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-logo {
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-logo-accent {
        min-height: 64px;
    }

    .footer-logo .logo-img {
        height: 72px;
        max-width: 180px;
    }

    .footer-contact li,
    .footer-hours li {
        font-size: 0.875rem;
    }

    .social-icons a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .site-topbar-inner {
        flex-direction: column;
        gap: 0.4rem;
        padding-top: 0.5rem;
        padding-bottom: 0.55rem;
    }

    .logo-img {
        height: 56px;
    }

    .trust-stats {
        grid-template-columns: 1fr;
    }

    .trust-header h2 {
        font-size: 1.3rem;
    }

    .section-tag {
        font-size: 0.72rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 360px) {
    .header-inner {
        padding: 0.5rem 0.75rem;
    }

    .logo-img {
        height: 50px;
    }
}

/* ── Page Hero ── */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 4px solid var(--yellow);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0.75rem 0;
}

.page-hero p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero.products-hero {
    padding: 3.5rem 0 0;
    overflow: hidden;
    position: relative;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
    animation: productsHeroFadeIn 0.8s ease both;
}

@keyframes productsHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-brand-strip {
    position: relative;
    width: 100%;
    margin-top: 0.25rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid rgba(255, 204, 49, 0.15);
    background:
        radial-gradient(ellipse 80% 120% at 50% 100%, rgba(255, 204, 49, 0.08), transparent 70%);
    animation: productsHeroFadeIn 0.9s ease 0.15s both;
}

.hero-brand-strip-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(120px, 12vw);
    z-index: 2;
    pointer-events: none;
}

.hero-brand-strip-fade--left {
    left: 0;
    background: linear-gradient(to right, var(--black) 15%, transparent);
}

.hero-brand-strip-fade--right {
    right: 0;
    background: linear-gradient(to left, var(--black) 15%, transparent);
}

.hero-brand-strip-viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.hero-brand-strip-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    padding: 0.35rem 0.5rem;
    animation: heroBrandScroll 70s linear infinite;
}

.hero-brand-strip:hover .hero-brand-strip-track {
    animation-play-state: paused;
}

@keyframes heroBrandScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero-brand-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 148px;
    padding: 1rem 1.1rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    color: var(--white);
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.hero-brand-chip:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 204, 49, 0.55);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 204, 49, 0.2);
}

.hero-brand-chip-glow {
    position: absolute;
    inset: auto 50% -20%;
    width: 70%;
    height: 40%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 204, 49, 0.35), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hero-brand-chip:hover .hero-brand-chip-glow {
    opacity: 1;
}

.hero-brand-chip-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hero-brand-chip:hover .hero-brand-chip-logo {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(255, 204, 49, 0.25);
}

.hero-brand-chip-logo img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.hero-brand-chip-monogram {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.04em;
}

.hero-brand-chip-name {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    opacity: 0.88;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.hero-brand-chip:hover .hero-brand-chip-name {
    opacity: 1;
    color: var(--yellow);
}

@media (max-width: 768px) {
    .page-hero.products-hero {
        padding-top: 2.5rem;
    }

    .products-hero-content {
        padding-bottom: 1.25rem;
    }

    .hero-brand-strip {
        padding: 1rem 0 1.35rem;
    }

    .hero-brand-chip {
        min-width: 120px;
        padding: 0.75rem 0.85rem 0.7rem;
    }

    .hero-brand-chip-logo {
        width: 72px;
        height: 72px;
    }

    .hero-brand-chip-logo img {
        max-width: 56px;
        max-height: 56px;
    }

    .hero-brand-strip-track {
        gap: 0.75rem;
        animation-duration: 55s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-brand-strip-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 1rem 0.5rem;
    }

    .hero-brand-strip-viewport {
        mask-image: none;
    }

    .hero-brand-strip-fade {
        display: none;
    }

    .products-hero-content,
    .hero-brand-strip {
        animation: none;
    }
}

/* ── Categories Section ── */
.categories-section {
    padding: 2.5rem 0;
    background: #FAFAFA;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header--compact {
    margin-bottom: 1.5rem;
}

.section-header--compact h2 {
    font-size: 1.65rem;
    margin-bottom: 0.4rem;
}

.section-header--compact p {
    font-size: 0.92rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 999px;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    min-height: 58px;
}

.category-card:hover,
.category-card.active {
    border-color: var(--yellow);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-card.active {
    background: linear-gradient(135deg, #FFFDF0 0%, var(--white) 100%);
}

.category-icon {
    width: 42px;
    height: 42px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.category-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.category-name-ar {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.product-category .category-name-ar {
    display: inline;
    margin-top: 0;
}

.product-category .category-name-ar::before {
    content: '·';
    margin: 0 0.35rem;
    color: var(--text-muted);
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.category-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.category-link i {
    transition: transform 0.2s;
}

.category-card:hover .category-link i {
    transform: translateX(4px);
}

/* ── Products Section ── */
.products-section {
    padding: 4rem 0;
}

.products-layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.products-filter-bar {
    width: 100%;
}

.filter-card {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
}

.filter-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.filter-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-card h3 i {
    color: var(--yellow);
}

.products-filter-form {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-filter-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(180px, 1.2fr);
    gap: 1rem;
    flex: 1;
    min-width: min(100%, 520px);
}

.products-filter-fields .form-group {
    margin-bottom: 0;
}

.products-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.products-filter-actions .btn-primary,
.products-filter-actions .btn-secondary {
    white-space: nowrap;
}

.products-main {
    width: 100%;
}

.products-toolbar {
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.filter-active-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card--pinned {
    border-color: var(--yellow);
    box-shadow: 0 0 0 1px rgba(255, 204, 49, 0.35);
}

.product-pinned-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: var(--black);
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    display: block;
    padding: 0.5rem;
    box-sizing: border-box;
}

.product-image-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
}

.product-image-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    padding: 0.5rem;
    box-sizing: border-box;
    transition: transform 0.3s;
}

.product-image-zoom:hover img {
    transform: scale(1.04);
}

.product-image-zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.72);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: none;
}

.product-image-count {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    pointer-events: none;
}

.product-datasheet-download {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.product-datasheet-download:hover {
    transform: scale(1.08);
    background: var(--black);
    color: var(--yellow);
}

.product-card--pinned .product-datasheet-download {
    top: 2.5rem;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: zoom-out;
}

.product-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(960px, 100%);
    max-height: calc(100vh - 3rem);
    width: 100%;
    padding: 0 3rem;
}

.product-lightbox-figure {
    margin: 0;
    background: var(--white);
    border: 3px solid var(--yellow);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.product-lightbox-figure img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    background: #111;
    cursor: pointer;
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    background: var(--black);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.product-lightbox-nav:hover {
    background: var(--yellow);
    color: var(--black);
}

.product-lightbox-prev {
    left: 0.5rem;
}

.product-lightbox-next {
    right: 0.5rem;
}

.product-lightbox-counter {
    margin: 0;
    padding: 0.55rem 1rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    background: var(--black);
    color: rgba(255, 255, 255, 0.8);
}

.product-lightbox-figure figcaption {
    padding: 0.85rem 1rem 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--black);
    color: var(--white);
}

.product-lightbox-description {
    margin: 0;
    padding: 0 1rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    background: var(--black);
    max-height: min(160px, 28vh);
    overflow-y: auto;
    white-space: pre-line;
    word-break: break-word;
}

.product-lightbox-figure figcaption + .product-lightbox-description {
    padding-top: 0;
}

.product-lightbox-description + .product-lightbox-counter {
    padding-top: 0;
}

.product-lightbox-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    background: var(--black);
    color: var(--yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.product-lightbox-close:hover {
    background: var(--yellow);
    color: var(--black);
}

body.lightbox-open {
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
    font-size: 3rem;
    color: var(--yellow);
}

.product-brand-badge {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    left: auto;
    top: auto;
    z-index: 2;
    background: var(--yellow);
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 50px;
    max-width: calc(100% - 1.3rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
}

.product-categories .product-category {
    margin-bottom: 0;
}

.product-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.35rem 0 0.4rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0.55rem;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-inquire-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    margin-top: auto;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 0.1rem;
    transition: gap 0.2s, color 0.2s;
}

.product-inquire-link:hover {
    gap: 0.55rem;
    color: var(--yellow-hover);
}

.product-inquire-link i {
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #FAFAFA;
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.empty-state i {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .products-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filter-fields {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        width: 100%;
    }

    .products-filter-fields .form-group:first-child {
        grid-column: 1 / -1;
    }

    .products-filter-actions {
        width: 100%;
    }

    .products-filter-actions .btn-primary,
    .products-filter-actions .btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 2rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .category-card {
        min-height: 54px;
        padding: 0.6rem 0.85rem 0.6rem 0.6rem;
    }

    .category-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .category-card h3 {
        font-size: 0.84rem;
    }

    .products-filter-fields {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .product-card {
        flex-direction: column;
    }

    .product-card:hover {
        transform: none;
    }

    .product-image {
        width: 100%;
        min-width: 0;
        aspect-ratio: 1 / 1;
        min-height: unset;
        align-self: auto;
    }

    .product-body {
        padding: 0.75rem 0.85rem;
        min-width: 0;
    }

    .product-body h3 {
        font-size: 0.92rem;
        margin: 0.25rem 0 0.35rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-description {
        -webkit-line-clamp: 1;
        margin-bottom: 0.4rem;
        font-size: 0.78rem;
    }

    .product-category {
        font-size: 0.68rem;
    }

    .product-inquire-link {
        font-size: 0.8rem;
    }

    .product-image-zoom-hint {
        width: 1.5rem;
        height: 1.5rem;
        right: 0.35rem;
        bottom: 0.35rem;
        font-size: 0.8rem;
    }

    .product-image-count {
        left: 0.35rem;
        bottom: 0.35rem;
        font-size: 0.65rem;
    }

    .product-datasheet-download {
        width: 1.75rem;
        height: 1.75rem;
        top: 0.35rem;
        right: 0.35rem;
        font-size: 0.9rem;
    }

    .product-card--pinned .product-datasheet-download {
        top: 0.35rem;
    }

    .product-brand-badge {
        bottom: 0.4rem;
        right: 0.4rem;
        left: auto;
        top: auto;
        font-size: 0.62rem;
        padding: 0.2rem 0.45rem;
        max-width: calc(100% - 0.8rem);
    }

    .product-pinned-badge {
        top: 0.35rem;
        right: 0.35rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
    }
}

/* ── Forms & Auth ── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--black);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
    margin-top: 0.75rem;
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.auth-section {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.auth-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-logo-link:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

.auth-logo-img {
    height: 82px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.auth-logo-fallback {
    align-items: center;
    gap: 0.65rem;
}

.auth-logo-fallback .logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.75rem 0 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #FFF0F0;
    border: 1px solid #FFCCCC;
    color: #CC0000;
}

.alert-success {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: #276749;
}

/* ── Admin Panel ── */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--black);
    color: var(--white);
    padding: 1.5rem 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 2px solid rgba(255, 204, 49, 0.3);
    margin-bottom: 1rem;
}

.admin-logo i {
    color: var(--yellow);
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 204, 49, 0.15);
    color: var(--yellow);
}

.admin-nav hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.5rem;
}

.admin-content {
    margin-left: 240px;
    flex: 1;
    padding: 2rem;
    background: #F5F5F5;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.admin-header p {
    color: var(--text-muted);
    width: 100%;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-card i {
    font-size: 2rem;
    color: var(--yellow);
}

.stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.admin-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-quick-actions h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-form-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 700px;
}

.admin-form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-optional {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-table-wrap {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #FAFAFA;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .desc-cell {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-edit {
    background: var(--yellow);
    color: var(--black);
}

.btn-edit:hover {
    background: var(--yellow-hover);
}

.btn-delete {
    background: #FFF0F0;
    color: #CC0000;
    border: 1px solid #FFCCCC;
}

.btn-delete:hover {
    background: #CC0000;
    color: var(--white);
}

.btn-pin {
    background: #F5F5F5;
    color: var(--black);
    border: 1px solid var(--border);
}

.btn-pin:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}

.btn-pin-active {
    background: var(--black);
    color: var(--yellow);
    border: 1px solid var(--black);
}

.btn-pin-active:hover {
    background: #333;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.text-center {
    text-align: center;
}
