
  .checkout-page {
    font-family: 'Inter', sans-serif;
    background: #05080f;
    color: #f0f4ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.checkout-page *,
.checkout-page *::before,
.checkout-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

  /* Background cityscape */
  .bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
      /* top gradient */
      linear-gradient(180deg, rgba(5,8,15,0.92) 0%, rgba(5,8,15,0.55) 40%, rgba(5,8,15,0.80) 100%),
      /* city glow blobs */
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(30,60,140,0.55) 0%, transparent 70%),
      radial-gradient(ellipse 30% 25% at 20% 85%,  rgba(59,130,246,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 30% 25% at 80% 80%,  rgba(6,182,212,0.14) 0%, transparent 60%);
    background-color: #05080f;
  }
  .page-wrapper {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
}

.page-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    
    background:
        url('../images/check_out_bg.avif') center/cover no-repeat; 
    z-index: 0;
}
.empty-div{
    width:50%;
    background: rgba(12, 20, 38, 0.60);
    background: rgba(12, 20, 38, 0.60);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 8px 40px rgba(0,0,0,0.45),
        0 0 80px -20px rgba(59,130,246,0.35);
    min-height: 70px;
    margin:auto;
}
@media (max-width: 767.98px) {
  .empty-div{
      width: 100%;
  }
}

/* ── GLASS CARD ───────────────────────────────────────────── */
.glass-card {
background: rgba(12, 20, 38, 0.60);
border: 1px solid rgba(255,255,255,0.10);
border-radius: 18px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 8px 40px rgba(0,0,0,0.45),
    0 0 80px -20px rgba(59,130,246,0.35);
position: relative;
overflow: hidden;
}
  .glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    pointer-events: none;
  }

  /* ── WRAPPER ──────────────────────────────────────────────── */
  .page-wrapper {
    z-index: 1;
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  /* ── SECTION TITLES ───────────────────────────────────────── */
  .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f0f4ff;
    margin-bottom: 0;
  }
  .auth-link {
    font-size: 0.75rem;
    color: #8b9ab5;
  }
  .auth-link a { color: #3b82f6; text-decoration: none; }
  .auth-link a:hover { text-decoration: underline; }

  /* ── MAIN PRODUCT CARD ────────────────────────────────────── */
  .product-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .product-action {
    /* display: flex; */
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
  .product-item .prod-img {
    width: 90px; height: 70px;
    object-fit: contain;
    border-radius: 10px;
    /* background: rgba(255,255,255,0.04); */
    flex-shrink: 0;
  }
  .product-item .prod-img-placeholder {
    width: 90px; height: 70px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a2740, #0d1a30);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    color: #4a5672;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
  }
  .product-item .prod-img {
    width: 90px;
    height: 70px;
    object-fit: contain;
}
  .prod-info { flex: 1;
    min-width: 0;}
  .prod-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #f0f4ff;
    margin-bottom: 0.3rem;
  }
  .prod-desc {
    font-size: 0.72rem;
    color: #8b9ab5;
    line-height: 1.5;
  }
  .prod-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f0f4ff;
    white-space: nowrap;
    padding-top: 2px;
  }

  /* ── ADD-ON SECTION LABEL ─────────────────────────────────── */
  .addon-label {
    padding: 0.85rem 1.25rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #06b6d4;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  /* ── ADDON ITEM ───────────────────────────────────────────── */
  .accessory-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
  }
  .accessory-item:last-child { border-bottom: none; }
  .accessory-item:hover { background: rgba(255,255,255,0.04); }

  /* Custom checkbox */
  .addon-cb-wrap {
    padding-top: 2px;
    flex-shrink: 0;
  }
  .addon-cb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.5px solid #4a5672;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s;
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .addon-cb:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59,130,246,0.35);
  }
  .addon-cb:checked::after {
    content: '';
    position: absolute;
    width: 5px; height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(40deg) translate(-1px,-1px);
  }

  .addon-img-wrap {
    width: 82px; height: 62px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0e1d38, #05111f);
    border: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .addon-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 9px;
    opacity: 0.88;
  }
  /* SVG panel placeholders */
  .panel-svg { width: 78px; height: 58px; }

  .addon-info { flex: 1; min-width: 0; }
  .addon-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #f0f4ff;
    margin-bottom: 0.35rem;
  }
  .addon-feature {
    font-size: 0.68rem;
    color: #fff;
    line-height: 1.7;
    opacity: .8;
  }
  .addon-feature span { display: block; }
  .addon-feature span::before { content: '· '; }

  .addon-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .addon-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f0f4ff;
    white-space: nowrap;
  }
  .addon-price.dimmed { color: #4a5672; }

  /* Quantity control */
  .qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
  }
  .qty-btn {
    width: 26px; height: 26px;
    background: transparent;
    border: none;
    color: #8b9ab5;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex; align-items: center; justify-content: center;
  }
  .qty-btn:hover { background: rgba(59,130,246,0.2); color: #3b82f6; }
  .qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f0f4ff;
    padding: 0 2px;
    user-select: none;
    border-left: 1px solid rgba(255,255,255,0.10);
    border-right: 1px solid rgba(255,255,255,0.10);
    line-height: 26px;
  }

  /* Delete btn */
  .del-btn {
    background: transparent;
    border: none;
    color: #4a5672;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    align-self: flex-end;
    margin-left: 0.3rem;
  }
  .del-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

  /* ── ORDER SUMMARY CARD ───────────────────────────────────── */
  .summary-card { padding: 1.4rem 1.4rem 1.6rem; height: fit-content; }
  .summary-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
  }
  .summary-count {
    font-size: 0.73rem;
    color: #8b9ab5;
    margin-bottom: 1.1rem;
  }
  .summary-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.10);
    margin: 0.9rem 0;
  }
  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }
  .summary-row .s-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b9ab5;
  }
  .summary-row .s-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f0f4ff;
    white-space: nowrap;
  }
  .summary-row.total-row .s-name {
    font-size: 0.78rem;
    color: #f0f4ff;
    font-weight: 700;
  }
  .summary-row.total-row .s-price {
    font-size: 0.9rem;
    color: #3b82f6;
  }

  /* Checkout button */
  .checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: opacity 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  }
  .checkout-btn:hover {
    opacity: 0.9;
    box-shadow: 0 6px 28px rgba(59,130,246,0.5);
  }
  .checkout-note {
    font-size: 0.65rem;
    color: #4a5672;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
  }
  .checkout-note a { color: #3b82f6; text-decoration: none; }

  /* ── LAYOUT ───────────────────────────────────────────────── */
  .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 1.5rem;
    align-items: start;
  }
  @media (max-width: 1200px) {
    .checkout-grid { grid-template-columns: 1fr; }
  }

  /* Card header row */
  .card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  /* Scrollable addon list */
  .addon-list { max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4a5672 transparent; }
  .addon-list::-webkit-scrollbar { width: 4px; }
  .addon-list::-webkit-scrollbar-thumb { background: #4a5672; border-radius: 4px; }

  /* Animate price change */
  @keyframes flashPrice { 0%,100% { color: #f0f4ff; } 50% { color: #3b82f6; } }
  .flash { animation: flashPrice 0.4s ease; }

  /* Responsive small */
  @media (max-width: 768px) {
    .accessory-item { gap: 0.6rem; padding: 0.85rem 0.9rem; }
    .addon-img-wrap { width: 64px; height: 50px; }
    .product-item .prod-img-placeholder { width: 72px; height: 56px; }
    .summary-card { padding: 1.1rem; }
  }

  @media (max-width: 768px) {

    /* Main product row: wrap so price/qty/delete drop to their own line */
    .product-item {
        flex-wrap: wrap;
    }
    .prod-info {
        flex-basis: calc(100% - 100px);
    }
    .product-action {
        flex-basis: 100%;
        justify-content: space-between;
        margin-top: 0.75rem;
        display: flex;
    }
    

    /* Accessory row: same treatment */
    .accessory-item {
        flex-wrap: wrap;
    }
    .addon-info {
        flex-basis: calc(100% - 110px);
    }
    .addon-right {
        flex-basis: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.6rem;
    }
}