/* Sticky nav language switcher styles */
.sticky-lang-switcher {
    position: fixed;
    top: 16px;
    right: 82px;
    height: 64px;
    display: flex;
    align-items: center;
    z-index: 1200;
    background: transparent;
    pointer-events: auto;
    transition: opacity 0.2s;
}

body:not(.navbar-scrolled) .sticky-lang-switcher {
    display: none !important;
}

body.navbar-scrolled .sticky-lang-switcher {
    display: flex !important;
}

/* Design tokens */
:root {
    --primary-color: #1d2d50;
    --secondary-color: #6c757d;
    --accent-color: #d72638;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #1d2d50;
    --border-radius: 20px;
    --border-width: 1px;
    --border-style: solid;
    --container-max: 1280px;
    --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background: #fff;
    min-height: 100%;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color)!important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    line-height: 1.1;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h1::after,
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary-color);
    margin-top: 6px;
    margin-bottom: 18px;
}

section {
    margin: 7rem auto;
}

.content {
    max-width: var(--container-max);
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

.border-containter,
.border-container {
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    padding: 32px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.containter-photo {
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 160ms ease, color 160ms ease;
}

.lang-link:hover,
.lang-link.active {
    background: rgba(29, 45, 80, 0.08);
    color: #fff;
}

/* Layout */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 0;
    background: transparent;
    z-index: 1000;
}

header nav.content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    border-radius: var(--border-radius);
    border: none;
    padding: 18px 22px;
    background: transparent;
}

/* Logo visible in navbar (hidden on mobile in @media below) */
header nav .nav-brand {
    display: block;
}

header nav .nav-brand img {
    height: 50px;
}

/* Product pages: show logo in navbar */
.product-page header nav .nav-brand {
    display: inline-flex;
    height: 50px;
    padding: 5px;
}

.product-page header nav .nav-brand img {
    max-height: 40px;
}

.navbar-scrolled header nav .nav-brand {
    display: inline-flex;
    height: 50px;
    padding: 5px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-color);
    z-index: 1001;
    transition: color 200ms ease;
}

.mobile-menu-toggle.active {
    color: #fff;
}

.mobile-menu-toggle .material-symbols-rounded {
    font-size: 2rem;
}

/* ...existing code... */




/* ...existing code... */


body.navbar-scrolled header nav.content {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: background 0.2s, box-shadow 0.2s;
}

body.navbar-scrolled .lang-switcher {
    background: none;
    box-shadow: none;
}

.lang-switcher-menu .lang-link:hover {
    background-color: transparent !important;
    opacity: 0.7;
}

header nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}

header nav .nav-menu a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: color 140ms ease, background-color 140ms ease;
}

/* Language switcher to the right in initial state */
header nav .lang-switcher {
    margin-left: auto;
}

header nav .nav-menu a:hover,
header nav .nav-menu a.active {
    background: rgba(29, 45, 80, 0.08);
}

main {
    margin: 0 auto;
}

footer {
    margin-top: 4rem;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(620px, 90vh, 1080px);
    padding: 14vh 0 6rem;
    overflow: hidden;
    margin-bottom: -7rem;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12%;
    pointer-events: none;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.hero .content {
    position: relative;
    z-index: 1;
}

.hero .hero-content {
    max-width: clamp(420px, 48vw, 760px);
}

.hero .logo {
    height: 4rem;
    width: auto;
    margin-bottom: 2.5rem;
}

.hero .hero-content h1,
.hero .hero-content p {
    text-shadow: 10px 0 20px rgba(255, 255, 255, 0.9);
}

.hero-bg {
    background-image: url('/assets/images/hero-bg-2.png');
    background-repeat: no-repeat;
    background-position: right -20vw top;
    background-size: auto clamp(960px, 100%, 1177px);
}

.small-hero {
    min-height: 420px;
    padding: 12vh 0 4rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background: #fff;
    color: var(--primary-color);
    border: var(--border-width) var(--border-style) var(--border-color);
}

.btn-outline:hover {
    background: #f6f7fb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Section headings */
.categories-title {
    position: relative;
    display: block;
    width: 100%;
    padding: 1.5rem 12px;
    margin: -3rem auto 3rem;
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(to bottom, rgba(29, 45, 80, 0.5) 0%, rgba(29, 45, 80, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    will-change: transform;
    transition: opacity 240ms ease;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.category-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    color: inherit;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.category-tile:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.category-tile.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.category-tile.disabled .tile-photo img {
    filter: grayscale(70%);
}

.tile-photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: #f2f4f7;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-label {
    padding: 12px 16px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}

/* About */
#about-us {
    margin-top: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.about-left {
    grid-column: 1;
    grid-row: 1;
}

.about-right {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 16px 20px;
}

.stat-number {
    font-weight: 800;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: right;
    padding-right: 12px;
}

.stat-text {
    font-weight: 600;
    text-align: left;
}

.image-tile {
    grid-row: 2;
}

.image-left {
    grid-column: 1;
}

.image-right {
    grid-column: 2;
}

.image-tile .tile-photo {
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    border-bottom: none;
}

/* Products showcase */
#products-showcase {
    position: relative;
}

.products-wrapper {
    position: relative;
    z-index: 2;
    min-height: 720px;
}

.products-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to right, #fff 0%, transparent 15%),
        linear-gradient(to left, #fff 0%, transparent 15%);
}

.products-wrapper .swiper {
    width: min(1200px, 90vw);
    max-height: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.products-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.products-wrapper .swiper-slide img {
    max-height: 640px;
    width: auto;
    object-fit: contain;
}

.product-info {
    position: absolute;
    width: clamp(260px, 30vw, 380px);
    z-index: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
}

.product-info.left {
    left: 0;
}

.product-info.right {
    right: 0;
}

.product-info.top {
    top: 0;
}

.product-info.bottom {
    bottom: 10%;
}

.product-info .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info .info-title {
    margin: 16px 0 10px;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.product-info .info-desc {
    color: var(--text-color);
}

.product-info::after,
.product-info::before {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    background: var(--border-color);
    pointer-events: none;
    border-radius: 2px;
}

.product-info.left::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 50px;
    background: var(--border-color);
}

.product-info.left.top::before {
    top: 50%;
    left: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(50px) rotate(45deg);
    transform-origin: left center;
    background: linear-gradient(to right, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

.product-info.left.bottom::before {
    top: 50%;
    left: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(50px) rotate(-45deg);
    transform-origin: left center;
    background: linear-gradient(to right, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

.product-info.right::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 50px;
    background: var(--border-color);
}

.product-info.right.top::before {
    top: 50%;
    right: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(-50px) rotate(-45deg);
    transform-origin: right center;
    background: linear-gradient(to left, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

.product-info.right.bottom::before {
    top: 50%;
    right: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(-50px) rotate(45deg);
    transform-origin: right center;
    background: linear-gradient(to left, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

/* Featured carousel and cards */
#featured {
    margin-top: 6rem;
}

/* featured-carousel base consolidated later; removed duplicate */

.product-card-link {
    display: block;
    color: inherit;
    height: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

/* product-card photo styles consolidated later; removed duplicate */

.product-card .card-meta {
    display: grid;
    grid-template-columns: 0.6fr 0.4fr;
    align-items: center;
    padding: 1rem;
    border-top: var(--border-width) var(--border-style) var(--border-color);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.product-card .card-meta-left {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.product-card .card-meta-right {
    color: var(--secondary-color);
    font-weight: 600;
    text-align: right;
    font-size: 0.75rem;
}

.product-card .card-title {
    color: var(--accent-color);
    font-weight: 800;
    padding: 1rem;
    margin: 0;
}

.product-card .card-desc {
    color: var(--text-color);
    padding: 0 1rem 1rem;
}

.product-card .card-actions {
    margin-top: auto;
}

.product-card .card-actions .btn {
    width: 100%;
    margin: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-top: var(--border-width) var(--border-style) var(--border-color);
}

/* Product grids (listing) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* B2B */
#b2b .b2b-intro {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

#b2b .b2b-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

#b2b .b2b-left.border-containter {
    background-image: url('/assets/images/bg-2.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    min-height: 560px;
}

#b2b .b2b-right {
    display: grid;
    grid-template-rows: repeat(3, auto);
    gap: 24px;
}

#b2b .b2b-card {
    display: grid;
    gap: 12px;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

#b2b .b2b-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

#b2b .b2b-card .stat-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

#b2b .b2b-card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

#b2b .b2b-card-desc {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
}

#b2b .b2b-right .b2b-card {
    grid-template-columns: 7fr 3fr;
    align-items: stretch;
}

#b2b .b2b-right .b2b-card.border-containter {
    padding: 0;
}

#b2b .b2b-right .b2b-card>.stat-box {
    grid-column: 1;
    padding: 24px 28px;
}

#b2b .b2b-card-photo {
    grid-column: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#b2b .b2b-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
}

/* Product detail page */
.breadcrumbs {
    margin: 1.5rem 0;
    color: var(--secondary-color);
    font-size: 1rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.product-page {
    margin-top: 7rem;
    margin-bottom: 4rem;
}

.product-layout {
    display: flex;
    gap: 32px;
    align-items: start;
}

.product-left {
    flex: 0 0 50%;
    max-width: 50vw;
}

.main-image {
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnails a {
    display: block;
}

.thumbnails img {
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbnails img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnails img:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-soft);
}

.product-model {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-short-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.product-full-desc {
    margin-bottom: 1.5rem;
}

.product-features-specs {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.product-features,
.product-specs {
    flex: 1;
}

/* Product features in info section */
.product-info-section .product-features {
    margin: 1.5rem 0;
}



.product-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    padding: 6px 12px;
    background: rgba(29, 45, 80, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.product-features table {
    width: 100%;
    border-collapse: collapse;
}

.product-features td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs th,
.product-specs td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-specs th {
    font-weight: 600;
    width: 40%;
    background: rgba(255, 255, 255, 0.8);
}

.product-specs td {
    width: 60%;
}

.product-full-desc-end {
    margin-top: 2rem;
    max-width: 100%;
}


.product-specs td,
.product-specs th {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.product-actions {
    margin-top: 1.5rem;
}

/* Footer */
.footer-stack {
    position: relative;
    display: grid;
    place-items: center;
    padding-bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #a4aeb7 0%, rgba(248, 249, 250, 0) 100%);
}

.footer-stack .footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    z-index: -10;
    pointer-events: none;
    width: clamp(50vw, 95%, 2000px);
}

.footer-stack .footer-logo svg {
    width: 100%;
    height: auto;
}

.footer-stack footer {
    position: relative;
    z-index: 10;
}

/* footer-grid base defined later; removed duplicate */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    height: 50px;
    width: auto;
}

.footer-left p {
    font-size: 1rem;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-block h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* contact-block ul base defined later; removed duplicate */

.contact-block li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-block li a:hover {
    text-decoration: underline;
}

.mobile-contact-header {
    display: none;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

/* Icons block removed (duplicate); consolidated icons defined later */

/* Responsive */
/* Portrait rules consolidated into the main portrait block below */

/* =====================
   Layout: Header / Main / Footer (static)
   ===================== */
header {
    position: static;
    width: 100%;
    background: transparent;
    padding: 10px 0;
}

header.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

main {
    margin: 0 auto;
}

footer {
    margin-top: 5rem;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    /* create stacking context */
    z-index: 1;
    /* place footer above */
    width: 100%;

}

.categories-title {
    will-change: transform;
}

/* Optional global spacing for sections */
section {
    margin: 20rem auto 10rem auto!important;
}

/* =====================
   Component: Categories Title
   ===================== */
.categories-title {
    /* Layout */
    position: relative;
    z-index: 10;
    /* Increased z-index to prevent hiding behind other elements */
    display: block;
    /* Changed to block for reliable text-align */
    width: 100%;
    padding: 2rem 20px;
    /* Added padding to increase hit area */
    margin: -4rem auto 0;
    /* Moved up by 4rem total */

    /* Typography */
    font-size: 13vw;
    /* Start large */
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    /* Force single line */
    /* overflow: hidden; REMOVED to prevent clipping */

    /* Visuals */
    background: linear-gradient(to bottom, rgba(29, 45, 80, 0.5) 0%, rgba(29, 45, 80, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Positioning adjustments */
    pointer-events: none;
    margin-bottom: 0;

    /* Fix for AOS + Parallax conflict */
    /* Ensure transform is NOT transitioned, so JS updates are instant */
    transition: opacity 0.8s ease-out !important;
    /* Force high z-index to stay above content */
    z-index: -50 !important;
}

/* Ensure AOS doesn't override the transition property */
/* Removed to allow parallax transform to work on desktop */

/* Landscape rules consolidated into the main landscape block below */

/* =====================
   Component: Categories Grid / Tiles
   ===================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.category-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    transition: box-shadow 180ms ease, transform 180ms ease;
    /* unify transitions */
}

.category-tile:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tile-photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: #f2f4f7;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

.tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-label {
    padding: 12px 16px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
}

/* =====================
   Section: About Us (6 tiles)
   ===================== */
#about-us {
    margin-top: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.about-left {
    grid-column: 1;
    grid-row: 1;
}

.about-right {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Stat boxes balance 50/50 */
.stat-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 16px 20px;
}

.stat-number {
    font-weight: 800;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: right;
    padding-right: 12px;
}

.stat-text {
    font-weight: 600;
    text-align: left;
}

/* Bottom image tiles */
.image-tile {
    grid-row: 2;
}

.image-left {
    grid-column: 1;
    grid-row: 2;
}

.image-right {
    grid-column: 2;
    grid-row: 2;
}

.image-tile .tile-photo {
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    border-bottom: none;
}

/* =====================
   Section: Products Showcase
   ===================== */
#products-showcase {
    position: relative;
}

.products-wrapper {
    position: relative;
    z-index: 2;
    min-height: 720px;
    /* was 560px, make the section taller */
}

.products-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to right, #fff 0%, transparent 15%),
        linear-gradient(to left, #fff 0%, transparent 15%);
}

/* Carousel centered and behind */
.products-carousel,
.products-wrapper .swiper {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.products-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.products-wrapper .swiper-slide img {
    max-height: 560px;
    width: auto;
    object-fit: contain;
}

/* Constrain the visual viewport of the carousel */
.products-carousel .carousel-viewport {
    width: min(1200px, 90vw);
    /* enlarge width */
    max-height: 1000px;
    /* allow taller image */
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.carousel-track {
    width: min(1200px, 90vw);
    /* match viewport width */
    max-height: 1000px;
    /* match viewport max height */
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    /* stack slides */
}

.carousel-track img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 1000px;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 300ms ease;
    /* fade */
}

.carousel-track img.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: -40px;
    /* place dots below the carousel frame */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    /* above carousel */
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: var(--primary-color);
}

/* Info boxes positioned to edges */
.product-info {
    position: absolute;
    width: clamp(260px, 30vw, 380px);
    z-index: 1;
    text-align: center;
}

.product-info.left {
    left: 0;
}

.product-info.right {
    right: 0;
}

.product-info.top {
    top: 0;
}

.product-info.bottom {
    bottom: 10%;
}

.product-info .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info .info-title {
    margin: 20px 0;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
}

.product-info .info-desc {
    color: var(--text-color);
    text-align: center;
}

/* Connector lines from product info boxes (50px + 50px diagonal) */
.product-info::after,
.product-info::before {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    background: var(--border-color);
    pointer-events: none;
}

/* LEFT boxes: start at center of right edge, go right 50px, then diagonal toward center */
.product-info.left::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 50px;
}

.product-info.left.top::before {
    top: 50%;
    left: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(50px) rotate(45deg);
    transform-origin: left center;
}

.product-info.left.bottom::before {
    top: 50%;
    left: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(50px) rotate(-45deg);
    transform-origin: left center;
}

/* RIGHT boxes: start at center of left edge, go left 50px, then diagonal toward center */
.product-info.right::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 50px;
}

.product-info.right.top::before {
    top: 50%;
    right: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(-50px) rotate(-45deg);
    transform-origin: right center;
}

.product-info.right.bottom::before {
    top: 50%;
    right: 100%;
    width: 50px;
    transform: translateY(-50%) translateX(-50px) rotate(45deg);
    transform-origin: right center;
}

/* Gradient ends applied only to diagonal segments; straight segments remain solid */
.product-info.left::after {
    background: var(--border-color);
}

.product-info.right::after {
    background: var(--border-color);
}

.product-info.left.top::before,
.product-info.left.bottom::before {
    background: linear-gradient(to right, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

.product-info.right.top::before,
.product-info.right.bottom::before {
    background: linear-gradient(to left, var(--primary-color) 0%, rgba(29, 45, 80, 0) 100%);
}

/* optional smoothing */
.product-info::after,
.product-info::before {
    border-radius: 2px;
}

/* =====================
   Hero
   ===================== */
.hero {
    position: relative;
    display: grid;
    /* enable vertical centering */
    align-items: center;
    /* center children vertically */
    min-height: clamp(600px, 960px, 1080px);
    padding: 0;
    overflow: hidden;
    margin-bottom: -10rem;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10%;
    pointer-events: none;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -60;
}

.hero .content {
    /* keep text block constrained and left-aligned */
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    top: -1rem;
    position: relative;
}

.hero .hero-content {
    max-width: clamp(400px, 45vw, 720px);
}

.hero .logo {
    height: 4rem;
    width: auto;
    margin-bottom: 3rem;
}

/* Background image clipped to hero, full cover, anchored top-right */
.hero-bg {
    background-image: url('/assets/images/hero-bg-2.png');
    background-repeat: no-repeat;
    background-position: right -20vw top;
    background-size: auto clamp(960px, 100%, 1177px);
}

.hero .hero-content h1,
p {
    text-shadow: 10px 0 20px rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-right: 20px;
    padding: 20px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-outline {
    background: #fff;
    color: var(--primary-color);
    border: var(--border-width) var(--border-style) var(--border-color);
}

.btn-outline:hover {
    background: #f7f9fc;
}

/* Hero actions layout */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.hero-actions .btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.6);
}

/* =====================
   Featured Products Carousel
   ===================== */
#featured {
    margin-top: 6rem;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.featured-controls {
    display: flex;
    gap: 8px;
}

/* Arrows: common look and absolute positioning */
.featured-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Featured track: ensure it aligns to the carousel width and cards size correctly */
.featured-carousel {
    position: relative;
    z-index: 2;
    /* ensure arrows position against carousel */
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: visible;
    /* allow arrows outside content */
}

.featured-carousel .swiper-button-prev,
.featured-carousel .swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: var(--border-width) var(--border-style) var(--border-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.featured-carousel .swiper-button-prev::after,
.featured-carousel .swiper-button-next::after {
    font-size: 1rem;
    font-weight: bold;
}

/* default offset (landscape as base) without affecting layout width */
.featured-carousel .swiper-button-prev {
    left: -15px;
}

.featured-carousel .swiper-button-next {
    right: -15px;
}

/* Featured track: ensure it aligns to the carousel width and cards size correctly */
.featured-carousel {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: visible;
}

.featured-carousel .swiper-pagination {
    position: static;
    margin-top: 3rem;
}

.featured-carousel .swiper {
    padding: 4px;
    /* Prevent border clipping */
}

.featured-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.featured-carousel .product-card-link {
    width: 100%;
}

/* Cards stay within track */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
    height: 100%;
    /* Ensure card takes full height of the link/slide */
}

.product-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Photo section on top: contain */
.product-card .card-photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-height: 360px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;

}

.product-card .card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Meta strip: border only top/bottom; left category, right model */
.product-card .card-meta {
    display: grid;
    grid-template-columns: 0.6fr 0.4fr;
    align-items: center;
    padding: 1rem;
    border-radius: 0;
    border: none;
    border-top: var(--border-width) var(--border-style) var(--border-color);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
}

/* Align with HTML class names */
.product-card .card-meta .card-meta-left {
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.product-card .card-meta .card-meta-right {
    color: var(--secondary-color);
    font-weight: 500;
    text-align: right;
    font-size: 0.75rem;
}

/* Title (red) and short description */
.product-card .card-title {
    color: var(--accent-color);
    font-weight: 800;
    padding: 1rem;
}

.product-card .card-desc {
    color: var(--text-color);
    padding: 0 1rem;
    margin: 0 0 1rem 0;
}

/* Bottom button: 100% width, sharp top corners, integrated into card frame */
.product-card .card-actions {
    margin-top: auto;
}

.product-card .card-actions .btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    /* flush */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    /* sharp top corners */
    border-top: var(--border-width) var(--border-style) var(--border-color);
    /* blend with card frame */
}

/* Footer utilities (safe to add; does not override existing behavior) */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer-left,
.footer-right {
    text-align: left;
}

.footer-left p {
    font-size: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-block h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-block ul {
    list-style: disc;
    padding-left: 20px;
}

/* Footer stacking container (kept as-is) */
.footer-stack {
    position: relative;
    display: grid;
    place-items: center;
    margin: 0;
    padding-bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #a4aeb7 0%, rgba(248, 249, 250, 0) 100%);

}

.footer-stack .footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    z-index: -10;
    pointer-events: none;
    width: clamp(50vw, 95%, 2000px);
}

.footer-stack .footer-logo svg {
    width: 100%;
    height: auto;
}

.footer-stack footer {
    position: relative;
    z-index: 10;
}

.footer-stack .border-containter {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === Material Symbols Rounded (icons) === */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
    /* default size */
    line-height: 1;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

/* Product info icon sizing */
.product-info .info-icon {
    display: flex;
    align-items: center;
}

.product-info .info-icon .material-symbols-rounded {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Footer contact list with icons */
.contact-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.contact-block li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-block li a {
    color: inherit;
    text-decoration: none;
}

.contact-block li a:hover {
    text-decoration: underline;
}

.contact-block li .material-symbols-rounded {
    font-size: 1rem;
    color: var(--primary-color);
}

/* =====================
   B2B section (cleaned)
   ===================== */
#b2b .b2b-intro {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Layout inspired by About Us: left intro, right vertical cards */
#b2b .b2b-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

#b2b .b2b-left {
    grid-column: 1;
}

#b2b .b2b-left.border-containter {
    background-image: url('/assets/images/bg-2.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    min-height: 560px;
}

#b2b .b2b-right {
    grid-column: 2;
    display: grid;
    grid-template-rows: repeat(3, auto);
    gap: 24px;
}

/* B2B cards: text-only (images removed) */
#b2b .b2b-card {
    display: grid;
    gap: 12px;
    border-radius: var(--border-radius);
    border: var(--border-width) var(--border-style) var(--border-color);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

#b2b .b2b-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

#b2b .b2b-card .stat-box {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 16px;
}

#b2b .b2b-card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

#b2b .b2b-card-desc {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 300;
}

/* B2B right cards: enforce 7/3 split */
#b2b .b2b-right .b2b-card {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 0;
    align-items: stretch;
}

/* Remove border-containter padding for split layout, we will pad text area only */
#b2b .b2b-right .b2b-card.border-containter {
    padding: 0;
}

/* Text area (current markup uses .stat-box as content wrapper) */
#b2b .b2b-right .b2b-card>.stat-box {
    grid-column: 1;
    padding: 24px 28px;
}

/* Image area container */
#b2b .b2b-right .b2b-card .b2b-card-photo {
    grid-column: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#b2b .b2b-right .b2b-card .b2b-card-photo img {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center left;
}

/* Footer grid base defined earlier; removed duplicate */

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mobile-contact-header {
    display: none;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

/* =====================
   Responsive Styles
   ===================== */

/* Default styles act as landscape (aspect > 1/1). Portrait overrides below. */

/* Portrait (aspect <= 1/1) */
@media (max-aspect-ratio: 1/1) {

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Pokaż brand logo na mobile i wycentruj */
    header nav .nav-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
    }

    header nav .nav-brand img {
        max-height: 55px;
        margin-right: -10vw;
    }

    /* Global portrait tweaks (merged) */
    body {
        font-size: 14px;
    }

    /* Spacing and layout */
    section {
        margin: 3rem auto;
    }

    /* Product grids: 1 column on mobile portrait */
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Hero background fit for portrait */
    .hero-bg {
        background-image: url('/assets/images/hero-bg-mobile.png');
        background-position: center top;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    /* Product showcase height adjustment */
    .products-wrapper {
        min-height: 560px;
    }

    /* Product Info Connectors */
    .product-info::after,
    .product-info::before {
        content: none;
    }

    /* Product Info Layout */
    .products-wrapper {
        display: block;
    }

    .product-info {
        position: absolute;
        width: 80px;
        height: 80px;
        padding: 20px;
        /* Match active padding to prevent jump */
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transition: width 0.3s ease, height 0.3s ease;
        cursor: pointer;
        z-index: 10;
        background: rgba(255, 255, 255, 0.6);
    }

    .product-info .info-icon {
        margin-bottom: 0;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        /* Center icon */
        align-items: center;
        flex-shrink: 0;
    }

    .product-info.active {
        width: 280px;
        height: auto;
        padding: 20px;
        z-index: 20;
        /* display: block; removed to keep flex */
        text-align: center;
        align-items: center;
    }

    .product-info.active .info-icon {
        display: flex;
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .product-info .info-title,
    .product-info .info-desc {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }

    .product-info.active .info-title,
    .product-info.active .info-desc {
        opacity: 1;
        max-height: 180px;
        /* Dostatecznie duża wartość dla tekstu */
        margin: 0.5rem 0;
    }

    /* Position corners - use TOP for all to prevent jumping upwards */
    .product-info.left.top {
        top: 20px;
        left: 20px;
    }

    .product-info.right.top {
        top: 20px;
        right: 20px;
    }

    /* Anchor bottom elements to TOP (approx 60%) so they expand downwards */
    .product-info.left.bottom {
        top: 60%;
        left: 20px;
        bottom: auto;
    }

    .product-info.right.bottom {
        top: 60%;
        right: 20px;
        bottom: auto;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* B2B Layout */
    #b2b .b2b-layout {
        grid-template-columns: 1fr;
    }

    #b2b .b2b-right .b2b-card {
        grid-template-columns: 1fr;
        position: relative;
        z-index: 2;
    }

    /* Product Layout */
    .product-layout {
        flex-direction: column;
        gap: 20px;
    }

    .product-left {
        flex: none;
        max-width: 100%;
    }

    .main-image {
        height: 350px;
    }

    .thumbnails img {

        height: 60px;
    }

    .product-features-specs {
        flex-direction: column;
        gap: 1rem;
    }

    /* About Us Stacked */
    #about-us .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    #about-us .about-left {
        grid-column: 1;
        grid-row: 1;
    }

    #about-us .image-left {
        grid-column: 1;
        grid-row: 2;
    }

    #about-us .about-right {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 1fr;
    }

    #about-us .image-right {
        grid-column: 1;
        grid-row: 4;
    }

    /* --- Merged from Mobile (<= 768px) --- */

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    header nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 98vh;
        background: var(--primary-color);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 48px 20px 20px;
        gap: 0;
        transition: right 300ms ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 20px 0 0 20px;
    }

    header nav .nav-menu.active {
        right: 0;
    }

    header nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }

    header nav .nav-menu li:last-child {
        border-bottom: none;
        margin-top: auto;
        padding-top: 20px;
    }

    header nav .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px 12px;
        text-align: left;
        color: #ffffff;
    }

    header nav .lang-switcher {
        margin-left: 0;
        justify-content: center;
        padding: 12px 0;
    }


    @media (max-width: 900px) {

        /* Mobile language flags in one line */
        .lang-switcher {
            flex-direction: row;
            align-items: center;
        }

        /* Product grids: 2 columns on tablets */
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        /* ...existing code... */
    }

    /* Hero BG kept above */

    .content {
        padding: 0 20px;
    }

    /* Featured Arrows */
    .featured-carousel .swiper-button-prev {
        left: -0.75rem;
    }

    .featured-carousel .swiper-button-next {
        right: -0.75rem;
    }



    /* Footer Mobile Layout */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 24px;
    }

    .footer-right {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        justify-items: start;
        text-align: left;
    }

    .mobile-contact-header {
        display: block;
        grid-column: 1 / -1;
    }

    .contact-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .contact-block ul li {
        justify-content: flex-start;
    }

    .footer-stack .footer-logo {
        width: 100vw;
    }

    .footer-stack .footer-logo svg {
        width: auto;
        height: 100%;
    }

    /* Header/Nav */
    header nav.content {
        padding: 12px 16px;
    }

    header nav .nav-menu {
        gap: 10px;
    }

    /* Hero Adjustments */
    .hero {
        min-height: 90vh;
        margin-bottom: -6rem;
        align-items: start;
        padding-top: 15vh;
    }

    .hero .content {
        padding: 0 20px;
        height: 100%;
    }

    .hero .hero-content h1::after {
        display: none;
    }

    .categories-title {
        margin-top: -5rem;
        /* Aggressive move up on mobile */
        min-height: 60px;
        margin-bottom: 0;
    }

    .hero .hero-content {
        position: absolute;
        max-width: 100%;
        text-align: center;
        bottom: 0;
    }

    .hero .hero-content h1 {
        font-size: 2rem;
    }

    .hero .logo {
        display: none;
        height: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        justify-content: center;
        gap: 10px;
    }

    /* Featured */
    .featured-track {
        grid-auto-columns: 100%;
    }

    /* Cards */
    .product-card .card-photo {
        max-height: 280px;
    }

    .btn {
        padding: 16px 18px;
        width: 100%;
        /* From 480px query */
        margin-right: 0;
    }

    /* B2B Mobile */
    #b2b .b2b-layout {
        grid-template-columns: 1fr;
    }

    #b2b .b2b-right {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #b2b .b2b-right .b2b-card {
        display: grid;
        grid-template-columns: 7fr 3fr;
        width: 100%;
    }

    #b2b .b2b-right .b2b-card>.stat-box {
        display: grid;
        padding: 20px;
    }

    #b2b .b2b-right .b2b-card .b2b-card-photo {
        width: 100%;
        min-height: 180px;
    }

    /* From 480px query */
    .tile-label {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* From 460px query - Single column categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================
   Navbar States (overlay + sticky)
   ===================== */
/* Initial navbar: non-sticky, transparent, no blur */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* above hero */
    background: transparent;
}

header nav.content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: flex-start;
    padding: 12px 20px;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    transform: none;
}

/* Sticky navbar: appears when hero logo leaves viewport */
body.navbar-scrolled header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;

}

body.navbar-scrolled header nav.content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 20px 20px;
    border: var(--border-width) var(--border-style) var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    justify-content: space-between;
    transform: translateY(0);
}

body.navbar-scrolled header nav .lang-switcher {
    position: relative;
}

body.navbar-scrolled header nav .lang-switcher-menu {
    /* Use the same style as default, but you can override if needed */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}