﻿/* ============ Cart Specific Styles ============ */ */
    body {
      padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    .page-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 18px 0 14px;
    }

    .back-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--bg);
      border: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 1rem;
      cursor: pointer;
      text-decoration: none;
      transition: all var(0.2s);
      flex-shrink: 0;
    }

    .back-btn:hover {
      background: var(--brand);
      color: #fff;
      border-color: var(--brand);
    }

    .page-title {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--ink);
    }

    .page-title span {
      color: var(--brand);
    }

    /* Info notice */
    .info-notice {
      background: #fff8f0;
      border: 1px solid #ffe0c8;
      border-radius: var(--r-md);
      padding: 12px 16px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 20px;
      font-size: 0.82rem;
      color: #9a4a00;
      line-height: 1.5;
    }

    .info-notice i {
      color: #ff8c00;
      margin-top: 2px;
      flex-shrink: 0;
    }

    /* Cart Empty State */
    .empty-cart {
      text-align: center;
      padding: 60px 20px;
      display: none;
    }

    .empty-cart .empty-icon {
      font-size: 4rem;
      margin-bottom: 16px;
      opacity: 0.3;
    }

    .empty-cart h3 {
      font-size: 1.2rem;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .empty-cart p {
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 24px;
    }

    .empty-cart .shop-btn {
      display: inline-block;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: #fff;
      padding: 12px 28px;
      border-radius: 99px;
      font-weight: 700;
      text-decoration: none;
      font-size: 0.9rem;
      box-shadow: var(--shadow-brand);
    }

    /* Cart Items */
    .cart-section {
      display: none;
    }

    .cart-section.visible {
      display: block;
    }

    .cart-items-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 20px;
    }

    .cart-item {
      display: grid;
      grid-template-columns: 60px 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-md-lg);
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
      transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .cart-item:hover {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
      transform: translateY(-2px);
      border-color: rgba(79, 70, 229, 0.2);
    }

    .item-img {
      width: 60px;
      height: 60px;
      border-radius: var(--r-md-md);
      object-fit: contain;
      background: var(--border-2);
      padding: 6px;
    }

    .item-info {
      display: flex;
      flex-direction: column;
    }

    .item-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--ink);
      margin: 0 0 4px;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .item-price-meta {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 500;
      margin-bottom: 8px;
    }

    /* Quantity Controls */
    .item-controls {
      display: inline-flex;
      align-items: center;
      border: 1.5px solid var(--border);
      border-radius: 99px;
      overflow: hidden;
      background: var(--bg);
      align-self: flex-start;
    }

    .qty-btn {
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 0.85rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .qty-btn:hover {
      background: var(--brand);
      color: #fff;
    }

    .qty-display {
      min-width: 30px;
      text-align: center;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--ink);
      padding: 0 8px;
    }

    /* Right Block */
    .item-total {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
    }

    .item-total-price {
      font-weight: 800;
      font-size: 1.1rem;
      color: var(--brand);
    }

    /* Delete Button */
    .delete-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: #fef2f2;
      border: 1px solid #fee2e2;
      color: var(--danger);
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all var(0.2s);
    }

    .delete-btn:hover {
      background: var(--danger);
      color: #fff;
      transform: scale(1.05);
    }

    /* Order Summary Card */
    .order-summary {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-md-lg);
      padding: 20px;
      box-shadow: var(--shadow-sm);
      margin-bottom: 16px;
    }

    .summary-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.88rem;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .summary-row.total {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--ink);
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      margin-bottom: 0;
    }

    .summary-row.total .val {
      color: var(--brand);
    }

    /* Place Order Section */
    .place-order-section {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--surface);
      padding: 14px 16px 24px;
      box-shadow: 0 -1px 0 var(--border), 0 -8px 24px rgba(0, 0, 0, 0.07);
      z-index: 100;
      max-width: 960px;
      margin: 0 auto;
    }

    .place-order-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: #fff;
      border: none;
      border-radius: var(--r-md-xl);
      font-size: 1.05rem;
      font-weight: 800;
      font-family: var(--font);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: var(--shadow-brand);
      transition: all var(0.2s);
      letter-spacing: 0.02em;
    }

    .place-order-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px var(--brand-glow);
    }

    .place-order-btn:active {
      transform: translateY(0);
    }

    .place-order-btn:disabled {
      background: var(--border-2);
      color: var(--muted-2);
      box-shadow: none;
      cursor: not-allowed;
      transform: none;
    }

    /* Success Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-card {
      background: var(--surface);
      border-radius: var(--r-md-xl);
      padding: 36px 28px;
      text-align: center;
      max-width: 340px;
      width: 100%;
      box-shadow: var(--shadow-lg);
      animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes pop-in {
      from {
        transform: scale(0.8);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .modal-icon {
      width: 72px;
      height: 72px;
      background: linear-gradient(135deg, #22c55e, #16a34a);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 2rem;
      color: #fff;
      box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
    }

    .modal-title {
      font-size: 1.4rem;
      font-weight: 900;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .modal-msg {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .modal-action {
      display: block;
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: #fff;
      border: none;
      border-radius: var(--r-md-xl);
      font-size: 0.95rem;
      font-weight: 700;
      font-family: var(--font);
      cursor: pointer;
      box-shadow: var(--shadow-brand);
    }

    /* Clear cart button */
    .clear-cart-btn {
      background: none;
      border: 1.5px solid var(--border);
      border-radius: 99px;
      padding: 6px 14px;
      font-size: 0.75rem;
      font-weight: 600;
      font-family: var(--font);
      color: var(--muted-2);
      cursor: pointer;
      transition: all var(0.2s);
      margin-left: auto;
    }

    .clear-cart-btn:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    .cart-header-row {
      display: flex;
      align-items: center;
      margin-bottom: 14px;
    }

    .cart-count-label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
    }

    #toast-container {
      bottom: 100px;
    }
  
