/* Om Liptus E-Commerce Styles */

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.product-card img {
    height: 250px;
    object-fit: contain;
    padding: 20px;
    background: #f8f9fa;
}

.product-card .card-title {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.product-card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Shop Header */
.shop-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.shop-header h1 {
    color: #2e7d32;
}

/* Navigation */
.navbar-brand img {
    height: 40px;
}

.cart-count {
    position: relative;
    top: -2px;
    margin-left: 5px;
}

/* Buttons */
.btn-primary {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.btn-primary:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.add-to-cart-btn {
    font-weight: 600;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Search */
.input-group .form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Cart Page */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
}

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

.cart-item img {
    max-width: 100px;
    height: auto;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 80px;
}

/* Checkout */
.checkout-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.checkout-section h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 20px;
}

/* Order Confirmation */
.order-success {
    text-align: center;
    padding: 50px 20px;
}

.order-success i {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 20px;
}

.order-success h1 {
    color: #2e7d32;
    margin-bottom: 20px;
}

/* Order Tracking */
.tracking-timeline {
    position: relative;
    padding-left: 40px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.tracking-step {
    position: relative;
    padding-bottom: 30px;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
}

.tracking-step.active::before {
    background: #2e7d32;
    border-color: #2e7d32;
}

.tracking-step.completed::before {
    background: #4caf50;
    border-color: #4caf50;
}

/* Admin Panel */
.admin-sidebar {
    background: #2e7d32;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #fff;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.admin-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    margin: 0;
}

/* Data Tables */
.table-responsive {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Modal */
.modal-header {
    background: #2e7d32;
    color: #fff;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #333;
}

.form-control:focus,
.form-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card img {
        height: 200px;
    }
    
    .cart-item img {
        max-width: 80px;
    }
    
    .cart-summary {
        position: static;
        margin-top: 20px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

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

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

/* Toast Notifications */
.toast {
    min-width: 250px;
}

.toast-body {
    padding: 15px;
    font-weight: 500;
}

/* Payment Methods */
.payment-method {
    border: 2px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.payment-method:hover {
    border-color: #2e7d32;
    background: #f8f9fa;
}

.payment-method.selected {
    border-color: #2e7d32;
    background: #e8f5e9;
}

.payment-method img {
    max-height: 40px;
    margin-right: 15px;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}
