/* Do not touch unless you know what you are doing  */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f8f9fa;
    color: #111;
    line-height: 1.5;
  }
  
  /* Header */
  header {
    background: #0a2342;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
  }
  .search-bar {
    flex: 1;
    display: flex;
    margin: 0 20px;
  }
  .search-bar input {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
  }
  .search-bar button {
    padding: 10px 16px;
    background: #1f5f9c;
    border: 1px solid #1f5f9c;
    font-size: 16px;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
  }
  .search-bar button:hover {
    background: #17486d;
  }
  .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
  }
  
  /* Banner */
  .banner {
    background: url('https://via.placeholder.com/1200x200?text=Mega+Sale') center/cover no-repeat;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .banner h1 {
    color: white;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 28px;
    border-radius: 6px;
  }
  
  /* Grid */
  .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  .product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .product-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    height: 48px;
    overflow: hidden;
  }
  .product-info p.desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    flex: 1;
  }
  .product-info p.price {
    font-size: 20px;
    color: #1f5f9c;
    font-weight: bold;
    margin-bottom: 12px;
  }
  .product-info button {
    padding: 10px;
    background: #1f5f9c;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .product-info button:hover {
    background: #17486d;
  }
  
  /* Detail page */
  .product-detail {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  }
  .product-detail img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
  }
  .detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .detail-info h1 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .detail-info .price {
    font-size: 24px;
    color: #1f5f9c;
    margin-bottom: 16px;
  }
  .detail-info p {
    margin-bottom: 20px;
  }
  .detail-info button {
    background: #1f5f9c;
    color: white;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    align-self: start;
    transition: background 0.2s;
  }
  .detail-info button:hover {
    background: #17486d;
  }
  .detail-reviews h3 {
    margin-top: 24px;
    font-size: 20px;
  }
  .detail-reviews ul {
    list-style: disc;
    padding-left: 20px;
    color: #333;
  }
  
  /* Cart */
  .cart {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  }
  .cart h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .cart-list {
    list-style: none;
    padding: 0;
  }
  .cart-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
  }
  .cart-list button {
    padding: 6px 10px;
    font-size: 14px;
    background: #1f5f9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .cart-list button:hover {
    background: #17486d;
  }
  .cart-summary {
    margin-top: 20px;
    text-align: right;
  }
  .cart-summary button {
    background: #0a2342;
    color: white;
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .cart-summary button:hover {
    background: #112a46;
  }
  
  /* Checkout & Orders */
  .checkout-form, .orders-section {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  }
  .checkout-form h2, .orders-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .checkout-form input, .checkout-form textarea, .checkout-form input[type="file"] {
    width: 100%;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  .checkout-form button, #upi-btn, #submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  #upi-btn {
    background: #1f5f9c;
    color: white;
    transition: background 0.2s;
  }
  #upi-btn.active {
    background: #28a745;
  }
  #upi-btn:hover {
    background: #17486d;
  }
  #submit-btn {
    background: #6c757d;
    color: white;
  }
  #submit-btn.enabled {
    background: #0a2342;
  }
  .checkout-form button:not([type="file"]):hover {
    opacity: 0.95;
  }
  
  /* Order cards */
  .order-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  }
  .order-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .order-card p, .order-card li {
    margin-bottom: 6px;
  }
  
  /* Confirmation */
  .confirmation-box {
    text-align: center;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 24px;
    margin: 40px auto;
    max-width: 600px;
    border-radius: 8px;
  }
  
  /* Utility */
  .hidden {
    display: none;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    header {
      flex-wrap: wrap;
      padding: 10px;
    }
    .search-bar {
      width: 100%;
      margin: 10px 0;
    }
    .product-detail {
      flex-direction: column;
      padding: 16px;
    }
    .product-detail img {
      width: 100%;
      max-width: none;
      height: auto;
    }
    .cart {
      padding: 16px;
    }
    .checkout-form, .orders-section {
      padding: 16px;
    }
  }
  
