﻿body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #F8F9FA;
  color: #2D3A3A;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  background-color: #34623F;
  color: #FFFFFF;
  padding: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: left;
}

.logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.logo img {
  width: 100%;
  height: auto;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name .top {
  font-size: 2.6rem;
  font-weight: 700;
}

.brand-name .bottom {
  font-size: 2.1rem;
  font-weight: 600;
}

nav {
  margin-top: 1.5rem;
}

nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #90BE6D;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem;
  color: #34623F;
  font-weight: 600;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F9C74F;
}

.hero-section {
  background-color: #90BE6D;
  padding: 2.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  color: #2D3A3A;
}

.hero-section .text-placeholder {
  background: #FFFFFF;
  padding: 0.75rem;
  margin: 0.75rem auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-section {
  background-color: #FFFFFF;
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.input-placeholder {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 2px solid #34623F;
  border-radius: 8px;
  font-size: 1rem;
}

.button-placeholder {
  background-color: #34623F;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-placeholder:hover {
  background-color: #295232;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.basket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.card-placeholder {
  background-color: #FFFFFF;
  border-left: 8px solid #F9C74F;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.basket-grid .card-placeholder {
  min-height: 180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34623F;
  margin-bottom: 0.5rem;
}

.card-text,
.vendor-details-placeholder,
.announcement-details-placeholder {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.announcement-download {
  background-color: #f9f9f9;
  padding: 0.5rem;
  border-radius: 6px;
  color: #34623F;
  font-weight: 500;
  display: inline-block;
  margin: 0.5rem 0;
}

.card-button {
  display: block;            
  width: 100%;                  
  box-sizing: border-box;      
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background-color: #34623F;
  color: white;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.card-button:hover {
  background-color: #295232;
}



footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: #FFFFFF;
  background-color: #34623F;
  border-radius: 12px;
}

.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.add-to-basket-form {
    margin-top: 1rem;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-section label {
    font-weight: 500;
    color: #374151;
}

.quantity-section input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
}

.unit-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.basket-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    min-height: 120px;
}

.basket-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.basket-item-details {
    flex: 1;
    min-width: 0;
}

.basket-item-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.basket-item-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.basket-item-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quantity-adjustment {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quantity-btn {
    background-color: #34623F;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #295232;
}

.quantity-controls input[type="number"] {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.unit-label {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.25rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.remove-button {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.remove-button:hover {
    background-color: #b91c1c;
}

.empty-basket {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-basket h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-basket p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.total-section {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.total-section h2 {
    font-size: 1.8rem;
    color: #0d9488;
    margin-bottom: 1rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #6b7280;
    font-size: 1.1rem;
}

.products-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.products-grid .product-card {
    aspect-ratio: auto;
    min-height: 550px;
    max-height: 600px;
}

.products-grid .product-card .product-detail:first-of-type {
    flex-grow: 1;
    min-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        max-width: 900px;
    }
    
    .products-grid .product-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
    }
    
    .products-grid .product-card {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
    }
    
    .products-grid .product-card {
        min-height: 280px;
    }
}

.product-card {
    background-color: #FFFFFF;
    border-left: 8px solid #F9C74F;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
    flex-grow: 1;
}

.products-grid .product-card {
    height: 100%;
    min-height: 350px;
    flex-grow: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.products-grid .product-card .add-to-basket-form {
    margin-top: auto;
    padding-top: 1rem;
}

.products-grid .product-card .product-title {
    flex-shrink: 0;
}

.products-grid .product-card .product-price {
    flex-shrink: 0;
}

.products-grid .product-card .product-detail {
    flex-grow: 1;
}

.products-grid .product-card .product-category {
    flex-shrink: 0;
}

.products-grid .product-card .quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.products-grid .product-card .quantity-section label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.products-grid .product-card .quantity-section input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.products-grid .product-card .quantity-section .unit-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.products-grid .product-card .card-button {
    background-color: #34623F;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
}

.products-grid .product-card .card-button:hover {
    background-color: #2d5436;
}

.products-grid .product-card .card-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d9488;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-detail {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.product-category {
    font-size: 0.85rem;
    font-weight: 500;
    color: #777;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .basket-item {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .basket-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        border-width: 1px;
    }
    
    .vendor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .vendor-header img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .basket-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .basket-grid .card-placeholder {
        min-height: auto;
    }
    
    .quantity-adjustment {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .quantity-controls input[type="number"] {
        width: 50px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .quantity-section {
        justify-content: center;
    }
    
    .quantity-section input[type="number"] {
        width: 60px;
    }
}

@media (max-width: 768px) {
  .branding {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-name .top {
    font-size: 1.5rem;
  }
  
  .brand-name .bottom {
    font-size: 1.2rem;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }

}

.product-images{
    width: 100px;   
    height: 100px; 
    object-fit: cover; 
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.vendor-image-legacy {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid #e5e7eb;
}

.vendor-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.grid-container_admin-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.aspect-ratio-square {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.aspect-ratio-3-2 {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.aspect-ratio-square img,
.aspect-ratio-3-2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aspect-ratio-square-placeholder,
.aspect-ratio-3-2-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px dashed #cbd5e1;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-actual-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #059669;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-details-placeholder {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.product-price-srp {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.vendor-info-section {
    background-color: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #F9C74F;
}

.card-placeholder.enhanced {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #F9C74F;
}

.card-placeholder.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.25rem;
}

.card-button.enhanced {
    background-color: #059669;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 1rem;
}

.card-button.enhanced:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.card-button.enhanced:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quantity-section.enhanced {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #374151;
}

.quantity-section.enhanced label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.quantity-section.enhanced input[type="number"] {
    width: 4rem;
    padding: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.quantity-section.enhanced input[type="number"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.unit-label.enhanced {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.vendor-profile-header {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #F9C74F;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.vendor-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vendor-image-placeholder {
    width: 150px;
    height: 150px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.vendor-details h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.vendor-info-item {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.vendor-info-item b {
    color: #374151;
}

.back-link {
    background-color: #059669;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.back-link:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.grid-container.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.vendor-details-section {
    background-color: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #F9C74F;
}

