/* ======================================
   PRODUCT STYLE CATEGORY SECTION
   ====================================== */
.product-style-section {
    padding: 80px 5%;
    background: var(--ivory);
}

.product-style-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

/* ======================================
   PRODUCT CARD
   ====================================== */
.product-style-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-primary);
    background: var(--gunmetal);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: productFadeUp 0.8s ease forwards;
}

.product-style-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-style-item:nth-child(2) {
    animation-delay: 0.3s;
}

.product-style-item:nth-child(3) {
    animation-delay: 0.5s;
}

.product-style-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-accent);
}

/* ======================================
   IMAGE (THIN LONG)
   ====================================== */
.product-style-image {
    width: 100%;
    height: 180px;
    /* thin long rectangle */
    object-fit: cover;
    /* cover but preserve aspect ratio */
    transition: transform 0.6s ease;
}

.product-style-item:hover .product-style-image {
    transform: scale(1.05);
}

/* ======================================
   OVERLAY TEXT & BUTTON
   ====================================== */
.product-style-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 118, 208, 0.8), rgba(38, 37, 36, 0.85));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.product-style-overlay h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-style-overlay p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.product-style-item .btn {
    font-size: 0.95rem;
    padding: 10px 25px;
}

/* ======================================
   ANIMATION KEYFRAMES
   ====================================== */
@keyframes productFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================
   RESPONSIVENESS
   ====================================== */
@media (max-width: 768px) {
    .product-style-overlay h3 {
        font-size: 1.3rem;
    }

    .product-style-overlay p {
        font-size: 0.9rem;
    }

    .product-style-image {
        height: 140px;
    }
}
