
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #f8f8f8;
}

a {
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    background: white;
    border-bottom: 1px solid #ddd;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;
    color: #222;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #444;
}

.nav a:hover {
    color: #000;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background:
        linear-gradient(
            120deg,
            #f1f1f1,
            #ffffff
        );

    min-height: 390px;

    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 60px 20px;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: 52px;
    line-height: 1.05;
}

.hero p {
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.6;
    color: #666;
}

.button {
    display: inline-block;

    background: #222;
    color: white;

    text-decoration: none;

    padding: 13px 24px;

    border-radius: 4px;
}

.button:hover {
    background: #000;
}


/* =========================================================
   MAIN
   ========================================================= */

.section {
    padding: 60px 20px;
}

.section.white {
    background: white;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.section-title p {
    margin: 0;
    color: #777;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.category {
    min-height: 180px;

    background: white;
    border: 1px solid #e2e2e2;

    text-decoration: none;

    padding: 30px;

    display: flex;
    align-items: flex-end;

    position: relative;
    overflow: hidden;

    transition: .2s;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0,0,0,.09);
}

.category h3 {
    margin: 0;
    font-size: 21px;
}

.category span {
    display: block;
    color: #999;
    font-size: 13px;
    margin-top: 6px;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}

.product {
    background: white;
    border: 1px solid #e5e5e5;

    transition: .2s;
}

.product:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);
}

.product-image {
    display: flex;

    align-items: center;
    justify-content: center;

    aspect-ratio: 1 / 1;

    background: white;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    padding: 12px;

    object-fit: contain;
}

.no-image {
    color: #aaa;
}

.product-content {
    padding: 16px;
}

.product-category {
    color: #999;

    font-size: 12px;

    text-transform: uppercase;

    margin-bottom: 7px;
}

.product-title {
    margin: 0 0 8px;

    font-size: 17px;

    line-height: 1.35;
}

.product-title a {
    text-decoration: none;
}

.product-title a:hover {
    text-decoration: underline;
}

.product-code {
    font-size: 12px;
    color: #777;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: center;
}

.about h2 {
    font-size: 34px;
    margin-top: 0;
}

.about p {
    color: #666;
    line-height: 1.8;
    font-size: 17px;
}

.about-box {
    background: #eee;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: bold;
    color: #aaa;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #202020;
    color: #ccc;

    padding: 45px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 40px;
}

.footer h3 {
    color: white;
    margin-top: 0;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-links {
    line-height: 2;
}

.copyright {
    max-width: 1200px;

    margin: 35px auto 0;

    padding-top: 20px;

    border-top: 1px solid #444;

    color: #888;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .categories,
    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .about {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .categories,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: #222;
    color: #ccc;
    font-size: 13px;
}

.topbar-inner {
    max-width: 1200px;
    margin: auto;
    padding: 8px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar-right {
    display: flex;
    gap: 10px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.main-header {
    background: white;
    border-bottom: 1px solid #ddd;

    position: relative;
    z-index: 50;
}

.main-header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: block;
}

.site-logo img {
    max-width: 210px;
    height: auto;
    display: block;
}


/* =========================================================
   NAV
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > a,
.nav-dropdown > a {
    display: block;

    padding: 18px 11px;

    text-decoration: none;

    color: #333;

    font-size: 14px;

    white-space: nowrap;
}

.main-nav > a:hover,
.nav-dropdown > a:hover {
    color: #c21f26;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    display: none;

    min-width: 220px;

    background: white;

    border: 1px solid #ddd;

    box-shadow:
        0 5px 18px rgba(0,0,0,.12);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;

    padding: 11px 15px;

    color: #333;

    text-decoration: none;

    border-bottom: 1px solid #eee;

    font-size: 13px;
}

.dropdown-menu a:last-child {
    border-bottom: 0;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #c21f26;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.language {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-left: 10px;

    font-size: 13px;
}

.language a {
    color: #333;
    text-decoration: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 950px) {

    .main-header-inner {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav > a,
    .nav-dropdown > a {
        padding: 10px;
    }

    .dropdown-menu {
        z-index: 100;
    }
}
.hero-slider {
    position: relative;
    min-height: 430px;
    background: #f4f4f4;
    overflow: hidden;
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide-inner {
    max-width: 1200px;
    min-height: 430px;
    margin: auto;
    padding: 45px 70px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-category {
    color: #999;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-copy h1 {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 18px;
    color: #222;
}

.hero-code {
    margin-bottom: 25px;
    color: #777;
}

.hero-product-image {
    height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 60px;

    border: 0;
    background: rgba(0,0,0,.25);
    color: white;

    font-size: 32px;
    cursor: pointer;
}

.slider-arrow:hover {
    background: rgba(0,0,0,.5);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #aaa;
    cursor: pointer;
}

.slider-dot.active {
    background: #c21f26;
}

@media (max-width: 800px) {

    .hero-slide-inner {
        grid-template-columns: 1fr;
        padding: 35px 45px;
        text-align: center;
    }

    .hero-product-image {
        height: 260px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }
}


/* SIDEBAR */

.sidebar {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 20px;
    height: fit-content;
}

.sidebar h3 {
    margin-top: 0;
}

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

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: #333;
}

.category-list a:hover {
    text-decoration: underline;
}

.category-list .child {
    padding-left: 18px;
    font-size: 14px;
}

.category-list .active {
    font-weight: bold;
}


/* PRODUCTS */

.products-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: .2s;
}

.product-card:hover {
    box-shadow:
        0 5px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.no-image {
    color: #999;
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 7px;
}

.product-name {
    font-size: 18px;
    margin: 0 0 10px;
}

.product-name a {
    color: #222;
    text-decoration: none;
}

.product-name a:hover {
    text-decoration: underline;
}

.product-code {
    font-size: 13px;
    color: #777;
}

.badge {
    display: inline-block;
    background: #eee;
    font-size: 11px;
    padding: 4px 7px;
    margin-top: 8px;
    margin-right: 4px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .catalog {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 600px) {

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        margin: 0 10px;
    }

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

/* HEADER */

.header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

.nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #444;
}

.nav a:hover {
    color: #000;
}


/* PAGE */

.page {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
}

.page-title {
    margin-bottom: 30px;
}


/* LAYOUT */

.catalog {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 35px;
}


.nav a {
    margin-left: 24px;
    color: #444;
    text-decoration: none;
}

.nav a:hover {
    color: #000;
}


/* PAGE */

.page {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
}


/* BREADCRUMB */

.breadcrumb {
    font-size: 14px;
    margin-bottom: 25px;
    color: #777;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}


/* PRODUCT */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 35px;
    border: 1px solid #e5e5e5;
}


/* GALLERY */

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.thumbnails {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0,1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    border: 1px solid #ddd;
    background: white;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    padding: 5px;
}

.thumbnail:hover {
    border-color: #555;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* INFO */

.product-category {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-category a {
    color: inherit;
    text-decoration: none;
}

.product-title {
    font-size: 34px;
    margin: 0 0 20px;
}

.product-code {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.description {
    line-height: 1.7;
    white-space: pre-line;
}

.badges {
    margin-top: 25px;
}

.badge {
    display: inline-block;
    background: #eee;
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 5px;
}


/* RELATED */

.related {
    margin-top: 50px;
}

.related h2 {
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap: 20px;
}

.related-card {
    background: white;
    border: 1px solid #e5e5e5;
}

.related-image {
    display: block;
    aspect-ratio: 1 / 1;
}

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

.related-info {
    padding: 15px;
}

.related-name {
    margin: 0 0 7px;
    font-size: 16px;
}

.related-name a {
    color: #222;
    text-decoration: none;
}

.related-code {
    font-size: 12px;
    color: #777;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .product-layout {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 550px) {

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        margin: 0 8px;
    }

    .product-layout {
        padding: 20px;
    }

    .product-title {
        font-size: 27px;
    }

    .thumbnails {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

}