/* @import 'tailwind.css'; */

/* ============================================
    RESET & BASE
============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 26px;
    color: #777777;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.2;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

p {
    margin: 0;
}

/* ============================================
    CUSTOM SCROLLBAR
============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4178F2;
    border-radius: 3px;
}


/* ============================================
    PAGE TITLE / TITLE BAR
============================================ */

.title-bar {
    position: relative;
    width: 100%;
    height: 460px;

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

    background: url('../images/banner_product_dark.png') center center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}

.title-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.1);
}

.page-title {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.breadcrumb {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #999999;
    line-height: 1.6;
}

.breadcrumb a {
    color: #777777;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #4178F2;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #cccccc;
}

/* ============================================
    PRODUCT CATEGORIES GRID
    Layout: 2 colonnes, image | content
============================================ */
.products-section {
    padding: 100px 0;
}

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

.product-cat-row {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    gap: 80px;
    margin-bottom: 90px;
}

.product-slider {

    position: relative;

    background: #f3f6fa;

    height: 410px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;
}

.slider-images {

    width: 100%;
    height: 100%;
    position: relative;
}

.slider-images img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: contain;

    opacity: 0;

    transition: .5s;
}

.slider-images img.active {
    opacity: 1;
}

.slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;

    height: 42px;

    border: none;

    background: white;

    color: #17b54a;

    font-size: 26px;

    cursor: pointer;

    z-index: 5;

    border-radius: 50%;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {

    position: absolute;

    bottom: 18px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 8px;
}

.slider-dots span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background: #d6d6d6;
}

.slider-dots span.active {
    background: #17b54a;
}

.product-cat-content {

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.product-cat-title {

    font-size: 52px;

    font-family: 'Roboto Condensed';

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 25px;

    color: #111;
}

.product-cat-list {

    margin-bottom: 35px;
}

.product-cat-list li {

    margin-bottom: 12px;

    font-size: 20px;

    color: #404040;
}

.product-cat-list li::before {

    content: "• ";

    color: #17b54a;
}

.product-toggle summary {

    cursor: pointer;

    color: #16b34a;

    font-weight: 700;

    font-size: 18px;

    list-style: none;
}

.product-toggle summary::before {

    content: "▶";

    margin-right: 10px;

    color: #16b34a;
}

.product-toggle[open] summary::before {

    content: "▼";
}

.product-toggle ul {

    margin-top: 20px;

    padding-left: 20px;
}

.product-toggle li {

    margin-bottom: 12px;

    line-height: 1.7;
}

/* ============================================
    CTA SECTION
============================================ */
.cta-section {
    background: #4178F2;
    padding: 70px 0;
    border-top: 1px solid #eeeeee;
}

.cta-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cta-desc {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 19px;
    color: #ffffff;
    line-height: 1;
}

.cta-btn-wrap {
    text-align: right;
}

.btn-filled {
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    color: #ffffff;
    background: #4178F2;
    padding: 16px 36px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    cursor: pointer;
}

.btn-filled:hover {
    background: #fff;
    color: #4178F2;
}

/* ============================================
           ANIMATIONS
        ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
           MOBILE NAVIGATION
        ============================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

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

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(3px);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #4178F2;
}

.mobile-nav-logo {
    width: 100px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 0;
    border-bottom: 1px solid #eeeeee;
}

.mobile-nav-links a {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    padding: 16px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mobile-nav-links a:hover {
    color: #4178F2;
    padding-left: 10px;
}

.mobile-nav-links a.active {
    color: #4178F2;
}

/* ============================================
           PAGE LOADER
        ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.done {
    opacity: 0;
    visibility: hidden;
}

.page-loader-inner {
    text-align: center;
}

.page-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eeeeee;
    border-top-color: #4178F2;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
    margin: 0 auto 15px;
}

.page-loader-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999999;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
    RESPONSIVE
============================================ */
@media (max-width: 1024px) {

    .product-cat-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-cat-row:nth-child(even) .product-cat-img-wrap {
        order: 1;
    }

    .product-cat-row:nth-child(even) .product-cat-content {
        order: 2;
    }

    .product-cat-img-wrap {
        padding: 40px;
        min-height: 350px;
    }

    .product-cat-content {
        padding: 40px;
    }

    .sub-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-cat-item:nth-child(4n) {
        border-right: 1px solid #eeeeee;
    }

    .sub-cat-item:nth-child(2n) {
        border-right: none;
    }

    .sub-cat-item:nth-last-child(-n+4) {
        border-bottom: 1px solid #eeeeee;
    }

    .sub-cat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .cta-btn-wrap {
        text-align: center;
    }
}

@media(max-width:992px) {
    .product-cat-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-slider {
        height: 320px;
    }
    .product-cat-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .header-inner {
        height: 70px;
    }

    .header-logo {
        width: 100px;
    }

    .page-title {
        font-size: 28px;
    }

    .title-bar {
        padding: 110px 0 35px;
    }

    .product-cat-img-wrap {
        padding: 30px;
        min-height: 280px;
    }

    .product-cat-img {
        max-height: 250px;
    }

    .product-cat-content {
        padding: 30px 25px;
    }

    .product-cat-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .sub-cats-section {
        padding: 50px 0;
    }

    .sub-cats-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .sub-cats-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .sub-cat-item {
        border-right: none !important;
        padding: 25px 20px;
    }

    .sub-cat-item:not(:last-child) {
        border-bottom: 1px solid #eeeeee;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 22px;
    }

    .mobile-nav {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .product-cat-img-wrap {
        padding: 20px;
        min-height: 220px;
    }

    .product-cat-img {
        max-height: 200px;
    }

    .product-cat-content {
        padding: 25px 20px;
    }

    .product-cat-title {
        font-size: 18px;
    }

    .product-cat-list li {
        font-size: 13px;
        line-height: 2;
    }

    .page-title {
        font-size: 24px;
    }
}