/* ================================================================
   MOBILE PHONES SECTION
   Product showcase with sliding cards and order modal
   ================================================================ */

.mobile-phones-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #020618 0%, #0a1628 50%, #020618 100%);
    position: relative;
    overflow: hidden;
}

/* Background iPhone Image with Dithering */
.mp-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mp-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 700px;
    background-image: url('https://images.unsplash.com/photo-1592750478285-43e1692e3f21?w=800');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    mix-blend-mode: screen;
}

.mp-bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(224, 25, 30, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 77, 82, 0.12) 0%, transparent 50%);
}

/* Section Header */
.mp-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.mp-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(224, 25, 30, 0.12);
    border: 1px solid rgba(224, 25, 30, 0.3);
    border-radius: 50px;
    color: #ff6b6f;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mp-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.mp-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ================================================================
   CARDS CONTAINER
   ================================================================ */
/* Cards Container - 3 product cards + 1 CTA card */
.mp-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Slider Wrapper - spans first 3 columns, contains controls */
.mp-slider-wrapper {
    grid-column: 1 / 4;
    position: relative;
    overflow: visible;
    padding-bottom: 70px; /* Space for controls at bottom */
}

.mp-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mp-slider-track .mp-product-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    min-width: 0;
}



/* ================================================================
   PRODUCT CARD (Dynamic)
   ================================================================ */
.mp-product-card {
    flex: 0 0 calc(33.333% - 0.84rem);
    background: #ffffff;
    border: 2px solid var(--main-red);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mp-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-red), #ff4d52);
}

.mp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(224, 25, 30, 0.25);
    border-color: var(--main-red);
}

/* Product Badge */
.mp-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--main-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Product Image */
/* Product Image — Rounded corners with theme border */
.mp-product-image {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid rgba(224, 25, 30, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.mp-product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.mp-product-card:hover .mp-product-image {
    border-color: var(--main-red);
    background: rgba(224, 25, 30, 0.03);
}

.mp-product-card:hover .mp-product-image img {
    transform: scale(1.08);
}

/* Product Title */
.mp-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.6em;
}

/* Installment Info */
/* Installment Info — Red theme */
.mp-installment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.85rem;
    background: rgba(224, 25, 30, 0.06);
    border: 1px solid rgba(224, 25, 30, 0.18);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.mp-installment i {
    color: var(--main-red);
    font-size: 1rem;
}

.mp-installment-text {
    flex: 1;
    font-size: 0.82rem;
    color: var(--main-dark-blue);
    font-weight: 500;
}

.mp-installment-text strong {
    color: var(--main-red);
    font-size: 1rem;
    font-weight: 800;
}

/* Order Now Button */
.mp-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.mp-order-btn:hover {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 25, 30, 0.4);
}

.mp-order-btn i {
    transition: transform 0.3s ease;
}

.mp-order-btn:hover i {
    transform: translateX(3px);
}

/* ================================================================
   SLIDER CONTROLS
   ================================================================ */
/* ================================================================
   SLIDER CONTROLS - positioned at bottom center of slider wrapper
   ================================================================ */
.mp-slider-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 5;
}



.mp-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mp-slider-btn:hover {
    background: var(--main-red);
    border-color: var(--main-red);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.4);
}

.mp-slider-dots {
    display: flex;
    gap: 8px;
}

.mp-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mp-slider-dot.active {
    background: var(--main-red);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(224, 25, 30, 0.5);
}

/* ================================================================
   STATIC CTA CARD (4th card)
   ================================================================ */
/* ================================================================
   STATIC CTA CARD (4th card) - sits in 4th grid column
   ================================================================ */
.mp-cta-card {
    grid-column: 4 / 5;
    background: linear-gradient(135deg, var(--main-red) 0%, #c01519 100%);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 480px;
}



.mp-cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mp-cta-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mp-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem 0;
}

.mp-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: #ffffff;
}

.mp-cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.mp-cta-price {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.mp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    background: #ffffff;
    color: var(--main-red);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-cta-btn:hover {
    background: var(--main-dark-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mp-cta-btn i {
    transition: transform 0.3s ease;
}

.mp-cta-btn:hover i {
    transform: translateX(4px);
}

/* Delivery Info (bottom of CTA card) */
.mp-cta-delivery {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    margin-top: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mp-delivery-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--main-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: truckBounce 2s ease-in-out infinite;
}

@keyframes truckBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.mp-delivery-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.mp-delivery-text strong {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.mp-delivery-text span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

/* ================================================================
   ORDER MODAL
   ================================================================ */
.order-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(2, 6, 24, 0.2);
}

.order-modal-header {
    background: linear-gradient(135deg, var(--main-dark-blue) 0%, #0a2540 100%);
    padding: 1.75rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.order-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 201, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.order-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.order-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 201, 80, 0.15);
    border: 1px solid rgba(0, 201, 80, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.order-header-text {
    color: #ffffff;
}

.order-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.order-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.order-subtitle strong {
    color: var(--main-green);
    font-weight: 700;
}

.order-modal-body {
    padding: 2rem;
    background: #ffffff;
}

.order-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--main-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-label i {
    color: var(--main-green);
    font-size: 0.85rem;
}

.optional-tag {
    color: #9ca3af;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    margin-left: 4px;
}

.order-input-wrapper {
    position: relative;
}

.order-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--main-dark-blue);
    background: #fafafa;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.order-input::placeholder {
    color: #9ca3af;
}

.order-input:focus {
    outline: none;
    border-color: var(--main-green);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 201, 80, 0.12);
}

.order-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.order-textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 80px;
}

.order-error {
    display: none;
    color: var(--main-red);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.order-error.show {
    display: block;
}

.order-input.is-invalid {
    border-color: var(--main-red);
    background: #fff5f5;
}

.btn-order-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
}

.btn-order-submit:hover:not(:disabled) {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
}

.btn-order-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Order Code */
.success-order-code {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 201, 80, 0.1);
    color: var(--main-green);
    border-radius: 50px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Tablet */
/* Tablet */
@media (max-width: 991.98px) {
    .mp-cards-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mp-slider-wrapper {
        width: 100%;
    }
    
    .mp-product-card {
        flex: 0 0 calc(50% - 0.625rem);
    }
    
    .mp-cta-card {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 2rem;
    }
    
    .mp-title {
        font-size: 2.25rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .mobile-phones-section {
        padding: 3rem 0 2.5rem;
    }
    
    .mp-bg-image {
        width: 300px;
        height: 420px;
    }
    
    .mp-title {
        font-size: 1.85rem;
    }
    
    .mp-subtitle {
        font-size: 0.95rem;
    }
    
    .mp-product-card {
        flex: 0 0 100%;
    }
    
    .mp-header {
        margin-bottom: 2rem;
    }
    
    .mp-product-image {
        height: 160px;
    }
    
    .mp-cta-card {
        padding: 1.75rem;
    }
    
    .mp-cta-title {
        font-size: 1.5rem;
    }
}



/* Small Mobile */
@media (max-width: 480px) {
    .mp-title {
        font-size: 1.5rem;
    }
    
    .order-modal-body {
        padding: 1.25rem;
    }
    
    .order-modal-header {
        padding: 1.25rem;
    }
    
    .order-header-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .order-title {
        font-size: 1.15rem;
    }
}