/* ═══════════ ENHANCED FEATURES CSS ═══════════ */

/* ── Smart Search Results ── */
.search-results.has-results {
  padding: 8px 0;
}
.smart-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  animation: smartResultIn 0.3s ease both;
}
@keyframes smartResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.smart-result:hover { background: rgba(156,175,136,0.08); }
.smart-result img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.smart-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.smart-result-brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #8B90A0; }
.smart-result-name { font-size: 14px; font-weight: 500; color: #1A1F35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smart-result-name mark { background: rgba(156,175,136,0.25); color: inherit; border-radius: 2px; padding: 0 2px; }
.smart-result-price { font-size: 13px; font-weight: 600; color: #9CAF88; }
.smart-search-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #9CAF88;
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s;
  text-decoration: none;
}
.smart-search-all:hover { background: rgba(156,175,136,0.06); color: #7A9466; }
.smart-search-all span { transition: transform 0.2s; }
.smart-search-all:hover span { transform: translateX(4px); }
.smart-search-empty { padding: 24px 16px; text-align: center; }
.smart-search-empty p { font-size: 14px; color: #5A6178; margin-bottom: 4px; }
.smart-search-tip { font-size: 12px; color: #8B90A0; }

/* ── Floating Filter Widget ── */
.floating-filter {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.floating-filter.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ff-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #1A1F35;
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all 0.3s;
  margin: 0 auto;
  width: fit-content;
}
.ff-toggle:hover { background: #2A3050; transform: scale(1.02); }
.ff-toggle svg { stroke: #9CAF88; }
.floating-filter.expanded .ff-toggle { display: none; }
.ff-pills {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(26,31,53,0.95);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.floating-filter.expanded .ff-pills { display: flex; }
.ff-pill {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ff-pill:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.ff-pill.active { background: #9CAF88; color: #fff; border-color: #9CAF88; }
.ff-divider { color: rgba(255,255,255,0.2); font-size: 14px; margin: 0 2px; }
.ff-sort.active { background: rgba(196,169,125,0.9); border-color: rgba(196,169,125,0.9); }

@media (max-width: 768px) {
  .floating-filter { bottom: 80px; }
  .ff-pills { gap: 4px; padding: 6px 10px; flex-wrap: wrap; justify-content: center; border-radius: 20px; max-width: calc(100vw - 32px); }
  .ff-pill { padding: 6px 12px; font-size: 11px; }
  .ff-divider { display: none; }
}

/* ── Shop CTA Banner ── */
.shop-cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, #F0EBE3 0%, #E8DED1 100%);
}
.shop-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.shop-cta-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #9CAF88;
  display: block;
  margin-bottom: 8px;
}
.shop-cta-inner h3 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1A1F35;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.shop-cta-inner p {
  font-size: 15px;
  color: #5A6178;
}
.shop-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.shop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.shop-cta-wa {
  text-align: center;
  font-size: 13px;
  color: #25D366;
  font-weight: 600;
  padding: 10px 24px;
  border: 1.5px solid #25D366;
  border-radius: 12px;
  transition: all 0.3s;
  background: transparent;
}
.shop-cta-wa:hover { background: rgba(37,211,102,0.06); }

@media (max-width: 768px) {
  .shop-cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .shop-cta-inner h3 { font-size: 22px; }
  .shop-cta-actions { width: 100%; }
  .shop-cta-btn { justify-content: center; }
}

/* ── Related Products in Quick View ── */
.qv-related { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06); }
.qv-related h4 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 14px; color: #1A1F35; }
.qv-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qv-related-item { cursor: pointer; transition: transform 0.2s; }
.qv-related-item:hover { transform: translateY(-2px); }
.qv-related-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.qv-ri-name { font-size: 11px; color: #5A6178; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qv-ri-price { font-size: 12px; font-weight: 600; color: #1A1F35; }

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

/* ── Cart Recovery Popup ── */
.cart-recovery {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-recovery.show { opacity: 1; }
.cr-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); }
.cr-modal {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: crSlideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes crSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cr-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #5A6178; cursor: pointer; border: none; z-index: 2; transition: background 0.2s; }
.cr-close:hover { background: rgba(0,0,0,0.1); }
.cr-img { width: 180px; flex-shrink: 0; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; }
.cr-content { padding: 28px 24px; flex: 1; }
.cr-content h3 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1A1F35; }
.cr-content > p { font-size: 14px; color: #5A6178; line-height: 1.5; margin-bottom: 16px; }
.cr-product { background: #F8F5F0; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cr-product strong { font-size: 13px; color: #1A1F35; }
.cr-product span { font-size: 14px; font-weight: 700; color: #9CAF88; }
.cr-actions { display: flex; flex-direction: column; gap: 8px; }
.cr-actions .btn-primary { width: 100%; justify-content: center; font-size: 14px; }
.btn-outline-muted { padding: 10px; border-radius: 12px; font-size: 13px; color: #8B90A0; background: transparent; border: 1px solid #E8DED1; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn-outline-muted:hover { border-color: #5A6178; color: #5A6178; }
.cr-shipping { font-size: 12px; color: #9CAF88; text-align: center; margin-top: 12px; }

@media (max-width: 480px) {
  .cr-modal { flex-direction: column; max-width: 340px; }
  .cr-img { width: 100%; height: 160px; }
  .cr-content { padding: 20px; }
  .cr-content h3 { font-size: 18px; }
}
