 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: 'Source Sans Pro', sans-serif;
      background: #FAF6E9;
      color: #3A2E1F;
      min-height: 100vh;
      overflow-x: hidden;
    }
    .parchment {
      background: rgba(248, 242, 225, 0.9);
      border: 1px solid rgba(232, 210, 166, 0.3);
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 16px;
    }
    nav {
      position: sticky;
      top: 0;
      z-index: 25;
      padding: 16px 0;
      background: #FAF6E9;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      border-bottom: 1px solid rgba(98, 139, 72, 0.1);
      display: none;
    }
    nav.active {
      display: block;
    }
    nav .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }
    nav h1 {
      font-family: 'Karla', sans-serif;
      font-size: 26px;
      color: #628B48;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    nav h1::before {
      content: '';
      display: inline-block;
      width: 32px;
      height: 32px;
      background: url('https://cdn-icons-png.flaticon.com/512/2153/2153788.png') no-repeat center/contain;
    }
    nav .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      margin-left: auto;
    }
    nav a, nav button {
      color: #3A2E1F;
      text-decoration: none;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 16px;
      border-radius: 25px;
      transition: all 0.3s ease;
      white-space: nowrap;
    }
    nav a:hover, nav button:hover {
      color: #628B48;
      background: rgba(98, 139, 72, 0.1);
    }
    nav a i, nav button i {
      font-size: 20px;
    }
    .search-container {
      position: sticky;
      top: 73px;
      z-index: 24;
      background: #FAF6E9;
      padding: 12px 0;
      border-bottom: 1px solid rgba(98, 139, 72, 0.1);
      display: none;
    }
    .search-container.active {
      display: block;
    }
    .search-container .inner {
      position: relative;
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 16px;
      min-width: 260px;
    }
    .search-container input {
      padding: 12px 16px 12px 44px;
      border-radius: 25px;
      background: #F8F2E1;
      color: #3A2E1F;
      border: 1px solid #E8D2A6;
      width: 100%;
      font-size: 16px;
      transition: all 0.3s ease;
    }
    .search-container input:focus {
      outline: none;
      box-shadow: 0 0 0 2px #628B48;
      background: #FFFFFF;
    }
    .search-container .fa-leaf {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #7A8066;
      font-size: 18px;
      pointer-events: none;
    }
    .category-buttons {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin: 20px 0;
      padding: 0 16px;
      flex-wrap: wrap;
    }
    .category-buttons button {
      padding: 10px 20px;
      border-radius: 10px;
      background: #F8F2E1;
      color: #3A2E1F;
      border: 1px solid #E8D2A6;
      font-family: 'Source Sans Pro', sans-serif;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .category-buttons button.active, .category-buttons button:hover {
      background: #628B48;
      color: #FAF6E9;
      border-color: #628B48;
    }
    .products {
      padding: 20px 16px;
      display: none;
    }
    .products.active {
      display: block;
    }
    .products h2 {
      font-family: 'Karla', sans-serif;
      font-size: 28px;
      color: #628B48;
      text-align: center;
      margin-bottom: 16px;
    }
    .products-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 1240px;
      margin: 0 auto;
    }
    .product-row {
      display: flex;
      align-items: center;
      padding: 16px;
      background: rgba(248, 242, 225, 0.9);
      border: 1px solid rgba(232, 210, 166, 0.3);
      border-radius: 10px;
      transition: transform 0.3s ease;
      justify-content: space-between;
    }
    .product-row:hover {
      transform: translateY(-3px);
    }
    .product-row img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 8px;
      margin-right: 16px;
    }
    .product-row .content {
      flex: 1;
      max-width: calc(100% - 200px);
    }
    .product-row h3 {
      font-size: 18px;
      font-weight: 600;
      color: #3A2E1F;
      margin-bottom: 0;
    }
    .product-row p {
      display: none;
    }
    .product-row .actions {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 180px;
      justify-content: flex-end;
    }
    .product-row input[type="number"] {
      width: 80px;
      padding: 8px;
      border-radius: 6px;
      background: #F8F2E1;
      color: #3A2E1F;
      border: 1px solid #E8D2A6;
      font-size: 15px;
    }
    .product-row button {
      background: #F4A261;
      color: #3A2E1F;
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      font-size: 15px;
      cursor: pointer;
      transition: transform 0.3s ease;
      min-width: 120px;
      text-align: center;
    }
    .product-row button:hover {
      transform: scale(1.05);
    }
    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      align-items: center;
      justify-content: center;
      z-index: 30;
    }
    .modal.active {
      display: flex;
    }
    .modal-content {
      max-width: 420px;
      width: 92%;
      padding: 28px;
      background: #FAF6E9;
      border-radius: 10px;
      position: relative;
    }
    .cart-modal .modal-content, .account-modal .modal-content, #checkout-modal .modal-content, #order-details-modal .modal-content {
      max-width: 600px;
      width: 95%;
      max-height: 80vh;
      overflow-y: auto;
    }
    .modal img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 20px;
    }
    .modal h2 {
      font-family: 'Karla', sans-serif;
      font-size: 22px;
      color: #628B48;
      margin-bottom: 14px;
    }
    .modal p {
      font-size: 15px;
      color: #7A8066;
      margin-bottom: 14px;
    }
    .modal .actions {
      display: flex;
      justify-content: flex-end;
      gap: 16px;
    }
    .modal button {
      padding: 10px 20px;
      border-radius: 10px;
      font-size: 15px;
      cursor: pointer;
      border: none;
    }
    .modal .actions button:first-child {
      background: #F8F2E1;
      color: #3A2E1F;
    }
    .modal .actions button:last-child {
      background: #F4A261;
      color: #3A2E1F;
    }
    .modal select, .modal input[type="email"], .modal input[type="password"], .modal input[type="number"] {
      width: 100%;
      padding: 12px;
      border-radius: 10px;
      background: #F8F2E1;
      color: #3A2E1F;
      border: 1px solid #E8D2A6;
      font-size: 16px;
      margin-bottom: 20px;
    }
    .modal .close-btn {
      position: absolute;
      top: 14px;
      right: 14px;
      color: #7A8066;
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
    }
    .modal .form-group {
      margin-bottom: 20px;
    }
    .modal .form-group label {
      display: block;
      color: #7A8066;
      margin-bottom: 8px;
      font-size: 15px;
    }
    .modal .submit-btn {
      width: 100%;
      padding: 12px;
      background: #F4A261;
      color: #3A2E1F;
      border-radius: 10px;
      font-size: 16px;
      border: none;
      cursor: pointer;
    }
    .modal .register-link {
      text-align: center;
      margin-top: 16px;
      color: #7A8066;
      font-size: 15px;
    }
    .modal .register-link a {
      color: #628B48;
      text-decoration: none;
      font-family: 'Karla', sans-serif;
    }
    .cart-item, .order-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding: 16px;
      background: rgba(248, 242, 225, 0.9);
      border: 1px solid rgba(232, 210, 166, 0.3);
      border-radius: 10px;
    }
    .cart-item .details, .order-item .details {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .cart-item img {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px; 
    }
    .cart-item .quantity {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .cart-item .quantity button {
      padding: 8px 14px;
      min-width: 48px;
      background: #F4A261;
      color: #3A2E1F;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .cart-item .quantity button:hover {
      transform: scale(1.05);
    }
    .cart-item button.remove {
      background: none;
      color: #EF4444;
      padding: 0;
      font-size: 18px;
    }
    .cart-item button.remove:hover {
      color: #DC2626;
      transform: none;
    }
    .order-item button {
      background: #F4A261;
      color: #3A2E1F;
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      font-size: 15px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .order-item button:hover {
      transform: scale(1.05);
    }
    .cart-total {
      text-align: right;
    }
    .cart-total button {
      background: #F4A261;
      color: #3A2E1F;
      padding: 12px 24px;
      border-radius: 10px;
      border: none;
      font-size: 16px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .cart-total button:hover {
      transform: scale(1.05);
    }
    .cart-summary {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #F4A261;
      color: #3A2E1F;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.3s ease;
      z-index: 10;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
      display: none;
    }
    .cart-summary.active {
      display: block;
    }
    .cart-summary:hover {
      transform: scale(1.05);
    }
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      color: #628B48;
      font-size: 24px;
      cursor: pointer;
      padding: 8px;
    }
    .bottom-nav {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #FAF6E9;
      padding: 12px;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      z-index: 20;
    }
    
    .bottom-nav-content {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 500px;
      margin: 0 auto;
    }
    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #7A8066;
      text-decoration: none;
      font-size: 12px;
      gap: 4px;
    }
    .bottom-nav-item i {
      font-size: 20px;
    }
    .bottom-nav-item.active {
      color: #628B48;
    }
    .loading {
      position: fixed;
      inset: 0;
      background: rgba(250, 246, 233, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 50;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .loading.active {
      opacity: 1;
      pointer-events: all;
    }
    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid rgba(98, 139, 72, 0.1);
      border-top-color: #628B48;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    /* Updated styles for Order Details modal */
    #order-details .order-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px;
      margin-bottom: 12px;
      background: rgba(248, 242, 225, 0.9);
      border: 1px solid rgba(232, 210, 166, 0.3);
      border-radius: 8px;
      gap: 12px;
      flex-wrap: wrap; /* Allow wrapping for smaller screens */
    }
    #order-details .order-item img {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0; /* Prevent image from shrinking */
    }
    #order-details .order-item .details {
      flex: 1;
      min-width: 0; /* Prevent overflow on smaller screens */
    }
    #order-details .order-item h3 {
      font-size: 16px;
      font-weight: 600;
      color: #3A2E1F;
      margin-bottom: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis; /* Handle long names */
    }
    #order-details .order-item p {
      font-size: 14px;
      color: #7A8066;
      margin: 0;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    @media (max-width: 768px) {
      nav {
        padding: 12px 0;
      }
      nav .container {
        flex-wrap: nowrap;
      }
      nav h1::before {
        width: 24px;
        height: 24px;
      }
      nav .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #FAF6E9;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(98, 139, 72, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0,ChargePoint 0.1);
      }
      nav .nav-links.active {
        transform: translateY(0);
        opacity: 1;
      }
      nav a, nav button {
        justify-content: flex-start;
        width: 100%;
        padding: 12px;
        border-radius: 8px;
      }
      .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: all 0.3s ease;
      }
      .mobile-menu-btn:hover {
        background: rgba(98, 139, 72, 0.1);
      }
      .mobile-menu-btn.active {
        background: #628B48;
        color: #FAF6E9;
      }
      .mobile-menu-btn i {
        font-size: 20px;
        transition: transform 0.3s ease;
      }
      .mobile-menu-btn.active i {
        transform: rotate(180deg);
      }
      .search-container {
        top: 60px;
        padding: 8px 0;
      }
      .search-container .inner {
        min-width: 0;
        width: 100%;
      }
      .category-buttons {
        margin: 16px 0;
      }
      .product-row {
        flex-direction: row;
        align-items: center;
        padding: 12px;
      }
      .product-row img {
        width: 60px;
        height: 60px;
        margin-right: 8px;
      }
      .product-row .content {
        max-width: calc(100% - 140px);
      }
      .product-row .actions {
        min-width: 140px;
      }
      .product-row input[type="number"] {
        width: 60px;
        padding: 6px;
      }
      .product-row button {
        padding: 8px 16px;
        min-width: 100px;
      }
      .cart-modal .modal-content, .account-modal .modal-content, #checkout-modal .modal-content, #order-details-modal .modal-content {
        max-width: 90%;
        max-height: 80vh;
        overflow-y: auto;
      }
      .cart-item img {
        width: 60px;
        height: 60px;
      }
      .cart-summary {
        bottom: 80px;
        font-size: 14px;
        padding: 10px 16px;
      }
      .bottom-nav {
        display: block;
      }
      body {
        padding-bottom: 60px;
      }
      .products-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      .product-row {
        min-width: 320px;
      }
      /* Mobile-specific styles for Order Details modal */
      #order-details .order-item {
        padding: 10px;
        gap: 8px;
      }
      #order-details .order-item img {
        width: 60px;
        height: 60px;
      }
      #order-details .order-item h3 {
        font-size: 14px;
      }
      #order-details .order-item p {
        font-size: 13px;
      }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      .product-row img {
        width: 80px;
        height: 80px;
      }
      .product-row .content {
        max-width: calc(100% - 180px);
      }
      /* Tablet-specific styles for Order Details modal */
      #order-details .order-item img {
        width: 70px;
        height: 70px;
      }
      #order-details .order-item h3 {
        font-size: 15px;
      }
      #order-details .order-item p {
        font-size: 14px;
      }
    }
    @media (hover: hover) {
      .product-row:hover {
        transform: translateY(-3px);
      }
    }
    .product-row:active {
      transform: scale(0.98);
    }
    button:active, .bottom-nav-item:active {
      transform: scale(0.95);
    }
    .product-row, .cart-item, .order-item {
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                 box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .bottom-nav {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                 opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body {
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    body::-webkit-scrollbar {
      display: none;
    }