/* Styles for Products Page */

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: #F5F5DC;
}

.categories__title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: #8B4513;
}

.categories__subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.categories__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categories__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.categories__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.categories__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categories__item:hover .categories__img {
    transform: scale(1.1);
}

.categories__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #FFFFFF;
}

.categories__name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.categories__description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #DDDDDD;
}

.categories__button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #8B4513;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.categories__button:hover {
    background-color: #6B3100;
    color: #FFFFFF;
}

/* Product Section */
.product-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.product-section:nth-child(even) {
    background-color: #F5F5DC;
}

.product-section__header {
    text-align: center;
    margin-bottom: 50px;
}

.product-section__title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #8B4513;
}

.product-section__description {
    font-size: 18px;
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.product-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.1);
}

.product-card__content {
    padding: 20px;
}

.product-card__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333333;
}

.product-card__description {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.product-card__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #8B4513;
}

.product-card__rating {
    display: flex;
    align-items: center;
    color: #FFD700;
    font-size: 14px;
}

.product-card__rating span {
    margin-left: 5px;
    color: #666666;
}

.product-card__buttons {
    display: flex;
    gap: 10px;
}

.product-card__button {
    flex: 1;
    display: inline-block;
    padding: 10px 0;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-card__button--primary {
    background-color: #8B4513;
    color: #FFFFFF;
}

.product-card__button--primary:hover {
    background-color: #6B3100;
    color: #FFFFFF;
}

.product-card__button--secondary {
    background-color: transparent;
    color: #8B4513;
    border: 1px solid #8B4513;
}

.product-card__button--secondary:hover {
    background-color: #8B4513;
    color: #FFFFFF;
}

/* Custom Furniture Section */
.custom-furniture {
    padding: 80px 0;
    background-color: #F5F5DC;
}

.custom-furniture__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.custom-furniture__content {
    padding-right: 20px;
}

.custom-furniture__title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #8B4513;
}

.custom-furniture__text {
    margin-bottom: 30px;
    color: #555555;
}

.custom-furniture__features {
    list-style: none;
    margin-bottom: 30px;
}

.custom-furniture__feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.custom-furniture__feature i {
    color: #008080;
    margin-right: 15px;
    margin-top: 3px;
}

.custom-furniture__button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8B4513;
    color: #FFFFFF;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.custom-furniture__button:hover {
    background-color: #6B3100;
    color: #FFFFFF;
}

.custom-furniture__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-furniture__img {
    width: 100%;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-furniture__container {
        grid-template-columns: 1fr;
    }
    
    .custom-furniture__content {
        padding: 0;
        order: 1;
    }
    
    .custom-furniture__image {
        order: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .categories__grid,
    .product-section__grid {
        grid-template-columns: 1fr;
    }
    
    .product-card__buttons {
        flex-direction: column;
    }
}
