:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #ff9800;
    --dark-color: #1b5e20;
    --light-color: #f1f8e9;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.navbar-site-name {
    font-weight: 700;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .navbar-logo {
        width: 44px;
        height: 44px;
    }

    .navbar-site-name {
        font-size: 0.95rem;
    }

    .hero-fish-image {
        width: min(65vw, 170px);
        max-height: 170px;
        margin-top: 1.5rem;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-fish-image {
    width: min(100%, 230px);
    max-height: 230px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow);
}

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

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

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    background-color: var(--white);
}

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

.product-card > .card-img-top {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.product-card .card-body {
    padding: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card .card-body > .d-flex:last-child {
    margin-top: auto;
}

.product-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
}

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

.category-card {
    display: block;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    overflow: hidden;
    background-color: var(--white);
}

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

.category-card img {
    height: 150px;
    object-fit: cover;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-color);
}

.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
}

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

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

.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    background-color: var(--white);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.order-status-pending {
    background-color: #ffc107;
    color: #333;
}

.order-status-contacted {
    background-color: #17a2b8;
    color: white;
}

.order-status-completed {
    background-color: #28a745;
    color: white;
}

.order-status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1000;
    display: none;
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.bottom-nav .nav-link {
    color: var(--text-light);
    padding: 5px;
    font-size: 12px;
    text-decoration: none;
    display: block;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.bottom-nav .nav-link i {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .category-card img {
        height: 100px;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-bottom: 10px;
    }
}

/* Cart Modal Styles */
#cart-modal .modal-header {
    border-radius: 10px 10px 0 0;
}

#cart-modal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#cart-modal .modal-body img {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

#cart-modal .modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* Cart section */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
}

/* Filter sidebar */
.filter-sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.filter-sidebar h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Product details */
.product-detail-image {
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-features li:before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 50px 20px;
}

.success-message .icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Admin tables */
.admin-table {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table thead {
    background-color: var(--primary-color);
    color: white;
}

.admin-table tbody tr:hover {
    background-color: var(--light-color);
}

/* Image preview */
.image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #ddd;
}
