/* =========================================================
   FILE: css/shop.css
   The Vibe Studio — Checkout / Cart (FINAL POLISHED)
   ========================================================= */

/* ---------------------------------------------------------
   PAGE LAYOUT
--------------------------------------------------------- */

.cart-page-container {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 85vh;
    max-width: 1000px;
    margin: 0 auto;
    width: 90%;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* ---------------------------------------------------------
     EMPTY STATE
  --------------------------------------------------------- */
  
  .state-section {
    animation: fadeIn 0.45s ease-out;
  }
  
  .empty-content {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
  }
  
  .empty-content h1 {
    margin-bottom: 14px;
    font-size: 2rem;
    color: var(--text-primary);
  }
  
  .empty-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
  }
  
  /* ---------------------------------------------------------
     FILLED STATE HEADER
  --------------------------------------------------------- */
  
  #filled-state-section h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
    color: var(--text-primary);
  }
  
  /* ---------------------------------------------------------
     CART TABLE
  --------------------------------------------------------- */
  
  .cart-table {
    background: rgba(16, 16, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 26px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  .header-row {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
  }
  
  .cart-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
  }
  
  .cart-row:last-child {
    border-bottom: none;
  }
  
  .cart-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  
  /* ---------------------------------------------------------
     PRODUCT COLUMN
  --------------------------------------------------------- */
  
  .col-product {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  
  .col-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .col-product h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.35;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* ---------------------------------------------------------
     PRICE & ACTION
  --------------------------------------------------------- */
  
  .col-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
  }
  
  .col-action {
    text-align: right;
  }
  
  .btn-remove {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
  }
  
  .btn-remove:hover {
    background: #ff4d4d;
    color: #fff;
  }
  
  /* ---------------------------------------------------------
     SHIPPING / PROMO BOX
  --------------------------------------------------------- */
  
  .shipping-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 14px;
    background: rgba(16, 16, 16, 0.75);
    border: 1px solid rgba(0, 255, 255, 0.25);
  }
  
  .shipping-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .shipping-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  
  .shipping-select:focus {
    outline: none;
    border-color: var(--neon-cyan);
  }
  
  .shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--neon-cyan);
    margin-bottom: 14px;
  }
  
  /* Address + Note */
  
  .address-box,
  .note-box {
    margin-top: 12px;
  }
  
  .address-box textarea,
  .note-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    color: var(--white);
    font-size: 0.9rem;
  }
  
  .address-box textarea:focus,
  .note-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
  }
  
  /* ---------------------------------------------------------
     CART FOOTER / TOTAL
  --------------------------------------------------------- */
  
  .cart-footer {
    max-width: 460px;
    margin-left: auto;
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 16px;
    padding: 28px;
  }
  
  .total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  #main-cart-total {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .full-width {
    width: 100%;
    display: block;
    margin-bottom: 12px;
  }
  
  /* ---------------------------------------------------------
     PRIMARY CTA
  --------------------------------------------------------- */
  
  .btn-primary.full-width {
    font-size: 1rem;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(
      135deg,
      rgba(0, 255, 255, 0.9),
      rgba(0, 200, 200, 0.9)
    );
    color: #000;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.25);
  }
  
  .btn-primary.full-width:hover {
    transform: translateY(-1px);
  }
  
  /* ---------------------------------------------------------
     ANIMATION
  --------------------------------------------------------- */
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* ---------------------------------------------------------
     MOBILE RESPONSIVENESS
  --------------------------------------------------------- */
  
  @media (max-width: 768px) {
    .cart-page-container {
      width: 95%;
      padding-top: 120px;
    }
  
    .header-row {
      display: none;
    }
  
    .cart-row {
      grid-template-columns: 1fr auto;
      grid-template-areas:
        "product price"
        "product action";
      gap: 10px;
    }
  
    .col-product { grid-area: product; }
    .col-price {
      grid-area: price;
      text-align: right;
      font-size: 1.05rem;
    }
    .col-action {
      grid-area: action;
      text-align: right;
    }
  
    .cart-footer {
      margin: 0;
      max-width: 100%;
      padding: 22px;
    }
  
    .btn-primary.full-width {
      font-size: 1.05rem;
      padding: 16px;
    }
  }

  
  /* =========================================================
   MOBILE-FIRST DELIVERY / ADDRESS SECTION (COMPACT)
   ========================================================= */

/* Base: Mobile first */
.address-box {
    margin-top: 10px;
  }
  
  .address-box label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
  }
  
  .address-box textarea {
    width: 100%;
    min-height: 72px;               /* compact height */
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 10px;
    resize: none;                   /* prevents accidental drag on mobile */
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
  }
  
  /* Focus = gentle guidance */
  .address-box textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.18);
  }
  
  /* Note box (even smaller) */
  .note-box {
    margin-top: 8px;
  }
  
  .note-box label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
  }
  
  .note-box input {
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
  }
  
  /* =========================================================
     DESKTOP REFINEMENT (ONLY WHERE NEEDED)
     ========================================================= */
  
  @media (min-width: 768px) {
    .address-box textarea {
      min-height: 90px;              /* slightly more breathing room */
      font-size: 0.9rem;
    }
  
    .note-box input {
      font-size: 0.9rem;
    }
  }
  