/* ============================================
   ORBITO PREMIUM E-COMMERCE UI
   Color System & Component Styles
   ============================================ */

:root {
  /* Color System */
  --royal-navy: #1E2A44;
  --soft-gold: #F4C97A;
  --warm-ivory: #F6F2ED;
  --white: #FFFFFF;
  --divider: #DED6CC;
  --primary-btn: #1E2A44;
  --secondary-btn: #D4A85F;
  --urgency-red: #C94A4A;
  --success-green: #2E7D32;
  --meesho-peach: #F2B8B5;
  --meesho-dark: #6B2E2B;
  
  /* Typography */
  --heading-color: #1E2A44;
  --body-text: #3A3A3A;
  --muted-text: #7A7A7A;
  --light-gray: #F5F5F5;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.vertical-spacer {
  height: 57px;              /* Line ki height (spacer kitna bada) */
  width: auto;                /* Line ki thickness */
  background-color: #efefef;    /* Line ka color - black (change kar sakte ho, jaise #ccc for gray) */
  margin: 20px auto;         /* Upar-neeche space aur center mein */
  display: block;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', Arial, sans-serif;
  background-color: var(--warm-ivory);
  color: var(--body-text);
  line-height: 1.6;
  padding-bottom: 120px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  background-color: var(--royal-navy);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.orbito-brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--soft-gold);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: background-color 0.3s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background-color: rgba(255, 255, 255, 0.25);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  padding: 4px;
}

.icon-btn:hover {
  color: var(--soft-gold);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--urgency-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ============================================
   SEARCH BAR (BELOW HEADER)
   ============================================ */

.search-bar-section {
  background-color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--divider);
}

.search-bar-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-bar-large {
  width: 100%;
  padding: 12px var(--spacing-md);
  border: 1px solid var(--divider);
  border-radius: 8px;
  background-color: var(--light-gray);
  font-size: 15px;
  color: var(--body-text);
  font-family: inherit;
  transition: all 0.3s;
}

.search-bar-large:focus {
  outline: none;
  border-color: var(--soft-gold);
  background-color: var(--white);
}

/* ============================================
   MEESHO FINDS BAR
   ============================================ */

.meesho-finds-bar {
  background-color: var(--meesho-peach);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid rgba(107, 46, 43, 0.1);
}

.meesho-finds-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--spacing-sm);
}

.meesho-finds-text {
  color: var(--meesho-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: var(--light-gray);
  display: block;
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
}

.product-mrp {
  font-size: 12px;
  color: var(--muted-text);
  text-decoration: line-through;
}

.product-discount {
  font-size: 12px;
  color: var(--urgency-red);
  font-weight: 600;
}

.product-orders {
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: var(--spacing-xs);
}

.product-stock {
  font-size: 12px;
  color: var(--urgency-red);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.deal-badge {
  display: inline-block;
  background-color: var(--urgency-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .cart-container {
    grid-template-columns: 1fr 350px;
  }
}

.cart-items-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.cart-header {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
}

.cart-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--divider);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background-color: var(--light-gray);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: var(--spacing-xs);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-xs);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: fit-content;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--divider);
  background-color: var(--light-gray);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: var(--body-text);
  transition: all 0.3s;
}

.qty-btn:hover {
  background-color: var(--royal-navy);
  color: var(--white);
  border-color: var(--royal-navy);
}

.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--urgency-red);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.3s;
}

.remove-btn:hover {
  color: #a83333;
}

/* ============================================
   ORDER SUMMARY
   ============================================ */

.order-summary {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.summary-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: var(--spacing-sm);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  padding-top: var(--spacing-md);
  border-top: 2px solid var(--divider);
  margin-top: var(--spacing-md);
}

.coupon-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--divider);
  border-radius: 6px;
  margin: var(--spacing-md) 0;
  font-size: 14px;
}

.apply-coupon-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--secondary-btn);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: var(--spacing-md);
}

.apply-coupon-btn:hover {
  background-color: #b89347;
  transform: translateY(-2px);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--royal-navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background-color: #16182e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.profile-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--soft-gold);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-xs);
}

.profile-email {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: var(--spacing-lg);
}

.profile-badge {
  display: inline-block;
  background-color: var(--success-green);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.signout-btn {
  padding: 10px 24px;
  background-color: var(--urgency-red);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.signout-btn:hover {
  background-color: #a83333;
  transform: translateY(-2px);
}

/* ============================================
   PROFILE SECTIONS
   ============================================ */

.profile-sections {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .profile-sections {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-section-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.profile-section-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-icon {
  font-size: 28px;
  color: var(--soft-gold);
}

.section-content {
  flex: 1;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-xs);
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted-text);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .product-detail-container {
    grid-template-columns: 1fr 1fr;
  }
}

.product-image-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background-color: var(--light-gray);
  margin-bottom: var(--spacing-md);
}

.image-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
}

.thumbnail {
  width: 60px;
  height: 60px;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--soft-gold);
}

.product-details-section {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.product-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-md);
}

.rating-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
}

.stars {
  color: #ffc107;
  font-size: 14px;
}

.review-count {
  font-size: 13px;
  color: var(--muted-text);
}

.price-section {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--divider);
}

.current-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-xs);
}

.price-details {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 14px;
}

.original-price {
  color: var(--muted-text);
  text-decoration: line-through;
}

.discount-percent {
  color: var(--success-green);
  font-weight: 600;
}

.info-badges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--divider);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 14px;
}

.badge-icon {
  color: var(--success-green);
  font-size: 18px;
}

.stock-status {
  padding: var(--spacing-md);
  background-color: #e8f5e9;
  border-radius: 6px;
  margin-bottom: var(--spacing-lg);
}

.stock-text {
  font-size: 14px;
  color: var(--success-green);
  font-weight: 600;
}

.timer-section {
  background-color: #fff3e0;
  border-left: 4px solid var(--urgency-red);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: 4px;
}

.timer-label {
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: var(--spacing-xs);
}

.timer {
  font-size: 18px;
  font-weight: 700;
  color: var(--urgency-red);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.btn-primary {
  padding: 14px;
  background-color: var(--royal-navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #16182e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 14px;
  background-color: var(--secondary-btn);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #b89347;
  transform: translateY(-2px);
}

/* ============================================
   BOTTOM NAVIGATION BAR
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--royal-navy);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--spacing-sm) 0;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 0 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: var(--soft-gold);
}

.nav-icon {
  font-size: 24px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 60px var(--spacing-lg);
  background-color: var(--white);
  border-radius: 8px;
}

.empty-state-icon {
  font-size: 80px;
  color: var(--muted-text);
  margin-bottom: var(--spacing-lg);
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: var(--spacing-sm);
}

.empty-state-subtitle {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: var(--spacing-lg);
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--soft-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-md: 12px;
    --spacing-lg: 16px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-sm);
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .profile-sections {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    padding: var(--spacing-xs) 0;
  }

  .nav-icon {
    font-size: 20px;
  }

  .nav-label {
    font-size: 10px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }

  .product-card,
  .btn-primary,
  .btn-secondary,
  .profile-section-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .header,
  .bottom-nav,
  .action-buttons {
    display: none;
  }

  body {
    background-color: var(--white);
  }
}
