/* HEADER */
.wc-header {
    border: 1px solid #e74c3c;
    padding: 15px 20px;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wc-headermen {
    border: 1px solid #338a0a;
    padding: 15px 20px;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

.wc-header h2 {
    font-size: 30px;
    font-weight:700;
    font-family: 'Playfair Display', serif;
}
.wc-headermen h2 {
      font-size: 30px;
    font-weight:700;
    font-family: 'Playfair Display', serif;
}

.wc-links a {
    margin-left: 15px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
     font-weight:500;
}

/* CAROUSEL */
.wc-carousel-wrapper {
    position: relative;
    padding: 20px;
}

.wc-product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.wc-product-slider::-webkit-scrollbar {
    display: none;
}

/* CARD */

.wc-card {
    min-width: 240px;
    max-width: 240px;   /* ADD THIS */
    flex-shrink: 0;
}
.wc-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}
.wc-card a{
    text-decoration:none;
}

.wc-price {
    font-size: 15px;
    margin-top: 8px;
    color:black;
}

  .wc-name {
    font-size: 14px;
    color: black;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.4;
    height: 40px; /* fix height so all cards equal */
}

/* BUTTON (RED 🔴) */
.wc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: red;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
}

.wc-left {
    left: 0;
}

.wc-right {
    right: 0;
}

.wc-btn:hover {
    background: #c0392b;
}

/* RESPONSIVE */
@media (max-width:1024px){
    .wc-card{
        min-width: 200px;
    }
}

@media (max-width:768px){
    .wc-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
     .wc-headermen{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .wc-headermen h2{
            font-size: 20px;
        }
    .wc-header h2{
        font-size: 20px;
    }

    .wc-card img{
        height: 220px;
    }
    .wc-card{
        min-width: 160px;
        max-width: 160px;
    }
}

@media (max-width:480px){
     .wc-card{
        min-width: 140px;
        max-width: 140px;
    }

    .wc-card img{
        height: 200px;
    }
}
