/* ফুলস্ক্রিন পপআপ ওভারলে */
.wccp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

/* পপআপ কন্টেইনার */
.wccp-popup-container {
    background: #fff;
    min-height: 100vh;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: wccp-slideIn 0.3s ease;
}

@keyframes wccp-slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* হেডার */
.wccp-popup-header {
    background: linear-gradient(135deg, rgb(249,137,19), #ff9f4b);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wccp-popup-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wccp-popup-header h3 i {
    font-size: 20px;
}

.wccp-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.wccp-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* বডি */
.wccp-popup-body {
    padding: 20px;
}

/* লোডিং */
.wccp-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.wccp-loading i {
    font-size: 30px;
    color: rgb(249,137,19);
    margin-bottom: 10px;
}

.wccp-loading span {
    display: block;
    font-size: 14px;
}

/* সেকশন */
.wccp-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
}

.section-title {
    color: #333;
    font-size: 16px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.section-title i {
    color: rgb(249,137,19);
    font-size: 16px;
}

/* ফর্ম গ্রুপ */
.form-group {
    margin-bottom: 12px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 10px 15px;
    background: #fff;
    transition: all 0.3s;
}

.input-box:focus-within {
    border-color: rgb(249,137,19);
    box-shadow: 0 2px 10px rgba(249,137,19,0.05);
}

.icon {
    margin-right: 10px;
    color: rgb(249,137,19);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.input-box input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.input-box input::placeholder {
    color: #aaa;
    font-size: 13px;
}

/* প্রোডাক্ট লিস্ট */
.products-list {
    background: #f2f2f2;
    border-radius: 10px;
    padding: 8px;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

/* Left Image */
.cart-item .left img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

/* Right Section */
.cart-item .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Title Row */
.cart-item .title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item .title-row h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
}

.cart-item .remove {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item .remove:hover {
    color: #ff4444;
    transform: scale(1.2);
}

/* Price Row */
.cart-item .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ddd;
}

.cart-item .price-label {
    font-size: 13px;
    color: #ff7a00;
    font-weight: 600;
}

.cart-item .price-value {
    font-size: 13px;
    color: #666;
}

/* Quantity Row */
.cart-item .qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item .qty-label {
    font-size: 12px;
    color: #666;
}

/* Quantity Controls */
.cart-item .qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Round Buttons */
.cart-item .qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(45deg, #ff6a00, #ff9500);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.cart-item .qty-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ff9500, #ff6a00);
}

.cart-item .qty-number {
    font-size: 12px;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
    color: #333;
}

/* ডেলিভারি অপশন */
.delivery-options {
    display: grid;
    gap: 8px;
}

.delivery-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eef2f7;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.delivery-option.active {
    border-color: rgb(249,137,19);
    background: rgba(249,137,19,0.02);
}

.delivery-option:hover {
    border-color: rgb(249,137,19);
}

.delivery-option input[type="radio"] {
    display: none;
}

.option-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-text:before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s;
}

.delivery-option.active .option-text:before {
    border-color: rgb(249,137,19);
    background: rgb(249,137,19);
    box-shadow: inset 0 0 0 3px white;
}

.option-price {
    font-weight: 600;
    color: rgb(249,137,19);
    font-size: 14px;
}

/* টোটাল সেকশন */
.wccp-total-section {
    background: #f8fafd;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.grand-total {
    font-size: 18px;
    font-weight: 700;
    color: rgb(249,137,19);
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 8px;
}

/* অর্ডার বাটন */
.wccp-order-btn {
    width: 100%;
    background: linear-gradient(135deg, rgb(249,137,19), #ff9f4b);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(249,137,19,0.2);
}

.wccp-order-btn i {
    font-size: 18px;
}

.wccp-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,137,19,0.3);
}

.wccp-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* নোটিস */
.wccp-notice {
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wccp-notice i {
    color: rgb(249,137,19);
    font-size: 14px;
}

/* এরর মেসেজ */
.wccp-error {
    text-align: center;
    padding: 40px;
    color: #ff4444;
    font-size: 14px;
}

/* এনিমেশন ইফেক্টস */

/* অর্ডার বাটন পুলস এনিমেশন */
.wccp-pulse-animation {
    animation: wccp-pulse 2s ease infinite;
}

@keyframes wccp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(249,137,19,0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 25px rgba(249,137,19,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(249,137,19,0.2);
    }
}

/* ক্লিক এনিমেশন */
.wccp-click-animation {
    animation: wccp-click 0.2s ease;
}

@keyframes wccp-click {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* আপডেট ফ্ল্যাশ এনিমেশন */
.wccp-update-flash {
    animation: wccp-flash 0.3s ease;
}

@keyframes wccp-flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(249,137,19,0.15);
    }
    100% {
        background-color: transparent;
    }
}

/* রেস্পন্সিভ */
@media (max-width: 768px) {
    .wccp-popup-header {
        padding: 12px 20px;
    }
    
    .wccp-popup-header h3 {
        font-size: 18px;
    }
    
    .wccp-popup-body {
        padding: 15px;
    }
    
    .cart-item {
        gap: 8px;
    }
    
    .delivery-option {
        padding: 10px 12px;
    }
    
    .wccp-order-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wccp-popup-header h3 {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .input-box {
        padding: 8px 12px;
    }
    
    .cart-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cart-item .left img {
        width: 55px;
        height: 55px;
    }
    
    .cart-item .title-row h2 {
        font-size: 12px;
    }
    
    .qty-control {
        gap: 3px;
    }
    
    .cart-item .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}