/* 
  E-commerce Single Vendor CSS System 
  Inspired by Myntra Design & Layouts
*/

:root {
  --primary-color: #fb7701;
  --primary-hover: #e56a00;
  --text-dark: #222222;
  --text-muted: #757575;
  --text-light: #9e9e9e;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-light: #eeeeee;
  --border-dark: #d6d6d6;
  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-card: rgba(0, 0, 0, 0.08);
  --success-color: #0a8800;
  --warn-color: #fb7701;
  --font-stack: Nunito, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-stack);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- COMMON UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.badge {
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
}

/* --- HEADER DESIGN --- */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  box-shadow: 0 4px 12px var(--shadow-light);
  z-index: 1000;
  height: 80px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dark);
}

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

.nav-menu {
  display: flex;
  height: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-dark);
  border-bottom: 4px solid transparent;
  display: inline-block;
  line-height: 80px;
  height: 80px;
}

.nav-item:hover .nav-link {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Dropdown styling */
.nav-dropdown {
  position: absolute;
  top: 80px;
  left: 0;
  background-color: var(--bg-white);
  width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 999;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

.nav-dropdown li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 24px;
}

/* Search Box */
.search-container {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid var(--bg-light);
  background-color: var(--bg-light);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.search-input:focus {
  background-color: var(--bg-white);
  border-color: var(--border-dark);
  box-shadow: 0 0 4px var(--shadow-light);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
}

.action-btn:hover {
  color: var(--primary-color);
}

.action-btn svg {
  margin-bottom: 4px;
  width: 20px;
  height: 20px;
}

/* User Action Dropdown (Profile) */
.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 55px;
  right: -50px;
  background-color: var(--bg-white);
  width: 250px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
}

.user-dropdown-welcome {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.user-dropdown-welcome h3 {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.user-dropdown-welcome p {
  font-size: 12px;
  color: var(--text-muted);
}

.user-dropdown-links a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-dark);
}

.user-dropdown-links a:hover {
  font-weight: 700;
  color: var(--primary-color);
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-dark);
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  margin-top: 10px;
}

.auth-btn:hover {
  border-color: var(--primary-color);
  background-color: rgba(255, 63, 108, 0.02);
}

/* --- HOME PAGE SLIDER & CONTENT --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background-color: #fff2f5;
  margin-bottom: 40px;
  height: 380px;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: var(--text-dark);
  z-index: 10;
}

.slide-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.slide-content .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Slider buttons */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--bg-white);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Categories Grid Circles */
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 30px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 8px auto 0;
}

.categories-circle-grid {
  display: flex;
  justify-content: space-around;
  margin-bottom: 60px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  cursor: pointer;
}

.circle-img-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border-light);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.category-circle-item:hover .circle-img-container {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.circle-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle-item span {
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text-dark);
}

/* Shop Banners Grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.promo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.promo-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--bg-white);
}

.promo-overlay h4 {
  font-size: 18px;
  font-weight: 700;
}

.promo-overlay p {
  font-size: 13px;
  opacity: 0.9;
}

/* --- PRODUCT LIST PAGE --- */
.product-list-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 30px 0;
}

/* Filters Sidebar */
.filter-sidebar {
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}

.filter-section {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.filter-section:first-child {
  padding-top: 0;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-list label {
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Products Grid */
.list-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.results-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.results-count span {
  font-weight: 700;
  color: var(--text-dark);
}

.sort-dropdown select {
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 13px;
  background-color: var(--bg-white);
  cursor: pointer;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
}

/* Product Card */
.product-card {
  position: relative;
  background-color: var(--bg-white);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: none;
}

.product-card:hover .card-img-wrapper img {
  transform: none;
}

/* Rating badge inside card */
.rating-capsule {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-capsule svg {
  width: 10px;
  height: 10px;
  fill: #ffc107;
}

.card-info {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  text-transform: capitalize;
}

.product-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.discount-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.original-price {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-tag {
  font-size: 10px;
  font-weight: 700;
  color: #ff905a;
}

/* Action Wishlist Hover Trigger */
.wishlist-btn-absolute {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--bg-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-center: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 5;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
}

.wishlist-btn-absolute:hover {
  transform: scale(1.1);
}

.wishlist-btn-absolute.active svg {
  fill: var(--primary-color);
  stroke: var(--primary-color);
}

/* --- PRODUCT VIEW PAGE --- */
.product-detail-layout {
  display: flex;
  flex-wrap: wrap;
}

/* Detail Gallery - Modern Layout */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-sizing: border-box;
}

.gallery-slides-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}
.gallery-slides-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 480px;
  max-height: 480px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-sizing: border-box;
}

.gallery-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
  padding-bottom: 4px;
  box-sizing: border-box;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 70px;
  height: 85px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
  flex-shrink: 0;
  box-sizing: border-box;
}
.gallery-thumb:hover { opacity: 1; transform: scale(1.03); border-color: var(--primary-color); }
.gallery-thumb.active { opacity: 1; border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); }

/* Detail Info */
.info-section {
  padding-left: 10px;
}

.detail-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.detail-name {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
  cursor: pointer;
}

.detail-rating:hover {
  border-color: var(--border-dark);
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.detail-discount-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.detail-original-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

.detail-discount-tag {
  font-size: 16px;
  font-weight: 700;
  color: #ff905a;
}

/* Size options box */
.size-title-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.size-select-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.size-chart-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
}

.sizes-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  border: 1.5px solid var(--border-dark);
  background-color: var(--bg-white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

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

.size-btn.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Action Buttons Cart/Wishlist */
.cart-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.add-bag-btn {
  flex-grow: 2;
  height: 52px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.add-bag-btn:hover {
  background-color: var(--primary-hover);
}

.wishlist-btn-detail {
  flex-grow: 1;
  height: 52px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wishlist-btn-detail:hover {
  border-color: var(--text-dark);
}

.wishlist-btn-detail.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Pincode Checker Panel */
.pincode-panel {
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.pincode-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pincode-input-box {
  display: flex;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
  max-width: 280px;
  margin-bottom: 12px;
}

.pincode-input-box input {
  padding: 10px 14px;
  border: none;
  font-size: 13px;
  flex-grow: 1;
}

.pincode-input-box button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 12px;
  padding: 0 15px;
  cursor: pointer;
}

.pincode-message {
  font-size: 12px;
  font-weight: 600;
}

.pincode-message.success { color: var(--success-color); }
.pincode-message.error { color: var(--primary-color); }

/* --- CART PAGE (SHOPPING BAG) --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 40px 0;
}

.cart-items-panel {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

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

.cart-item-img {
  width: 88px;
  height: 110px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}

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

.cart-item-brand {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-details {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.cart-item-detail-tag {
  background-color: var(--bg-light);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.cart-item-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-item-remove {
  position: absolute;
  top: 20px;
  right: 0;
  cursor: pointer;
  color: var(--text-muted);
}

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

/* Price Details Summary Side Panel */
.checkout-summary-panel {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 24px;
  background-color: var(--bg-white);
  height: fit-content;
}

.summary-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.price-row.discount-row {
  color: var(--success-color);
}

.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}

.place-order-btn {
  display: block;
  width: 100%;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  text-align: center;
  line-height: 48px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 24px;
  cursor: pointer;
  border: none;
}

.place-order-btn:hover {
  background-color: var(--primary-hover);
}

/* Coupon Box */
.coupon-box {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.coupon-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.coupon-input-group {
  display: flex;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
}

.coupon-input-group input {
  padding: 8px 12px;
  border: none;
  font-size: 13px;
  flex-grow: 1;
  text-transform: uppercase;
}

.coupon-input-group button {
  background-color: var(--bg-light);
  border: none;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0 15px;
  cursor: pointer;
}

.coupon-input-group button:hover {
  background-color: var(--border-light);
}

/* --- STATE INDICATORS PAGE --- */
.checkout-progress {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.step-item {
  color: var(--text-light);
  position: relative;
}

.step-item.active {
  color: var(--primary-color);
}

.step-item::after {
  content: ' ---------- ';
  color: var(--border-dark);
  margin-left: 20px;
}

.step-item:last-child::after {
  content: none;
}

/* --- ADDDRESS FORM --- */
.address-layout {
  max-width: 580px;
  margin: 40px auto;
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
}

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

.radio-group-horizontal {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-group-horizontal label {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* --- PAYMENT CHANNELS --- */
.payment-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 40px auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  min-height: 380px;
}

.payment-modes-tabs {
  background-color: var(--bg-light);
  border-right: 1px solid var(--border-light);
}

.payment-tab-btn {
  display: block;
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-tab-btn.active {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.payment-tab-content-panel {
  padding: 30px;
  background-color: var(--bg-white);
}

.payment-content-block {
  display: none;
}

.payment-content-block.active {
  display: block;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  margin: 15px 0;
  border: 1.5px solid var(--border-dark);
  padding: 5px;
}

/* --- LOGIN SIGNUP STYLE --- */
.auth-layout {
  max-width: 400px;
  margin: 60px auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.auth-header-banner {
  background-color: #ffeff3;
  padding: 30px;
  text-align: center;
}

.auth-header-banner h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-header-banner p {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-body-container {
  padding: 30px;
  background-color: var(--bg-white);
}

.auth-agreement-text {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 15px;
  line-height: 1.5;
}

.auth-agreement-text a {
  color: var(--primary-color);
  font-weight: 700;
}

/* --- FOOTER LAYOUT --- */
footer {
  background-color: var(--bg-light);
  padding: 50px 0 20px;
  margin-top: 80px;
  border-top: 1px solid var(--border-light);
}

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

.footer-column-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links-list li {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-list li a:hover {
  color: var(--text-dark);
  padding-left: 2px;
}

.policy-block-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.policy-icon {
  width: 38px;
  height: 38px;
}

.policy-text {
  font-size: 13px;
  color: var(--text-muted);
}

.policy-text strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}

.footer-bottom-copyright {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

/* --- EMPTY AND MESSAGES --- */
.empty-state-panel {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 120px;
  margin: 0 auto 20px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-primary-main {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

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

.btn-outline-main {
  display: inline-block;
  background-color: var(--bg-white);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}

.btn-outline-main:hover {
  border-color: var(--text-dark);
}

/* Success Card */
.order-success-card {
  max-width: 500px;
  margin: 60px auto;
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-light);
  text-align: center;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(3, 166, 133, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--success-color);
}

.success-icon-badge svg {
  width: 32px;
  height: 32px;
  stroke: var(--success-color);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .product-list-layout {
    grid-template-columns: 200px 1fr;
  }
  .products-grid {
    gap: 10px;
  }
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 24px 0;
  }
  .gallery-item {
    height: 420px;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  /* Compact top strips */
  .cod-strip, .notify-bar {
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.35;
  }
  header {
    height: 60px;
  }
  .header-content {
    height: 60px;
  }
  .nav-menu, .search-container {
    display: none;
  }
  .hero-slider {
    height: 220px;
  }
  .slide-content h2 {
    font-size: 22px;
  }
  .product-list-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .products-grid {
    gap: 10px;
  }

  /* Product Details Layout - Mobile Polish */
  .product-detail-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 16px !important;
    padding: 10px 0 100px !important;
    box-sizing: border-box !important;
  }
  .product-detail-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .detail-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .gallery-slider-wrap {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    border: 1px solid #f0f0f2 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  .gallery-slides-track {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .gallery-slides-track::-webkit-scrollbar { display: none !important; }
  .gallery-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .gallery-slide img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
  }
  .gallery-nav-btn {
    display: none !important;
  }
  .gallery-counter {
    position: absolute !important;
    bottom: 12px !important;
    right: 14px !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(4px) !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    z-index: 5 !important;
  }
  .gallery-thumbs {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
    margin: 0 auto !important;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none !important; }
  .gallery-thumb {
    width: 52px !important;
    height: 65px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1.5px solid transparent !important;
    flex-shrink: 0 !important;
    opacity: 0.75 !important;
    background: #f8f8f9 !important;
    box-sizing: border-box !important;
  }
  .gallery-thumb.active {
    opacity: 1 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color) !important;
  }
  .info-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .detail-brand {
    font-size: 20px;
    font-weight: 800;
    color: #282c3f;
    margin-bottom: 4px;
  }
  .detail-name {
    font-size: 14px;
    color: #535766;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #eaeaec;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    background: #fff;
  }
  .detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f2;
    flex-wrap: wrap;
  }
  .detail-discount-price {
    font-size: 22px;
    font-weight: 800;
    color: #282c3f;
  }
  .detail-original-price {
    font-size: 14px;
    color: #94969f;
    text-decoration: line-through;
  }
  .detail-discount-tag {
    font-size: 14px;
    font-weight: 700;
    color: #ff905a;
  }
  .size-title-container {
    margin-bottom: 10px;
  }
  .size-select-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #282c3f;
    letter-spacing: 0.5px;
  }
  .sizes-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .size-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 22px;
    border: 1px solid #d4d5d9;
    background: #fff;
    color: #282c3f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
  }
  .size-btn:hover {
    border-color: var(--primary-color);
  }
  .size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 63, 108, 0.3);
  }
  .cart-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
    gap: 12px !important;
  }
  .add-bag-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Product Sticky Bottom Buy Bar (Flipkart / Myntra mobile standard) */
.product-mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .product-mobile-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    padding: 8px 12px !important;
    border-top: 1px solid #eaeaec !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    z-index: 3000 !important;
    overflow: hidden !important;
  }
  .mobile-bar-icon-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #535766 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    min-width: 36px !important;
    box-sizing: border-box !important;
  }
  .mobile-bar-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .mobile-bar-badge {
    position: absolute !important;
    top: -4px !important;
    right: -2px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    min-width: 14px !important;
    text-align: center !important;
  }
  .mobile-bar-price-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .m-bar-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #282c3f !important;
    white-space: nowrap !important;
  }
  .m-bar-subline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .m-bar-orig {
    font-size: 11px !important;
    color: #94969f !important;
    text-decoration: line-through !important;
  }
  .m-bar-off {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ff905a !important;
  }
  .mobile-bar-add-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 10px !important;
    box-shadow: 0 4px 12px rgba(255, 63, 108, 0.35) !important;
    transition: transform 0.1s ease, background-color 0.2s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  .mobile-bar-add-btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mobile-bar-add-btn:active {
    transform: scale(0.98) !important;
    background: var(--primary-hover) !important;
  }
}

/* Size pulse highlight animation */
@keyframes sizePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 63, 108, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(255, 63, 108, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 63, 108, 0); }
}
.highlight-pulse {
  animation: sizePulse 0.5s ease 2;
  border-radius: 8px;
  background: rgba(255, 63, 108, 0.05);
  padding: 4px;
}

@media (max-width: 480px) {
  .product-detail-layout {
    gap: 14px;
    padding: 0 0 95px !important;
  }
  .gallery-slide {
    height: 340px !important;
    max-height: 340px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .gallery-slide img {
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: auto !important;
  }
  .gallery-thumb {
    width: 48px;
    height: 62px;
  }
  .size-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }
}

