/* Shop-specific styles for Mfumu Investments CC */

/* Shop Hero Section */
.shop-hero {
    background-image:
        var(--hero-overlay-vignette),
        var(--hero-overlay-gradient),
        url('../images/Windhoek city.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-attachment: scroll;
    background-repeat: no-repeat, no-repeat, no-repeat;
    color: var(--bg-primary);
    padding: 160px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.shop-hero .hero-title {
    color: var(--bg-primary);
    margin-bottom: 1rem;
}

.shop-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Test Mode Banner */
.test-mode-banner {
    background: rgba(255, 255, 255, 0.9);
    color: #856404;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid #ffeaa7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

/* Payment Status Banner */
.payment-status-banner {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid #d4edda;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.payment-status-banner.payment-ready {
    color: #155724;
    border-color: #c3e6cb;
}

.payment-status-banner.payment-configure {
    color: #856404;
    border-color: #ffeaa7;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-icon span {
    font-size: 4rem;
    display: inline-block;
    background: var(--emerald-gradient);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-price {
    margin-bottom: 1.5rem;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Shopping Cart */
.cart-toggle {
    position: fixed;
    bottom: 30px; /* Moved to bottom */
    right: 30px;
    top: auto; /* Reset top */
    background: var(--primary-color);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    padding: 2rem;
    flex: 1;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin: 2rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.cart-item-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--emerald);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.cart-total {
    margin-bottom: 1rem;
    text-align: center;
}

.cart-total strong {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Checkout Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 2rem;
}

/* Checkout Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-summary {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.checkout-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.checkout-total {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.checkout-total strong {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.payment-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.875rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification--success {
    background: #28a745;
}

.notification--error {
    background: #dc3545;
}

.notification--info {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cart Sidebar Full Width */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        max-width: 100%;
    }

    /* Optimize Cart Toggle Position for Mobile */
    .cart-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    /* Modal Full Width with Scroll */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 0 auto;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
        padding: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Prevent zoom on inputs for iOS */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px !important; 
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 120px 0 80px;
        min-height: 50vh;
    }

    .shop-hero .hero-title {
        font-size: 2rem;
    }

    .cart-header {
        padding: 1rem;
    }

    .cart-footer {
        padding: 1rem;
        background: white;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    }
}
