/* ==========================================================================
   RETAILDOKAN - WISHLIST PAGE STYLES (wishlist.css)
   ========================================================================== */

/* 1. Breadcrumbs */
.wishlist-breadcrumb-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  padding: 12px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7280;
}

.breadcrumb-nav a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary-red);
}

.bc-sep {
  color: #D1D5DB;
  font-size: 11px;
}

.bc-current {
  color: #111827;
  font-weight: 600;
}

/* 2. Main Section */
.wishlist-main-section {
  background: #F8FAFC;
  padding: 32px 0 60px;
  min-height: 70vh;
}

/* 3. Wishlist Hero Header */
.wishlist-header-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.wishlist-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.wishlist-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #FEF2F2;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wishlist-header-card h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.4px;
}

.wishlist-counter-badge {
  background: #F1F5F9;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

.wishlist-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* Header Action Toolbar */
.wishlist-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-wishlist-toolbar {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-wishlist-toolbar.btn-share {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

.btn-wishlist-toolbar.btn-share:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

.btn-wishlist-toolbar.btn-clear {
  background: #FFFFFF;
  border-color: #FEE2E2;
  color: #EF4444;
}

.btn-wishlist-toolbar.btn-clear:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  transform: translateY(-1px);
}

.btn-wishlist-toolbar.btn-move-all {
  background: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(229, 46, 45, 0.25);
}

.btn-wishlist-toolbar.btn-move-all:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 46, 45, 0.35);
}

/* 4. Controls Bar (Filters & Sorting) */
.wishlist-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  height: 36px;
  padding: 0 15px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-pill:hover {
  border-color: #CBD5E1;
  color: #0F172A;
  background: #F8FAFC;
}

.filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.wishlist-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-sort-box label {
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
}

.wishlist-sort-box select {
  height: 36px;
  padding: 0 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.wishlist-sort-box select:focus {
  border-color: var(--primary-red);
}

/* 5. Wishlist 4-Column Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Wishlist Product Card */
.wishlist-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

/* Card Image Area */
.wishlist-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
}

.wishlist-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wishlist-card:hover .wishlist-card-thumb-wrap img {
  transform: scale(1.05);
}

/* Badges on Thumb */
.card-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(229, 46, 45, 0.3);
  z-index: 2;
}

.btn-card-remove-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-card-remove-wishlist:hover {
  background: #FEF2F2;
  color: var(--primary-red);
  border-color: #FECACA;
  transform: scale(1.1);
}

/* Stock Status Pill on Thumb */
.card-stock-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.card-stock-pill.instock {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.card-stock-pill.outofstock {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Card Body Content */
.wishlist-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wishlist-card-category {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.wishlist-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.wishlist-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wishlist-card-title a:hover {
  color: var(--primary-red);
}

/* Rating Stars */
.wishlist-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.stars-row {
  color: #F59E0B;
  display: flex;
  gap: 1px;
}

.rating-count {
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 2px;
}

/* Pricing Row */
.wishlist-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 14px;
}

.wishlist-price-current {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: -0.3px;
}

.wishlist-price-original {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 500;
}

.wishlist-price-saving {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
}

/* Card Action Buttons */
.wishlist-card-actions {
  display: flex;
  gap: 8px;
}

.btn-card-add-cart {
  flex: 1;
  height: 38px;
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(229, 46, 45, 0.2);
}

.btn-card-add-cart:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 46, 45, 0.35);
}

.btn-card-add-cart:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-card-quick-view {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-card-quick-view:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* 6. Empty State */
.wishlist-empty-state {
  text-align: center;
  padding: 64px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin-bottom: 48px;
}

.empty-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FEF2F2;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.wishlist-empty-state h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.wishlist-empty-state p {
  font-size: 14px;
  color: #64748B;
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-empty-shop {
  height: 44px;
  padding: 0 24px;
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(229, 46, 45, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-empty-shop:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 46, 45, 0.35);
  color: #FFFFFF;
}

.btn-restore-samples {
  height: 44px;
  padding: 0 18px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-restore-samples:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* 7. Recommended Section */
.wishlist-recommended-section {
  padding-top: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.title-left h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.title-left p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-red);
  text-decoration: none;
  transition: gap 0.15s ease;
}

.view-all-link:hover {
  gap: 7px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 8. Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: slideToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes slideToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 9. Responsive Adjustments */
@media (max-width: 1100px) {
  .wishlist-grid,
  .recommended-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .wishlist-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .wishlist-header-actions {
    width: 100%;
  }

  .btn-wishlist-toolbar {
    flex: 1;
    justify-content: center;
  }

  .wishlist-controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wishlist-grid,
  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .wishlist-card-title {
    font-size: 13px;
    height: 35px;
  }

  .wishlist-price-current {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .wishlist-grid,
  .recommended-grid {
    grid-template-columns: 1fr;
  }

  .btn-wishlist-toolbar span {
    display: inline;
  }
}

/* 10. Main Footer Styles */
.main-footer {
  background: #111827 !important;
  color: #9CA3AF !important;
  padding: 44px 0 20px !important;
  margin-top: 48px !important;
  border-top: 1px solid #1F2937 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo.logo-white .logo-title,
.main-footer .logo .logo-title,
.main-footer .logo-title {
  color: #FFFFFF !important;
}

.logo.logo-white .logo-title span,
.main-footer .logo .logo-title span,
.main-footer .logo-title span {
  color: var(--primary-red) !important;
}

.logo.logo-white .logo-sub,
.main-footer .logo .logo-sub,
.main-footer .logo-sub {
  color: #9CA3AF !important;
}

.footer-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #9CA3AF;
  margin: 14px 0 16px;
  max-width: 300px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #D1D5DB;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-line svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

.footer-heading {
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #9CA3AF !important;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF !important;
}

.footer-col-sub {
  font-size: 11.5px;
  color: #9CA3AF;
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pay-badge {
  background: #FFFFFF !important;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pay-badge.cod-badge { background: #F3F4F6 !important; color: #374151; }
.pay-badge.bkash-badge { background: #FFF1F6 !important; color: #D8236B !important; }
.pay-badge.nagad-badge { background: #FFF7ED !important; color: #EA580C !important; }
.pay-badge.upay-badge { background: #EFF6FF !important; color: #0284C7 !important; }
.pay-badge.visa-badge { background: #EFF6FF !important; color: #1D4ED8 !important; }
.pay-badge.mc-badge { background: #FEF2F2 !important; color: #DC2626 !important; }

.ssl-guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #10B981;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-circle:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 11.5px;
  color: #6B7280;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-links a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-links a:hover {
  color: #D1D5DB;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
