.featured-section {
    background-color: #fefefe;
    padding: 60px 0;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-header h2 {
    font-size: 2.2rem;
    color: #323232;
    margin-bottom: 40px;
}

.featured-header p {
    font-size: 1.2rem;
    color: #666;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.featured-box {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 0;
    background: #4E1C50;
    color: white;
    padding: 5px 10px;
    border-radius: 25px 25px 25px 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.featured-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-title {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #323232;
    line-height: 1.3;
    min-height: 2.6em;
}

.featured-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.featured-short {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-prices {
    margin-bottom: 15px;
}

.featured-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-sale {
    font-size: 1.1rem;
    font-weight: bold;
    color: #768071;
}

.featured-regular {
    font-size: 0.9rem;
    color: #323232;
    text-decoration: line-through;
}

.featured-discount {
    background: #9C7B98;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.featured-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #323232;
}

.featured-btn-wrap {
    margin-top: auto;
}

.featured-btn {
    display: block;
    background: #768071;
    color: white;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.featured-btn:hover {
    background: #5a6650;
}

.featured-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

.featured-btn:disabled:hover {
    background: #cccccc;
}

.featured-btn.loading {
    position: relative;
    color: transparent;
}

.featured-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: featured-spinner 0.8s linear infinite;
}

@keyframes featured-spinner {
    to {
        transform: rotate(360deg);
    }
}

.featured-btn.disabled,
.featured-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

form.cart.submitting {
    pointer-events: none;
}

.btn-cart-icon {
    max-width: 1rem;
}

@media (max-width: 1100px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding: 40px 0;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-header {
        margin-bottom: 30px;
    }

    .featured-header h2 {
        font-size: 1.8rem;
    }

    .featured-header p {
        font-size: 1rem;
    }

    .featured-info {
        padding: 12px;
    }

    .featured-title {
        font-size: 1rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 50px 0;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .featured-header h2 {
        font-size: 1.5rem;
    }

    .featured-info {
        padding: 10px;
    }

    .featured-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .featured-short {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .featured-prices {
        margin-bottom: 10px;
    }

    .featured-sale,
    .featured-price {
        font-size: 1rem;
        color: #768071;
    }

    .featured-regular {
        font-size: 0.85rem;
    }

    .featured-price-row {
        gap: 5px;
    }

    .featured-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .featured-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: -5px;
    }

    .featured-prices-div {
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-header h2 {
        font-size: 1.4rem;
    }

    .featured-container {
        padding: 0 20px;
    }
}