/* Store Page Styles */
:root {
    --primary-color: #456ef7;
    --secondary-color: #ff6600;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Store Header */
.store-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.store-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.store-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-left h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.sort-dropdown select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: white;
    color: var(--dark-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    padding: 50px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-wishlist:hover,
.product-wishlist.active {
    background: var(--danger-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--dark-color);
}

.buy-now-btn {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.buy-now-btn:hover {
    background: #e55a00;
}

/* Cart and Wishlist Navigation */
.cart-nav,
.wishlist-nav {
    position: relative;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Cart Sidebar */
.cart-sidebar,
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active,
.wishlist-sidebar.active {
    right: 0;
}

.cart-header,
.wishlist-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.cart-header h3,
.wishlist-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.close-cart,
.close-wishlist {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.close-cart:hover,
.close-wishlist:hover {
    color: var(--danger-color);
}

.cart-content,
.wishlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item,
.wishlist-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child,
.wishlist-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: #c82333;
}

.cart-empty,
.wishlist-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.cart-empty i,
.wishlist-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.cart-footer,
.wishlist-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.cart-total {
    margin-bottom: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.total-final {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-outline {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--light-color);
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.checkout-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.checkout-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.checkout-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.close-checkout:hover {
    color: var(--danger-color);
}

.checkout-body {
    padding: 30px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 70%;
    width: 60%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--primary-color);
}

.step-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-step-content {
    display: none;
}

.checkout-step-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(69, 110, 247, 0.1);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.payment-method span {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
}

.order-summary {
    background: var(--light-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.order-summary h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.order-confirmation i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.order-confirmation h3 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.order-confirmation p {
    color: #666;
    margin-bottom: 30px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .store-header {
        padding: 60px 0 40px;
    }
    
    .store-header h1 {
        font-size: 2rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cart-sidebar,
    .wishlist-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .checkout-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .checkout-body {
        padding: 20px;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Success Messages */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message i {
    font-size: 1.2rem;
}

/* Error Messages */
.error-message {
    background: var(--danger-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 1.2rem;
}

/* Quantity Badge */
.quantity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Product Stock Status */
.stock-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stock-status.low-stock {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stock-status.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating .empty {
    color: #ddd;
}

/* Reviews Count */
.reviews-count {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
} 