/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Language Switcher and User Menu */
.language-switcher {
    margin-left: 15px;
}

.language-switcher .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.language-switcher .dropdown > a:hover {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #8fa55b;
}

.flag-icon {
    font-size: 14px;
    font-weight: bold;
    color: #8fa55b;
}

.flag-text {
    font-size: 16px;
    margin-right: 8px;
}

.language-switcher .dropdown-content {
    min-width: 150px;
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #eee;
}

.language-switcher .dropdown-content a.lang-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-content a.lang-option:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

.language-switcher .dropdown-content a.lang-option.active {
    background-color: rgba(40, 167, 69, 0.1);
    font-weight: 600;
}

/* User Menu */
.user-dropdown .user-menu-link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.user-dropdown .user-menu-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #8fa55b;
}

.cooperative-img {
  width: 257px;
  height: 140px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #8fa55b;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-btn {
    border-color: #8fa55b;
    color: #8fa55b;
}

.login-btn:hover {
    background-color: #8fa55b;
    color: white;
}

.register-dropdown .dropdown-toggle {
    background-color: #8fa55b;
    border-color: #8fa55b;
}

.register-dropdown .dropdown-toggle:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.register-dropdown .dropdown-content {
    min-width: 200px;
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #eee;
}

.register-dropdown .dropdown-content a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

:root {
    --primary-color: #90A55C;
    --primary-light: #80e27e;
    --primary-dark: #087f23;
    --secondary-color: #90A55C; /* Changed from yellow to light green */
    --accent-color: #CDDC39; /* Changed to lighter green-yellow */
    --body-bg: #F5F5F5;
    --card-bg: #FFFFFF;
    --text-primary: #3e4b60;
    --text-secondary: #666666;
    --text-muted: #888888;
    --border-color: #dee2e6;
    --white-color: #ffffff;
    --gray-color: #3e4b60;
    --light-color: #e8f5e9;
    --dark-color: #3e4b60;
    --heading-font: 'Cairo', sans-serif;
    --body-font: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.navbar-brand img, .logo img {
    height: 50px;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.language-switcher {
    margin-left: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 200px;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Featured Products Section */
.featured-products {
    padding: 50px 0;
}

/* Cart notification styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-right: 4px solid #90A55C;
}

/* Animation for cart notifications */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
}

/* Page Headers, Section Titles & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: right;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.page-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.page-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--white-color);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card .badge {
    position: inherit;
    top: 10px;
    right: 10px;
    color: #fff !important;
    background:#90a55c !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.card-text {
    color: #6c757d;
    font-size: 14px;
}

.card-footer {
    background-color: white;
    border-top: 1px solid rgba(0,0,0,.05);
    padding: 0.75rem 1.25rem;
}

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

.old-price {
    text-decoration: line-through;
    color: #adb5bd;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* For compatibility with existing code */
.product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--white-color);
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cooperative-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Cooperatives Section */
.cooperatives {
    padding: 50px 0;
    background-color: var(--gray-color);
}

.cooperatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.coop-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.coop-card:hover {
    transform: translateY(-5px);
}

.coop-header {
    height: 100px;
    background-color: var(--primary-dark);
    position: relative;
}

.coop-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    bottom: -40px;
    right: 20px;
    border: 4px solid white;
    background-color: white;
    overflow: hidden;
}

.coop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coop-body {
    padding: 2.5rem 1.25rem 1.25rem;
    background-color: white;
}

.coop-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.coop-location {
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.coop-location i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.coop-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.coop-stats {
    display: flex;
    align-items: center;
}

.coop-stat {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.coop-stat i {
    color: var(--primary-color);
    margin-left: 0.25rem;
}

/* Category Filters */
.filters {
    margin-bottom: 30px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.filter-item {
    padding: 8px 15px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cart and Checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-total {
    text-align: right;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
}

/* Footer */
/* Footer Styles */
footer {
    background-color: #292929;
    color: #f5f5f5;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul {
    padding-right: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin-left: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* For compatibility with existing code */
.footer {
    background-color: #3e4b5f;
    color: #f5f5f5;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 18px;
}

.footer-links ul {
    padding-right: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 20px 0;
}

.sidebar-logo {
    text-align: center;
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--light-color);
    transition: all 0.3s ease;
}

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

.admin-content {
    flex: 1;
    padding: 20px;
}

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

.admin-title {
    font-size: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    text-align: left;
    background-color: var(--gray-color);
}

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

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-view {
    background-color: #2196f3;
}

.btn-edit {
    background-color: #ff9800;
}

.btn-delete {
    background-color: #f44336;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 30px 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--light-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Cart notification styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-right: 4px solid #90A55C;
}

/* Animation for cart notifications */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.alert-warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.alert-info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

/* Star Ratings */
.star-rating {
    color: var(--secondary-color);
}

.text-warning {
    color: var(--secondary-color) !important;
}

/* Tabs Styling */
.custom-tabs {
    border-bottom: 0;
    background-color: var(--gray-color);
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.custom-tabs .nav-item {
    margin: 0;
    padding: 0;
}

.custom-tabs .nav-link {
    color: var(--text-secondary);
    padding: 15px;
    border: 0;
    border-radius: 0 !important;
    font-family: var(--heading-font);
    font-weight: 600;
    position: relative;
    border-bottom: 4px solid transparent;
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-tabs .nav-link .tab-icon {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.custom-tabs .nav-link .tab-text {
    font-size: 1rem;
}

.custom-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: var(--white-color);
    border-bottom-color: var(--primary-color);
}

.custom-tabs .nav-link:hover:not(.active) {
    background-color: rgba(0,0,0,0.02);
    border-bottom-color: var(--primary-light);
}

.custom-tab-content {
    border-radius: 0 0 8px 8px;
    padding: 25px !important;
    border: 1px solid var(--border-color);
    border-top: 0;
}

.cooperative-tabs-container {
    margin-bottom: 0;
}

/* Product Gallery & Details */
.product-gallery {
    margin-bottom: 30px;
}

.product-gallery .main-image {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
}

.image-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-thumbnail.active {
    border-color: var(--primary-color);
}

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

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    color: #666;
}

.product-meta-item i {
    margin-left: 5px;
    color: var(--primary-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-control button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
}

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

/* Cooperative Details */
.coop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.coop-meta-item {
    display: flex;
    align-items: center;
    color: #666;
}

.coop-meta-item i {
    margin-left: 5px;
    color: var(--primary-color);
}

.coop-categories {
    margin-top: 10px;
}

.coop-logo-large {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto;
}

.coop-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coop-categories .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-color);
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 10px;
    margin-left: -8px;
}

.timeline-content {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

/* Contact */
.contact-list {
    margin-bottom: 0;
}

.contact-list li {
    display: flex;
    margin-bottom: 15px;
}

.contact-list i {
    margin-left: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Auth */
.auth-section {
    padding: 50px 0;
    background-color: var(--light-color);
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.auth-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    text-align: center;
}

.auth-body {
    padding: 30px;
}

.auth-footer {
    padding: 15px 30px;
    background-color: var(--gray-color);
    text-align: center;
}

.auth-side {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 50px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side h2 {
    margin-bottom: 20px;
}

.auth-side p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Product Filters */
.filters-card {
    margin-bottom: 30px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.filters-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-checkbox input {
    margin-left: 10px;
}

.price-slider {
    margin-bottom: 10px;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Cart Styles */
.cart-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

/* Dashboard Styles */
.sidebar-header {
    padding: 20px;
    background-color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--white-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 15px;
    font-size: 24px;
    color: var(--white-color);
}

.stat-icon.primary {
    background-color: var(--primary-color);
}

.stat-icon.info {
    background-color: #2196f3;
}

.stat-icon.success {
    background-color: #90A55C;
}

.stat-icon.warning {
    background-color: #ff9800;
}

.stat-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

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

.dashboard-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.dashboard-table {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        padding: 10px;
        margin-left: 10px;
        z-index: 1050;
        position: relative;
    }
    
    .language-switcher {
        margin-left: 10px;
    }
    
    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        background-color: var(--white-color);
        padding: 15px;
        border-radius: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1040;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        margin-bottom: 10px;
    }
    
    .mobile-nav a {
        display: block;
        padding: 8px 15px;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav a:hover, .mobile-nav a.active {
        background-color: var(--light-color);
        color: var(--primary-color);
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 20px;
    }
}

/* Media Queries for Products Page */
@media (max-width: 768px) {
    /* Products page mobile styling */
    /* Categories sidebar for mobile */
    .categories-sidebar {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    /* Adjust columns for mobile-first layout */
    .order-md-1 {
        order: 1;
    }
    
    .order-md-2 {
        order: 0; /* Show products first on mobile */
    }
    
    /* Better touch targets on mobile */
    .list-group-item {
        padding: 12px 15px;
    }
    
    .list-group-item a {
        display: block;
        width: 100%;
    }
    
    /* Sort options for mobile */
    .sort-options {
        background: #f9f9f9;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    
    /* Products grid adjustments for mobile */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .cooperative-name {
        font-size: 12px;
    }
    
    .product-card .btn {
        padding: 8px 10px;
        font-size: 14px;
    }
}

.fas {
  padding-left: 5px;
}

.cooperative-logo-small.me-3 {
  padding-left: 10px;
}
