/* ==========================================
   ENHANCED BUTTON STYLES - PREMIUM DESIGN
   ========================================== */

/* Quantity Selector Container */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    height: 38px;
    transition: all 0.3s ease;
}

.qty-selector:hover {
    border-color: #F5A623;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Quantity Buttons (-/+) */
.qty-btn-mini {
    width: 30px;
    height: 30px;
    border: none;
    background: linear-gradient(135deg, #F5A623 0%, #F76B1C 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.qty-btn-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.qty-btn-mini:hover::before {
    left: 100%;
}

.qty-btn-mini:hover {
    background: linear-gradient(135deg, #F76B1C 0%, #F5A623 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.5);
}

.qty-btn-mini:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(245, 166, 35, 0.4);
}

/* Quantity Input */
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 1rem;
    padding: 0;
    color: #2c3e50;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Icon Button */
.btn-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-icon:hover::before {
    width: 120%;
    height: 120%;
}

.btn-icon:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
}

.btn-icon:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.btn-icon i {
    position: relative;
    z-index: 1;
}

/* Buy Now Button */
.btn-buy-now {
    flex: 1;
    padding: 0 16px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-buy-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s;
}

.btn-buy-now:hover::before {
    left: 100%;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.btn-buy-now:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.btn-buy-now i {
    font-size: 1rem;
    animation: bolt-pulse 2s infinite;
}

@keyframes bolt-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Actions Container */
.actions-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: stretch;
}

/* Disabled State */
.btn-icon:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #95a5a6;
    box-shadow: none;
    transform: none;
}

.btn-icon:disabled:hover,
.btn-buy-now:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .qty-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
    }

    .btn-buy-now {
        font-size: 0.85rem;
        padding: 0 12px;
    }

    .qty-selector {
        height: 36px;
    }
}