/* ==========================================================================
   TechOrbit Live Demo: VerveLifestyle D2C E-Commerce Storefront
   ========================================================================== */

:root {
  --ecom-primary: #E11D48;
  --ecom-primary-dark: #BE123C;
  --ecom-primary-light: #FFE4E6;
  --ecom-accent: #0D9488;
  --ecom-accent-light: #F0FDFA;
  --ecom-gold: #F59E0B;
  --ecom-text-main: #0F172A;
  --ecom-text-body: #334155;
  --ecom-text-muted: #64748B;
  --ecom-bg: #FFFFFF;
  --ecom-bg-subtle: #F8FAFC;
  --ecom-border: #E2E8F0;
  --ecom-radius: 12px;
  --ecom-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --ecom-shadow-lg: 0 20px 35px -10px rgba(225, 29, 72, 0.18);
  --ecom-font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ecom-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="indigo"] {
  --ecom-primary: #4F46E5;
  --ecom-primary-dark: #3730A3;
  --ecom-primary-light: #EEF2FF;
  --ecom-shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.18);
}

[data-theme="emerald"] {
  --ecom-primary: #059669;
  --ecom-primary-dark: #047857;
  --ecom-primary-light: #ECFDF5;
  --ecom-shadow-lg: 0 20px 35px -10px rgba(5, 150, 105, 0.18);
}

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

body {
  font-family: var(--ecom-font-body);
  color: var(--ecom-text-body);
  background-color: var(--ecom-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ecom-font-head);
  color: var(--ecom-text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------- TOP DEMO TOOLBAR ---------------- */
.demo-top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ecom-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.demo-top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-badge-live {
  background: #10B981;
  color: #FFFFFF;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.demo-top-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.775rem;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-pill-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-return-techorbit {
  background: #3B82F6;
  color: #FFFFFF;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-return-techorbit:hover {
  transform: translateY(-1px);
}

/* ---------------- ECOM HEADER ---------------- */
.ecom-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ecom-border);
  position: sticky;
  top: 45px;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ecom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.ecom-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ecom-text-main);
  text-decoration: none;
}

.ecom-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--ecom-primary) 0%, var(--ecom-primary-dark) 100%);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.ecom-nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.ecom-nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ecom-text-body);
  transition: color 0.2s;
}

.ecom-nav-links a:hover {
  color: var(--ecom-primary);
}

.ecom-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ecom-icon-btn {
  background: var(--ecom-bg-subtle);
  border: 1px solid var(--ecom-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.ecom-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--ecom-primary);
  transform: translateY(-1px);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ecom-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.ecom-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ecom-text-main);
}

/* ---------------- HERO PROMO BANNER ---------------- */
.ecom-hero {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.ecom-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.ecom-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(225, 29, 72, 0.2);
  color: #FDA4AF;
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ecom-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.ecom-hero h1 span {
  background: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ecom-hero p {
  color: #CBD5E1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.ecom-timer-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.timer-unit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  text-align: center;
  min-width: 65px;
}

.timer-unit span:first-child {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  color: #FFFFFF;
  line-height: 1.1;
}

.timer-unit span:last-child {
  font-size: 0.65rem;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 700;
}

.ecom-btn-primary {
  background: linear-gradient(135deg, var(--ecom-primary) 0%, var(--ecom-primary-dark) 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 0.85rem 1.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.5);
  transition: all 0.2s;
  text-decoration: none;
}

.ecom-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(225, 29, 72, 0.6);
}

.ecom-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.ecom-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

/* ---------------- CATEGORY PILLS BAR ---------------- */
.category-filter-section {
  padding: 2.5rem 0 1.5rem;
  background: #FFFFFF;
}

.category-pills-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.filter-pills-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-pill-btn {
  background: var(--ecom-bg-subtle);
  border: 1px solid var(--ecom-border);
  color: var(--ecom-text-body);
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill-btn:hover, .cat-pill-btn.active {
  background: var(--ecom-primary);
  border-color: var(--ecom-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

/* ---------------- PRODUCT GRID ---------------- */
.product-grid-section {
  padding: 1rem 0 4rem;
  background: #FFFFFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  overflow: hidden;
  box-shadow: var(--ecom-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ecom-shadow-lg);
  border-color: rgba(225, 29, 72, 0.3);
}

.product-img-wrapper {
  height: 240px;
  position: relative;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.product-category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  font-size: 0.8rem;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ecom-text-main);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.825rem;
  color: var(--ecom-text-muted);
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ecom-border);
  padding-top: 0.85rem;
}

.product-price-box {
  line-height: 1.2;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ecom-text-main);
}

.price-original {
  font-size: 0.8rem;
  color: var(--ecom-text-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
}

.btn-add-cart {
  background: var(--ecom-primary);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background: var(--ecom-primary-dark);
  transform: scale(1.03);
}

/* ---------------- SLIDING CART OFFCANVAS DRAWER ---------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  background: #FFFFFF;
  z-index: 2001;
  box-shadow: -10px 0 35px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--ecom-text-muted);
}

.free-ship-bar {
  background: var(--ecom-accent-light);
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ecom-accent);
  border-bottom: 1px solid var(--ecom-border);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ecom-border);
  align-items: center;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  background: #F1F5F9;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ecom-text-main);
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ecom-primary);
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--ecom-border);
  background: var(--ecom-bg-subtle);
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--ecom-border);
  background: var(--ecom-bg-subtle);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ecom-text-main);
  margin: 0.75rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ecom-border);
}

/* ---------------- CHECKOUT & ORDER MODAL ---------------- */
.ecom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ecom-modal-overlay.active {
  display: flex;
}

.ecom-modal-window {
  background: #FFFFFF;
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ---------------- MOBILE RESPONSIVENESS ---------------- */
@media (max-width: 992px) {
  .ecom-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ecom-nav-links {
    display: none;
  }
  .ecom-hamburger-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .demo-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
  }
  .demo-top-bar-left {
    justify-content: space-between;
    font-size: 0.8rem;
  }
  .demo-top-bar-controls {
    justify-content: space-between;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .product-img-wrapper {
    height: 180px;
  }
  .product-info {
    padding: 0.85rem;
  }
  .product-title {
    font-size: 0.925rem;
  }
  .price-current {
    font-size: 1.05rem;
  }
  .btn-add-cart {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-img-wrapper {
    height: 220px;
  }
  .ecom-timer-box {
    gap: 0.4rem;
  }
  .timer-unit {
    min-width: 52px;
    padding: 0.4rem 0.5rem;
  }
  .timer-unit span:first-child {
    font-size: 1.1rem;
  }
}
