/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #FF3A46;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Enforce zero top gap across all pages */
html,
body {
    margin: 0 !important;
}

html {
    padding: 0 !important;
}

body {
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Keep body text nodes at zero size; top-level blocks restore 1rem below. */
    font-size: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Restore base font size for real page sections/elements. */
body > * {
    font-size: 1rem;
}

/* Offset only the first content block after fixed header */
.header + .slider-section,
.header + .banner-section,
.header + .product-page-breadcrumb,
.header + .main-content {
    margin-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo a {
    display: block;
    padding: 0.25rem 0.5rem;
}

.logo a img {
    height: 65px;
}

.logo svg {
    display: block;
}

/* ===== Navigation ===== */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 165px;
    box-shadow: none;
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    display: block;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--accent-color);
}

/* ===== Mobile Contact Section in Nav ===== */
.nav-contact-mobile {
    display: none;
    padding: 1rem 2rem;
    background-color: rgba(255, 58, 70, 0.05);
    border-top: 1px solid var(--border-color);
}

.nav-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-phone-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.nav-phone-number:hover {
    color: #e6323d;
}

.nav-contact-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
}

.nav-contact-btn:hover {
    background-color: #e6323d;
}

/* ===== Header Contact ===== */
.header-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.language-switch:hover {
    border-color: var(--accent-color);
}

.language-switch-flag {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.language-switch-desktop {
    margin-left: -0.8rem;
}

.language-switch-mobile {
    display: none;
    margin-right: 0.45rem;
}

.phone-number a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.phone-number a:hover {
    color: #e6323d;
}

.header-contact-link {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-contact-link:hover {
    color: var(--accent-color);
}

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* ===== Banner Section (Parallax) ===== */
.banner-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    justify-content: center;
}

.breadcrumb-item a {
    color: white;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.current {
    color: var(--accent-color);
    font-weight: 500;
}

.breadcrumb-separator {
    color: white;
}

/* ===== Slider Section ===== */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 860px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    z-index: 10;
    padding: 2rem;
    opacity: 0;
}

.slider-slide.active .slider-content {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.slider-slide.active .slider-content {
    animation: fadeIn 1s ease forwards;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.slider-btn:hover {
    background-color: #e6323d;
    box-shadow: 0 4px 12px rgba(255, 58, 70, 0.4);
}

.slider-btn:active {
    transform: translateY(1px);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 80px - 600px);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 6rem 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content-left {
    padding-right: 2rem;
}

.hero-content-right {
    padding-left: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #e6323d;
    box-shadow: 0 6px 12px rgba(255, 58, 70, 0.3);
}

.hero-image {
    flex: 1;
}

.hero-image-left {
    order: -1;
}

/* Home featured machine images: blend into section background like Photoshop Multiply */
.home-hero-blend {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    opacity: 0.98;
}

.placeholder-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.placeholder-image svg {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-company-logo {
    max-width: 180px;
    opacity: 0.75;
    margin-bottom: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info a {
    color: #ffffff;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--accent-color);
}

.footer-info p {
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.footer-social-links svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: #cccccc;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--accent-color);
}

.footer-address strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-address p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-phone {
    margin-top: 0.75rem;
    font-weight: 600;
}

.footer-bottom {
    background-color: #0d0d0d;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */

/* ===== Banner & Breadcrumb Responsive ===== */
@media screen and (max-width: 1200px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .breadcrumb {
        padding: 1rem 1.5rem;
    }
}

@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }

    .footer-social-links {
        justify-content: center;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 600px) {
    .banner-section {
        height: 250px;
    }
    
    .banner-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .breadcrumb {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1200px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .section-container {
        padding: 0 1.5rem;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .slider-container {
        height: 760px;
    }
    
    .slider-content {
        max-width: 400px;
        padding: 1.5rem;
    }
    
    .slider-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    .nav.active {
        display: block;
    }
    #mobile-search-container {
        display: none;
    }
    .nav.active #mobile-search-container {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 1rem 0 0;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.5rem 0;
        display: none;
        background-color: rgba(255, 58, 70, 0.02);
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1.5rem 0.75rem 3rem;
    }
    
    .nav-contact-mobile {
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
    }

    .language-switch-mobile {
        display: inline-flex;
    }

    .language-switch-desktop {
        display: none;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-contact {
        display: none;
    }
    
    .section-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .hero-content-left,
    .hero-content-right {
        padding: 0;
        text-align: center;
    }
    
    .hero-image-left,
    .hero-image-right {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-container {
        height: 650px;
    }
    
    .slider-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        margin: 0;
        padding: 1.5rem;
    }
    
    .slider-title {
        font-size: 1.8rem;
    }
    
    .slider-text {
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media screen and (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .logo svg {
        width: 150px;
        height: 50px;
    }
    
    .nav {
        top: 100%;
    }
    
    .section-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .slider-container {
        height: 560px;
    }
    
    .slider-content {
        margin: 0 0.5rem;
        padding: 1.2rem;
    }
    
    .slider-title {
        font-size: 1.5rem;
    }
    
    .slider-text {
        font-size: 0.95rem;
    }
    
    .slider-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .nav-phone-number {
        font-size: 1.1rem;
    }
    
    .nav-contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== Retina Display Support ===== */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    .hero-content h1 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .hero-description {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== Products Page Styles ===== */

/* Products Main */
.products-main {
    background-color: var(--bg-white);
}

/* Brand Filter Section */
.brand-filter-section {
    padding: 2rem 0 1.5rem 0;
    background-color: var(--bg-white);
}

.brand-filter-section .section-container {
    display: block;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Product Search Container */
.product-search-container {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-search-input {
    width: 100%;
    max-width: 600px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    color: var(--text-dark);
}

.product-search-input:focus {
    border-color: var(--accent-color);
}

.product-search-input::placeholder {
    color: var(--text-muted);
}

.brand-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.brand-filter-item {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    position: relative;
    padding: 0.55rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 102px;
}

.brand-filter-item:hover {
    border-color: var(--accent-color);
}

.brand-filter-item.active {
    border-color: var(--accent-color);
}

.brand-filter-item.active::after {
    content: "\2713";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

.brand-logo {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: contain;
    display: block;
    max-height: 68px;
}

/* Status Message */
.status-message {
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.category-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-filter-btn:hover {
    border-color: var(--accent-color);
}

.category-filter-btn.active {
    border-color: var(--accent-color);
    background-color: rgba(255, 58, 70, 0.05);
    color: var(--accent-color);
}

/* Products Section */
.products-section {
    padding: 4rem 0 6rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 40px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.product-card.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    border-color: var(--accent-color);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Products Page Responsive */
@media screen and (max-width: 1200px) {
    .brand-filters {
        gap: 0.75rem;
    }
    
    .products-grid {
        gap: 2rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 992px) {
    .brand-filter-section {
        padding: 1.5rem 0 1rem 0;
    }
    .brand-filters {
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-section {
        padding: 3rem 0 4rem;
    }
}

@media screen and (max-width: 768px) {
    .brand-filters {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        gap: 0.75rem;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .brand-filters::-webkit-scrollbar {
        display: none;
    }

    .brand-filter-item {
        flex: 0 0 calc((100% - 2.25rem) / 3.5);
        scroll-snap-align: start;
        min-height: 88px;
    }
}

@media screen and (max-width: 600px) {
    .brand-filter-section {
        padding: 0.75rem 0;
    }
    .brand-filters {
        gap: 0.75rem;
    }
    .brand-filter-item {
        padding: 0.45rem;
    }
    
    .product-search-input {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .slider-section,
    .footer {
        display: none;
    }
    
    .hero-section {
        page-break-inside: avoid;
    }
}
