* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    width: 100%;
    background-color: #f9f9f9;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
  }
  
  header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }
  
  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
  }
  /*body1*/
  .logo-text {
    font-size: 28px;
    font-weight: bold;
    color:  purple;
  }
  
  .tagline {
    font-size: 14px;
    color: #666;
  }
  
  .search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 10px 20px;
  }
  
  .search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px 0 0 25px;
    outline: none;
  }
  
  .search-bar button {
    padding: 10px;
    border: none;
    background-color: purple;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
  }
  
  .search-bar button img {
    width: 20px;
    height: 20px;
  }
  
  .right-section {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .user-actions a {
    margin-right: 10px;
    color: black;
    text-decoration: none;
    font-size: 14px;
  }
  
  .user-actions img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }
  
  .hotline {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .phone-icon img {
    width: 24px;
    height: 24px;
  }
  
  .contact-info .hotline-text {
    font-size: 12px;
    color: #666;
  }
  
  .phone-number {
    font-size: 14px;
    color: purple;
    font-weight: bold;
  }
  /*body2-menu*/
  .main-nav {
    background-color: purple;
    padding: 10px 0;
  }
  
  .menu-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
    list-style-type: none;
  }
  
  .menu-items li {
    position: relative;
    list-style: none;
  }
  
  .menu-items a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: bold;
    display: block;
  }
  
  .menu-items a:hover {
    background-color: #444;
    border-radius: 5px;
  }
    
  .category-menu {
    position: relative;
    display: inline-block;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 14px 20px;
  }
  
  .category-menu span {
    margin-left: 10px;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }
  
  .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
  }
  
  .dropdown-menu li a:hover {
    background-color: #eee;
  }
  
  .category-menu:hover .dropdown-menu,
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
  }

  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

  /*footer*/
  footer {
    background-color: purple;
    color: white;
    padding: 40px 0;
    margin-top: 30px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer-column {
    flex: 1 1 200px;
  }
  
  .footer-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 8px;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .payment-methods img {
    margin-top: 10px;
    max-width: 100%;
  }
  .footer-address {
    font-size: 14px;
    margin-bottom: 10px;
    color: #fff; 
  }
  
  .footer-map iframe {
    border-radius: 8px;
    width: 100%;
    height: 200px;
  }

  /*main*/
  /* Main Cart Section */
#cart-container {
    padding: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#cart-container h2 {
    font-size: 24px;
    color: purple;
    margin-bottom: 20px;
    text-align: center;
}

/* Cart Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: purple;
    color: white;
    font-weight: bold;
}

.cart-table td img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

.cart-table .quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.cart-table .remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.cart-table .remove-btn:hover {
    background-color: #cc0000;
}

/* Empty Cart Message */
#empty-cart-message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

#empty-cart-message a {
    color: purple;
    text-decoration: none;
    font-weight: bold;
}

#empty-cart-message a:hover {
    text-decoration: underline;
}

/* Cart Total Section */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.cart-total h3 {
    font-size: 20px;
    color: purple;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#continue-shopping-btn {
    background-color: #ccc;
    color: #333;
}

#continue-shopping-btn:hover {
    background-color: #bbb;
}

#checkout-btn {
    background-color: purple;
    color: white;
}

#checkout-btn:hover {
    background-color: #660066;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1 PX solid #ddd;
        border-radius: 5px;
        padding: 10px;
        background-color: #fff;
    }

    .cart-table td {
        display: block;
        text-align: center;
        border: none;
        padding: 8px;
    }

    .cart-table td img {
        margin: 0 auto;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: purple;
        margin-bottom: 5px;
    }

    .cart-total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cart-actions {
        flex-direction: column;
        width: 100%;
    }

    .cart-actions button {
        width: 100%;
    }
}