/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Layout */
body, html {
    height: 100%; /* Full height */
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* Makes body a flex container */
}

/* Navbar */
.navbar {
    background-color: #333;
    padding: 1px;
    width: 100%;
    position: fixed; /* Make the navbar fixed */
    top: 0;
    left: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    list-style: none;
}

.navbar .nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 10px;
    transition: background 0.3s;
    font-size: 1rem;
}

.navbar .nav-links li a:hover {
    background-color: #45a049;
    border-radius: 5px;
}

/* Hamburger Menu */
.navbar .hamburger {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .navbar .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
  }
  
  /* Responsive Navbar */
  @media (max-width: 768px) {
    .navbar .nav-links {
      display: none; /* Hide the links by default */
      flex-direction: column;
      width: 100%;
      background: #333;
      position: absolute;
      top: 60px;
      left: 0;
      padding: 10px 0;
    }
  
    .navbar .nav-links.active {
      display: flex; /* Show links when active */
    }
  
    .navbar .nav-links a {
      padding: 10px 20px;
      border-bottom: 1px solid #555;
    }
  
    .navbar .hamburger {
      display: flex; /* Show hamburger menu in mobile */
    }
  }
  
/* Container */
.container {
    margin-top: 100px; /* Adjusted to account for navbar */
    padding: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.search-filter-form input,
.search-filter-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-filter-form .btn {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.search-filter-form .btn:hover {
    background-color: #45a049;
}
.categories-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.category-item {
    padding: 10px 15px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.category-item:hover, .category-item.active {
    background-color: #4CAF50;
    color: white;
}
.pagination a {
    padding: 8px 15px;
    margin: 0 5px;
    text-decoration: none;
    background: #4CAF50;
    color: white;
    border-radius: 5px;
}
.pagination span {
    padding: 8px 15px;
    color: black;
}



/* Hero Section */
.hero-section {
    padding: 1px 0.5px;
    color: white;
    background-color: #4CAF50;
    text-align: center;
    margin-top: 70px; /* Added to prevent overlap with fixed navbar */
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 20px;
}

.filter-container input[type="text"],
.filter-container select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Products Page Styles */
.products-section h1 {
    text-align: center;
    margin-bottom: 20px;
}

.filter-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-container input,
.filter-container select,
.filter-container .btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    margin: 10px 0;
}

.product-item .price {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-item .btn {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.product-item .btn:hover {
    background-color: #45a049;
}


/* Form Elements */
form {
    margin-bottom: 30px;
}

/* Form Labels */
label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #555;
}

/* Input Fields */
input[type="file"],
input[type="password"],
select {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type="text"],
input[type="first_name"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type="email"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="number"],
input[type="price"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="file"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: #28a745;
}

input[type="checkbox"] {
    margin-right: 8px;
}

/* Buttons */
button[type="submit"],
button[type="button"] {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
}

button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

button[type="submit"]:active,
button[type="button"]:active {
    transform: translateY(0);
}

/* Button Group */
button[type="submit"]:not(:last-child) {
    margin-bottom: 20px;
}

/* Activity Log */
h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

/* Section Headers */
section {
    margin-bottom: 30px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin-top: 70px;
    }

    h2 {
        font-size: 1.8rem;
    }

    input[type="file"],
    input[type="password"],
    select,
    button[type="submit"],
    button[type="button"] {
        font-size: 0.9rem;
    }
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

/* Links */
a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}
/* Features Section */
.features-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
}

/* Quick Links Section */
.quick-links-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.quick-links-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Grid for Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Individual Quick Link Item */
.quick-link-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.quick-link-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-link-item a i {
    font-size: 40px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.quick-link-item a h3 {
    font-size: 18px;
    margin: 0;
}

/* Hover Effects */
.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.quick-link-item a:hover i {
    color: #4CAF50;
}

.quick-link-item a:hover h3 {
    color: #4CAF50;
}


/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.cart-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Heading */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, 
.cart-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.cart-table th {
    background-color: #4CAF50;
    color: white;
}

.cart-table img {
    border-radius: 4px;
}

.cart-table input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cart Total */
.cart-total {
    text-align: right;
    margin-bottom: 20px;
}

.cart-total h3 {
    font-size: 20px;
    color: #4CAF50;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: #4CAF50;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.checkout-btn {
    background-color: #28a745;
}

.checkout-btn:hover {
    background-color: #218838;
}

/* Empty Cart Message */
.text-center {
    text-align: center;
    padding: 20px;
}

.text-danger {
    color: #dc3545;
}

.mt-4 {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-container {
        padding: 15px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px;
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Order Success Page Styles */
.order-success-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.order-success-container h1 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.order-success-container p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.order-success-container ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.order-success-container ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-success-container p strong {
    font-size: 18px;
    color: #333;
}
.review-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.review-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.reviews {
    margin-top: 20px;
}

.review-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.review-item strong {
    display: block;
    font-size: 16px;
}

.review-item small {
    color: gray;
    font-size: 12px;
}

.btn {
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}
/* Profile Display Section */
.profile-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-details img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-details p {
    font-size: 16px;
    margin: 5px 0;
}

.profile-details strong {
    color: #333;
}


/* Update Profile Section */
.profile-update-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-update-form input[type="text"],
.profile-update-form input[type="file"],
.profile-update-form button {
    width: 20% 50%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.profile-update-form input[type="text"]:focus,
.profile-update-form input[type="file"]:focus {
    border-color: #66afe9;
    outline: none;
}

.profile-update-form button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.profile-update-form button:hover {
    background-color: #45a049;
}



/* Button Style */
.order-success-container .btn {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.order-success-container .btn:hover {
    background-color: #45a049;
}
/* Delivery Status Colors */
.pending {
    color: orange;
}

.shipped {
    color: blue;
}

.delivered {
    color: green;
}

.cancelled {
    color: red;
}

/* Footer Styling */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 12px;
    font-family: Arial, sans-serif;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    font-size: 14px;
}
/* Footer Links */
.footer a {
    color: #4CAF50;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}



/* Responsive Styling */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin-top: 70px;
    }

    h2 {
        font-size: 1.8rem;
    }

    input[type="file"],
    input[type="password"],
    select,
    button[type="submit"],
    button[type="button"] {
        font-size: 0.9rem;
    }

    .navbar .logo {
        font-size: 1.5rem;
    }

    .navbar .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .categories-list {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    h1,
    h2 {
        font-size: 1.5rem;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .navbar .nav-links li a {
        font-size: 0.9rem;
    }

    .search-filter-form input,
    .search-filter-form select,
    .search-filter-form .btn {
        font-size: 0.9rem;
    }

    .pagination a {
        padding: 5px 10px;
    }
}
