:root {
      --cream: #F0E5D0;
      --cream-dark: #E4D5BA;
      --green: #2C4A1E;
      --green-mid: #3A6128;
      --green-light: #4E7D35;
      --green-pale: #EAF0E2;
      --text: #1A2E10;
      --white: #FFFFFF;
      --shadow: 0 4px 20px rgba(44,74,30,0.12);
      --radius: 14px;
    }

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

    html { scroll-behavior: smooth; overflow-x: hidden; }

    body {
      font-family: 'Segoe UI', system-ui, sans-serif;
      background: var(--cream);
      color: var(--text);
      min-height: 100vh;
      -webkit-text-size-adjust: 100%;
      overflow-x: hidden;
    }

    /* Bigger touch targets on mobile */
    button, a { -webkit-tap-highlight-color: transparent; }
    input, select, textarea { -webkit-appearance: none; appearance: none; }

    /* ── NAVBAR ── */
    nav {
      background: var(--green);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 32px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      user-select: none;
    }

    .nav-logo svg { width: 52px; height: 52px; }

    .nav-brand { color: var(--cream); }
    .nav-brand .store-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; line-height: 1; }
    .nav-brand .store-sub { font-size: 0.65rem; letter-spacing: 1.5px; opacity: 0.8; text-transform: uppercase; }

    nav ul { list-style: none; display: flex; gap: 28px; }
    nav ul a, nav a {
      color: var(--cream);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.5px;
      opacity: 0.85;
      transition: opacity .2s;
    }
    nav ul a:hover, nav a:hover { opacity: 1; }

    .cart-btn {
      background: var(--cream);
      color: var(--green);
      border: none;
      border-radius: 30px;
      padding: 10px 22px;
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: transform .15s, background .15s;
    }
    .cart-btn:hover { transform: scale(1.04); background: var(--cream-dark); }

    .cart-badge {
      background: var(--green);
      color: var(--cream);
      border-radius: 50%;
      width: 22px; height: 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; font-weight: 700;
    }

    /* ── HERO ── */
    #hero {
      background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #5B8A3C 100%);
      color: var(--cream);
      padding: 80px 40px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    #hero::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    #hero .hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
    #hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 12px; }
    #hero p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 8px; }
    #hero .tagline { font-size: 0.95rem; opacity: 0.7; margin-bottom: 36px; }
    .hero-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
    .badge {
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 0.8rem;
      letter-spacing: 0.5px;
    }
    .btn-hero {
      background: var(--cream);
      color: var(--green);
      padding: 14px 40px;
      border-radius: 40px;
      font-weight: 800;
      font-size: 1rem;
      text-decoration: none;
      display: inline-block;
      transition: transform .2s, box-shadow .2s;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

    /* ── SECTION HEADERS ── */
    .section-header { text-align: center; padding: 56px 20px 32px; }
    .section-header h2 { font-size: 2rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
    .section-header p { color: #666; font-size: 0.95rem; }
    .divider { width: 60px; height: 4px; background: var(--green); border-radius: 2px; margin: 12px auto 0; }

    /* ── CATEGORY FILTER BAR ── */
    .category-bar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      max-width: 1100px;
      margin: 0 auto 28px;
      padding: 0 4px;
    }
    .cat-btn {
      background: var(--white);
      color: var(--green);
      border: 2px solid var(--green-pale);
      border-radius: 30px;
      padding: 8px 20px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all .18s;
      white-space: nowrap;
    }
    .cat-btn:hover { border-color: var(--green); background: var(--green-pale); }
    .cat-btn.active {
      background: var(--green);
      color: var(--cream);
      border-color: var(--green);
    }

    /* ── ADMIN CATEGORY TAB ── */
    .admin-cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
    .admin-cat-item {
      display: flex; align-items: center; gap: 10px;
      background: #f8f8f8; border-radius: 10px; padding: 10px 14px;
    }
    .admin-cat-item .cat-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
    .admin-cat-item .cat-count { font-size: 0.78rem; color: #999; margin-right: 4px; }
    .cat-rename-input {
      flex: 1; border: 2px solid var(--green); border-radius: 6px;
      padding: 4px 8px; font-size: 0.9rem; font-family: inherit; outline: none;
      display: none;
    }
    .btn-rename {
      background: var(--green-pale); color: var(--green);
      border: none; border-radius: 6px; padding: 5px 10px;
      font-size: 0.78rem; font-weight: 600; cursor: pointer;
    }
    .btn-rename-save {
      background: var(--green); color: white;
      border: none; border-radius: 6px; padding: 5px 10px;
      font-size: 0.78rem; font-weight: 600; cursor: pointer;
      display: none;
    }
    .add-cat-row {
      display: flex; gap: 8px; margin-top: 4px;
    }
    .add-cat-row input {
      flex: 1; border: 2px solid #e0e0e0; border-radius: 8px;
      padding: 10px 12px; font-size: 0.9rem; font-family: inherit; outline: none;
    }
    .add-cat-row input:focus { border-color: var(--green); }
    .add-cat-row button {
      background: var(--green); color: white;
      border: none; border-radius: 8px; padding: 10px 18px;
      font-weight: 700; cursor: pointer; white-space: nowrap;
    }

    /* ── PRODUCTS ── */
    #products { padding: 0 32px 60px; }
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 24px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .product-card {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      transition: transform .2s, box-shadow .2s;
      display: flex;
      flex-direction: column;
    }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(44,74,30,0.18); }
    .fav-btn {
      position: absolute; top: 8px; right: 8px; z-index: 2;
      background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
      width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 0.95rem; line-height: 1;
      box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: transform .15s;
    }
    .fav-btn:hover { transform: scale(1.2); }
    .fav-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    }
    .fav-item:last-child { border-bottom: none; }
    .fav-thumb {
      width: 48px; height: 48px; border-radius: 8px;
      overflow: hidden; background: var(--green-pale); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    }
    .fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .fav-remove {
      background: none; border: none; font-size: 1rem; cursor: pointer;
      color: #e74c3c; padding: 4px; line-height: 1; flex-shrink: 0;
    }

    .product-img {
      background: var(--green-pale);
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .product-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }
    .product-img .no-img {
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      color: #aaa; font-size: 0.75rem;
    }
    .product-img .no-img span { font-size: 2.8rem; }

    .product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
    .product-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
    .product-desc { font-size: 0.82rem; color: #777; margin-bottom: 12px; flex: 1; line-height: 1.4; }
    .product-footer { display: flex; align-items: center; justify-content: space-between; }
    .product-price { font-size: 1.2rem; font-weight: 800; color: var(--green); }
    .product-price-orig { font-size: 0.8rem; font-weight: 600; color: #aaa; text-decoration: line-through; margin-bottom: 1px; }
    .product-price-sale { font-size: 1.2rem; font-weight: 800; color: #e74c3c; }
    .discount-badge { display:inline-block; background:#e74c3c; color:#fff; font-size:0.65rem; font-weight:700; border-radius:6px; padding:2px 6px; margin-left:6px; vertical-align:middle; letter-spacing:0.5px; }
    /* Discount admin list */
    .disc-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #f5f5f5; }
    .disc-row-img { width:42px; height:42px; border-radius:8px; object-fit:cover; background:#f0f0f0; flex-shrink:0; }
    .disc-row-info { flex:1; min-width:0; }
    .disc-row-name { font-weight:600; font-size:0.88rem; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .disc-row-price { font-size:0.78rem; color:#888; }
    .disc-row-input { width:72px; padding:7px 10px; border:2px solid #e0e0e0; border-radius:8px; font-size:0.9rem; font-weight:700; text-align:center; }
    .disc-row-input:focus { border-color:var(--green); outline:none; }
    .disc-row-pct { font-size:0.85rem; font-weight:700; color:#e67e22; }
    .disc-row-clear { background:none; border:none; color:#ccc; cursor:pointer; font-size:1rem; padding:4px 6px; border-radius:6px; }
    .disc-row-clear:hover { color:#e74c3c; background:#ffeaea; }
    /* Sold Out */
    .sold-out-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.45); border-radius:inherit; display:flex; align-items:center; justify-content:center; z-index:3; pointer-events:none; }
    .sold-out-label { background:#e74c3c; color:#fff; font-size:0.72rem; font-weight:800; letter-spacing:1px; padding:4px 10px; border-radius:20px; text-transform:uppercase; }
    .product-card.is-sold-out .add-btn { background:#ccc; cursor:not-allowed; pointer-events:none; }
    .btn-soldout-toggle { background:#fff3e0; color:#e67e22; border:1px solid #f0c060; border-radius:7px; padding:5px 10px; font-size:0.75rem; font-weight:700; cursor:pointer; }
    .btn-soldout-toggle.active { background:#ffeaea; color:#e74c3c; border-color:#f5c6c6; }

    .add-btn {
      background: var(--green);
      color: var(--cream);
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      transition: background .15s, transform .15s;
    }
    .add-btn:hover { background: var(--green-mid); transform: scale(1.05); }
    .add-btn.added { background: #5B8A3C; }

    /* ── CART SIDEBAR ── */
    .overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 200;
      opacity: 0; visibility: hidden;
      transition: all .3s;
    }
    .overlay.open { opacity: 1; visibility: visible; }

    #cart-sidebar {
      position: fixed;
      top: 0; right: 0;
      width: 100%; max-width: 420px;
      height: 100vh;
      transform: translateX(100%);
      background: var(--white);
      z-index: 300;
      display: flex;
      flex-direction: column;
      transition: transform .3s cubic-bezier(.4,0,.2,1);
      box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    }
    #cart-sidebar.open { transform: translateX(0); }

    .cart-header {
      background: var(--green);
      color: var(--cream);
      padding: 20px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .cart-header h3 { font-size: 1.2rem; font-weight: 800; }
    .close-btn {
      background: none; border: none; color: var(--cream);
      font-size: 1.5rem; cursor: pointer; line-height: 1;
    }

    .cart-items { flex: 1; overflow-y: auto; padding: 16px; }
    .cart-empty { text-align: center; padding: 60px 20px; color: #aaa; }
    .cart-empty span { font-size: 3rem; display: block; margin-bottom: 12px; }

    .cart-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
    }
    .cart-item-thumb {
      width: 48px; height: 48px; border-radius: 8px;
      overflow: hidden; background: var(--green-pale);
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    }
    .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .cart-item-thumb .thumb-placeholder { font-size: 1.5rem; }
    .cart-item-info { flex: 1; }
    .cart-item-name { font-weight: 700; font-size: 0.9rem; }
    .cart-item-price { font-size: 0.82rem; color: var(--green); font-weight: 600; }
    .qty-controls { display: flex; align-items: center; gap: 8px; }
    .qty-btn {
      width: 28px; height: 28px;
      background: var(--green-pale);
      border: none; border-radius: 50%;
      font-size: 1rem; font-weight: 700;
      cursor: pointer; color: var(--green);
      display: flex; align-items: center; justify-content: center;
      transition: background .15s;
    }
    .qty-btn:hover { background: var(--green); color: white; }
    .qty-val { font-weight: 700; min-width: 20px; text-align: center; }

    .cart-footer { padding: 20px 24px; border-top: 2px solid #f0f0f0; }
    .cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 1.1rem; font-weight: 800; }
    .order-btn {
      width: 100%;
      background: var(--green);
      color: var(--cream);
      border: none;
      border-radius: 12px;
      padding: 16px;
      font-weight: 800;
      font-size: 1rem;
      cursor: pointer;
      transition: background .15s;
    }
    .order-btn:hover { background: var(--green-mid); }

    /* ── ORDER MODAL ── */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 400;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; visibility: hidden;
      transition: all .3s;
      padding: 20px;
    }
    .modal-overlay.open { opacity: 1; visibility: visible; }

    .modal {
      background: var(--white);
      border-radius: 20px;
      width: 100%; max-width: 480px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      overflow: hidden;
      transform: scale(0.95);
      transition: transform .3s;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
    }
    .modal-overlay.open .modal { transform: scale(1); }

    .modal-head {
      background: var(--green);
      color: var(--cream);
      padding: 24px 28px;
      display: flex; align-items: center; justify-content: space-between;
      flex-shrink: 0;
    }
    .modal-head h3 { font-size: 1.2rem; font-weight: 800; }
    .modal-body { padding: 28px; overflow-y: auto; flex: 1; }

    .order-summary {
      background: var(--green-pale);
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 20px;
      max-height: 140px;
      overflow-y: auto;
    }
    .order-summary-item {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      padding: 3px 0;
      color: var(--text);
    }
    .order-total-line {
      border-top: 1px solid rgba(44,74,30,0.2);
      margin-top: 8px;
      padding-top: 8px;
      font-weight: 800;
      color: var(--green);
      display: flex;
      justify-content: space-between;
    }

    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--green); }
    .form-group input,
    .form-group textarea {
      width: 100%;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 0.95rem;
      font-family: inherit;
      transition: border-color .2s;
      outline: none;
    }
    .form-group input:focus,
    .form-group textarea:focus { border-color: var(--green); }
    .form-group textarea { height: 80px; resize: none; }

    .submit-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
    .btn-email {
      background: var(--green);
      color: white;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      display: block;
      transition: background .15s;
    }
    .btn-email:hover { background: var(--green-mid); }
    .btn-facebook {
      background: #1877F2;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      display: block;
      transition: background .15s;
    }
    .btn-facebook:hover { background: #1465d8; }
    .btn-whatsapp {
      background: #25D366;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-weight: 700;
      font-size: 0.95rem;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      display: block;
      transition: background .15s;
    }
    .btn-whatsapp:hover { background: #1ebe58; }

    /* ── ABOUT SECTION ── */
    #about {
      background: var(--green);
      color: var(--cream);
      padding: 60px 32px;
      text-align: center;
    }
    #about h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
    #about p { max-width: 560px; margin: 0 auto 12px; opacity: 0.85; line-height: 1.7; }
    .about-stats {
      display: flex; justify-content: center; gap: 40px;
      margin-top: 40px; flex-wrap: wrap;
    }
    .stat { text-align: center; }
    .stat-num { font-size: 2.2rem; font-weight: 900; }
    .stat-label { font-size: 0.8rem; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; }

    /* ── CONTACT SECTION ── */
    #contact {
      padding: 60px 32px;
      text-align: center;
      background: var(--cream-dark);
    }
    .contact-cards {
      display: flex; justify-content: center; gap: 20px;
      flex-wrap: wrap; margin-top: 32px; max-width: 700px; margin-left: auto; margin-right: auto;
    }
    .contact-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 24px 28px;
      flex: 1; min-width: 200px;
      box-shadow: var(--shadow);
      text-decoration: none;
      color: var(--text);
      transition: transform .2s;
    }
    .contact-card:hover { transform: translateY(-4px); }
    .contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
    .contact-card h4 { font-weight: 700; margin-bottom: 4px; color: var(--green); }
    .contact-card p { font-size: 0.85rem; color: #777; }

    /* ── FOOTER ── */
    footer {
      background: var(--text);
      color: var(--cream);
      text-align: center;
      padding: 32px 20px;
    }
    footer p { font-size: 0.85rem; opacity: 0.7; margin: 4px 0; color: var(--cream); }
    footer a { color: var(--cream); text-decoration: none; }
    footer strong { color: var(--cream); opacity: 1; font-size: 1rem; }

    /* ── ADMIN PANEL ── */
    /* Admin Topbar */
    /* ── POS SYSTEM ── */
    .pos-search-row { display:flex; gap:10px; margin-bottom:14px; }
    #pos-search { flex:1; padding:10px 14px; border:2px solid #e0e0e0; border-radius:10px; font-size:0.92rem; outline:none; font-family:inherit; }
    #pos-search:focus { border-color:var(--green); }
    #pos-scan-btn { background:var(--green); color:var(--cream); border:none; border-radius:10px; padding:10px 14px; font-weight:700; font-size:0.82rem; cursor:pointer; white-space:nowrap; }
    .pos-product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
    .pos-product-card {
      background:var(--white); border:1.5px solid #e8e8e8; border-radius:12px;
      padding:10px 6px; text-align:center; cursor:pointer; transition:all .15s;
      position:relative; user-select:none;
    }
    .pos-product-card:active { transform:scale(0.95); }
    .pos-product-card.in-cart { border-color:var(--green); background:#f0f7e8; }
    .pos-product-card .ppc-thumb { font-size:1.3rem; margin-bottom:4px; }
    .pos-product-card .ppc-img { width:40px; height:40px; object-fit:cover; border-radius:6px; margin-bottom:4px; }
    .pos-product-card .ppc-name { font-size:0.7rem; font-weight:700; color:var(--text); line-height:1.3; margin-bottom:3px; }
    .pos-product-card .ppc-price { font-size:0.78rem; font-weight:800; color:var(--green); }
    .pos-product-card .ppc-badge {
      position:absolute; top:-7px; right:-7px;
      background:var(--green); color:#fff; border-radius:50%;
      width:20px; height:20px; display:flex; align-items:center; justify-content:center;
      font-size:0.65rem; font-weight:800; border:2px solid #fff;
    }
    .pos-cart-item { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f5f5f5; }
    .pos-cart-item:last-child { border-bottom:none; }
    .pci-name { flex:1; font-size:0.82rem; font-weight:600; color:var(--text); }
    .pci-qty-ctrl { display:flex; align-items:center; gap:6px; }
    .pos-qty-btn { width:26px; height:26px; border-radius:6px; background:#f0f0f0; border:none; cursor:pointer; font-size:1rem; font-weight:700; line-height:1; }
    .pos-qty-btn:hover { background:#ddd; }
    .pci-qty-num { font-size:0.88rem; font-weight:700; min-width:18px; text-align:center; }
    .pci-total { font-size:0.82rem; font-weight:700; color:var(--green); min-width:58px; text-align:right; }
    .pci-del { background:none; border:none; color:#ccc; cursor:pointer; font-size:0.9rem; padding:2px; flex-shrink:0; }
    .pci-del:hover { color:#e74c3c; }
    .pos-total-row { display:flex; justify-content:space-between; font-size:0.88rem; color:#666; padding:4px 0; }
    .pos-total-row.grand { font-size:1.05rem; font-weight:800; color:var(--green); border-top:2px solid #f0f0f0; margin-top:6px; padding-top:10px; }
    #pos-cash-input-row { margin:10px 0; }
    #pos-cash-received { width:100%; padding:12px 14px; border:2px solid #e0e0e0; border-radius:10px; font-size:1rem; font-weight:700; box-sizing:border-box; outline:none; }
    #pos-cash-received:focus { border-color:var(--green); }
    #pos-change-display { border-radius:10px; padding:10px 14px; font-weight:800; font-size:0.95rem; text-align:center; margin-top:8px; display:none; }
    #pos-confirm-btn { width:100%; background:var(--green); color:var(--cream); border:none; border-radius:12px; padding:14px; font-weight:800; font-size:1rem; cursor:pointer; margin-top:10px; transition:opacity .2s; }
    #pos-confirm-btn:disabled { opacity:0.4; cursor:not-allowed; }
    /* POS Receipt Modal */
    #pos-receipt-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:3000; align-items:center; justify-content:center; padding:16px; }
    #pos-receipt-modal.open { display:flex; }
    .pos-receipt-box { background:#fff; border-radius:16px; width:100%; max-width:360px; max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
    .pos-receipt-head { background:var(--green); color:var(--cream); padding:20px; text-align:center; border-radius:16px 16px 0 0; }
    .pos-receipt-body { padding:20px; }
    .receipt-row { display:flex; justify-content:space-between; font-size:0.85rem; padding:3px 0; color:#444; }
    .receipt-divider { border:none; border-top:1px dashed #ddd; margin:10px 0; }
    .receipt-grand { display:flex; justify-content:space-between; font-size:1rem; font-weight:800; color:var(--green); padding:6px 0; }
    .pos-new-sale-btn { width:100%; margin-top:16px; background:var(--green); color:var(--cream); border:none; border-radius:10px; padding:13px; font-weight:800; font-size:0.95rem; cursor:pointer; }

    /* ── SCANNER MODAL ── */
    #scanner-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 2000;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    #scanner-modal.open { display: flex; }
    #scanner-box {
      width: 100%;
      max-width: 420px;
      background: #111;
      border-radius: 18px;
      overflow: hidden;
    }
    #scanner-head {
      background: var(--green);
      color: var(--cream);
      padding: 14px 18px;
      display: flex; align-items: center; justify-content: space-between;
      font-weight: 800; font-size: 0.95rem;
    }
    #scanner-close-btn { background: none; border: none; color: var(--cream); font-size: 1.4rem; cursor: pointer; opacity: 0.75; }
    #scanner-close-btn:hover { opacity: 1; }
    #reader { width: 100% !important; border: none !important; }
    #reader video { width: 100% !important; border-radius: 0 !important; }
    #reader img { display: none !important; }
    #scanner-status {
      color: rgba(255,255,255,0.8); text-align: center;
      padding: 12px 16px; font-size: 0.85rem;
    }
    #scanner-cancel-btn {
      width: calc(100% - 32px); margin: 0 16px 16px;
      padding: 12px; background: rgba(255,255,255,0.1);
      color: #fff; border: 1.5px solid rgba(255,255,255,0.2);
      border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 0.9rem;
    }
    /* Inventory search */
    .inv-search-row { display: flex; gap: 10px; margin-bottom: 16px; }
    #inv-search {
      flex: 1; padding: 10px 14px;
      border: 2px solid #e0e0e0; border-radius: 10px;
      font-size: 0.92rem; outline: none; font-family: inherit;
    }
    #inv-search:focus { border-color: var(--green); }
    #scan-barcode-btn {
      background: var(--green); color: var(--cream);
      border: none; border-radius: 10px; padding: 10px 14px;
      font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
    }
    /* Scan result panel */
    #scan-result-panel {
      display: none; background: var(--green-pale);
      border: 2px solid var(--green); border-radius: 14px;
      padding: 16px; margin-bottom: 16px;
    }
    #scan-result-panel.show { display: block; }
    .scan-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .scan-action-btn {
      border: none; border-radius: 8px; padding: 8px 14px;
      font-weight: 700; font-size: 0.8rem; cursor: pointer;
    }

    /* ── ADMIN DASHBOARD ── */
    #admin-dashboard {
      display: none;
      position: fixed;
      inset: 0;
      background: #f0f4ee;
      z-index: 500;
      overflow-y: auto;
      font-family: 'Segoe UI', system-ui, sans-serif;
    }
    #admin-header {
      background: var(--green);
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 10;
      box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
    #admin-header-left { display: flex; align-items: center; gap: 12px; }
    #admin-logo-mark {
      width: 40px; height: 40px;
      background: rgba(255,255,255,0.15);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
    }
    #admin-title { color: var(--cream); font-weight: 800; font-size: 1rem; line-height: 1; }
    #admin-subtitle { color: rgba(240,229,208,0.7); font-size: 0.72rem; margin-top: 2px; letter-spacing: 0.5px; }
    #admin-logout-btn {
      background: rgba(255,255,255,0.12);
      border: 1.5px solid rgba(255,255,255,0.3);
      color: var(--cream);
      border-radius: 8px;
      padding: 7px 14px;
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
      transition: background .2s;
    }
    #admin-logout-btn:hover { background: rgba(231,76,60,0.5); border-color: transparent; }

    /* Section overview grid */
    #admin-overview { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
    .admin-section-card {
      background: var(--white);
      border-radius: 16px;
      padding: 24px 20px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all .2s;
      text-align: center;
      box-shadow: 0 2px 12px rgba(44,74,30,0.08);
      position: relative;
    }
    .admin-section-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,74,30,0.15); }
    .admin-section-card .asc-icon { font-size: 2.2rem; margin-bottom: 10px; }
    .admin-section-card .asc-name { font-weight: 800; font-size: 1rem; color: var(--green); margin-bottom: 4px; }
    .admin-section-card .asc-desc { font-size: 0.75rem; color: #888; line-height: 1.4; }
    .admin-section-card .asc-badge {
      position: absolute; top: 12px; right: 12px;
      background: #f39c12; color: #fff;
      border-radius: 12px; padding: 2px 8px;
      font-size: 0.7rem; font-weight: 700;
      display: none;
    }

    /* Section content view */
    #admin-section-content { display: none; max-width: 900px; margin: 0 auto; padding: 0 0 40px; }
    #admin-subsection-content { display: none; max-width: 900px; margin: 0 auto; padding: 0 0 40px; }
    #admin-back-btn, #admin-sub-back-btn {
      display: flex; align-items: center; gap: 6px;
      background: none; border: none;
      color: var(--green); font-weight: 700; font-size: 0.88rem;
      cursor: pointer; padding: 16px 24px;
    }
    #admin-back-btn:hover, #admin-sub-back-btn:hover { text-decoration: underline; }
    .admin-section-view { display: none; padding: 0 16px; }
    .admin-section-view.active { display: block; }
    .admin-subsection-view { display: none; padding: 0 16px; }
    .admin-subsection-view.active { display: block; }

    /* Sub-grid inside a section (2nd level cards) */
    .admin-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 0 16px; }

    /* Card within sub-grid */
    .admin-subsection {
      background: var(--white);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 2px 10px rgba(44,74,30,0.07);
    }
    .admin-subsection-title {
      font-weight: 800; font-size: 0.95rem;
      color: var(--green); margin-bottom: 14px;
      display: flex; align-items: center; justify-content: space-between;
    }

    .admin-body { padding: 24px; }
    .tab-pane { display: none; }
    .tab-pane.active { display: block; }

    .admin-product-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .admin-product-item {
      display: flex; align-items: center; gap: 12px;
      background: #f8f8f8; border-radius: 10px; padding: 12px 16px;
    }
    .admin-product-item .prod-thumb {
      width: 44px; height: 44px; border-radius: 8px;
      overflow: hidden; background: var(--green-pale);
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
    }
    .admin-product-item .prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .admin-product-item .info { flex: 1; }
    .admin-product-item .info strong { display: block; font-size: 0.9rem; }
    .admin-product-item .info span { font-size: 0.8rem; color: #888; }
    .admin-actions { display: flex; gap: 8px; }
    .btn-edit {
      background: var(--green-pale); color: var(--green);
      border: none; border-radius: 8px; padding: 6px 12px;
      font-size: 0.8rem; font-weight: 600; cursor: pointer;
    }
    .btn-delete {
      background: #fdecea; color: #c62828;
      border: none; border-radius: 8px; padding: 6px 12px;
      font-size: 0.8rem; font-weight: 600; cursor: pointer;
    }

    .add-product-form {
      background: var(--green-pale);
      border-radius: 12px;
      padding: 20px;
      margin-top: 16px;
    }
    .add-product-form h4 { font-size: 0.95rem; font-weight: 800; color: var(--green); margin-bottom: 14px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .form-row.full { grid-template-columns: 1fr; }
    .add-product-form input,
    .add-product-form textarea,
    .add-product-form select {
      width: 100%;
      border: 2px solid rgba(44,74,30,0.2);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 0.9rem;
      font-family: inherit;
      background: white;
      outline: none;
    }
    .add-product-form input:focus,
    .add-product-form textarea:focus { border-color: var(--green); }
    .btn-save {
      background: var(--green); color: white;
      border: none; border-radius: 8px;
      padding: 10px 24px;
      font-weight: 700; cursor: pointer;
    }
    .btn-cancel {
      background: #eee; color: #555;
      border: none; border-radius: 8px;
      padding: 10px 20px;
      font-weight: 600; cursor: pointer;
      margin-left: 8px;
    }

    .settings-form { display: flex; flex-direction: column; gap: 14px; }
    .settings-form label { font-weight: 700; font-size: 0.85rem; color: var(--green); margin-bottom: 4px; display: block; }
    .settings-form input {
      width: 100%;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      padding: 10px 14px;
      font-size: 0.9rem;
      font-family: inherit;
      outline: none;
    }
    .settings-form input:focus { border-color: var(--green); }
    .btn-save-settings {
      background: var(--green); color: white;
      border: none; border-radius: 8px;
      padding: 12px 28px;
      font-weight: 700; cursor: pointer;
      font-size: 0.95rem;
      margin-top: 6px;
    }

    .toast {
      position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
      background: var(--green); color: white;
      padding: 12px 28px; border-radius: 30px;
      font-weight: 600; font-size: 0.9rem;
      opacity: 0; transition: all .3s;
      z-index: 999; pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* ── RESPONSIVE – TABLET ── */
    @media (max-width: 900px) {
      .products-grid { grid-template-columns: repeat(3, 1fr); }
    }

    /* ── RESPONSIVE – MOBILE ── */
    @media (max-width: 640px) {

      /* Nav */
      nav { padding: 10px 16px; gap: 10px; }
      nav ul { display: none; }
      .nav-logo svg { width: 40px; height: 40px; }
      .nav-brand .store-name { font-size: 1.1rem; }
      .nav-brand .store-sub { display: none; }
      .cart-btn { padding: 8px 14px; font-size: 0.82rem; }

      /* Hero */
      #hero { padding: 48px 20px 40px; }
      #hero h1 { font-size: 1.8rem; }
      #hero p { font-size: 0.95rem; }
      .hero-badges { gap: 8px; }
      .badge { font-size: 0.74rem; padding: 5px 12px; }
      .btn-hero { padding: 12px 28px; font-size: 0.9rem; }

      /* Category bar — horizontal scroll */
      .category-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 16px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .category-bar::-webkit-scrollbar { display: none; }
      .cat-btn { flex-shrink: 0; }

      /* Products */
      #products { padding: 0 12px 40px; }
      .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .product-img { height: 120px; }
      .product-info { padding: 10px; }
      .product-name { font-size: 0.85rem; }
      .product-desc { font-size: 0.75rem; margin-bottom: 8px; }
      .product-price { font-size: 1rem; }
      .add-btn { padding: 6px 10px; font-size: 0.78rem; }

      /* Section headers */
      .section-header { padding: 36px 16px 24px; }
      .section-header h2 { font-size: 1.5rem; }

      /* About */
      #about { padding: 40px 20px; }
      #about h2 { font-size: 1.4rem; }
      .about-stats { gap: 20px; }
      .stat-num { font-size: 1.8rem; }

      /* Contact cards — 2×2 grid */
      #contact { padding: 40px 16px; }
      .contact-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
      }
      .contact-card { min-width: unset; padding: 16px; }
      .contact-card .icon { font-size: 1.5rem; margin-bottom: 6px; }
      .contact-card h4 { font-size: 0.85rem; }
      .contact-card p { font-size: 0.75rem; }

      /* Location section */
      #location { padding: 40px 16px; }
      #location .section-header { padding: 0 0 20px; }

      /* Cart sidebar — full width */
      #cart-sidebar { max-width: 100%; }

      /* Order modal — full screen */
      .modal-overlay { padding: 0; align-items: flex-end; }
      .modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 92vh;
        overflow-y: visible; /* flex children handle scroll */
      }
      .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
      .modal-head { padding: 18px 20px; }
      .modal-body { padding: 20px; }

      /* Admin dashboard — mobile */
      #admin-header { padding: 12px 16px; }
      #admin-overview { padding: 16px; gap: 12px; }
      .admin-section-card { padding: 18px 12px; }
      .admin-section-card .asc-icon { font-size: 1.8rem; margin-bottom: 6px; }
      .admin-section-card .asc-name { font-size: 0.9rem; }
      .admin-section-card .asc-desc { font-size: 0.7rem; }
      #admin-section-content { padding: 0; }
      .admin-section-view { padding: 0 12px; }
      .admin-subsection { padding: 16px; border-radius: 12px; }

      /* Forms */
      .form-row { grid-template-columns: 1fr; }
      .form-group input,
      .form-group textarea { font-size: 16px; } /* prevents iOS zoom */
      .add-product-form input,
      .add-product-form textarea,
      .add-product-form select { font-size: 16px; }

      /* Submit buttons */
      .btn-email, .btn-facebook, .btn-whatsapp { padding: 14px; font-size: 0.9rem; }

      /* Footer */
      footer { padding: 24px 16px; }

      /* ── AUTH MODAL — slide up from bottom ── */
      #auth-modal { padding: 0; align-items: flex-end; }
      .auth-box {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        overflow-y: auto;
      }
      .auth-head { padding: 18px 20px 0; }
      .auth-body { padding: 20px; }
      .auth-form input { font-size: 16px !important; } /* prevents iOS zoom */
      .auth-submit { padding: 14px; font-size: 1rem; }

      /* ── PROFILE MODAL — slide up from bottom ── */
      #profile-modal { padding: 0; align-items: flex-end; }
      .profile-box {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
      }
      .profile-head { padding: 14px 16px; gap: 10px; }
      .profile-avatar { width: 38px; height: 38px; font-size: 1rem; }
      .profile-user-name { font-size: 0.92rem; }
      .profile-logout { padding: 5px 9px; font-size: 0.68rem; }
      .pm-tab { font-size: 0.65rem; padding: 9px 2px 7px; }
      .pm-tab .pm-tab-icon { font-size: 1rem; }
      .pm-pane { padding: 16px; gap: 12px; }

      /* Saved locations list */
      .saved-loc-item { padding: 10px 12px; gap: 8px; }
      .saved-loc-label { font-size: 0.88rem; }
      .saved-loc-address { font-size: 0.78rem; }

      /* Add location form */
      .add-location-form { padding: 14px; gap: 9px; }
      .add-location-form input { font-size: 16px; } /* prevents iOS zoom */
      .add-loc-gps-btn { font-size: 0.85rem; padding: 11px; }
      .add-loc-save-btn { padding: 12px; font-size: 0.92rem; }

      /* Saved location picker in order form */
      .saved-loc-picker { padding: 10px 12px; }
      .saved-loc-picker select { font-size: 16px; padding: 10px; } /* prevents iOS zoom */

      /* Navbar — keep user+cart buttons compact */
      .user-btn { padding: 7px 10px; font-size: 0.78rem; }
      .user-btn .user-btn-label { display: none; }
    }

    /* ── VERY SMALL PHONES (≤380px) ── */
    @media (max-width: 380px) {
      .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      #hero h1 { font-size: 1.5rem; }
      .nav-brand .store-name { font-size: 0.95rem; }

      /* Auth / Profile — tighten further */
      .auth-body { padding: 16px; }
      .auth-head-top h3 { font-size: 1rem; }
      .auth-tab { font-size: 0.82rem; }
      .profile-user-info { flex-wrap: wrap; }
      .profile-logout { margin-left: 0; margin-top: 6px; width: 100%; text-align: center; }
      .add-location-form { padding: 12px; }
    }

    /* Admin login screen */
    .admin-login {
      padding: 40px 24px;
      text-align: center;
    }
    .admin-login h3 { font-size: 1.2rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
    .admin-login p { font-size: 0.85rem; color: #888; margin-bottom: 24px; }
    .admin-login input {
      width: 100%;
      max-width: 300px;
      border: 2px solid #ddd;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 1rem;
      text-align: center;
      margin-bottom: 14px;
      outline: none;
      letter-spacing: normal;
      box-sizing: border-box;
    }
    .admin-login input[type="password"] { letter-spacing: 4px; }
    .admin-login input:focus { border-color: var(--green); }
    .admin-login button {
      background: var(--green); color: white;
      border: none; border-radius: 10px;
      padding: 12px 36px; font-weight: 700;
      font-size: 0.95rem; cursor: pointer;
      width: 100%; max-width: 300px;
    }
    .admin-login .error { color: #c62828; font-size: 0.82rem; margin-top: 8px; }

    .hint-text {
      color: #aaa;
      font-size: 0.75rem;
      text-align: center;
      margin-top: 4px;
    }

    /* Image upload area */
    .img-upload-area {
      border: 2px dashed rgba(44,74,30,0.35);
      border-radius: 10px;
      padding: 14px;
      text-align: center;
      cursor: pointer;
      background: white;
      transition: border-color .2s, background .2s;
      position: relative;
    }
    .img-upload-area:hover { border-color: var(--green); background: #f5faf0; }
    .img-upload-area input[type=file] {
      position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
    }
    .img-upload-area .upload-preview {
      width: 100%; max-height: 120px; object-fit: cover;
      border-radius: 6px; display: none; margin-bottom: 6px;
    }
    .img-upload-area .upload-placeholder { font-size: 0.8rem; color: #888; }
    .img-upload-area .upload-placeholder strong { display: block; color: var(--green); font-size: 0.85rem; }

    /* ── ADMIN ORDERS TAB ── */
    .order-card {
      background: #fff;
      border: 1.5px solid #e8e8e8;
      border-radius: 13px;
      padding: 14px 16px;
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .order-card.status-accepted         { border-left: 4px solid #27ae60; }
    .order-card.status-rejected         { border-left: 4px solid #e74c3c; }
    .order-card.status-pending          { border-left: 4px solid #f39c12; }
    .order-card.status-out_for_delivery { border-left: 4px solid #1565c0; }
    .order-card.status-delivered        { border-left: 4px solid #00695c; }
    .order-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
    .order-card-num { font-weight: 800; color: var(--green); font-size: 0.95rem; }
    .order-card-date { font-size: 0.75rem; color: #aaa; }
    .status-badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
    }
    .status-badge.pending          { background: #fff3cd; color: #856404; }
    .status-badge.accepted         { background: #d4edda; color: #155724; }
    .status-badge.rejected         { background: #f8d7da; color: #721c24; }
    .status-badge.out_for_delivery { background: #e3f2fd; color: #0d47a1; }
    .status-badge.delivered        { background: #e0f2f1; color: #004d40; }
    .order-card-customer { font-size: 0.82rem; color: #555; margin-bottom: 6px; line-height: 1.6; }
    .order-card-items { font-size: 0.8rem; color: #666; background: #f8f8f8; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; line-height: 1.7; }
    .order-card-total { font-weight: 800; color: var(--text); font-size: 0.92rem; margin-bottom: 10px; }
    .order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .btn-accept {
      background: #27ae60; color: #fff; border: none; border-radius: 8px;
      padding: 8px 18px; font-weight: 700; font-size: 0.82rem; cursor: pointer;
      transition: background .2s;
    }
    .btn-accept:hover { background: #219150; }
    .btn-accept:disabled { background: #aaa; cursor: default; }
    .btn-reject {
      background: #fff; color: #e74c3c; border: 1.5px solid #e74c3c; border-radius: 8px;
      padding: 8px 18px; font-weight: 700; font-size: 0.82rem; cursor: pointer;
      transition: all .2s;
    }
    .btn-reject:hover { background: #fdecea; }
    .btn-reject:disabled { opacity: 0.4; cursor: default; }
    .btn-deliver {
      background: #1565c0; color: #fff; border: none; border-radius: 8px;
      padding: 8px 18px; font-weight: 700; font-size: 0.82rem; cursor: pointer;
      transition: all .2s;
    }
    .btn-deliver:hover { background: #0d47a1; }
    .btn-delivered-action {
      background: #00695c; color: #fff; border: none; border-radius: 8px;
      padding: 8px 18px; font-weight: 700; font-size: 0.82rem; cursor: pointer;
      transition: all .2s;
    }
    .btn-delivered-action:hover { background: #004d40; }
    .orders-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
    .orders-filter-btn {
      background: #f5f5f5; border: 1.5px solid #e0e0e0; border-radius: 20px;
      padding: 5px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
      transition: all .2s; color: #555;
    }
    .orders-filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

    /* ── ADMIN CUSTOMERS TAB ── */
    .customer-card {
      background: #f9f9f9;
      border: 1.5px solid #e8e8e8;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 10px;
    }
    .customer-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
    .customer-card-avatar {
      width: 36px; height: 36px;
      background: var(--green);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--cream); font-weight: 800; font-size: 0.9rem;
      flex-shrink: 0;
    }
    .customer-card-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
    .customer-card-meta { font-size: 0.78rem; color: #888; margin-top: 1px; }
    .customer-card-orders { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ececec; }
    .customer-order-row { font-size: 0.8rem; color: #555; padding: 4px 0; display: flex; justify-content: space-between; }
    .customer-order-num { font-weight: 700; color: var(--green); }
    .no-customers-msg { text-align: center; color: #aaa; font-size: 0.88rem; padding: 24px 0; }

    /* ── ORDER HISTORY IN PROFILE ── */
    .order-history-item {
      background: #f7f7f7;
      border: 1.5px solid #e8e8e8;
      border-radius: 11px;
      padding: 12px 14px;
      margin-bottom: 8px;
    }
    .order-history-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .order-history-num { font-weight: 800; font-size: 0.88rem; color: var(--green); }
    .order-history-date { font-size: 0.75rem; color: #aaa; }
    .order-history-items { font-size: 0.8rem; color: #666; line-height: 1.6; }
    .order-history-total { font-weight: 700; font-size: 0.88rem; color: var(--text); margin-top: 4px; }

    /* ── USER ACCOUNT BUTTON ── */
    .user-btn {
      background: rgba(255,255,255,0.15);
      color: var(--cream);
      border: 1.5px solid rgba(255,255,255,0.3);
      border-radius: 30px;
      padding: 9px 18px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px;
      transition: background .2s, border-color .2s;
      white-space: nowrap;
    }
    .user-btn:hover { background: rgba(255,255,255,0.25); }
    .user-btn.logged-in { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }

    /* ── AUTH MODAL (Login / Sign Up) ── */
    #auth-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 1100;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    #auth-modal.open { display: flex; }
    .auth-box {
      background: var(--white);
      border-radius: 20px;
      width: 100%;
      max-width: 420px;
      overflow-y: auto;
      max-height: 95vh;
      box-shadow: 0 16px 60px rgba(0,0,0,0.25);
    }
    .auth-head {
      background: var(--green);
      color: var(--cream);
      padding: 20px 24px 0;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .auth-head-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .auth-head-top h3 { font-size: 1.1rem; font-weight: 800; }
    .auth-close { background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; opacity: 0.7; line-height: 1; padding: 0; }
    .auth-close:hover { opacity: 1; }
    .auth-tabs { display: flex; gap: 0; }
    .auth-tab {
      flex: 1;
      background: none;
      border: none;
      color: rgba(240,229,208,0.6);
      padding: 10px 0;
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      transition: all .2s;
    }
    .auth-tab.active { color: var(--cream); border-bottom-color: var(--cream); }
    .auth-body { padding: 24px; }
    .auth-form { display: none; flex-direction: column; gap: 14px; }
    .auth-form.active { display: flex; }
    .auth-form input {
      width: 100%;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 0.95rem;
      font-family: inherit;
      outline: none;
      background: #ffffff;
      color: #1A2E10;
      display: block;
      box-sizing: border-box;
      transition: border-color .2s;
    }
    .auth-form input:focus { border-color: var(--green); }
    .auth-submit {
      background: var(--green);
      color: var(--cream);
      border: none;
      border-radius: 10px;
      padding: 13px;
      font-weight: 800;
      font-size: 0.95rem;
      cursor: pointer;
      transition: background .2s;
      margin-top: 4px;
    }
    .auth-submit:hover { background: var(--green-mid); }
    .auth-error { color: #c0392b; font-size: 0.82rem; text-align: center; min-height: 18px; }
    .auth-success { color: #27ae60; font-size: 0.82rem; text-align: center; min-height: 18px; }

    /* ── PROFILE MODAL ── */
    #profile-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 1100;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    #profile-modal.open { display: flex; }
    .profile-box {
      background: var(--white);
      border-radius: 20px;
      width: 100%;
      max-width: 460px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 16px 60px rgba(0,0,0,0.25);
    }
    /* Header */
    .profile-head {
      background: var(--green);
      color: var(--cream);
      padding: 16px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }
    .profile-avatar {
      width: 44px; height: 44px;
      background: rgba(255,255,255,0.18);
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem; color: var(--cream); font-weight: 800;
      flex-shrink: 0;
    }
    .profile-head-info { flex: 1; min-width: 0; }
    .profile-user-name { font-weight: 800; font-size: 1rem; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .profile-user-phone { font-size: 0.78rem; color: rgba(240,229,208,0.82); margin-top: 1px; }
    .profile-user-email { font-size: 0.72rem; color: rgba(240,229,208,0.65); }
    .profile-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .profile-logout {
      background: rgba(255,255,255,0.12);
      border: 1.5px solid rgba(255,255,255,0.35);
      color: var(--cream);
      border-radius: 8px;
      padding: 5px 10px;
      font-size: 0.72rem;
      font-weight: 700;
      cursor: pointer;
      transition: background .2s;
    }
    .profile-logout:hover { background: rgba(231,76,60,0.5); border-color: transparent; }
    .profile-close { background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; opacity: 0.65; line-height: 1; padding: 0; }
    .profile-close:hover { opacity: 1; }

    /* Tab Bar */
    .pm-tabs {
      display: flex;
      background: #f4f9ee;
      border-bottom: 2px solid #d5e8c0;
      flex-shrink: 0;
    }
    .pm-tab {
      flex: 1;
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      padding: 10px 4px 8px;
      font-size: 0.68rem;
      font-weight: 700;
      color: #999;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      transition: all .18s;
      letter-spacing: 0.2px;
    }
    .pm-tab .pm-tab-icon { font-size: 1.1rem; }
    .pm-tab.active { color: var(--green); border-bottom-color: var(--green); background: var(--white); }
    .pm-tab:hover:not(.active) { color: var(--green-mid); background: rgba(255,255,255,0.6); }

    /* Tab Body */
    .pm-body { flex: 1; overflow-y: auto; min-height: 0; }
    .pm-pane { display: none; padding: 20px; flex-direction: column; gap: 14px; }
    .pm-pane.active { display: flex; }
    .pm-section-title {
      font-weight: 800;
      font-size: 0.92rem;
      color: var(--green);
    }
    .pm-sub-text { font-size: 0.8rem; color: #999; margin-top: -8px; }

    /* Password form */
    .pm-pwd-form { display: flex; flex-direction: column; gap: 10px; }
    .pm-pwd-form input {
      width: 100%; padding: 11px 14px;
      border: 2px solid #e0e0e0; border-radius: 10px;
      font-size: 0.92rem; box-sizing: border-box;
      outline: none; transition: border-color .2s;
    }
    .pm-pwd-form input:focus { border-color: var(--green); }
    .pm-pwd-submit {
      background: var(--green); color: #fff; border: none;
      border-radius: 10px; padding: 12px;
      font-weight: 700; font-size: 0.92rem;
      cursor: pointer; width: 100%; transition: background .2s;
    }
    .pm-pwd-submit:hover { background: var(--green-mid); }
    .profile-section-title {
      font-weight: 800;
      font-size: 0.95rem;
      color: var(--green);
      margin-bottom: 2px;
    }
    .saved-locations-list { display: flex; flex-direction: column; gap: 10px; }
    .saved-loc-item {
      background: #f7f7f7;
      border: 1.5px solid #e0e0e0;
      border-radius: 12px;
      padding: 12px 14px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .saved-loc-icon { font-size: 1.1rem; margin-top: 1px; }
    .saved-loc-info { flex: 1; min-width: 0; }
    .saved-loc-label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
    .saved-loc-address { font-size: 0.8rem; color: #666; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .saved-loc-delete {
      background: none;
      border: none;
      color: #bbb;
      font-size: 1.1rem;
      cursor: pointer;
      padding: 2px;
      flex-shrink: 0;
      line-height: 1;
      transition: color .2s;
    }
    .saved-loc-delete:hover { color: #e74c3c; }
    .no-locations-msg { font-size: 0.85rem; color: #aaa; text-align: center; padding: 12px 0; }
    .add-location-form {
      background: var(--green-pale);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .add-location-form input {
      width: 100%;
      border: 2px solid #d0e0c0;
      border-radius: 9px;
      padding: 10px 12px;
      font-size: 0.9rem;
      outline: none;
      background: #fff;
      transition: border-color .2s;
    }
    .add-location-form input:focus { border-color: var(--green); }
    .add-loc-gps-btn {
      background: #fff;
      color: var(--green);
      border: 2px solid var(--green);
      border-radius: 9px;
      padding: 9px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background .2s;
    }
    .add-loc-gps-btn:hover { background: var(--green-pale); }
    .add-loc-save-btn {
      background: var(--green);
      color: var(--cream);
      border: none;
      border-radius: 9px;
      padding: 11px;
      font-size: 0.9rem;
      font-weight: 800;
      cursor: pointer;
      transition: background .2s;
    }
    .add-loc-save-btn:hover { background: var(--green-mid); }
    .add-loc-error { font-size: 0.8rem; color: #c0392b; min-height: 16px; text-align: center; }

    /* ── PAGINATION ── */
    .page-btn {
      min-width: 36px; height: 36px; border-radius: 8px;
      border: 1.5px solid #e0e0e0; background: #fff;
      color: var(--text); font-weight: 700; font-size: 0.88rem;
      cursor: pointer; padding: 0 10px; transition: all .15s;
    }
    .page-btn:hover { border-color: var(--green); color: var(--green); }
    .page-btn.active { background: var(--green); color: var(--cream); border-color: var(--green); }
    .page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .page-info { font-size: 0.82rem; color: #888; }

    /* ── SAVED LOCATION PICKER IN ORDER FORM ── */
    .saved-loc-picker {
      background: #f0f7e8;
      border: 1.5px solid #b8d89a;
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 6px;
    }
    .saved-loc-picker label { font-size: 0.82rem; color: var(--green); font-weight: 700; display: block; margin-bottom: 7px; }
    .saved-loc-picker select {
      width: 100%;
      border: 1.5px solid #c0d8a0;
      border-radius: 8px;
      padding: 9px 10px;
      font-size: 0.88rem;
      background: #fff;
      color: var(--text);
      outline: none;
      cursor: pointer;
    }