@import url('responsive.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Hero Section */
.hero {
    display: flex;
    background: linear-gradient(to left, #bebebe, #242424f0) !important;
    color: white;
    padding: 120px 80px 40px 80px;
    min-height: 380px;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 58%;
    padding-right: 24px;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    width: 100%;
}

.hero p,
.hero #category-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: #f0f0f0;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    font-weight: 400;
}

.hero-image-container {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    width: auto;
    height: auto;
}

/* Company Description */
.company-description {
    background-color: #f5f5f5;
    padding: 30px 5%;
}

.company-description p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Categories */
.product-categories {
    padding: 0 5% 50px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Category Header Layout */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    gap: 20px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-tab {
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    color: #555;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: #f33434;
}

.category-tab.active {
    color: #f33434;
    font-weight: bold;
    border-bottom: 3px solid #f33434;
}

/* Product Navigation */
.product-navigation {
    background-color: #9f9f9f;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    min-width: 300px;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(120, 120, 120, 0.08);
    padding: 8px 20px;
    border: 1.5px solid #e0e0e0;
    transition: border-color 0.3s;
    width: 100%;
    position: relative;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 15px;
    background: transparent;
}

.search-box:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(120, 120, 120, 0.12);
}

.search-box::after {
    content: '';
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url('data:image/svg+xml;utf8,<svg fill="gray" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="9" cy="9" r="7" stroke="gray" stroke-width="2" fill="none"/><line x1="15" y1="15" x2="19" y2="19" stroke="gray" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center/contain;
    pointer-events: none;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.search-icon:hover {
    background-color: #d82727;
    transform: scale(1.05);
}

.search-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 16px 8px 24px 8px;
    background-color: #eaeaea;
    justify-items: center;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80, 80, 80, 0.06);
}

.product-item {
    background-color: #fff;
    padding: 14px 10px 18px 10px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s;
    box-shadow: 0 1px 6px rgba(120, 120, 120, 0.07);
    border: 1px solid #ececec;
    min-width: 0;
    width: 100%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 24px rgba(80, 80, 80, 0.13);
    border-color: #f33434;
}

.product-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
    background: #f3f3f3;
    border-radius: 8px;
    display: block;
    box-shadow: 0 1px 4px rgba(120, 120, 120, 0.05);
}

.product-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
    letter-spacing: 0.01em;
}

.product-item p {
    font-size: 0.97rem;
    color: #666;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 8px 2px 16px 2px;
    }

    .product-item {
        max-width: 100%;
    }

    .product-thumbnail {
        height: 180px;
    }

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

    .category-tabs {
        justify-content: center;
    }

    .product-navigation {
        min-width: 250px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 16px 0;
        padding: 0;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .product-navigation {
        min-width: 0;
        width: 100%;
    }

    .category-card {
        min-width: 0;
    }

    .product-item {
        padding: 10px 4px 14px 4px;
        border-radius: 8px;
    }

    .product-thumbnail {
        height: 140px;
    }

    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .category-tab {
        display: inline-block;
        min-width: 120px;
        font-size: 1rem;
        padding: 10px 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px 20px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
        align-items: center;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero p,
    .hero #category-description {
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }

    .product-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        justify-content: flex-start;
        min-width: 200px;
    }
}