/* ===========================================
   BOUTIQUE PAGE STYLES
   =========================================== */

/* Hero Section */
.boutique-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.boutique-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.boutique-hero h1 i {
    margin-right: 15px;
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--primary);
}

.boutique-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Boutique Content */
.boutique-content {
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* Filters */
.boutique-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    color: var(--text);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Boutique Grid */
.boutique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Loading State */
.loading-boutique {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-boutique i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.loading-boutique p {
    font-size: 1rem;
}

/* Empty State */
.boutique-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.boutique-empty i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.boutique-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.product-card.out-of-stock {
    opacity: 0.6;
}

.product-card.out-of-stock::after {
    content: 'RUPTURE';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ef4444;
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(79, 172, 254, 0.05) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.product-image img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(79, 172, 254, 0.3));
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(-3deg);
}

.product-image .no-image {
    color: var(--text-muted);
    font-size: 3rem;
}

.product-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.product-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.product-stock.low {
    color: #f59e0b;
}

.product-stock.out {
    color: #ef4444;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.product-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price i {
    color: #ffd700;
}

.btn-buy {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.btn-buy:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== MODAL BASE ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 172, 254, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-small {
    max-width: 450px;
    width: 90%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Purchase Modal */
.purchase-content {
    padding: 20px;
}

.purchase-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
}

.purchase-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.purchase-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.purchase-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.purchase-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.purchase-price i {
    color: #ffd700;
}

.purchase-summary {
    padding: 15px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.purchase-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.purchase-summary p:last-child {
    margin-bottom: 0;
    color: var(--text);
    font-weight: 600;
}

.purchase-summary i {
    color: #ffd700;
}

/* Success Modal */
.success-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.success-header h2 {
    color: white;
}

.success-content {
    padding: 30px 20px;
    text-align: center;
}

.success-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    padding: 15px;
}

.success-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(16, 185, 129, 0.3));
}

.success-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.success-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Funds Modal */
.funds-modal-content {
    padding: 20px;
    text-align: center;
}

.funds-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    color: var(--text);
}

.funds-info i {
    color: #ffd700;
}

/* Login Required Content */
.login-required-content {
    padding: 30px 20px;
    text-align: center;
}

.login-required-content p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .boutique-hero {
        padding: 100px 0 40px;
    }

    .boutique-hero h1 {
        font-size: 2rem;
    }

    .boutique-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .boutique-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 160px;
    }

    .purchase-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .purchase-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .boutique-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn-buy {
        width: 100%;
        justify-content: center;
    }
}
