@charset "utf-8";

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Section */
.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    margin-top: 6rem;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.7rem;
    height: 600px;
}

.main-image {
    background-color: #888;
    border-radius: 0.2rem;
    overflow: hidden;
    cursor: pointer;
}

.main-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.thumbnail {
    background-color: #888;
    border-radius: 0.2rem;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
}

.brand {
    font-size: 1rem;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1.2rem;
}

.button-container {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

/* Save button */
.save-btn {
    background-color: #fff;
    border: 2px solid #333;
    color: #333;
    cursor: pointer;
    padding: 11px 24px 13px 24px;
    border-radius: 1.5rem;
    font-size: 1em;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    text-transform: lowercase;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.save-btn:hover {
    background-color: #f0f0f0;
}

.save-btn.saved {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.heart-icon {
    width: 28px;
    height: 28px;
    color: #000;
    transition: all 0.3s;
}

.save-btn.saved .heart-icon {
    fill: #ff0000;
    color: #ff0000;
}


.product-description {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.add-to-cart {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.add-to-cart:hover {
    background-color: #333;
}

.price {
    margin-bottom: 7rem;
}

/* Product Details */
.product-details {
    margin-top: 2.5rem;
}

.detail-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.detail-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.specifications {
    margin-bottom: 2rem;
}

.spec-title {
    font-weight: bold;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.spec-item {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.profile-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 6.7rem;
    border-radius: 1.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

.profile-button:hover {
    background-color: #333;
}

/* Product Grid Sections */
.section-title {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 60px 0 30px;
}

.product-grid {
    position: relative;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    margin-bottom: 4rem;
}

.product-card {
    position: relative;
    max-width: 100%;
    background-color: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-0.3rem);
}

.product-card a {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #888;
    overflow: hidden;
}

.product-card img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 12px;
    background-color: #fff;
}

.product-card-title {
    font-size: 0.9rem;
    font-weight: normal;
    margin: 0 0 8px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-price {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #000;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    margin-bottom: 4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-section {
        gap: 2.5rem;
    }

    .gallery-container {
        height: 500px;
    }

    .product-grid,
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .gallery-container {
        height: 400px;
    }

    .product-grid,
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .thumbnail-container {
        flex-direction: row;
        height: 6rem;
    }

    .product-grid,
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .add-to-cart,
    .profile-button {
        width: 100%;
    }
}
