.rotation {
    background: #ffffff;
}

.rotation-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
}

.rotation-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    min-height: 400px;
}

.product-card {
    background: #fefefe;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 216px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    margin-bottom: 8px;
    color: var(--ink);
}

.product-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 4px;
}

.product-price {
    font-weight: 700;
    color: var(--green);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.quick-view {
    background: rgba(15, 20, 16, 0.05);
    color: var(--ink);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.product-card:hover .quick-view,
.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--green);
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .product-image {
        height: 180px;
    }
}

@media (max-width: 700px) {
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .quick-view,
    .add-to-cart-btn {
        opacity: 1;
        transform: none;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }

    .product-card {
        padding: 24px;
    }

    .product-image {
        height: 306px;
    }

    .rotation-title {
        font-size: 2rem;
    }
}
