/* =========================================================
   CART.CSS
   PREMIUM CHECKOUT EXPERIENCE
   PrintStudio by Studio2
========================================================= */

/* =========================================================
   CART SECTION
========================================================= */

.basket-section {

  padding: 40px 0;

}

/* =========================================================
   CART LAYOUT
========================================================= */

.basket-layout {

  display: grid;

  grid-template-columns: minmax(0, 1fr) 380px;

  gap: 34px;

  align-items: start;

}

/* =========================================================
   CART ITEMS
========================================================= */

.basket-items-wrapper {

  display: flex;

  flex-direction: column;

  gap: 28px;

  min-width: 0;

}
.basket-item {

  position: relative;

  overflow: hidden;

  display: grid;

  grid-template-columns: 160px 1fr;

  gap: 24px;

  padding: 24px;

  border-radius: 28px;

  background-color: white;

  border:
    1px solid rgba(226,232,240,0.75);

  box-shadow: var(--shadow-sm);

  transition: var(--transition-normal);

}

.basket-item:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow-lg);

}

.basket-item-image {

  position: relative;

  overflow: hidden;

  border-radius: 20px;

  aspect-ratio: 4 / 5;

  background-color: #f8fafc;

}

.basket-item-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 400ms ease;

}

.basket-item:hover .basket-item-image img {

  transform: scale(1.04);

}

.basket-item-content {

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  gap: 16px;

}

.basket-item-top {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 16px;

}

.basket-item-title {

  margin-bottom: 8px;

  font-size: 1.3rem;

  line-height: 1.3;

  font-weight: 700;

}

.basket-item-type {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 12px;

  padding:
    8px
    14px;

  border-radius: 999px;

  background-color: rgba(124,58,237,0.08);

  color: var(--color-primary);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.3px;

  text-transform: uppercase;

}

.basket-item-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

}

.basket-item-meta span {

  padding:
    8px
    12px;

  border-radius: 999px;

  background-color: #f8fafc;

  border:
    1px solid rgba(226,232,240,0.8);

  font-size: 0.85rem;

  color: var(--color-text-light);

}

.basket-item-price {

  font-size: 1.6rem;

  font-weight: 900;

  line-height: 1;

  margin-top: 8px;

}

.basket-item-bottom {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  margin-top: 6px;

}

/* =========================================================
   QUANTITY CONTROLS
========================================================= */

.quantity-controls {

  display: flex;

  align-items: center;

  gap: 12px;

}

.quantity-btn {

  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  border:
    1px solid rgba(226,232,240,0.8);

  background-color: white;

  cursor: pointer;

  font-size: 1rem;

  font-weight: 700;

  transition: var(--transition-normal);

}

.quantity-btn:hover {

  background:
    linear-gradient(
      135deg,
      var(--color-primary),
      var(--color-accent-pink)
    );

  color: white;

  border-color: transparent;

}

.quantity-value {

  min-width: 28px;

  text-align: center;

  font-size: 0.95rem;

  font-weight: 700;

}

.remove-item-btn {

  border: none;

  background: none;

  cursor: pointer;

  color: #ef4444;

  font-size: 0.9rem;

  font-weight: 700;

  transition: var(--transition-normal);

  white-space: nowrap;

}

.remove-item-btn:hover {

  opacity: 0.7;

}

/* =========================================================
   SUMMARY SIDEBAR
========================================================= */

.basket-summary {

  position: sticky;

  top: 100px;

}

.summary-card {

  position: relative;

  overflow: hidden;

  padding: 30px;

  border-radius: 28px;

  background-color: white;

  border:
    1px solid rgba(226,232,240,0.75);

  box-shadow: var(--shadow-md);

}

.summary-title {

  margin-bottom: 24px;

  font-size: 1.6rem;

  font-weight: 800;

}

.summary-list {

  display: flex;

  flex-direction: column;

  gap: 16px;

}

.summary-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  font-size: 0.95rem;

}

.summary-row span {

  color: var(--color-text-light);

}

.summary-row strong {

  font-size: 1rem;

  font-weight: 700;

}

.discount-row strong {

  color: #16a34a;

}

.summary-divider {

  margin:
    20px
    0;

  height: 1px;

  background-color: rgba(226,232,240,0.8);

}

.total-row {

  font-size: 1rem;

  margin-top: 8px;

}

.total-row strong {

  font-size: 1.7rem;

  font-weight: 900;

  line-height: 1;

}

.discount-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-top: 18px;

  padding:
    10px
    14px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(22,163,74,0.12),
      rgba(34,197,94,0.08)
    );

  color: #15803d;

  font-size: 0.8rem;

  font-weight: 700;

}

/* =========================================================
   CHECKOUT BOX
========================================================= */

.checkout-box {

  position: relative;

  overflow: hidden;

  margin-top: 24px;

  padding: 28px;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      #111827,
      #1f2937
    );

  color: white;

}

.checkout-box::before {

  content: "";

  position: absolute;

  top: -60px;
  right: -60px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.15),
      transparent 70%
    );

}

.checkout-content {

  position: relative;

  z-index: 2;

}

.checkout-badge {

  display: inline-flex;

  margin-bottom: 16px;

  padding:
    8px
    14px;

  border-radius: 999px;

  background-color: rgba(255,255,255,0.12);

  border:
    1px solid rgba(255,255,255,0.08);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.3px;

  text-transform: uppercase;

}

.checkout-title {

  margin-bottom: 14px;

  color: white;

  font-size: 1.6rem;

  line-height: 1.2;

  font-weight: 800;

}

.checkout-description {

  margin-bottom: 22px;

  line-height: 1.7;

  color: rgba(255,255,255,0.82);

  font-size: 0.95rem;

}

.checkout-actions {

  display: flex;

  flex-direction: column;

  gap: 12px;

}

.whatsapp-checkout-btn {

  width: 100%;

  justify-content: center;

  min-height: 54px;

  font-size: 0.95rem;

  font-weight: 700;

}

.secondary-checkout-btn {

  width: 100%;

  justify-content: center;

  background-color: rgba(255,255,255,0.08);

  border:
    1px solid rgba(255,255,255,0.12);

  color: white;

  font-weight: 700;

  min-height: 48px;

}

.secondary-checkout-btn:hover {

  background-color: rgba(255,255,255,0.14);

}

/* =========================================================
   EMPTY CART
========================================================= */

.empty-basket {

  position: relative;

  overflow: hidden;

  padding:
    70px
    40px;

  border-radius: 32px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fafc
    );

  border:
    1px solid rgba(226,232,240,0.8);

  text-align: center;

  box-shadow: var(--shadow-md);

}

.empty-basket-icon {

  width: 100px;
  height: 100px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin:
    0 auto
    24px;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,0.08),
      rgba(236,72,153,0.08)
    );

  font-size: 2.4rem;

}

.empty-basket h2 {

  margin-bottom: 16px;

  font-size: clamp(1.8rem, 5vw, 3rem);

  font-weight: 800;

}

.empty-basket p {

  max-width: 600px;

  margin:
    0 auto
    28px;

  line-height: 1.8;

  color: var(--color-text-light);

  font-size: 0.95rem;

}

/* =========================================================
   TRUST SECTION
========================================================= */

.basket-trust-section {

  padding-top: 8px;

}

.basket-trust-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

}

.basket-trust-card {

  padding: 28px;

  border-radius: 24px;

  background-color: white;

  border:
    1px solid rgba(226,232,240,0.75);

  box-shadow: var(--shadow-sm);

}

.basket-trust-line {

  width: 60px;
  height: 4px;

  margin-bottom: 18px;

  border-radius: 999px;

  background:
    linear-gradient(
      to right,
      var(--color-primary),
      var(--color-accent-pink)
    );

}

.basket-trust-card h3 {

  margin-bottom: 12px;

  font-size: 1.1rem;

  font-weight: 700;

}

.basket-trust-card p {

  line-height: 1.6;

  color: var(--color-text-light);

  font-size: 0.9rem;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

  .basket-layout {

    grid-template-columns: 1fr;

  }

  .basket-summary {

    position: static;

    top: auto;

  }

}

@media (max-width: 992px) {

  .basket-trust-grid {

    grid-template-columns: 1fr;

  }

}

@media (max-width: 768px) {

  .basket-section {

    padding: 28px 0;

  }

  .basket-item {

    grid-template-columns: 140px 1fr;

    gap: 18px;

    padding: 18px;

  }

  .basket-item-image {

    border-radius: 16px;

  }

  .basket-item-title {

    font-size: 1.1rem;

  }

  .basket-item-price {

    font-size: 1.4rem;

  }

  .summary-card,
  .checkout-box {

    padding: 24px;

  }

  .summary-title {

    font-size: 1.4rem;

  }

  .checkout-title {

    font-size: 1.4rem;

  }

  .basket-trust-card {

    padding: 22px;

  }

  .basket-trust-card h3 {

    font-size: 1rem;

  }

  .basket-trust-card p {

    font-size: 0.85rem;

  }

  .empty-basket {

    padding: 50px 24px;

  }

  .empty-basket h2 {

    font-size: 1.8rem;

  }

}

@media (max-width: 480px) {

  .basket-item {

    grid-template-columns: 1fr;

    gap: 14px;

    padding: 16px;

  }

  .basket-item-image {

    max-width: 100%;

    max-height: 200px;

    border-radius: 14px;

  }

  .basket-item-top {

    flex-direction: column;

    gap: 12px;

  }

  .basket-item-bottom {

    flex-direction: column;

    align-items: stretch;

    gap: 10px;

  }

  .quantity-controls {

    width: 100%;

    justify-content: space-between;

  }

  .remove-item-btn {

    text-align: right;

  }

  .basket-item-price {

    font-size: 1.3rem;

  }

  .basket-layout {

    gap: 20px;

  }

  .basket-items-wrapper {

    gap: 18px;

  }

  .summary-card {

    padding: 20px;

  }

  .summary-title {

    font-size: 1.2rem;

    margin-bottom: 18px;

  }

  .summary-list {

    gap: 12px;

  }

  .summary-row {

    font-size: 0.9rem;

  }

  .summary-divider {

    margin: 16px 0;

  }

  .total-row strong {

    font-size: 1.5rem;

  }

  .checkout-box {

    padding: 20px;

    margin-top: 18px;

  }

  .checkout-title {

    font-size: 1.3rem;

    margin-bottom: 10px;

  }

  .checkout-description {

    margin-bottom: 16px;

    font-size: 0.9rem;

  }

  .whatsapp-checkout-btn {

    min-height: 48px;

    font-size: 0.9rem;

  }

  .basket-trust-grid {

    gap: 16px;

  }

  .basket-trust-card {

    padding: 18px;

  }

}
/* =========================================================
   MINIMUM ORDER MESSAGE
========================================================= */

.min-order-message {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
  border: 1.5px dashed rgba(239,68,68,0.35);
  margin-bottom: 14px;
}

.min-order-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.min-order-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.min-order-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #dc2626;
}

.min-order-text span {
  font-size: 0.82rem;
  color: #ef4444;
  font-weight: 500;
}

/* =========================================================
   PREMIUM EDIT MODAL
========================================================= */

.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  padding: 20px;
  transition: background 0.28s ease, backdrop-filter 0.28s ease;
}

.pm-overlay--visible {
  background: rgba(15, 10, 30, 0.65);
  backdrop-filter: blur(8px);
}

.pm-modal {
  background: #ffffff;
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.pm-overlay--visible .pm-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */

.pm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
}

.pm-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.08));
  color: var(--color-primary, #7c3aed);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pm-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
}

.pm-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(226,232,240,0.8);
  background: #f8fafc;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.pm-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Body */

.pm-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pm-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* Option rows */

.pm-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 8px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.pm-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(236,72,153,0.03));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pm-option:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.pm-option:hover::before {
  opacity: 1;
}

.pm-option--active {
  border-color: var(--color-primary, #7c3aed) !important;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(236,72,153,0.04));
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.14);
}

.pm-option--active::before {
  opacity: 1;
}

.pm-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #7c3aed);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pm-option-label {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.pm-option-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-primary, #7c3aed);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Footer */

.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: #fafbfc;
  flex-shrink: 0;
}

.pm-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-total-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.pm-total-price {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pm-save-btn {
  padding: 14px 30px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  white-space: nowrap;
}

.pm-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
}

.pm-save-btn:active {
  transform: translateY(0);
}

/* =========================================================
   UNSELECT BUTTON (kids.js toggle)
========================================================= */

.btn-unselect {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.btn-unselect:hover {
  opacity: 0.88 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4) !important;
}

/* Checkbox checked state */

.poster-select-box.checked {
  opacity: 1 !important;
  background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
  border-color: transparent !important;
  transform: scale(1.1);
}

/* =========================================================
   PM MODAL RESPONSIVE
========================================================= */

@media (max-width: 560px) {
  .pm-header {
    padding: 20px 20px 16px;
  }

  .pm-body {
    padding: 18px 20px;
    gap: 22px;
  }

  .pm-footer {
    padding: 18px 20px;
  }

  .pm-title {
    font-size: 1.2rem;
  }

  .pm-total-price {
    font-size: 1.4rem;
  }

  .pm-save-btn {
    padding: 12px 22px;
    font-size: 0.88rem;
  }
}

/* =========================================================
   CART FRAME WARNING STRIP (inside basket item card)
========================================================= */

.basket-frame-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.06));
  border: 1.5px dashed rgba(245,158,11,0.4);
}

.basket-frame-warning__icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.basket-frame-warning__text {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}

/* =========================================================
   SMART CHECKOUT MESSAGE (sidebar)
========================================================= */

.checkout-smart-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.checkout-smart-msg span:first-child {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}

.checkout-smart-msg--locked {
  background: linear-gradient(135deg, rgba(239,68,68,0.07), rgba(239,68,68,0.04));
  border: 1.5px dashed rgba(239,68,68,0.3);
  color: #991b1b;
}

.checkout-smart-msg--unlocked {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
  border: 1.5px solid rgba(34,197,94,0.3);
  color: #166534;
}

/* =========================================================
   FRAME THUMBNAILS IN EDIT MODAL
========================================================= */

.pm-frame-option {
  align-items: center;
  gap: 12px;
}

.pm-frame-thumb {
  width: 52px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(226,232,240,0.8);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pm-frame-thumb:hover {
  border-color: #7c3aed;
  transform: scale(1.08);
}

.pm-option--active .pm-frame-thumb {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

/* =====================================================
   STORY BOOK — INLINE NAME FIELD IN CART
   ===================================================== */

.sb-name-field {
  margin: 10px 0 8px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
}

.sb-name-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sb-name-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sb-name-input {
  flex: 1;
  border: 2px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 36px 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
  font-family: inherit;
}

.sb-name-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

.sb-name-save-icon {
  position: absolute;
  right: 10px;
  font-size: 14px;
  color: #22c55e;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.sb-name-save-icon.visible {
  opacity: 1;
}

/* =====================================================
   GALLERY CART — New horizontal layout styles
   ===================================================== */

.category-row {
  margin-bottom: 24px;
}

.category-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.row-title i {
  font-size: 18px;
}

.row-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.apply-all-bar {
  margin-bottom: 10px;
}

.apply-all-btn {
  background: none;
  border: 1.5px solid;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.apply-all-btn:hover {
  opacity: 0.75;
}

.cards-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.cards-track::-webkit-scrollbar {
  height: 4px;
}

.cards-track::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* ---- Item Card ---- */

.item-card {

  position: relative;
  flex: 0 0 260px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  transition: box-shadow 0.2s;
}



.item-card:hover {

  transform: translateY(-4px);

  box-shadow:
    0 18px 38px rgba(0,0,0,0.28);

}

.card-img-wrap {

  position: relative;

  width: 100%;

  height: 500px;

  overflow: hidden;

}

.card-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.45s ease;

}

.card-remove {

  position: absolute;

  top: 12px;

  right: 12px;

  width: 42px;

  height: 42px;

  border: 3px solid rgba(255,255,255,0.95);

  border-radius: 20%;

  background: #ff3b30;

  color: white;

  font-size: 30px;

  font-family: Arial, sans-serif;

  font-weight: 700;

  line-height: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  padding-bottom: 1.2px;

  cursor: pointer;

  z-index: 50;

  box-shadow:
    0 10px 22px rgba(0,0,0,0.28);

  transition: all 0.22s ease;

  padding-left: 0;

  padding-right: 0;

}

.card-remove:hover {

  transform: scale(1.08);

  background: #dc2626;

}

.card-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.card-bundle-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.card-body {

  position: absolute;

  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px;
  border-radius: 18px;
 background: linear-gradient(
  to top,
  rgba(0,0,0,0.30),
  rgba(0,0,0,0.10)
);

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.14);

  box-shadow: 0 8px 24px rgba(0,0,0,0.28);

}

.card-name {

  font-size: 18px;

  font-weight: 800;

  color: white;

  margin-bottom: 10px;

  text-shadow: 0 2px 10px rgba(0,0,0,0.45);

}

/* ---- Size / Frame buttons ---- */

.card-section-label {

  font-size: 10px;

  font-weight: 700;

color: rgba(255,255,255,0.92);

  letter-spacing: 0.4px;

  text-transform: uppercase;

  margin-bottom: 5px;

}

.card-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
}

.card-btn {
  font-size: 10px;
  padding: 6px 11px;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid var(--color-border);
background: rgba(255,255,255,0.88);
color: #111827;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.card-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.card-btn--active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
  box-shadow: 0 0 12px rgba(124,58,237,0.45);
}

.card-btn--frame-active {
  background: #ec4899;
  color: #fff;
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236,72,153,0.45);
}

/* ---- Child name input ---- */

.card-name-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
border-radius: 10px;
font-weight: 600;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
color: #111827;
background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.card-name-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.1);
}

.card-name-input:not(:placeholder-shown) {
  border-color: #7c3aed;
  background: #faf5ff;
}

/* ---- Card footer ---- */

.card-footer {

  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;

}

.card-apply-all-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 7px 12px;

  border-radius: 8px;

  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(10px);

  color: white;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;

  transition: all 0.2s ease;

}

.card-apply-all-btn:hover {

  background: rgba(255,255,255,0.20);

}

.card-qty {
  display: flex;
  align-items: left;
  gap: 5px;
  margin-left: auto;
}

.qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--color-text);
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--color-light-bg);
}

.qty-val {
  font-size: 12px;
  font-weight: 600;
  color: white;
  min-width: 16px;
  text-align: center;
}

.card-price {
  display: none;
}

/* ---- Add more card ---- */

.add-more-card {
  flex: 0 0 220px;
  min-height: 380px;
  border: 1.5px dashed var(--color-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.add-more-card:hover {
  border-color: #7c3aed;
}

.add-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #9ca3af;
}

.add-lbl {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
}

/* ---- Customer Form (right panel) ---- */

.customer-form {
  margin-bottom: 16px;
}

.cform-field {
  margin-bottom: 10px;
}

.cform-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cform-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.cform-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.1);
}
/* ---- Story Book Features (basket card) ---- */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-features li {

  font-size: 10px;

  color: rgba(255,255,255,0.92);

  line-height: 1.5;

  text-shadow: 0 1px 4px rgba(0,0,0,0.45);

}

/* ---- Price — normal + strikethrough ---- */
.card-price {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}
.card-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.card-price-original {

  display: none;


}
.card-price--disc {
  color: #16a34a;
}

/* ---- Story Book features (kids page) ---- */
.ps-book-card__features {
  list-style: none;
  padding: 0;
  margin: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ps-book-card__features li {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.cards-track {

  min-width: 0;

  overflow-x: auto;

}
.card-img-wrap::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.20) 35%,
      rgba(0,0,0,0.02) 65%
    );

  pointer-events: none;

}
.item-card:hover .card-img {

  transform: scale(1.04);

}
