    @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

    :root {
      --primary: #087f5b;
      --primary-dark: #056247;
      --primary-soft: #e9f8f2;
      --accent: #e5ad3d;
      --danger: #e55252;
      --text: #172321;
      --muted: #778380;
      --border: #e5ebe8;
      --surface: #ffffff;
      --background: #f4f7f6;
      --shadow: 0 14px 36px rgba(24, 57, 48, .09);
      --radius: 18px;
    }

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

    body {
      min-height: 100vh;
      overflow: hidden;
      color: var(--text);
      background: var(--background);
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 15px;
    }

    button, input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    /* Eliminate blue loading progress bar & focus outline flash */
    #nprogress,
    #nprogress .bar,
    #nprogress .peg,
    #nprogress .spinner,
    .livewire-progress-bar,
    [wire\:navigate-progress-bar] {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      background: transparent !important;
      height: 0 !important;
    }

    a, button, input, select, textarea {
      outline: none !important;
      -webkit-tap-highlight-color: transparent;
    }

    .app {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr) 390px;
      height: 100vh;
    }

    .app.admin-layout {
      grid-template-columns: 88px minmax(0, 1fr);
    }

    /* Sidebar */
    .sidebar {
      position: relative;
      z-index: 99;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 21px 12px;
      color: white;
      background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.14), transparent 28%),
        linear-gradient(165deg, #0a8b65 0%, #056447 100%);
      box-shadow: 10px 0 30px rgba(6, 91, 66, .12);
    }

    .logo {
      width: 50px;
      height: 50px;
      display: grid;
      place-items: center;
      margin-bottom: 32px;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 16px;
      color: var(--primary);
      background: white;
      box-shadow: 0 10px 24px rgba(0,0,0,.14);
    }

    .logo svg {
      width: 27px;
      height: 27px;
    }

    .nav-menu {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .nav-item {
      position: relative;
      width: 100%;
      min-height: 58px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 17px;
      color: rgba(255,255,255,.68);
      background: transparent;
      transition: .2s ease;
    }

    .nav-item svg, .nav-item i {
      width: 22px;
      height: 22px;
      pointer-events: none;
    }

    .nav-item:hover, .nav-item.active {
      color: white;
      background: rgba(255,255,255,.16);
    }

    .nav-item.active::before {
      content: "";
      position: absolute;
      left: -12px;
      width: 4px;
      height: 28px;
      border-radius: 0 5px 5px 0;
      background: #ffe18b;
    }

    .nav-item span {
      display: none;
    }

    .nav-bottom {
      margin-top: auto;
      display: grid;
      gap: 11px;
      width: 100%;
    }

    /* Main */
    .main {
      min-width: 0;
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 22px 27px 16px;
    }

    .welcome {
      min-width: 230px;
    }

    .eyebrow {
      margin-bottom: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .welcome h1 {
      font-size: 23px;
      line-height: 1.25;
      letter-spacing: -.04em;
    }

    .search-box {
      position: relative;
      flex: 1;
      max-width: 610px;
    }

    .search-box svg {
      position: absolute;
      top: 50%;
      left: 18px;
      width: 19px;
      color: #83908c;
      transform: translateY(-50%);
    }

    .search-box input {
      width: 100%;
      height: 50px;
      padding: 0 50px;
      border: 1px solid var(--border);
      outline: none;
      border-radius: 15px;
      color: var(--text);
      background: var(--surface);
      box-shadow: 0 8px 22px rgba(40, 70, 61, .04);
      transition: .2s ease;
    }

    .search-box input:focus {
      border-color: rgba(8,127,91,.48);
      box-shadow: 0 0 0 4px rgba(8,127,91,.08);
    }

    .search-shortcut {
      position: absolute;
      top: 50%;
      right: 13px;
      padding: 5px 8px;
      border: 1px solid var(--border);
      border-radius: 7px;
      color: #8a9692;
      background: #f7f9f8;
      font-size: 11px;
      transform: translateY(-50%);
    }

    .date-card {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-left: auto;
      padding: 8px 13px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: white;
    }

    .date-card .icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      color: var(--primary);
      background: var(--primary-soft);
    }

    .date-card svg {
      width: 17px;
    }

    .date-card strong, .date-card small {
      display: block;
      white-space: nowrap;
    }

    .date-card strong {
      font-size: 12px;
    }

    .date-card small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 10px;
    }

    .cart-mobile {
      position: relative;
      width: 48px;
      height: 48px;
      display: none;
      place-items: center;
      border: 0;
      border-radius: 14px;
      color: white;
      background: var(--primary);
    }

    .cart-mobile em {
      position: absolute;
      top: -5px;
      right: -4px;
      min-width: 21px;
      height: 21px;
      display: grid;
      place-items: center;
      padding: 0 5px;
      border: 2px solid white;
      border-radius: 20px;
      color: white;
      background: var(--danger);
      font-size: 10px;
      font-style: normal;
      font-weight: 800;
    }

    .catalog-toolbar {
      padding: 0 27px 15px;
    }

    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .section-heading h2 {
      font-size: 17px;
      letter-spacing: -.02em;
    }

    .section-heading p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .view-options {
      display: flex;
      gap: 6px;
    }

    .view-btn {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--muted);
      background: white;
    }

    .view-btn.active {
      color: white;
      border-color: var(--primary);
      background: var(--primary);
    }

    .view-btn svg {
      width: 16px;
    }

    .categories {
      display: flex;
      gap: 9px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
    }

    .categories::-webkit-scrollbar {
      display: none;
    }

    .category {
      display: flex;
      align-items: center;
      gap: 7px;
      flex: 0 0 auto;
      min-height: 38px;
      padding: 0 14px;
      border: 1px solid var(--border);
      border-radius: 12px;
      color: #58635f;
      background: white;
      font-size: 12px;
      font-weight: 700;
      transition: .2s ease;
    }

    .category:hover {
      border-color: #aed8c9;
    }

    .category.active {
      color: white;
      border-color: var(--primary);
      background: var(--primary);
      box-shadow: 0 8px 18px rgba(8,127,91,.18);
    }

    .category span {
      display: grid;
      place-items: center;
    }

    .category svg {
      width: 15px;
      height: 15px;
    }

    .products-wrap {
      min-height: 0;
      flex: 1;
      overflow-y: auto;
      padding: 2px 27px 30px;
      scrollbar-color: #cad6d1 transparent;
      scrollbar-width: thin;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 16px;
    }

    .book-card {
      position: relative;
      min-height: 278px;
      overflow: hidden;
      border: 0;
      border-radius: 18px;
      color: white;
      background: #21352e;
      box-shadow: 0 10px 26px rgba(30, 55, 48, .13);
      isolation: isolate;
      text-align: left;
      animation: cardIn .45s both;
      transition: transform .25s ease, box-shadow .25s ease;
    }

    @keyframes cardIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .book-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 17px 35px rgba(24, 54, 45, .20);
    }

    .book-card:active {
      transform: scale(.98);
    }

    .book-card img {
      position: absolute;
      inset: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .45s ease;
    }

    .book-card:hover img {
      transform: scale(1.06);
    }

    .book-card::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(to bottom, rgba(6, 17, 14, .08) 12%, rgba(7, 20, 16, .16) 42%, rgba(5, 17, 13, .92) 100%),
        linear-gradient(to top, rgba(0,0,0,.16), transparent 50%);
    }

    .book-card-content {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 14px;
    }

    .stock-badge {
      align-self: flex-start;
      padding: 6px 9px;
      border: 1px solid rgba(255,255,255,.23);
      border-radius: 9px;
      background: rgba(11, 29, 23, .44);
      backdrop-filter: blur(8px);
      font-size: 9px;
      font-weight: 700;
    }

    .stock-badge.low {
      color: #3a2600;
      border-color: rgba(255,223,145,.5);
      background: rgba(255, 213, 105, .89);
    }

    .book-info {
      padding-top: 44px;
    }

    .book-info h3 {
      display: -webkit-box;
      overflow: hidden;
      margin-bottom: 5px;
      font-size: 15px;
      line-height: 1.4;
      letter-spacing: -.02em;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .book-info .author {
      margin-bottom: 11px;
      color: rgba(255,255,255,.72);
      font-size: 10px;
    }

    .book-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 7px;
    }

    .price {
      font-size: 14px;
      font-weight: 800;
    }

    .add-button {
      width: 35px;
      height: 35px;
      display: grid;
      flex: 0 0 auto;
      place-items: center;
      border: 1px solid rgba(255,255,255,.32);
      border-radius: 11px;
      color: var(--primary);
      background: white;
      box-shadow: 0 6px 15px rgba(0,0,0,.16);
    }

    .add-button svg, .add-button i {
      width: 18px;
      height: 18px;
    }

    .empty-results {
      grid-column: 1 / -1;
      min-height: 330px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
    }

    .empty-results .round {
      width: 68px;
      height: 68px;
      display: grid;
      place-items: center;
      margin: 0 auto 15px;
      border-radius: 22px;
      color: var(--primary);
      background: var(--primary-soft);
    }

    /* Cart */
    .cart-panel {
      position: relative;
      z-index: 30;
      height: 100vh;
      display: flex;
      flex-direction: column;
      border-left: 1px solid var(--border);
      background: white;
      box-shadow: -12px 0 35px rgba(40, 67, 59, .055);
    }

    .cart-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 23px 22px 17px;
      border-bottom: 1px solid var(--border);
    }

    .cart-head h2 {
      font-size: 18px;
      letter-spacing: -.03em;
    }

    .cart-head p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 11px;
    }

    .cart-head-actions {
      display: flex;
      gap: 7px;
    }

    .icon-button {
      width: 37px;
      height: 37px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 11px;
      color: #71807b;
      background: white;
      transition: .2s ease;
    }

    .icon-button:hover {
      color: var(--danger);
      border-color: #f0caca;
      background: #fff7f7;
    }

    .icon-button svg {
      width: 17px;
    }

    .close-cart {
      display: none;
    }

    .order-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
      padding: 14px 22px 4px;
    }

    .meta-box {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fbfcfc;
    }

    .meta-box svg {
      width: 16px;
      color: var(--primary);
    }

    .meta-box div {
      min-width: 0;
    }

    .meta-box small, .meta-box strong {
      display: block;
    }

    .meta-box small {
      color: var(--muted);
      font-size: 9px;
    }

    .meta-box strong {
      overflow: hidden;
      margin-top: 2px;
      font-size: 10px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cart-items {
      min-height: 0;
      flex: 1;
      overflow-y: auto;
      padding: 13px 22px;
    }

    .cart-item {
      display: grid;
      grid-template-columns: 51px minmax(0, 1fr) auto;
      gap: 11px;
      align-items: center;
      padding: 11px 0;
      border-bottom: 1px solid #eef2f0;
      animation: cartIn .25s ease;
    }

    @keyframes cartIn {
      from { opacity: 0; transform: translateX(8px); }
    }

    .cart-thumb {
      width: 51px;
      height: 64px;
      object-fit: cover;
      border-radius: 10px;
      background: #e7ece9;
    }

    .cart-detail {
      min-width: 0;
    }

    .cart-detail h4 {
      overflow: hidden;
      margin-bottom: 4px;
      font-size: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cart-detail .item-price {
      color: var(--primary);
      font-size: 10px;
      font-weight: 800;
    }

    .qty-control {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }

    .qty-control button {
      width: 23px;
      height: 23px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 7px;
      color: #52615c;
      background: white;
    }

    .qty-control button:hover {
      color: white;
      border-color: var(--primary);
      background: var(--primary);
    }

    .qty-control button svg {
      width: 12px;
    }

    .qty-control span {
      min-width: 13px;
      text-align: center;
      font-size: 11px;
      font-weight: 800;
    }

    .item-total {
      align-self: end;
      padding-bottom: 10px;
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }

    .empty-cart {
      height: 100%;
      display: grid;
      place-items: center;
      text-align: center;
    }

    .empty-cart .bag {
      width: 75px;
      height: 75px;
      display: grid;
      place-items: center;
      margin: 0 auto 16px;
      border-radius: 24px;
      color: var(--primary);
      background: var(--primary-soft);
    }

    .empty-cart h3 {
      margin-bottom: 6px;
      font-size: 14px;
    }

    .empty-cart p {
      max-width: 210px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.65;
    }

    .cart-summary {
      padding: 16px 22px 22px;
      border-top: 1px solid var(--border);
      background: #fcfdfd;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 9px;
      color: #66726e;
      font-size: 11px;
    }

    .summary-row.discount span:last-child {
      color: var(--primary);
      font-weight: 700;
    }

    .total-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 12px;
      padding-top: 13px;
      border-top: 1px dashed #cfd9d5;
    }

    .total-row span {
      font-size: 12px;
      font-weight: 700;
    }

    .total-row strong {
      color: var(--primary-dark);
      font-size: 20px;
      letter-spacing: -.05em;
    }

    .checkout-btn {
      width: 100%;
      height: 53px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin-top: 15px;
      border: 0;
      border-radius: 14px;
      color: white;
      background: linear-gradient(135deg, #0a8c66, #056447);
      box-shadow: 0 12px 24px rgba(8,127,91,.24);
      font-size: 13px;
      font-weight: 800;
      transition: .2s ease;
    }

    .checkout-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 28px rgba(8,127,91,.3);
    }

    .checkout-btn:disabled {
      cursor: not-allowed;
      opacity: .45;
      box-shadow: none;
      transform: none;
    }

    .checkout-btn svg {
      width: 18px;
    }

    .overlay {
      position: fixed;
      inset: 0;
      z-index: 25;
      display: none;
      background: rgba(10, 25, 20, .45);
      backdrop-filter: blur(3px);
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(8, 25, 19, .55);
      backdrop-filter: blur(7px);
    }

    .modal-overlay.show {
      display: flex;
      animation: fadeIn .2s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
    }

    .payment-modal {
      width: min(520px, 100%);
      overflow: hidden;
      border-radius: 24px;
      background: white;
      box-shadow: 0 28px 80px rgba(0,0,0,.24);
      animation: modalIn .3s ease;
    }

    @keyframes modalIn {
      from { opacity: 0; transform: translateY(15px) scale(.97); }
    }

    .modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 21px 23px;
      border-bottom: 1px solid var(--border);
    }

    .modal-head h2 {
      font-size: 18px;
    }

    .modal-body {
      padding: 22px 23px 24px;
    }

    .pay-total {
      margin-bottom: 20px;
      padding: 19px;
      border-radius: 17px;
      color: white;
      background:
        radial-gradient(circle at 90% 20%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #0a8b65, #056247);
    }

    .pay-total span {
      font-size: 11px;
      opacity: .78;
    }

    .pay-total strong {
      display: block;
      margin-top: 5px;
      font-size: 28px;
      letter-spacing: -.05em;
    }

    .payment-title {
      margin-bottom: 10px;
      font-size: 11px;
      font-weight: 800;
    }

    .payment-methods {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 9px;
      margin-bottom: 20px;
    }

    .method {
      min-height: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--border);
      border-radius: 14px;
      color: #53605c;
      background: white;
      font-size: 10px;
      font-weight: 700;
      transition: .2s ease;
    }

    .method svg, .method i {
      width: 22px;
      height: 22px;
    }

    /* POS Payment Modal Icons Standard Rules */
    .payment-modal i[data-lucide],
    .payment-modal svg.lucide {
      display: inline-block !important;
      vertical-align: middle;
      stroke: currentColor;
      fill: none;
      flex-shrink: 0;
      stroke-width: 1.8px;
    }

    .payment-modal .modal-head i,
    .payment-modal .modal-head svg {
      width: 20px !important;
      height: 20px !important;
    }

    .payment-modal .pay-total i,
    .payment-modal .pay-total svg {
      width: 18px !important;
      height: 18px !important;
    }

    .payment-modal .payment-title i,
    .payment-modal .payment-title svg {
      width: 16px !important;
      height: 16px !important;
    }

    .payment-modal .method i,
    .payment-modal .method svg {
      width: 22px !important;
      height: 22px !important;
    }

    .payment-modal .cash-input-wrap label i,
    .payment-modal .cash-input-wrap label svg {
      width: 15px !important;
      height: 15px !important;
    }

    .payment-modal .change-box i,
    .payment-modal .change-box svg {
      width: 16px !important;
      height: 16px !important;
    }

    .method.active {
      color: var(--primary);
      border-color: var(--primary);
      background: var(--primary-soft);
      box-shadow: 0 0 0 3px rgba(8,127,91,.07);
    }

    .cash-input-wrap {
      margin-bottom: 13px;
    }

    .cash-input-wrap label {
      display: block;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
    }

    .cash-input {
      display: flex;
      align-items: center;
      height: 50px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 13px;
      background: #fafcfb;
    }

    .cash-input span {
      padding-left: 15px;
      color: var(--primary);
      font-size: 12px;
      font-weight: 800;
    }

    .cash-input input {
      width: 100%;
      height: 100%;
      padding: 0 14px 0 7px;
      border: 0;
      outline: none;
      color: var(--text);
      background: transparent;
      font-weight: 800;
    }

    .change-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
      padding: 12px 14px;
      border-radius: 12px;
      background: #f2f6f4;
      font-size: 11px;
    }

    .change-box strong {
      color: var(--primary);
    }

    .modal-actions {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 10px;
    }

    .secondary-btn, .confirm-btn {
      height: 49px;
      border-radius: 13px;
      font-size: 12px;
      font-weight: 800;
    }

    .secondary-btn {
      border: 1px solid var(--border);
      color: #5d6965;
      background: white;
    }

    .confirm-btn {
      border: 0;
      color: white;
      background: var(--primary);
      box-shadow: 0 10px 20px rgba(8,127,91,.2);
    }

    .confirm-btn:disabled {
      cursor: not-allowed;
      opacity: .45;
    }

    .success-state {
      display: none;
      padding: 38px 25px;
      text-align: center;
    }

    .success-icon {
      width: 78px;
      height: 78px;
      display: grid;
      place-items: center;
      margin: 0 auto 18px;
      border-radius: 50%;
      color: white;
      background: var(--primary);
      box-shadow: 0 14px 30px rgba(8,127,91,.25);
    }

    .success-icon svg {
      width: 38px;
      height: 38px;
    }

    .success-state h2 {
      margin-bottom: 7px;
      font-size: 22px;
    }

    .success-state p {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }

    .success-state button {
      width: 100%;
      height: 49px;
      margin-top: 23px;
      border: 0;
      border-radius: 13px;
      color: white;
      background: var(--primary);
      font-size: 12px;
      font-weight: 800;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      z-index: 200;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 12px 17px;
      border-radius: 12px;
      color: white;
      background: #142c24;
      box-shadow: 0 14px 35px rgba(0,0,0,.2);
      font-size: 11px;
      font-weight: 700;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 15px);
      transition: .25s ease;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .toast svg {
      width: 16px;
      color: #8ce0bd;
    }

    @media (max-width: 1350px) {
      .app {
        grid-template-columns: 80px minmax(0, 1fr) 350px;
      }

      .products-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
      }

      .book-card {
        min-height: 250px;
      }
    }

    @media (max-width: 1080px) {
      .app {
        grid-template-columns: 78px minmax(0, 1fr);
      }

      .cart-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(390px, 92vw);
        transform: translateX(105%);
        transition: transform .3s ease;
      }

      .cart-panel.open {
        transform: translateX(0);
      }

      .overlay.show {
        display: block;
      }

      .close-cart, .cart-mobile {
        display: grid;
      }

      .date-card {
        display: none;
      }

      .products-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
      }
    }

    @media (max-width: 840px) {
      body {
        overflow: auto;
      }

      .app {
        display: block;
        height: auto;
        min-height: 100vh;
        padding-bottom: 76px;
      }

      .main {
        height: auto;
        overflow: visible;
      }

      .sidebar {
        position: fixed;
        right: 13px;
        bottom: 10px;
        left: 13px;
        z-index: 50;
        width: auto;
        height: 61px;
        flex-direction: row;
        padding: 7px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 19px;
        box-shadow: 0 14px 38px rgba(3, 69, 49, .27);
      }

      .logo, .nav-bottom {
        display: none;
      }

      .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
      }

      .nav-item {
        min-height: 47px;
        border-radius: 14px;
      }

      .nav-item.active::before {
        display: none;
      }

      .topbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 19px 18px 13px;
      }

      .welcome {
        flex: 1;
        min-width: 0;
      }

      .welcome h1 {
        font-size: 19px;
      }

      .eyebrow {
        font-size: 10px;
      }

      .cart-mobile {
        display: grid;
      }

      .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: none;
      }

      .catalog-toolbar {
        padding: 0 18px 14px;
      }

      .products-wrap {
        overflow: visible;
        padding: 1px 18px 24px;
      }

      .products-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
      }

      .book-card {
        min-height: 260px;
      }
    }

    @media (max-width: 600px) {
      .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .book-card {
        min-height: 245px;
        border-radius: 16px;
      }

      .book-card-content {
        padding: 12px;
      }

      .book-info h3 {
        font-size: 13px;
      }

      .price {
        font-size: 12px;
      }

      .add-button {
        width: 33px;
        height: 33px;
      }

      .view-options {
        display: none;
      }

      .section-heading h2 {
        font-size: 16px;
      }

      .payment-methods {
        grid-template-columns: repeat(3, 1fr);
      }

      .payment-modal {
        border-radius: 20px;
      }
    }

    @media (max-width: 370px) {
      .products-grid {
        grid-template-columns: 1fr;
      }

      .book-card {
        min-height: 330px;
      }
    }

/* =====================================================
   ADMIN PAGES — CRUD & LAYOUT STYLES
   ===================================================== */

/* Page wrapper */
.page-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--background);
}

/* Page header row */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: white;
  cursor: pointer;
  transition: 0.15s;
}

.btn-secondary:hover {
  background: #f4f7f6;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--danger);
  cursor: pointer;
  transition: 0.15s;
}

.btn-danger:hover { background: #c94040; }

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}

.btn-edit {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-edit:hover { background: #c6f0e0; }

.btn-delete {
  color: var(--danger);
  background: #fde8e8;
}

.btn-delete:hover { background: #fad3d3; }

.action-btns {
  display: inline-flex;
  gap: 6px;
}

/* Toolbar (search + filters) */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 400px;
  padding: 0 14px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.search-input {
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  width: 100%;
  font-family: inherit;
}

.filter-select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
}

/* Card container */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-padded {
  padding: 24px;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead tr {
  border-bottom: 2px solid var(--border);
}

.data-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.data-table tbody tr:last-child {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f9fbfa;
}

.data-table td {
  padding: 13px 14px;
  color: var(--text);
}

.empty-row {
  padding: 32px !important;
  text-align: center !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

/* Text helpers */
.text-right { text-align: right; }
.text-center { text-align: center; }
.bold { font-weight: 700; }
.muted { color: var(--muted); }
.primary { color: var(--primary); }
.mono { font-family: 'Courier New', monospace; font-weight: 700; font-size: 12px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.badge-success { background: #e9f8f2; color: #087f5b; }
.badge-danger  { background: #fde8e8; color: #e55252; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-warning { background: #fff5d9; color: #a07600; }

/* Alert */
.alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #087f5b;
  background: #e9f8f2;
  border: 1px solid #b8edda;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover { color: var(--text); background: #f4f7f6; }

.tab-btn.active {
  color: var(--primary);
  background: white;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.2s ease;
}

.modal-box.modal-sm {
  max-width: 400px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: 0.15s;
}

.modal-close:hover { background: #e9f8f2; color: var(--primary); }

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* Form elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 70px;
}

.form-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Stats grid for dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Two-column grid layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   FNE & MAYA FURNITURE LUXURY SPINNER & LOGO STYLING
═══════════════════════════════════════════════════════════ */
.fne-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 26, 19, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fne-spinner-overlay.show,
body.page-loading .fne-spinner-overlay,
[wire\:loading] .fne-spinner-overlay,
[wire\:loading\.flex] .fne-spinner-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.fne-spinner-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary Rotating Emerald Ring */
.fne-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, #087f5b 0%, #22c55e 35%, #a3e8cc 55%, transparent 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: fneSpinRing 1.5s linear infinite;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.45);
}

/* Secondary Outer Accent Orbit Ring */
.fne-orbit-ring-secondary {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 180deg, #f59e0b 0%, #087f5b 45%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: fneSpinRingReverse 2.4s linear infinite;
  opacity: 0.65;
}

/* Inner Pulsing FNE Core Logo Badge */
.fne-spinner-logo-core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #064e3b 0%, #04241a 100%);
  border: 2px solid rgba(163, 232, 204, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(8, 127, 91, 0.65), inset 0 0 16px rgba(34, 197, 94, 0.35);
  animation: fnePulseCore 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.fne-spinner-logo-text {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 30%, #a3e8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.fne-spinner-logo-sub {
  font-size: 8.5px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.15em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Caption Below Spinner */
.fne-spinner-caption {
  margin-top: 26px;
  text-align: center;
}

.fne-spinner-title {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.fne-spinner-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  color: #a3e8cc;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fne-spinner-dots span {
  width: 4px;
  height: 4px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: fneDotBounce 1.4s infinite ease-in-out both;
}

.fne-spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.fne-spinner-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes fneSpinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fneSpinRingReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes fnePulseCore {
  0% { transform: scale(0.95); box-shadow: 0 0 20px rgba(8, 127, 91, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 38px rgba(34, 197, 94, 0.75); }
}

@keyframes fneDotBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

