.category-page {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #f9fafb;
}

.category-page section {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 2.5rem 1rem;
}

.category-page .container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-page .card {
    position: relative;
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-page .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-page .card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .category-page .card-content {
        flex-direction: row;
        align-items: stretch;
        /* Allow content to dictate height */
        padding: 0;
    }
}

.category-page .image-wrapper {
    width: 100%;
}

@media (min-width: 768px) {
    .category-page .image-wrapper {
        flex: 0 0 260px;
        /* Slightly smaller on tablets */
    }
}

@media (min-width: 1024px) {
    .category-page .image-wrapper {
        flex: 0 0 320px;
        /* Larger on desktop */
    }
}

.category-page .image-container {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .category-page .image-container {
        height: 100%;
        padding-top: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.category-page .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .category-page .image-container img {
        position: relative;
        /* Let it fill the container naturally if needed */
        height: 100%;
        min-height: 220px;
    }
}

.category-page .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

@media (min-width: 768px) {
    .category-page .content {
        padding: 1.5rem;
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .category-page .content {
        padding: 2rem;
    }
}

.category-page .content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

@media (min-width: 768px) {
    .category-page .content h2 {
        font-size: 1.5rem;
    }
}

.category-page .badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: #0ea5e9;
    background: #f0f9ff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

@media (min-width: 768px) {
    .category-page .badge {
        font-size: 0.8125rem;
    }
}

.category-page .brands {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.category-page .brands h4 {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.category-page .brand-icon {
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.2rem;
}

@media (min-width: 768px) {
    .category-page .brand-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.category-page .brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-page .more-text {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.category-page .show-more-btn {
    padding: 0.625rem 1.5rem;
    background-color: #db2777;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .category-page .show-more-btn {
        width: auto;
        margin-top: auto;
        align-self: flex-end;
        position: absolute;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 0.875rem;
    }
}

.category-page .show-more-btn:hover {
    background-color: #be185d;
    transform: scale(1.02);
}

.category-page .shop {
    height: auto;
    min-height: 120px;
    width: 100%;
    background-color: #e6f7fd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .category-page .shop {
        height: 160px;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 0 8% 0 0;
    }
}

@media (min-width: 1024px) {
    .category-page .shop {
        height: 200px;
    }
}

.category-page .shop-img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .category-page .shop-img {
        max-height: 140px;
    }
}

@media (min-width: 1024px) {
    .category-page .shop-img {
        max-height: 180px;
    }
}
