/* ==========================================================================
   NexusMart / Motion View Style - Clean White High-End Retail Design System
   Color Palette: Pure White (#FFFFFF), Slate Light (#F8FAFC, #F1F5F9), 
   Accents: Motion Purple (#7c3aed, #6d28d9), Vibrant Orange (#f97316), Cyan (#06b6d4)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #7c3aed;

  --primary-purple: #7c3aed;
  --primary-purple-hover: #6d28d9;
  --primary-purple-light: #f5f3ff;

  --accent-orange: #f97316;
  --accent-orange-light: #fff7ed;

  --accent-cyan: #0284c7;
  --accent-cyan-light: #f0f9ff;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Cards & Shadows */
.white-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.25s ease;
}
.white-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

/* Product Card - Exact Motion View 100% Match */
.product-card-clean {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
  .product-card-clean {
    border-radius: 12px;
    padding: 14px;
  }
}
.product-card-clean:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

.product-img-wrapper {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .product-img-wrapper {
    margin-bottom: 12px;
  }
}
.product-img-wrapper svg {
  transition: transform 0.4s ease;
}
.product-card-clean:hover .product-img-wrapper svg {
  transform: scale(1.05);
}

/* Product Card Title */
.product-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1e293b;
  font-size: 11.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1rem;
  margin-bottom: 4px;
}
@media (min-width: 640px) {
  .product-card-title {
    font-size: 12.5px;
    min-height: 2.4rem;
    margin-bottom: 6px;
  }
}

/* Discount Badge */
.discount-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 5;
}
@media (min-width: 640px) {
  .discount-tag {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    top: 10px;
    left: 10px;
  }
}

/* Brand Badge Top Right */
.brand-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  z-index: 5;
}
@media (min-width: 640px) {
  .brand-tag {
    top: 10px;
    right: 10px;
    font-size: 10px;
  }
}

/* Warranty Tag Bottom Right of Image */
.warranty-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: 800;
  background: #ffedd5;
  color: #ea580c;
  padding: 1px 4px;
  border-radius: 4px;
  z-index: 5;
}
@media (min-width: 640px) {
  .warranty-tag {
    bottom: 6px;
    right: 6px;
    font-size: 10px;
    padding: 1px 6px;
  }
}

/* Add to Cart Bag Button */
.btn-bag-add {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
@media (min-width: 640px) {
  .btn-bag-add {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
}
.btn-bag-add:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.04);
}

/* Circular Category Item - Ultra-Premium Corporate E-Commerce Styling */
.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 2px;
}

.category-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  margin-bottom: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .category-circle-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 8px;
  }
}

.category-circle-item:hover .category-circle-icon {
  background: #ffffff;
  border-color: #0f172a;
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .category-title {
    font-size: 12px;
  }
}

.category-circle-item:hover .category-title {
  color: #0f172a;
  font-weight: 700;
}

/* 3-Section Tab Pills - Clean, Premium Executive Business Style */
.tab-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@media (min-width: 640px) {
  .tab-pill {
    padding: 7px 16px;
    font-size: 12.5px;
    gap: 8px;
  }
}

.tab-pill:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

.tab-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.16);
}

.tab-pill.active svg {
  color: #ffffff;
}

.tab-pill-badge {
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 9.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .tab-pill-badge {
    padding: 2px 7px;
    font-size: 10.5px;
  }
}

.tab-pill.active .tab-pill-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Drawers & Modals */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.open .drawer-panel {
  transform: translateX(0);
}

.modal-wrapper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-wrapper.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-content-box {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-wrapper.open .modal-content-box {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 75px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 768px) {
  #toast-container {
    bottom: 24px;
    right: 24px;
    gap: 10px;
  }
}
.toast-card {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s ease forwards;
  transition: all 0.25s ease;
}
.toast-card.fade-out {
  opacity: 0;
  transform: translateX(40px);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 68px;
  }
}

/* ==========================================================================
   Dedicated Product Details Page (PDP) - Clean Luxury Retail Styling
   ========================================================================== */
#product-detail-view {
  animation: fadeInPDP 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Gallery Box */
.pdp-gallery-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
@media (min-width: 640px) {
  .pdp-gallery-box {
    padding: 24px;
    border-radius: 20px;
  }
}

/* Fast Order Section */
.pdp-fast-order-card {
  background: #ffffff;
  border: 2px solid #7c3aed;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08), 0 8px 10px -6px rgba(124, 58, 237, 0.04);
  position: relative;
}
@media (min-width: 640px) {
  .pdp-fast-order-card {
    padding: 24px;
    border-radius: 20px;
  }
}

.delivery-option-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.delivery-option-btn.selected {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}
.delivery-option-btn:hover {
  border-color: #cbd5e1;
}

/* PDP Tabs */
.pdp-tab-nav-btn {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pdp-tab-nav-btn.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

/* Specifications Table */
.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-specs-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.pdp-specs-table tr:last-child {
  border-bottom: none;
}
.pdp-specs-table td {
  padding: 10px 12px;
  font-size: 12px;
}
@media (min-width: 640px) {
  .pdp-specs-table td {
    padding: 12px 16px;
    font-size: 13px;
  }
}
.pdp-specs-table td:first-child {
  color: #64748b;
  font-weight: 500;
  width: 38%;
  background: #f8fafc;
  border-radius: 6px 0 0 6px;
}
.pdp-specs-table td:last-child {
  color: #0f172a;
  font-weight: 600;
}

/* Trust Tiles */
.pdp-trust-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.pdp-copy-link-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #475569;
}

/* Sticky Mobile Order Bar */
.pdp-mobile-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .pdp-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 14px;
    box-shadow: 0 -4px 15px -3px rgba(15, 23, 42, 0.08);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

