@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;400&display=swap');

    :root {
      --primary: #ff4b7d;
      --secondary: #fff0f6;
      --accent: #ffb6d5;
      --text: #2d2d2d;
      --card: #fff;
      --shadow: 0 4px 24px 0 rgba(255, 75, 125, 0.12);
    }

    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
      font-family: 'Montserrat', sans-serif;
      background: var(--secondary);
      color: var(--text);
      overflow-x: hidden;
    }

    .background-3d {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: 0;
      pointer-events: none;
    }

    header {
      text-align: center;
      margin-top: 2rem;
      z-index: 2;
      position: relative;
    }

    .love-heart {
      color: var(--primary);
      font-size: 2rem;
      vertical-align: middle;
      animation: pulse 1.2s infinite alternate;
    }

    @keyframes pulse {
      0% { transform: scale(1);}
      100% { transform: scale(1.2);}
    }

    .subtitle {
      color: var(--primary);
      font-size: 1.2rem;
      margin-top: 0.5rem;
      letter-spacing: 1px;
    }

    main {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 3rem;
      margin: 3rem auto;
      max-width: 1200px;
      z-index: 2;
      position: relative;
    }

    .products-section {
      flex: 2;
      background: var(--card);
      border-radius: 1.5rem;
      box-shadow: var(--shadow);
      padding: 2rem;
      min-width: 350px;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      margin-top: 1.5rem;
    }

    .product-card {
      background: var(--secondary);
      border-radius: 1rem;
      box-shadow: 0 2px 12px 0 rgba(255, 75, 125, 0.08);
      padding: 1.2rem;
      text-align: center;
      transition: transform 0.15s;
      position: relative;
      overflow: hidden;
    }

    .product-card:hover {
      transform: translateY(-6px) scale(1.03);
      box-shadow: 0 6px 24px 0 rgba(255, 75, 125, 0.18);
    }

    .product-img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      margin-bottom: 1rem;
      filter: drop-shadow(0 2px 8px var(--accent));
      border-radius: 50%;
      background: #fff;
      padding: 0.5rem;
    }

    .product-title {
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    .product-price {
      color: var(--primary);
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 1rem;
    }

    .add-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 2rem;
      padding: 0.5rem 1.2rem;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
      box-shadow: 0 2px 8px 0 rgba(255, 75, 125, 0.12);
    }

    .add-btn:hover {
      background: #e13a6a;
    }

    .cart-section {
      flex: 1;
      background: var(--card);
      border-radius: 1.5rem;
      box-shadow: var(--shadow);
      padding: 2rem 1.5rem;
      min-width: 300px;
      position: sticky;
      top: 2rem;
      z-index: 2;
    }

    #cart-items {
      min-height: 80px;
      margin-bottom: 1rem;
    }

    .cart-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.7rem;
      font-size: 1rem;
      border-bottom: 1px dashed var(--accent);
      padding-bottom: 0.3rem;
    }

    .cart-item-title {
      flex: 2;
    }

    .cart-item-qty {
      flex: 1;
      text-align: center;
    }

    .cart-item-price {
      flex: 1;
      text-align: right;
      color: var(--primary);
      font-weight: 700;
    }

    .cart-total {
      display: flex;
      justify-content: space-between;
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 1.2rem;
      color: var(--primary);
    }

    .print-btn {
      width: 100%;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 2rem;
      padding: 0.7rem 0;
      font-size: 1.1rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
      box-shadow: 0 2px 8px 0 rgba(255, 75, 125, 0.12);
    }

    .print-btn:disabled {
      background: #ffd1e3;
      color: #fff;
      cursor: not-allowed;
    }

    /* Modal for receipt */
    .modal {
      display: none;
      position: fixed;
      z-index: 100;
      left: 0; top: 0;
      width: 100vw; height: 100vh;
      background: rgba(255, 75, 125, 0.12);
      align-items: center;
      justify-content: center;
    }

    .modal.show {
      display: flex;
    }

    .modal-content {
      background: #fff;
      border-radius: 1rem;
      padding: 2rem 2.5rem;
      box-shadow: 0 8px 32px 0 rgba(255, 75, 125, 0.18);
      min-width: 320px;
      max-width: 90vw;
      text-align: center;
      position: relative;
      animation: popin 0.3s;
    }

    @keyframes popin {
      0% { transform: scale(0.7);}
      100% { transform: scale(1);}
    }

    .receipt-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 1rem;
    }

    .receipt-items {
      margin-bottom: 1rem;
      text-align: left;
    }

    .receipt-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.3rem;
    }

    .receipt-total {
      font-weight: 700;
      color: var(--primary);
      font-size: 1.1rem;
      margin-bottom: 1.2rem;
      text-align: right;
    }

    .close-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 1rem;
      padding: 0.4rem 1.2rem;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 1rem;
      transition: background 0.2s;
    }

    .close-btn:hover {
      background: #e13a6a;
    }

    @media (max-width: 900px) {
      main {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        margin: 2rem 1rem;
      }
      .products-section, .cart-section {
        min-width: unset;
      }
    }
