/* ========================================
   FK Cart Shortcode Styles
   Responsive Design - Dark Theme
   ======================================== */

.fk-cart-container {
    background: linear-gradient(135deg, #0f172e 0%, #1a2a4e 100%);
    color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fk-cart-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    letter-spacing: 2px;
}

/* ========================================
   Cart Items Section
   ======================================== */

.fk-cart-items {
    margin-bottom: 30px;
}

.fk-cart-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    gap: 20px;
    transition: all 0.3s ease;
}

.fk-cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Product Image */
.fk-cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.fk-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.fk-cart-item-details {
    flex: 1;
    min-width: 200px;
}

.fk-cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quantity Selector */
.fk-cart-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
}

.fk-cart-quantity:hover {
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(74, 158, 255, 0.12);
}

.fk-qty-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.fk-qty-btn:hover {
    background: rgba(74, 158, 255, 0.35);
    border-color: rgba(74, 158, 255, 0.75);
    color: #fff;
}

.fk-qty-btn:active {
    transform: scale(0.96);
}

.fk-qty-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 88px;
    height: 40px;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    padding: 0 8px;
}

.fk-qty-input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.fk-qty-input::-webkit-outer-spin-button,
.fk-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fk-qty-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Price Section */
.fk-cart-item-price,
.fk-cart-item-total {
    text-align: center;
    min-width: 100px;
}

.fk-price-label,
.fk-total-label {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.fk-price-value,
.fk-total-value {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Remove Button */
.fk-remove-btn {
    background: transparent;
    border: none;
    color: #d4840c;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fk-remove-btn:hover {
    background: rgba(212, 132, 12, 0.1);
}

/* ========================================
   Cart Summary Section
   ======================================== */

.fk-cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.fk-cart-options {
    margin-bottom: 25px;
}

/* Promo Section */
.fk-cart-promo-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fk-promo-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.fk-promo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.fk-promo-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fk-promo-input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(74, 158, 255, 0.08);
}

.fk-promo-apply-btn {
    background: linear-gradient(135deg, #d4840c 0%, #b8700a 100%);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fk-promo-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 132, 12, 0.3);
}

.fk-promo-apply-btn:active {
    transform: translateY(0);
}

/* Delivery Options */
.fk-delivery-options {
    border: none;
    padding: 0;
    margin: 0;
}

.fk-delivery-options legend {
    font-size: 13px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-weight: 600;
}

.fk-delivery-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    text-transform: lowercase;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fk-delivery-radio:hover {
    background: rgba(74, 158, 255, 0.1);
}

.fk-delivery-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
}

.fk-free-shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: lowercase;
    margin-top: 15px;
    padding: 10px;
    background: rgba(74, 158, 255, 0.08);
    border-radius: 6px;
    border-left: 3px solid rgba(74, 158, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.fk-free-shipping-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cart Footer */
.fk-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fk-cart-total-section {
    text-align: center;
}

.fk-cart-total-label {
    font-size: 12px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 5px 0;
}

.fk-cart-total-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Checkout Button */
.fk-checkout-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #3680d4 100%);
    border: none;
    color: #fff;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fk-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
}

/* ========================================
   Empty Cart
   ======================================== */

.fk-cart-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
}

.fk-cart-notice {
    padding: 20px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #ffa500;
    border-radius: 4px;
    text-align: center;
}

/* ========================================
   Loading State
   ======================================== */

.fk-cart-item.fk-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .fk-cart-container {
        padding: 30px 15px;
    }
    
    .fk-cart-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .fk-cart-item {
        flex-wrap: wrap;
        padding: 15px;
        gap: 15px;
    }
    
    .fk-cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .fk-cart-item-details {
        flex: 1 1 100%;
    }
    
    .fk-cart-item-price,
    .fk-cart-item-total {
        flex: 1;
        min-width: 90px;
    }
    
    .fk-promo-group {
        max-width: 100%;
    }
    
    .fk-cart-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fk-checkout-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .fk-cart-container {
        padding: 20px 10px;
    }
    
    .fk-cart-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .fk-cart-item {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    
    .fk-cart-item-image {
        width: 100%;
        height: 150px;
        order: -1;
    }
    
    .fk-cart-item-name {
        font-size: 16px;
    }
    
    .fk-price-label,
    .fk-total-label {
        font-size: 11px;
    }
    
    .fk-price-value,
    .fk-total-value {
        font-size: 16px;
    }
    
    .fk-cart-total-amount {
        font-size: 24px;
    }
    
    .fk-qty-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    
    .fk-qty-input {
        width: 72px;
        height: 34px;
        font-size: 18px;
    }
    
    .fk-promo-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .fk-promo-input {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .fk-promo-apply-btn {
        width: 100%;
        padding: 10px 15px;
    }
    
    .fk-delivery-radio {
        padding: 8px;
        font-size: 12px;
    }
    
    .fk-free-shipping-info {
        font-size: 11px;
        padding: 8px;
    }
}

/* ========================================
   Animation
   ======================================== */

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.fk-cart-item.fk-removing {
    animation: fadeOut 0.3s ease forwards;
}
