/* =====================================================
   JOYALTY PHOTOGRAPHY - SHOP PAGE STYLES
   Updated: April 2026
===================================================== */

/* ── Hero Section ── */
.shop-hero {
  margin-top: 90px;
  padding: 60px 0 40px;
  text-align: center;
  
}

.shop-hero p {
  font-family: 'Quicksand', sans-serif;
  color: var(--c-muted);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.8;
}

/* ── Filter Pills ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-pill {
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid var(--c-border);
  background: var(--c-bot-bg);
  color: var(--c-text);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--c-gold-dim);
  border-color: var(--c-gold);
  color: var(--c-text);
  box-shadow: 0 0 12px var(--c-gold-glow);
}

/* ── Product Cards ── */
.product-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45),
              0 0 25px var(--c-gold-glow);
  border-color: var(--c-gold-dim);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
}

.product-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Quintessential', cursive;
  font-size: 1.05rem;
  color: var(--c-text);
  margin-bottom: 6px;
}

.product-desc {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.6;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.product-price {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-gold);
}

/* Add to Cart Button */
.btn-add-cart {
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  background: var(--c-user-bg);
  color: var(--c-text);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-cart:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px var(--c-gold-glow);
}

/* =====================================================
   CART & CHECKOUT STYLES
===================================================== */

/* Cart FAB - Cyan Theme */
.cart-fab {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0d9488;           /* Cyan / Teal */
  color: white;
  border: 3px solid rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  z-index: 400;
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35),
              0 0 20px rgba(13, 148, 136, 0.5);
  transition: all 0.3s ease;
}

.cart-fab:hover {
  transform: scale(1.12) rotate(12deg);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.5);
}

/* Notification Dot / Badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  padding: 0 5px;
  line-height: 1;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-overlay.open {
  display: block;
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 95vw;
  z-index: 501;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-left: 1px solid var(--c-border);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
}

.cart-header h5 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cart-close:hover {
  color: var(--c-text);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}

.cart-item-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-text);
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 2px;
}

/* Cart Footer */
.cart-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--c-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--c-text);
}

/* =====================================================
   CHECKOUT MODAL - PREMIUM DESIGN + 2-COLUMN GRID
===================================================== */

.checkout-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 15px;
  backdrop-filter: blur(8px);
}

.checkout-modal.open {
  display: flex;
}

.checkout-box {
  background: var(--c-surface);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}

/* Header */
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.checkout-header h4 {
  margin: 0;
  font-family: 'Quintessential', serif;
  font-size: 1.65rem;
  color: var(--c-text);
}

.checkout-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--c-muted);
  cursor: pointer;
  transition: 0.3s;
}

.checkout-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

/* Summary */
.checkout-summary {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 26px;
  font-size: 0.92rem;
}

/* ==================== FORM GRID ==================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-muted);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  outline: none;
}

.required {
  color: #ef4444;
}

/* Buttons */
.pay-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

.pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.45);
}

.cancel-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid #64748b;
  color: #64748b;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: 0.3s;
}

.cancel-btn:hover {
  background: #64748b;
  color: white;
}

/* Error */
.checkout-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 16px 0;
  display: none;
}

/* Success Screen */
.checkout-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.checkout-success i {
  font-size: 4.2rem;
  color: #0d9488;
  margin-bottom: 20px;
  animation: popIn 0.6s ease;
}

.checkout-success h5 {
  font-family: 'Quintessential', serif;
  margin: 0 0 12px;
}

@keyframes popIn {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.secure-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* Responsive */
@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;   /* Stack on mobile */
  }
  
  .checkout-box {
    padding: 22px;
    border-radius: 14px;
  }
}
@keyframes popIn {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }

  .cart-fab {
    bottom: 86px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}
/* =====================================================
   CART ITEM BUTTON STYLES
===================================================== */

.cart-item {
    position: relative;
    padding: 12px;
    border-radius: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.15);
}

/* Quantity Controls */
.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #0d9488;
    background: transparent;
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cart-qty button:hover {
    background: #0d9488;
    color: white;
    transform: scale(1.1);
}

.cart-qty span {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
    color: var(--c-text);
}

/* Remove Button */
.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart-item-remove:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.15) rotate(90deg);
}

/* Cart Item Info */
.cart-item-info {
    flex: 1;
    padding-right: 40px; /* Space for remove button */
}

/* Make the whole cart item look better */
.cart-items {
    gap: 16px;
}

.cart-item img {
    border-radius: 8px;
    border: 1px solid var(--c-border);
}

/* Optional: Improve quantity area spacing */
.cart-qty {
    background: rgba(13, 148, 136, 0.05);
    padding: 4px;
    border-radius: 30px;
    width: fit-content;
}