* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  body {
    background-color: #f4f4f4;
  }

  /* Navbar */
  .navbar {
    background-color: #333;
    color: white;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .navbar .container .acess {
    gap: 20px;
    display: flex;
    
  }
  .navbar .container .acess a{
    text-decoration: none;
    color: white;
    transition: 0.2s ease;
  }

  .navbar .container .acess a:hover {
    padding: 5px 8px;
    background-color: #333;
  }



  /* Basic styling for the loading spinner */
  .loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of other content */
  }

  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light color for outer ring */
    border-top: 4px solid #3498db; /* Blue color for spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  /* Keyframes for spinning animation */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Hide the content until the page is loaded */
  .content {
    display: none;
    padding: 20px;
  }

  /* Simple page content styles */
  .content h1 {
    color: #333;
  }
  .content p {
    font-size: 18px;
  }

  /* Long page content example */
  .long-content {
    height: 2000px;
    background-color: #f0f0f0;
    padding: 20px;
  }

  
  .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar h1 {
    font-size: 24px;
  }

  .cart-btn {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
  }

  .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
  }

  /* Hero Slideshow */
  .hero {
    position: relative;
    height: 400px;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
  }

  .slide.active {
    opacity: 1;
  }

  .slide-content {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .slide-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .slide-content button {
    padding: 10px 20px;
    background: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
  }

  .slide-content button:hover {
    background: #ddd;
  }

  /* Product Grid */
  .products {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
  }

  .products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease;
  }

  .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .product-info p {
    color: #555;
    margin-bottom: 10px;
  }

  .product-info button {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .product-info button:hover {
    background: #2980b9;
  }

  /* Product Navigation */
  .product-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .product-nav button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .product-nav button:hover {
    background: #555;
  }

  .product-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }

  /* Cart Modal */
  .cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
  }

  .cart-modal.active {
    display: flex;
  }

  .cart-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.5s ease;
  }

  .cart-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
  }

  .cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
  }

  .cart-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }

  .cart-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .close-cart {
    background: #7f8c8d;
    color: white;
  }

  .checkout {
    background: #2ecc71;
    color: white;
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Responsive  screens*/
  @media (max-width: 768px) {
    .slide-content h2 {
      font-size: 24px;
    }

    .hero {
      height: 300px;
    }
  }