/* Special Products Container - Card Layout */
.special-products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Align the description/features content with the cards */
.detail-products-features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    /* Add some padding for smaller screens */
    box-sizing: border-box;
}

/* Individual Card Styling */
.special-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    width: 350px;
    /* Fixed width for cards */
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.special-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #0d58f2;
}

/* Popular Badge */
.special-product-card.popular {
    border: 2px solid #0d58f2;
    /* Highlight border */
}

.special-product-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d58f2;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(13, 88, 242, 0.3);
}

/* Typography */
.special-product-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.special-product-desc {
    color: #777;
    font-size: 16px;
    text-align: center;
    margin: 25px;
    line-height: 1.5;
    min-height: 42px;
    /* Ensure alignment if descriptions vary */
}

/* Price Section */
.special-product-price-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.special-product-price {
    color: #333;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
}

.special-product-currency {
    font-size: 20px;
    vertical-align: top;
    margin-right: 2px;
}

.special-product-period {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.special-product-renewal {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

/* Action Button */
.special-product-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #fff;
    color: #0d58f2;
    border: 2px solid #0d58f2;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    cursor: pointer;
}

.special-product-btn:hover {
    background: #0d58f2;
    color: #fff;
}

.special-product-btn.out-of-stock {
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.special-product-btn.out-of-stock:hover {
    background: #fff;
    color: #999;
}


/* Features List */
.special-product-features-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.special-product-features li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

/* Custom Checkmark */
.special-product-features li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: #4caf50;
    /* Green check */
    font-size: 14px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .special-products-container {
        padding: 20px 0;
    }

    .special-product-card {
        width: 100%;
        max-width: 400px;
    }
}

/* Period Selection Dropdown */
.period-selection-wrapper {
    position: relative;
    width: 100%;
}

.period-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    overflow: hidden;
}

.period-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.period-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.period-option:last-child {
    border-bottom: none;
}

.period-option:hover {
    background: #f9f9f9;
    color: #0d58f2;
}

.period-option strong {
    color: #0d58f2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}