/* ==========================================
   STORE PAGE SPECIFIC STYLES
   ========================================== */

/* Store Hero */
.store-hero {
    padding-top: calc(80px + 4rem);
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    text-align: center;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Identification Section */
.identification-section {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    padding-bottom: 2rem;
}

.id-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.id-card h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.id-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-normal);
}

.input-group input:focus {
    border-color: var(--primary-blue);
}

.error-msg {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

/* Store Content Layout */
.store-content {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.store-content.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.store-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* ==========================================
   USER PLAN INFO CARD (UPI)
   Prefixo upi-* evita conflito com style.css
   ========================================== */

.user-plan-info {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(30, 58, 138, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.user-plan-info::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
}

/* Header */
.upi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.upi-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #bfdbfe;
}

.upi-tag i {
    color: #f59e0b;
    font-size: 0.7rem;
}

.upi-actions {
    display: flex;
    gap: 8px;
}

/* Body */
.upi-body {
    display: flex;
    align-items: stretch;
}

.upi-details {
    flex: 1;
    padding: 1.5rem;
    border-right: 1px solid #f3f4f6;
}

.upi-details h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.upi-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.upi-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.upi-meta .meta-item .meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: #eff6ff;
    color: var(--primary-blue);
}

.upi-meta .meta-item.price .meta-icon {
    background: #dcfce7;
    color: #15803d;
}

.upi-meta .meta-item.price {
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #e5e7eb;
}

.upi-meta .meta-item.price span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.upi-meta .meta-item.price small {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Services column */
.upi-services {
    width: 190px;
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.upi-services-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 0.9rem;
    display: block;
}

@media (max-width: 700px) {
    .upi-body {
        flex-direction: column;
    }

    .upi-details {
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
    }

    .upi-services {
        width: 100%;
    }
}

/* Products Grid / Sections */
.products-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(0, 163, 255, 0.1);
    padding-bottom: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Redesigned Veloo Play Card */
/* Redesigned Veloo Play Card (Unified Style) */
.veloo-play-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    /* Keep some separation */
}

.veloo-play-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.veloo-play-card.selected {
    border-color: var(--success-green);
    background: #f0fdf4;
}

.vp-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.vp-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.vp-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    max-width: 300px;
}

.vp-channels {
    font-size: 0.9rem;
    color: #3b82f6;
    /* Light Blue */
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Pill Toggle */
.vp-toggle-pill {
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    gap: 2px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.vp-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 4px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vp-toggle-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
}





/* Clean Grid for A La Carte */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Common Product Card Styles */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 100% removed — let grid stretch naturally */
    justify-content: flex-start;
    gap: 0.5rem;
}

/* Button sits naturally below content */
.product-card>button,
.btn-add {
    width: 100%;
    margin-top: auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card.selected {
    border-color: var(--success-green);
    background: #f0fdf4;
}

.product-card.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    pointer-events: none;
    /* Disables clicking and hovering effects */
}

/* Force disabled button to look neutral */
.product-card.disabled .btn-add {
    background-color: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}

.active-product-logo {
    height: 39px;
    /* Reduced from 24px */
    width: auto;
    max-width: 100px;
    /* Increased limit for banners */
    object-fit: contain;
    border-radius: 2px;
    margin-right: 8px;
    /* increased spacing */
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tag-standard {
    background-color: #e6f4ea;
    color: #0b6826;
}

.tag-premium {
    background-color: #e8f0fe;
    color: #1967d2;
}

.product-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 0;
    /* Remove margin */
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    /* Removed flex-grow to stop pushing content down */
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0;
    /* Remove margin */
    margin-top: 0;
    /* Remove margin */
}

/* Rounded Buttons */
.btn-add {
    width: 100%;
    margin-top: auto;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 50px;
    /* Rounded Button */
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.product-card.selected .btn-add,
.veloo-play-card.selected .btn-add {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

/* Sidebar Cart */
.sticky-cart {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cart-items {
    margin: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.cart-section {
    margin-bottom: 1.5rem;
}

.cart-section h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-item.base-plan {
    font-weight: 600;
    color: var(--primary-blue);
}

.cart-total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.total-price {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.total-note {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-cart {
        order: 2;
        /* Products first, cart below */
    }

    .products-area {
        order: 1;
    }

    .sticky-cart {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 1rem;
    }

    .product-logo {
        height: 44px;
    }

    .product-name {
        font-size: 1rem;
    }

    .btn-add {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
    }

    .btn-block {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Contract Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contracts-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.contract-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.contract-card:hover {
    border-color: var(--primary-blue);
    background: #f8f9fa;
}

.contract-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.contract-info strong {
    display: block;
    color: var(--primary-blue);
}

.contract-info small {
    display: block;
    color: #666;
    font-size: 0.85rem;
}


/* Custom Alert Modal */
.custom-alert-box {
    text-align: center;
    max-width: 400px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUpFade 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.alert-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    /* Or warning color color: #f59e0b; if preferred */
    margin-bottom: 1.5rem;
    background: rgba(30, 58, 138, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.alert-message {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Owned Product Button */
.btn-owned {
    background-color: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-owned:hover {
    background-color: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
}

.active-products-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}