/* ==========================================================================
   TIME WORLD - UI COMPONENTS, MODALS & INTERACTIVE WIDGETS
   ========================================================================== */

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Product Card */
.product-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

.product-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.product-actions-floating {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.8);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-action-btn:hover {
  background: var(--gold-primary);
  color: #000;
  transform: scale(1.1);
}

.card-action-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
}

/* Product Media */
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #080a0f;
  overflow: hidden;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.product-card:hover .product-quick-view-overlay {
  opacity: 1;
}

/* Product Content */
.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-title:hover {
  color: var(--gold-light);
}

.product-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #f59e0b;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 14px;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-primary);
  font-family: var(--font-heading);
}

.old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
  right: 0;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all var(--transition-fast);
}

.cart-close-btn:hover {
  background: #e11d48;
  color: #fff;
  transform: rotate(90deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3.5rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-val {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: #f43f5e;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 12, 18, 0.9);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 12px;
}

.cart-summary-row.total .gold-val {
  color: var(--gold-primary);
  font-family: var(--font-heading);
}

/* ==========================================================================
   MODALS (GENERIC & SPECIFIC)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), var(--gold-glow);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e11d48;
  color: #fff;
  transform: rotate(90deg);
}

/* Quick Checkout Modal Styling */
.checkout-modal-body {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

/* Payment Selector Pill Group */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.payment-method-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.payment-method-card:hover {
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.05);
}

.payment-method-card.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.payment-method-card i {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.payment-method-card .method-name {
  font-size: 0.85rem;
  font-weight: 700;
}

/* BKash/Nagad Info Box */
.mobile-banking-info-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(225, 29, 72, 0.08);
  border: 1px dashed rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.6;
}

.mobile-banking-info-box.nagad-box {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.4);
}

/* Wrist Visualizer Simulator */
.wrist-sim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.wrist-view-canvas {
  width: 100%;
  max-width: 440px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 12, 18, 0.9) 80%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.wrist-arm-mockup {
  position: absolute;
  height: 110px;
  background: linear-gradient(180deg, #c58c65 0%, #a26c45 100%);
  border-radius: 50px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: width 0.3s ease;
}

.wrist-watch-mockup {
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.wrist-watch-mockup img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* Order Tracker Stepper */
.tracker-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0;
}

.tracker-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.tracker-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex: 1;
}

.step-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-smooth);
}

.tracker-step.completed .step-icon-circle {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.tracker-step.current .step-icon-circle {
  background: #000;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  animation: pulseGold 2s infinite;
}

.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.tracker-step.completed .step-title,
.tracker-step.current .step-title {
  color: var(--text-primary);
}

/* Compact Sleek Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 400;
  max-width: 290px;
  pointer-events: none;
}

.toast-card {
  background: rgba(8, 11, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

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

.toast-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.toast-time {
  font-size: 0.64rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* ==========================================================================
   CUSTOMER REVIEWS CAROUSEL COMPONENT
   ========================================================================== */
.reviews-section {
  padding: 3.5rem 0 1rem;
  position: relative;
}

.reviews-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0.25rem 1.5rem;
  margin: 0 -0.25rem;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.review-card-luxury {
  flex: 0 0 340px;
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.95) 0%, rgba(6, 9, 14, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.review-card-luxury:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.12);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.review-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
}

.review-author-loc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 1px;
}

.review-stars-row {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.review-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.review-quote-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #cbd5e1;
  font-style: italic;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 2rem 0 0.5rem;
  }
  .review-card-luxury {
    flex: 0 0 280px;
    padding: 1rem;
  }
}
