/* DeoDap Clone Style System - Premium CSS styling with modern aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables for design system */
:root {
  --primary-color: #0c2340; /* Navy Blue */
  --primary-light: #1b365d;
  --secondary-color: #e31b23; /* DeoDap Red */
  --secondary-hover: #b81017;
  --accent-color: #ff9f1c; /* Yellow-Orange warning */
  --success-color: #2ec4b6; /* Teal green */
  --success-dark: #0f9f90;
  --danger-color: #e71d36;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 15px rgba(227, 27, 35, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Poppins', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background-light);
}
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--primary-color);
}

/* Main Layout Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 1. Header & Top Bar Navigation */
.top-bar {
  background-color: var(--secondary-color);
  color: var(--background-white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 100;
}

.top-bar-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-text {
  animation: pulse 2s infinite;
}

.top-bar-close {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--background-white);
  font-size: 1.1rem;
}

/* Main Navigation Header */
.main-header {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 15px 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  color: var(--background-white);
}

.logo span {
  color: var(--secondary-color);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: var(--background-white);
  color: var(--primary-color);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 5px;
  margin-top: 10px;
}

/* Search Bar styling */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--background-white);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-bar:focus {
  outline: none;
  background-color: var(--background-white);
  color: var(--text-dark);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-glow);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--background-white);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.search-btn:hover {
  background-color: var(--secondary-hover);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--background-white);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.action-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--background-white);
  stroke-width: 1.8;
  fill: none;
  transition: var(--transition-smooth);
}

.action-item:hover {
  color: var(--secondary-color);
}

.action-item:hover svg {
  stroke: var(--secondary-color);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -6px;
  right: 5px;
  background-color: var(--secondary-color);
  color: var(--background-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

/* Category Navigation Bar */
.category-nav {
  background-color: var(--primary-light);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 5%;
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  scrollbar-width: none; /* Firefox */
}

.category-nav::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.nav-link {
  display: inline-block;
  padding: 14px 20px;
  color: var(--background-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.02);
}

/* 2. Main Content & Routing Views */
.main-content {
  flex: 1;
  padding: 30px 5%;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* 3. Homepage Banner Carousel & Hero */
.hero-banner {
  background: linear-gradient(135deg, #1b365d 0%, #0c2340 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: var(--background-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-text h1 {
  color: var(--background-white);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text h1 span {
  color: var(--secondary-color);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btn {
  background-color: var(--secondary-color);
  color: var(--background-white);
  padding: 14px 35px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-block;
  box-shadow: var(--shadow-md);
}

.hero-btn:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-image:hover {
  transform: scale(1.02);
}

/* Category Grid on Home */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

.section-title {
  font-size: 1.6rem;
  font-family: var(--font-title);
  color: var(--primary-color);
}

.categories-scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.category-card {
  background-color: var(--background-white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.category-icon-wrapper {
  background-color: var(--background-light);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon-wrapper {
  background-color: rgba(227, 27, 35, 0.08);
}

.category-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon-wrapper svg {
  stroke: var(--secondary-color);
  transform: scale(1.1);
}

.category-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 4. Products Grid and Card designs */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background-color: var(--background-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 35, 64, 0.15);
}

/* Badges */
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--secondary-color);
  color: var(--background-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  text-transform: uppercase;
}

.moq-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary-color);
  color: var(--background-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
}

.product-img-wrapper {
  background-color: #fff;
  height: 230px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Wholesale Pricing Layout */
.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.wholesale-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

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

.save-percent {
  font-size: 0.8rem;
  color: var(--success-dark);
  font-weight: 600;
  background-color: rgba(46, 196, 182, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.stock-status {
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-dot.in-stock { background-color: var(--success-color); }
.stock-dot.low-stock { background-color: var(--accent-color); }
.stock-dot.out-of-stock { background-color: var(--danger-color); }

.card-btn {
  background-color: var(--primary-color);
  color: var(--background-white);
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.card-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--background-white);
  stroke-width: 2;
  fill: none;
}

.card-btn:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-glow);
}

/* 5. Product Detail View */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.detail-img-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fff;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-cat {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.detail-meta-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.meta-pill {
  background-color: var(--background-light);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.detail-price-box {
  background-color: rgba(12, 35, 64, 0.02);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.detail-price-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-wholesale-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.detail-mrp-price {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 10px;
}

.detail-save-badge {
  font-size: 0.9rem;
  color: var(--success-dark);
  font-weight: 700;
  background-color: rgba(46, 196, 182, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 15px;
  display: inline-block;
  vertical-align: middle;
}

.detail-moq-info {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-moq-info svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 2;
}

.detail-desc-box {
  margin-bottom: 30px;
}

.detail-desc-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-line;
}

/* MOQ-Aware Quantity Selector */
.purchase-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--background-white);
  height: 48px;
  box-shadow: var(--shadow-sm);
}

.qty-btn {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-input {
  width: 60px;
  height: 100%;
  text-align: center;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

.qty-input:focus {
  outline: none;
}

.detail-add-btn {
  flex-grow: 1;
  background-color: var(--secondary-color);
  color: var(--background-white);
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.detail-add-btn:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* 6. Cart and Checkout View Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-items-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.cart-title {
  font-size: 1.4rem;
}

.cart-count {
  background-color: var(--primary-light);
  color: var(--background-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.cart-empty-state {
  text-align: center;
  padding: 50px 20px;
}

.cart-empty-state svg {
  width: 80px;
  height: 80px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 20px;
}

.cart-empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cart-empty-state p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Cart Item Card */
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px;
  background-color: #fff;
  object-fit: contain;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  cursor: pointer;
}

.cart-item-title:hover {
  color: var(--secondary-color);
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-meta span {
  color: var(--secondary-color);
  font-weight: 600;
}

.cart-item-qty-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cart-qty-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cart-item-price-cell {
  text-align: right;
  min-width: 100px;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px;
  margin-left: 15px;
  transition: var(--transition-smooth);
}

.cart-item-remove:hover {
  color: var(--danger-color);
}

.cart-item-remove svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Cart Summary Panel */
.cart-summary-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.wholesale-badge-banner {
  background-color: rgba(46, 196, 182, 0.08);
  border: 1px dashed var(--success-color);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--success-dark);
  font-weight: 600;
}

.checkout-btn {
  background-color: var(--secondary-color);
  color: var(--background-white);
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.checkout-btn:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-glow);
}

.checkout-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--background-white);
  fill: none;
  stroke-width: 2;
}

/* 7. Checkout Page and Orders tracking styles */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.checkout-form-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.payment-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.payment-card.active {
  border-color: var(--secondary-color);
  background-color: rgba(227, 27, 35, 0.02);
}

.payment-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  fill: none;
}

.payment-card.active svg {
  stroke: var(--secondary-color);
}

.payment-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Order Success State Styling */
.success-card {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  max-width: 600px;
  width: 100%;
  margin: 40px auto;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(46, 196, 182, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
}

.success-icon-wrapper svg {
  width: 45px;
  height: 45px;
  stroke: var(--success-color);
  stroke-width: 2.5;
  fill: none;
}

.success-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.success-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.order-id-box {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  margin-bottom: 35px;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.order-id-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.order-id-value {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.success-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-secondary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* Order Tracking View */
.tracking-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.tracking-search-box {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.tracking-input {
  flex-grow: 1;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.tracking-btn {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.tracking-btn:hover {
  background-color: var(--primary-light);
}

.tracking-details {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tracking-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tracking-status-badge.pending {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.tracking-status-badge.shipped {
  background-color: rgba(12, 35, 64, 0.08);
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
}

.tracking-status-badge.delivered {
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--success-dark);
  border: 1px solid var(--success-color);
}

/* Timeline/Progress Bar */
.tracking-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 20px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 15px;
  left: 30px;
  height: 4px;
  background-color: var(--success-color);
  z-index: 1;
  transition: var(--transition-smooth);
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--background-white);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.step-dot svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2.5;
  display: none;
}

.timeline-step.completed .step-dot {
  border-color: var(--success-color);
  background-color: var(--success-color);
  color: var(--background-white);
}

.timeline-step.completed .step-dot svg {
  stroke: var(--background-white);
  display: block;
}

.timeline-step.active .step-dot {
  border-color: var(--success-color);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.2);
  color: var(--success-color);
}

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

.timeline-step.active .step-label, .timeline-step.completed .step-label {
  color: var(--text-dark);
}

.tracking-items-list {
  background-color: var(--background-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.tracking-item-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.tracking-item-row:last-child {
  border-bottom: none;
}

/* 8. Admin Dashboard Panels and Table styling */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  min-height: 600px;
}

.admin-sidebar {
  background-color: var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  box-shadow: var(--shadow-md);
}

.admin-sidebar-title {
  color: var(--background-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 0 15px 15px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.admin-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.admin-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.admin-menu-btn:hover, .admin-menu-btn.active {
  color: var(--background-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-menu-btn.active {
  background-color: var(--secondary-color);
}

.admin-main-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.admin-btn {
  background-color: var(--secondary-color);
  color: var(--background-white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.admin-btn:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-glow);
}

.admin-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: var(--background-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(12, 35, 64, 0.1);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 5px;
}

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-box.blue {
  background-color: rgba(12, 35, 64, 0.08);
  color: var(--primary-color);
}

.stat-icon-box.red {
  background-color: rgba(227, 27, 35, 0.08);
  color: var(--secondary-color);
}

.stat-icon-box.green {
  background-color: rgba(46, 196, 182, 0.08);
  color: var(--success-dark);
}

.stat-icon-box.orange {
  background-color: rgba(255, 159, 28, 0.08);
  color: var(--accent-color);
}

.stat-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background-color: var(--background-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 2px solid var(--border-color);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: rgba(0,0,0,0.01);
}

.table-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fff;
  padding: 2px;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.icon-btn:hover {
  background-color: var(--background-light);
}

.icon-btn.edit:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.icon-btn.delete:hover {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Badge Badges */
.admin-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-badge.low {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--accent-color);
}

.admin-badge.instock {
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--success-dark);
}

.admin-badge.outofstock {
  background-color: rgba(231, 29, 54, 0.1);
  color: var(--danger-color);
}

/* Admin Status Dropdown inside Table */
.status-select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--background-white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.status-select.pending {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.status-select.shipped {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.status-select.delivered {
  color: var(--success-dark);
  border-color: var(--success-color);
}

/* 9. Modals, Notifications, Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 35, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
}

.modal-close {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 5px solid var(--success-color);
}

.toast.error {
  border-left: 5px solid var(--danger-color);
}

.toast.warning {
  border-left: 5px solid var(--accent-color);
}

.toast svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* 10. Footer Layout styling */
.main-footer {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 60px 5% 20px 5%;
  margin-top: 80px;
  border-top: 5px solid var(--secondary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--background-white);
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.footer-brand h3 span {
  color: var(--secondary-color);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-links-col h4 {
  color: var(--background-white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 30px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.3rem;
  }
  .hero-image {
    max-height: 240px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px;
  }
  .detail-img-container {
    height: 350px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-panel {
    position: static;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-header {
    grid-template-columns: auto auto;
    gap: 15px;
    padding: 10px 5%;
  }
  .search-wrapper {
    grid-column: span 2;
    order: 3;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }
  .cart-item-qty-cell {
    grid-column: 1 / span 2;
    flex-direction: row;
    justify-content: space-between;
  }
  .cart-item-price-cell {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 5px;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CUSTOMER AUTHENTICATION & MY ACCOUNT SYSTEM --- */
.auth-wrapper {
  max-width: 450px;
  width: 100%;
  margin: 40px auto;
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease-out;
}

.auth-toggle-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-smooth);
}

.auth-tab.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Profile and Account layouts */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.profile-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.orders-panel {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* User dropdown in header menu */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--background-white);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.user-dropdown-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--background-white);
  stroke-width: 1.8;
  fill: none;
}

.user-dropdown:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  padding: 8px 0;
  margin-top: 5px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.user-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.user-menu-item:hover {
  background-color: var(--background-light);
  color: var(--secondary-color) !important;
}

.user-menu-item:hover svg {
  stroke: var(--secondary-color);
}

@media (max-width: 1024px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FLASH SALE & COUNTDOWN TIMERS --- */
.sale-timer-badge {
  background: linear-gradient(135deg, var(--danger-color) 0%, #b81017 100%);
  color: var(--background-white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  margin-bottom: 5px;
  box-shadow: 0 4px 6px rgba(227, 27, 35, 0.15);
  letter-spacing: 0.5px;
}

.sale-timer-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--background-white);
  fill: none;
  stroke-width: 2.5;
}

.stock-progress-container {
  margin-top: 15px;
  margin-bottom: 5px;
}

.stock-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger-color);
  margin-bottom: 6px;
}

.stock-progress-bar {
  background-color: var(--border-color);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.stock-progress-fill {
  background: linear-gradient(90deg, var(--danger-color) 0%, var(--accent-color) 100%);
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

/* --- PAYMENT GATEWAY SIMULATOR --- */
.payment-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
}

.payment-qr-code {
  background-color: white;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.payment-qr-code svg {
  width: 180px;
  height: 180px;
}

.payment-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--danger-color);
  background-color: rgba(231,29,54,0.06);
  padding: 6px 15px;
  border-radius: 20px;
  margin: 10px 0;
  display: inline-block;
}

.payment-loading-status {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.payment-card-visual {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 15px;
  color: white;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  margin-bottom: 25px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.payment-card-visual.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.card-magnetic-strip {
  width: 100%;
  height: 40px;
  background-color: #000;
  position: absolute;
  left: 0;
  top: 25px;
}

.card-signature-cvv {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 85px;
  height: 35px;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #333;
  font-weight: bold;
}

.card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 6px;
  margin-top: 15px;
}

.card-number-display {
  font-family: monospace;
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-top: 25px;
  word-spacing: 4px;
}

.card-details-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.card-holder-name {
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
