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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b35;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.search-btn {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #ffed4e;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.search-input {
    flex: 1;
}

.search-input input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.search-button {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #ffed4e;
}

.hero-image {
    text-align: center;
}

.hero-food-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.category-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    cursor: pointer;
}

.product-card {
    background: rgb(255, 255, 255);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #e55a2b;
}

/* Shop Page */
.shop-header {
    background: #f8f9fa;
    padding: 120px 0 60px;
    text-align: center;
}

.shop-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.shop-content {
    padding: 60px 0;
}

.shop-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* Product Detail */
.product-detail {
    padding: 120px 0 60px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    border-radius: 15px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-detail-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.related-products {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Checkout */
.checkout {
    padding: 120px 0 60px;
}

.checkout h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.checkout-form h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.place-order-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.place-order-btn:hover {
    background: #e55a2b;
}

.order-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

.order-summary h2 {
    margin-bottom: 2rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.checkout-item:last-child {
    border-bottom: none;
}

.order-total {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.final-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b35;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #ff6b35;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.cart-item-quantity button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.cart-total {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.checkout-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #e55a2b;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shop-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* 3 items per column on mobile for categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1rem;
  }

  .category-image {
    width: 60px;
    height: 60px;
  }

  .category-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .category-count {
    font-size: 0.8rem;
  }

  /* 3 items per column on mobile for products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-image {
    height: 120px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .product-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .add-to-cart-btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shop-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Maintain 3 items per column even on very small screens */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .category-card {
    padding: 0.8rem;
  }

  .category-image {
    width: 50px;
    height: 50px;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .category-count {
    font-size: 0.7rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-image {
    height: 100px;
  }

  .product-info {
    padding: 0.8rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }

  .product-price {
    font-size: 1rem;
  }

  .add-to-cart-btn {
    padding: 6px;
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .search-form {
    flex-direction: column;
  }

  .search-input input {
    padding: 12px;
    font-size: 0.9rem;
  }

  .search-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  /* Extra small screens - still maintain 3 columns but with minimal spacing */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-card {
    padding: 0.5rem;
  }

  .category-image {
    width: 40px;
    height: 40px;
  }

  .category-name {
    font-size: 0.8rem;
  }

  .category-count {
    font-size: 0.65rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-image {
    height: 80px;
  }

  .product-info {
    padding: 0.5rem;
  }

  .product-name {
    font-size: 0.8rem;
  }

  .product-description {
    display: none; /* Hide description on very small screens */
  }

  .product-price {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .add-to-cart-btn {
    padding: 4px;
    font-size: 0.7rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card,
.product-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* 3 items per column on mobile for categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1rem;
  }

  .category-image {
    width: 60px;
    height: 60px;
  }

  .category-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .category-count {
    font-size: 0.8rem;
  }

  /* 3 items per column on mobile for products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-image {
    height: 120px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .product-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .add-to-cart-btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shop-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }

  .buy-now-btn {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .buy-now-btn:hover {
    background: #218838;
  }

  .add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .ingredients {
    margin: 2rem 0;
  }

  .ingredients h3 {
    margin-bottom: 1rem;
    color: #333;
  }

  .ingredients ul {
    list-style: none;
    padding: 0;
  }

  .ingredients li {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 3px solid #ff6b35;
  }

  .product-detail-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
  }

  .product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Maintain 3 items per column even on very small screens */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .category-card {
    padding: 0.8rem;
  }

  .category-image {
    width: 50px;
    height: 50px;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .category-count {
    font-size: 0.7rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-image {
    height: 100px;
  }

  .product-info {
    padding: 0.8rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }

  .product-price {
    font-size: 1rem;
  }

  .add-to-cart-btn {
    padding: 6px;
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .search-form {
    flex-direction: column;
  }

  .search-input input {
    padding: 12px;
    font-size: 0.9rem;
  }

  .search-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  /* Extra small screens - still maintain 3 columns but with minimal spacing */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .category-card {
    padding: 0.5rem;
  }

  .category-image {
    width: 40px;
    height: 40px;
  }

  .category-name {
    font-size: 0.8rem;
  }

  .category-count {
    font-size: 0.65rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .product-image {
    height: 80px;
  }

  .product-info {
    padding: 0.5rem;
  }

  .product-name {
    font-size: 0.8rem;
  }

  .product-description {
    display: none; /* Hide description on very small screens */
  }

  .product-price {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .add-to-cart-btn {
    padding: 4px;
    font-size: 0.7rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card,
.product-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
  }

  .product-detail-image {
    height: 250px;
  }

  .ingredients li {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }
}

.payment-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 5px;
}

.payment-method i {
  color: #ff6b35;
  width: 20px;
}

/* Order Success Page */
.order-success {
  padding: 120px 0 60px;
  min-height: 100vh;
  background: #f8f9fa;
}

.success-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 2rem;
}

.success-content h1 {
  color: #333;
  margin-bottom: 1rem;
}

.success-message {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.order-info-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: left;
}

.status-confirmed {
  color: #28a745;
  font-weight: bold;
}

.next-steps {
  margin: 3rem 0;
}

.next-steps h3 {
  margin-bottom: 2rem;
  color: #333;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.step i {
  font-size: 1.5rem;
  color: #ff6b35;
  margin-top: 0.5rem;
}

.step h4 {
  margin-bottom: 0.5rem;
  color: #333;
}

.step p {
  color: #666;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #e55a2b;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

@media (max-width: 768px) {
  .success-content {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .steps {
    gap: 1rem;
  }

  .step {
    padding: 0.8rem;
  }
}

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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b35;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #ff6b35;
}

.location-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.location-selector:hover {
  border-color: #ff6b35;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.search-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Enhanced Hero Section with Slider */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
}

.hero-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
}

.hero-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
  background: rgba(255, 107, 53, 0.8);
  transform: scale(1.1);
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: #ff6b35;
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 5;
  color: white;
  max-width: 600px;
}

.hero-subtitle {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.search-form {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.search-input {
  flex: 1;
}

.search-input input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.search-input input:focus {
  outline: none;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-button {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Enhanced Categories Section */
.categories {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
}

.categories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  color: #ff6b35;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #ffd700;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.category-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: left 0.5s;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.category-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  object-fit: cover;
  border: 4px solid #ff6b35;
  transition: transform 0.3s;
}

.category-card:hover .category-image {
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.category-count {
  color: #666;
  font-size: 1rem;
}

/* Enhanced Products Grid */
.featured-products {
  padding: 100px 0;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Premium Product Card Design */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  border: 1px solid #f0f0f0;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 215, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.product-card:hover .product-image {
  transform: scale(1.1) rotate(2deg);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.product-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  transition: color 0.3s;
  line-height: 1.3;
}

.product-card:hover .product-name {
  color: #ff6b35;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b35;
  position: relative;
}

.product-price::before {
  content: "GH₵";
  font-size: 0.8rem;
  position: absolute;
  left: -15px;
  top: 2px;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.add-to-cart-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Enhanced Product Detail Page */
.product-detail {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-detail-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 2rem;
}

.product-detail-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

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

.product-detail-info {
  padding: 2rem;
  background: white;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.2;
}

.product-detail-price {
  font-size: 2.5rem;
  color: #ff6b35;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
}

.product-detail-description {
  margin-bottom: 3rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #666;
}

.ingredients {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid #ff6b35;
}

.ingredients h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.3rem;
}

.ingredients ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.ingredients li {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid #ff6b35;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.ingredients li:hover {
  transform: translateX(5px);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.quantity-btn {
  background: #ff6b35;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.quantity-btn:hover {
  background: #e55a2b;
  transform: scale(1.1);
}

.quantity-input {
  width: 80px;
  text-align: center;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

.product-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-actions button {
  flex: 1;
  padding: 18px 25px;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.product-actions .add-to-cart-btn {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.product-actions .add-to-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.buy-now-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.buy-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

.related-products {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 1s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 1s ease-out;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    height: 80vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-image-container {
    height: 180px;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-navigation {
    padding: 0 1rem;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .product-image-container {
    height: 150px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .add-to-cart-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .product-image-container {
    height: 120px;
  }

  .product-description {
    display: none;
  }

  .product-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-section ul li a:hover {
  color: #ffd700;
  transform: translateX(5px);
}

.footer-section p {
  color: #bdc3c7;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.footer-section i {
  margin-right: 0.8rem;
  color: #ff6b35;
}
