﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #333;
    padding-bottom: 50px;
}

.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px 20px 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    gap: 20px;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
}

.header h3 {
    color: #2c3e50;
    letter-spacing: 1px;
    margin: 0;
}

#img1{
    border: #333 2px solid;
    border-radius: 100px;
    width: 120px;
    height: auto;
    object-fit: cover;
}

#img2{
    border: #333 2px solid;
    border-radius: 100px;
    width: 60px;
    height: auto;
    object-fit: cover;
    position: relative;
    top: -60px;
    left: 10px;
}


.center-text {
    text-align: center;
    justify-self: center;
}

.intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #666;
    line-height: 1.6;
    padding: 0 20px;
}

.categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.category-btn {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    height: 60px;
    outline: none;
    overflow: hidden;
}

.category-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: 0.3s;
}

.category-text {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #4f7cff;
    border-color: #4f7cff;
    padding-right: 25px;
    box-shadow: 0 5px 15px rgba(79, 124, 255, 0.3);
}

.category-btn:hover .category-text,
.category-btn.active .category-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 12px;
    color: white;
}

.products {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.product-card {
    background-color: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4f7cff;
}

.image-container {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.product-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.product-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
    min-height: 50px;
}

.price {
    font-size: 1.2rem;
    color: #4f7cff;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}
.profile-icon img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
    cursor: pointer;
}

@media (max-width: 900px) {
    .header {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 20px;
    }

    #img1,
    .profile-icon,
    .center-text {
        justify-self: center;
    }
}
