/* ============================================
   Shop-in-Liberia - Complete Stylesheet
   ============================================ */

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

/* Search Bar */
.navbar .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ddd;
}

.navbar .btn {
    border-radius: 0 20px 20px 0;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.5em;
    vertical-align: middle;
}

/* ============================================
   Carousel / Slideshow
   ============================================ */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-caption h3 {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* ============================================
   Category Cards
   ============================================ */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.category-card .card-body {
    padding: 20px 10px;
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2);
}

.category-card h6 {
    font-weight: 600;
    color: #333;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #fff;
}

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

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .card-body {
    padding: 15px;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 12px;
}

.product-card .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-success {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary {
    font-weight: 500;
}

/* ============================================
   Forms & Inputs
   ============================================ */
.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

/* ============================================
   Cards (General)
   ============================================ */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.card-header.bg-primary {
    background-color: #0d6efd !important;
}

.card-header.bg-success {
    background-color: #198754 !important;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
}

/* ============================================
   Tables
   ============================================ */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: #555;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.alert-secondary {
    background-color: #e2e3e5;
    color: #41464b;
}

/* ============================================
   Footer
   ============================================ */
footer {
    margin-top: auto;
    background-color: #212529 !important;
    color: #fff;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer hr {
    border-color: #495057;
    margin: 20px 0;
}

/* ============================================
   Payment Method Cards
   ============================================ */
.form-check {
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check:hover {
    background-color: #f8f9fa;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

/* ============================================
   Order Success Animation
   ============================================ */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon {
    animation: successPulse 2s ease infinite;
    color: #198754;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
    .navbar .form-control {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .navbar .d-flex {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .category-card i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .navbar-brand img {
        max-height: 45px;
    }
    
    .btn {
        font-size: 0.85rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.rounded {
    border-radius: 10px !important;
}

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

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}