/**
 * ==========================================================================
 * SnapMarket - Complete CSS3 Stylesheet (India E-Commerce Edition)
 * Shopee-inspired modern UI/UX with smooth transitions and responsive layouts
 * ==========================================================================
 */

:root {
  --primary: #ee4d2d;
  --primary-hover: #d73211;
  --primary-light: #fff5f2;
  --primary-border: #ffb7a8;
  --secondary: #26aa99;
  --dark: #222222;
  --text-main: #333333;
  --text-muted: #757575;
  --text-light: #9e9e9e;
  --bg-page: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --mall-red: #d0011b;
  --preferred-red: #ee4d2d;
  --yellow-star: #ffce3d;
  --shadow-sm: 0 1px 1px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   Desktop Top Utility Bar & Header
   ========================================================================== */

.topbar-wrapper {
  background: linear-gradient(-180deg, #f53d2d, #f63);
  color: #fff;
  font-size: 13px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar a {
  color: #fff;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  opacity: 1;
}

.topbar-divider {
  width: 1px;
  height: 13px;
  background-color: rgba(255, 255, 255, 0.4);
}

.header-main-wrapper {
  background: linear-gradient(-180deg, #f63, #ee4d2d);
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-area:hover {
  opacity: 0.94;
  transform: scale(1.02);
}

.main-brand-logo {
  height: 46px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

/* Shopee-style Topbar Auth & User Dropdown */
.topbar-auth-link {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none;
  padding: 2px 4px;
  transition: opacity 0.2s;
  cursor: pointer;
}
.topbar-auth-link:hover {
  opacity: 0.8 !important;
}

.topbar-user-dropdown {
  position: relative;
  display: inline-block;
}

.topbar-user-btn {
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.topbar-user-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.topbar-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.topbar-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  min-width: 170px;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border: 1px solid #ebebeb;
  z-index: 10001;
  padding: 6px 0;
  animation: dropdownFadeIn 0.2s ease-out;
}
.topbar-user-dropdown:hover .topbar-user-menu,
.topbar-user-menu.show {
  display: block;
}

.topbar-user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #333 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topbar-user-menu a:hover {
  background: #f8f9fa;
  color: #ee4d2d !important;
}

.topbar-user-menu-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-logo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.app-download-square-logo {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.brand-text {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.brand-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: normal;
  letter-spacing: 0.5px;
  display: block;
  margin-top: -2px;
}

/* Search Bar */
.search-section {
  flex: 1;
  position: relative;
}

.search-box-form {
  display: flex;
  background: #fff;
  border-radius: 3px;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.mobile-search-icon {
  display: none;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
}

.search-btn {
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  height: 38px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

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

.search-btn:active {
  transform: scale(0.97);
}

/* Quick Search Tags */
.quick-tags {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.quick-tags a {
  color: rgba(255, 255, 255, 0.9);
}

.quick-tags a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Live Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggestion-item:hover {
  background-color: #fafafa;
}

.suggestion-thumb {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.suggestion-info {
  flex: 1;
}

.suggestion-name {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-top: 2px;
}

.suggestion-price {
  color: var(--primary);
  font-weight: bold;
}

.suggestion-sold {
  color: var(--text-light);
  font-size: 11px;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-chat-btn {
  display: none;
}

/* Cart Icon Button */
.cart-area {
  position: relative;
  padding: 0 4px;
}

.cart-icon-btn {
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.cart-icon-btn svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bounce {
  animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Cart Dropdown Preview */
.cart-dropdown {
  position: absolute;
  top: 100%;
  right: -20px;
  width: 380px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 1000;
  border: 1px solid var(--border-light);
}

.cart-area:hover .cart-dropdown {
  display: block;
  animation: fadeIn 0.2s ease;
}

.cart-dropdown-header {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.cart-dropdown-list {
  max-height: 260px;
  overflow-y: auto;
}

.cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-dropdown-thumb {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  object-fit: cover;
}

.cart-dropdown-title {
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.cart-dropdown-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.cart-dropdown-footer {
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-cart-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.view-cart-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Hero Banner Carousel & Side Promos
   ========================================================================== */

.hero-section {
  padding: 24px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.hero-slider-container {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  background: #222;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 30px;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 480px;
}

.hero-tag {
  background: #ff5722;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-cta {
  background: #fff;
  color: var(--primary);
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  background: #fdf0ec;
  transform: translateX(3px);
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 10px;
}

.side-promos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 240px;
}

.side-promo-card {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  transition: transform 0.2s ease;
}

.side-promo-card:hover {
  transform: translateY(-2px);
}

.side-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.side-promo-text {
  position: relative;
  z-index: 2;
}

.side-promo-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.side-promo-desc {
  font-size: 11px;
  opacity: 0.85;
}

/* ==========================================================================
   Quick Icons Services Bar
   ========================================================================== */

.quick-services-bar {
  background: #fff;
  border-radius: 4px;
  padding: 18px 10px;
  margin: 14px 0 20px;
  box-shadow: var(--shadow-sm);
}

.quick-services-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item:active {
  transform: scale(0.95);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover .service-icon-wrap {
  transform: scale(1.1);
}

.service-icon-wrap img {
  width: 42px;
  height: 42px;
}

.service-title {
  font-size: 12px;
  color: #222;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100px;
}

/* ==========================================================================
   Categories Section (2 Rows x 10 Columns Grid)
   ========================================================================== */

.section-block {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.category-card {
  padding: 16px 8px 12px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  background: #fff;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  z-index: 2;
}

.category-card:active {
  transform: scale(0.95);
}

.cat-img-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
}

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

.category-card:hover .cat-img-wrapper img {
  transform: scale(1.1);
}

.cat-title {
  font-size: 12px;
  color: #333;
  line-height: 1.25;
  height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Flash Deals Section with Live Countdown
   ========================================================================== */

.flash-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.flash-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-logo-text {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}

.flash-logo-text svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
}

.time-digit {
  background: #000;
  color: #fff;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.time-sep {
  color: #000;
  font-weight: bold;
}

.see-all-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-all-link:hover {
  text-decoration: underline;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 16px 20px;
}

.flash-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  position: relative;
}

.flash-card:hover {
  transform: translateY(-3px);
}

.flash-card:active {
  transform: scale(0.96);
}

.flash-img-box {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #f9f9f9;
}

.flash-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.flash-card:hover .flash-img-box img {
  transform: scale(1.05);
}

.flash-discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 230, 0, 0.95);
  color: var(--primary);
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 800;
  border-bottom-left-radius: 4px;
}

.flash-price {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
  text-align: center;
}

.flash-progress-wrap {
  width: 100%;
  background: #ffbda6;
  height: 16px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff4200, #ff7a00);
  border-radius: 8px;
}

.flash-progress-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Daily Discover Section (Product Grid)
   ========================================================================== */

.daily-discover-header {
  position: sticky;
  top: 72px;
  background: var(--bg-page);
  padding: 16px 0;
  z-index: 90;
}

.daily-discover-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
}

.daily-discover-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  background: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.product-card {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.product-card:active {
  transform: scale(0.97);
}

.product-img-box {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

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

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

/* Badges */
.badge-preferred {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-bottom-right-radius: 3px;
  z-index: 2;
}

.badge-mall {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--mall-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-bottom-right-radius: 3px;
  z-index: 2;
  text-transform: uppercase;
}

.badge-discount-corner {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 230, 0, 0.9);
  color: var(--primary);
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-bottom-left-radius: 3px;
  z-index: 2;
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  font-weight: 500;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tag-sulit {
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 9px;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 600;
}

.tag-spaylater {
  color: #00897b;
  border: 1px solid #80cbc4;
  font-size: 9px;
  padding: 0 3px;
  border-radius: 2px;
  background: #e0f2f1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.product-price {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.product-sold {
  color: var(--text-light);
  font-size: 11px;
}

/* Find Similar Hover Layer */
.hover-similar-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  display: none;
}

.product-card:hover .hover-similar-bar {
  display: block;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 40px;
}

.load-more-btn {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 48px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: #fafafa;
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

.product-detail-container {
  padding: 20px 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.product-main-card {
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  margin-bottom: 24px;
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-viewport {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
  background: #fafafa;
}

.main-image-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-img-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  z-index: 5;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--primary);
}

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

/* Product Info Right Column */
.product-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-product-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.rating-stars-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: bold;
}

.rating-stars-badge span {
  text-decoration: underline;
}

.star-icon {
  color: var(--yellow-star);
}

.meta-count-item {
  color: var(--text-muted);
}

.meta-count-item strong {
  color: var(--text-main);
  text-decoration: underline;
}

/* Price Box */
.detail-price-box {
  background: #fafafa;
  padding: 16px 20px;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

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

.detail-current-price {
  font-size: 30px;
  color: var(--primary);
  font-weight: 800;
}

.detail-discount-tag {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Spec Rows in Details */
.spec-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.spec-label {
  width: 110px;
  color: var(--text-muted);
}

.spec-content {
  flex: 1;
}

.voucher-pill {
  background: #ffeee8;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  border: 1px dashed var(--primary-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.voucher-pill:hover {
  transform: scale(1.03);
}

.voucher-pill:active {
  transform: scale(0.96);
}

/* Variation Options */
.variation-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variation-option-btn {
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 2px;
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

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

.variation-option-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.variation-option-btn.selected::after {
  content: "✓";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  padding: 0 3px;
  border-bottom-left-radius: 3px;
}

/* Quantity Counter */
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 2px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: bold;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-btn:active {
  background: #e0e0e0;
}

.qty-input {
  width: 50px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
  outline: none;
}

.stock-indicator {
  margin-left: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

/* CTA Action Buttons */
.detail-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-cart:hover {
  background: #ffded4;
}

.btn-add-cart:active {
  transform: scale(0.96);
}

.btn-buy-now {
  background: var(--primary);
  color: #fff;
  padding: 12px 36px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-buy-now:hover {
  background: var(--primary-hover);
}

.btn-buy-now:active {
  transform: scale(0.96);
}

/* Shop Seller Info Card */
.seller-shop-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 30px;
}

.seller-profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--border-light);
  padding-right: 30px;
  min-width: 280px;
}

.seller-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.seller-name-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.seller-status {
  font-size: 12px;
  color: var(--text-muted);
}

.seller-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-chat-seller {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-view-shop {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 12px;
}

.seller-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 30px;
  flex: 1;
  font-size: 13px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  color: var(--primary);
  font-weight: 600;
}

/* Reviews Breakdown */
.reviews-section-card {
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.reviews-overview-box {
  background: #fffbf8;
  border: 1px solid #f9ede5;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
}

.rating-huge {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
}

.rating-huge-sub {
  font-size: 18px;
  color: var(--primary);
}

.stars-row-lg {
  color: var(--yellow-star);
  font-size: 20px;
  margin-top: 4px;
}

.review-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-btn {
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn.active, .chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.review-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  font-size: 14px;
}

.review-content {
  flex: 1;
}

.review-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.review-date-var {
  font-size: 12px;
  color: var(--text-light);
  margin: 3px 0 8px;
}

.review-text {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

/* ==========================================================================
   Shopping Cart Page
   ========================================================================== */

.cart-page-wrapper {
  padding: 24px 0 60px;
}

.free-ship-banner {
  background: #e8f8f5;
  border: 1px solid #b2dfdb;
  color: #00796b;
  padding: 12px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.free-ship-progress-bar-wrap {
  width: 160px;
  height: 8px;
  background: #b2dfdb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.free-ship-progress-bar-fill {
  height: 100%;
  background: #00897b;
  transition: width 0.3s ease;
}

.cart-table-header {
  background: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 40px 1fr 120px 140px 140px 100px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.cart-shop-group {
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.cart-shop-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.cart-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 40px 1fr 120px 140px 140px 100px;
  align-items: center;
  transition: background 0.15s ease;
}

.cart-row-mobile-actions {
  display: contents;
}

.cart-row.removing {
  animation: slideOutRow 0.35s forwards ease-in;
}

@keyframes slideOutRow {
  0% { opacity: 1; transform: translateX(0); max-height: 120px; }
  100% { opacity: 0; transform: translateX(-40px); max-height: 0; padding: 0; margin: 0; }
}

.cart-product-info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.cart-product-meta {
  flex: 1;
}

.cart-product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.cart-variation-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: #f7f7f7;
  padding: 2px 6px;
  border-radius: 2px;
}

.cart-unit-price {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
}

.cart-item-total {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

.cart-item-delete-btn {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

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

/* Sticky Bottom Summary Bar */
.cart-footer-sticky {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  margin-top: 20px;
}

.cart-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.cart-voucher-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-voucher-input {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 2px;
  width: 140px;
  text-transform: uppercase;
}

.btn-apply-voucher {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-apply-voucher:hover {
  background: var(--primary);
  color: #fff;
}

.cart-footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cart-total-summary {
  text-align: right;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text-main);
}

.cart-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.cart-savings-note {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-checkout {
  background: var(--primary);
  color: #fff;
  padding: 12px 42px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  min-width: 180px;
  text-align: center;
}

.btn-checkout:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ==========================================================================
   Fly-to-Cart Animation & Floating Notifications (Toasts)
   ========================================================================== */

.flying-cart-item {
  position: fixed;
  z-index: 99999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--primary);
  transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 70px;
  right: 16px;
  left: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: rgba(34, 34, 34, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  border-left: 4px solid #00bfa5;
}

.toast.error {
  border-left: 4px solid var(--primary);
}

@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Checkout Modal Confirmation
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.checkout-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.modal-icon-success {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f8f5;
  color: #00bfa5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-icon-success svg {
  width: 32px;
  height: 32px;
  stroke: #00bfa5;
  stroke-width: 3;
}

/* ==========================================================================
   Floating Chat Widget (Shopee Style)
   ========================================================================== */

.floating-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.25);
}

.floating-chat-box {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 340px;
  height: 440px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: none;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
}

.floating-chat-box.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.chat-box-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.chat-messages-area {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.bot {
  background: #fff;
  border: 1px solid var(--border-light);
  align-self: flex-start;
  color: var(--text-main);
}

.chat-bubble.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
}

.chat-input-bar {
  display: flex;
  border-top: 1px solid var(--border-light);
  padding: 8px 12px;
  background: #fff;
}

.chat-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-main {
  background: #fbfbfb;
  border-top: 4px solid var(--primary);
  color: var(--text-muted);
  font-size: 12px;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.footer-link-list a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
}

/* Defaults for Mobile-Only Elements when on Desktop */
.mobile-bottom-nav {
  display: none;
}
.mobile-product-bottom-bar {
  display: none;
}
.mobile-bottom-sheet-backdrop {
  display: none;
}
.product-mobile-header {
  display: none;
}

/* ==========================================================================
   RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS (Max-Width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Safe padding for fixed mobile top header and bottom nav */
  body {
    padding-top: 52px;
    padding-bottom: 60px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  body.page-product {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* 1. Hide Desktop Topbar */
  .topbar-wrapper {
    display: none !important;
  }

  /* 2. Compact Fixed Mobile Header on General Pages */
  .header-main-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .logo-area {
    min-width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .logo-landscape-box {
    padding: 2px 4px;
    border-radius: 6px;
  }

  .main-brand-logo {
    height: 24px;
    max-width: 82px;
    object-fit: contain;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .logo-icon svg {
    width: 16px;
    height: 16px;
  }

  .logo-text-box {
    display: none;
  }

  .search-section {
    flex: 1;
    min-width: 0;
    margin: 0;
  }

  .search-box-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 32px;
    border-radius: 16px;
    padding: 2px 2px 2px 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
  }

  .mobile-search-icon {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
  }

  .search-input {
    min-width: 0;
    flex: 1;
    width: 100%;
    padding: 4px 4px;
    font-size: 12px;
    border: none;
    outline: none;
  }

  .search-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .search-btn svg {
    width: 13px;
    height: 13px;
  }

  .quick-tags {
    display: none !important;
  }

  .header-right-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  .mobile-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #fff;
    transition: transform 0.15s ease;
  }

  .mobile-chat-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-chat-btn:active {
    transform: scale(0.9);
  }

  .cart-dropdown {
    display: none !important;
  }

  .cart-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  .cart-icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .cart-badge {
    font-size: 9px;
    padding: 0 3px;
    min-width: 15px;
    height: 15px;
    line-height: 12px;
    top: -2px;
    right: -2px;
    border-width: 1.5px;
  }

  /* 3. Specialized Professional Product Detail Header on Mobile */
  body.page-product .header-main-wrapper {
    display: none !important;
  }

  body.page-product .product-mobile-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0 10px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
  }

  .prod-mobile-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #f4f4f4;
    flex-shrink: 0;
    transition: all 0.15s ease;
    text-decoration: none;
  }

  .prod-mobile-nav-btn:active {
    transform: scale(0.92);
    background: #e5e5e5;
  }

  .prod-mobile-search-wrap {
    flex: 1;
    margin: 0 4px;
  }

  .prod-mobile-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 4px 12px;
    height: 34px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .prod-mobile-search-box:focus-within {
    background: #fff;
    border-color: var(--primary);
  }

  .prod-mobile-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: #333;
  }

  .prod-mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Hide messy desktop breadcrumb on mobile */
  body.page-product .breadcrumb {
    display: none !important;
  }

  body.page-product .product-detail-container {
    padding: 0 0 65px !important;
  }

  body.page-product .product-main-card {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
    padding: 0 12px 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.page-product .main-image-viewport {
    border-radius: 0;
    border: none;
    margin: 0 -12px;
    width: calc(100% + 24px);
  }

  body.page-product .thumbnail-row {
    margin-top: 10px;
    padding: 0 2px;
  }

  .detail-product-title {
    font-size: 16px;
    line-height: 1.35;
  }

  .detail-current-price {
    font-size: 24px;
  }

  .detail-cta-row {
    display: none !important;
  }

  /* 4. Hero Carousel Banner */
  .hero-section {
    padding: 8px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .side-promos {
    display: none;
  }

  .hero-slider-container {
    height: 145px;
    border-radius: 8px;
  }

  .hero-slide {
    padding: 16px;
  }

  .hero-tag {
    font-size: 9px;
    padding: 2px 6px;
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .hero-subtitle {
    font-size: 11px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    padding: 4px 12px;
    font-size: 11px;
  }

  /* 5. Quick Services Bar */
  .quick-services-bar {
    padding: 10px 4px;
    margin: 8px 0 12px;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quick-services-bar::-webkit-scrollbar {
    display: none;
  }

  .quick-services-grid {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 0 4px;
  }

  .service-item {
    min-width: 68px;
    gap: 4px;
  }

  .service-icon-wrap {
    width: 42px;
    height: 42px;
  }

  .service-icon-wrap img {
    width: 36px;
    height: 36px;
  }

  .service-title {
    font-size: 10px;
    max-width: 70px;
  }

  /* 6. Categories Section */
  .section-block {
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .section-header {
    padding: 12px 14px;
  }

  .section-title {
    font-size: 14px;
  }

  .categories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border: none;
    padding: 8px 10px;
    gap: 8px;
  }

  .categories-grid::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    min-width: 74px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: none;
    padding: 6px 4px;
    background: transparent;
  }

  .cat-img-wrapper {
    width: 52px;
    height: 52px;
    box-shadow: var(--shadow-sm);
  }

  .cat-title {
    font-size: 11px;
    height: 28px;
  }

  /* 7. Flash Deals Section */
  .flash-sale-header {
    padding: 12px 14px;
  }

  .flash-logo-text {
    font-size: 16px;
  }

  .time-digit {
    font-size: 11px;
    padding: 2px 4px;
    min-width: 20px;
  }

  .flash-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 10px 14px 14px;
  }

  .flash-grid::-webkit-scrollbar {
    display: none;
  }

  .flash-card {
    min-width: 112px;
    max-width: 120px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .flash-price {
    font-size: 15px;
    margin: 6px 0 4px;
  }

  /* 8. Daily Discover Product Grid */
  .daily-discover-header {
    top: 50px;
    padding: 8px 0;
  }

  .daily-discover-title {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .product-card {
    border-radius: 6px;
  }

  .product-info {
    padding: 8px;
  }

  .product-title {
    font-size: 11px;
    height: 30px;
    line-height: 1.35;
  }

  .product-price {
    font-size: 15px;
  }

  .product-sold {
    font-size: 10px;
  }

  .hover-similar-bar {
    display: none !important;
  }

  /* 9. Mobile Fixed Bottom Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 54px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    box-sizing: border-box;
  }

  body.page-product .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #757575;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .mobile-cart-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 16px);
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    padding: 0 4px;
    min-width: 14px;
    text-align: center;
    border: 1px solid #fff;
  }

  /* 10. Hide Floating Chat Trigger on Mobile */
  .floating-chat-trigger {
    display: none !important;
  }

  .floating-chat-box {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 2000;
  }

  /* 11. Seller Shop & Reviews Mobile Adjustments */
  .seller-shop-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .seller-profile-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    width: 100%;
  }

  .seller-stats-grid {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .reviews-overview-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  /* Mobile Fixed Action Bar on Product Page */
  .mobile-product-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #fff;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-action-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 100%;
    color: var(--text-muted);
    font-size: 10px;
    border-right: 1px solid #f0f0f0;
    background: #fff;
  }

  .mobile-action-icon-btn:active {
    background: #f9f9f9;
  }

  .mobile-action-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
  }

  .mobile-btn-cart {
    flex: 1;
    height: 100%;
    background: #ffeceb;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    transition: background 0.15s ease;
  }

  .mobile-btn-cart:active {
    background: #ffded4;
  }

  .mobile-btn-buy {
    flex: 1.2;
    height: 100%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s ease;
  }

  .mobile-btn-buy:active {
    background: var(--primary-hover);
  }

  /* 12. Mobile Variation Bottom Sheet Modal */
  .mobile-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(2px);
    align-items: flex-end;
  }

  .mobile-bottom-sheet-backdrop.open {
    display: flex;
    animation: fadeIn 0.2s ease;
  }

  .mobile-bottom-sheet-content {
    width: 100%;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 16px 16px 20px;
    animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    overflow-y: auto;
  }

  @keyframes slideUpSheet {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
  }

  .sheet-header {
    display: flex;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .sheet-thumb {
    width: 76px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-light);
  }

  .sheet-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .sheet-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
  }

  .sheet-stock {
    color: var(--text-muted);
    font-size: 12px;
  }

  .sheet-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    color: #888;
    padding: 4px;
  }

  .sheet-confirm-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.15s ease;
  }

  .sheet-confirm-btn:active {
    background: var(--primary-hover);
  }

  /* 13. Mobile Shopping Cart */
  .cart-table-header {
    display: none !important;
  }

  .cart-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding: 14px 12px;
  }

  .cart-row > div:first-child {
    position: absolute;
    top: 14px;
    left: 12px;
  }

  .cart-product-info {
    padding-left: 28px;
    width: 100%;
  }

  .cart-product-thumb {
    width: 60px;
    height: 60px;
  }

  .cart-row-mobile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 28px;
    margin-top: 4px;
  }

  .cart-footer-sticky {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    bottom: 54px;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }

  .cart-footer-left, .cart-footer-right {
    width: 100%;
    justify-content: space-between;
  }

  .cart-total-amount {
    font-size: 18px;
  }

  .btn-checkout {
    padding: 10px 24px;
    min-width: 130px;
    font-size: 14px;
  }

  .cart-voucher-box {
    width: 100%;
  }

  .cart-voucher-input {
    flex: 1;
    width: auto;
  }

  /* Footer on Mobile */
  .footer-main {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   ENHANCED VARIATION SELECTION & PRODUCT DETAIL EXPANSION (SHOPEE AUTHENTIC)
   ========================================================================== */
.var-btn-thumb {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  background: #f8f8f8;
}

.variation-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e0e0;
  padding: 6px 12px;
  border-radius: 3px;
  background: #f8f8f8;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
}

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

.variation-option-btn.selected {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
  font-weight: 600;
}

.variation-option-btn.selected::after {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  line-height: 10px;
  padding: 0 3px 1px 2px;
  border-bottom-right-radius: 4px;
}

/* Video Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  color: #fff;
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(238, 77, 45, 0.85);
  border-color: #fff;
}

.video-play-triangle {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 4px;
}

/* Bottom Banner Overlay on Main Photo */
.photo-bottom-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(90deg, rgba(20, 35, 60, 0.95) 0%, rgba(240, 150, 70, 0.9) 35%, rgba(255, 170, 90, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 4;
}

.photo-banner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-banner-badge .spaylater-pill {
  background: #192742;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.photo-banner-badge .interest-tag {
  color: #ffde59;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.photo-banner-tagline {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 20 Variations Available Scroller */
.variations-available-section {
  background: #fff;
  padding: 12px 14px;
  border-bottom: 8px solid #f2f2f2;
}

.variations-available-header {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.variations-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.variations-scroll-row::-webkit-scrollbar {
  height: 4px;
}

.variations-scroll-row::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.var-scroll-item {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #fdfdfd;
  transition: all 0.15s ease;
}

.var-scroll-item:hover, .var-scroll-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  transform: translateY(-2px);
}

.var-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add-on deal & delivery badges */
.addon-deal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  background: #fff;
  margin-bottom: 8px;
  cursor: pointer;
}

.delivery-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.delivery-truck-icon {
  color: #00bfa5;
  margin-right: 6px;
}

.delivery-time-text {
  font-weight: 700;
  color: #00897b;
}

.delivery-guarantee-sub {
  color: #888;
  font-size: 12px;
}

.trust-protection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 8px solid #f2f2f2;
  font-size: 13px;
  color: #444;
}

.trust-shield-icon {
  color: var(--primary);
  margin-right: 6px;
}

/* TOP PICKS FROM SHOP */
.top-picks-container {
  background: #fff;
  padding: 14px;
  border-bottom: 8px solid #f2f2f2;
}

.top-picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.top-picks-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
  letter-spacing: 0.5px;
}

.top-picks-see-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

.top-pick-card {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.top-pick-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f8f8f8;
}

.top-pick-name {
  font-size: 12px;
  padding: 6px 8px 2px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.top-pick-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 2px 8px 8px;
}

/* Sheet thumbnail wrapper with COD and expand badge */
.sheet-thumb-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.sheet-thumb-wrapper .sheet-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-thumb-cod {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-top-right-radius: 3px;
}

.sheet-thumb-expand {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sheet-orig-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
}

.sheet-delivery-note {
  font-size: 12px;
  color: #00897b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: 600;
}

.sheet-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.sheet-size-chart {
  color: #1a73e8;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.sheet-var-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.sheet-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}

/* Keyframe utility */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Help Centre, User Guides, Policies & Informational Pages
   ========================================================================== */
.help-page-wrapper {
  padding: 24px 0 60px 0;
}

.help-breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: #757575;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.help-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.help-breadcrumb a:hover {
  text-decoration: underline;
}

.help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Mobile Quick Chips */
.help-mobile-nav {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  padding: 4px 2px 14px 2px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.help-mobile-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
}

.help-mobile-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.3);
}

/* Sidebar Navigation */
.help-sidebar {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #eaeaea;
  padding: 16px 0;
  position: sticky;
  top: 130px;
}

.help-sidebar-group {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2f2f2;
}

.help-sidebar-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.help-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  padding: 0 18px 8px 18px;
}

.help-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.help-nav-link:hover {
  background: #fafafa;
  color: var(--primary);
}

.help-nav-link.active {
  background: #fff6f4;
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

.help-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

/* Main Content Card */
.help-content-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #eaeaea;
  padding: 32px;
}

.help-header-banner {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.help-page-title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-page-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.help-updated-badge {
  display: inline-block;
  background: #f0f7ff;
  color: #0066cc;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 10px;
}

/* Interactive Help Search */
.help-search-container {
  position: relative;
  margin-bottom: 28px;
}

.help-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-size: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}

.help-search-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
}

.help-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* Topic Grid (Help Centre Home) */
.help-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.help-topic-item {
  background: #fbfbfb;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.help-topic-item:hover {
  border-color: var(--primary);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.help-topic-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff0eb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.help-topic-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.help-topic-desc {
  font-size: 12.5px;
  color: #777;
  line-height: 1.4;
}

/* Accordion FAQ Items */
.faq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 32px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #d0d0d0;
}

.faq-question {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #333;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question.active {
  background: #fff4f1;
  color: var(--primary);
}

.faq-arrow {
  transition: transform 0.2s;
  font-size: 12px;
  color: #888;
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.faq-answer.show {
  display: block;
}

/* Visual Step Guides */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.step-card {
  display: flex;
  gap: 20px;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.3);
}

.step-body {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.step-text {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
}

/* Tables in Policy / Guides */
.custom-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 6px;
  border: 1px solid #eaeaea;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.custom-table th {
  background: #f7f7f7;
  color: #333;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid #e0e0e0;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #555;
}

.custom-table tr:hover td {
  background: #fafafa;
}

/* Callout & Grievance Alert Box */
.callout-box {
  background: #f8fafc;
  border-left: 4px solid #00796b;
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
  margin: 22px 0;
}

.callout-box.danger {
  border-left-color: #d32f2f;
  background: #fff8f8;
}

.callout-box.warning {
  border-left-color: #f57c00;
  background: #fffbf5;
}

.callout-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-box-text {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* Grievance Box for Indian Compliance */
.grievance-compliance-card {
  background: #fff9f6;
  border: 2px solid #ffccba;
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
}

.grievance-title {
  font-size: 17px;
  font-weight: 700;
  color: #c43011;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.grievance-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  font-size: 13.5px;
  margin-top: 14px;
}

.grievance-detail-item {
  background: #fff;
  border: 1px solid #f0d5cc;
  padding: 12px 14px;
  border-radius: 6px;
}

.grievance-detail-item strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}

/* Contact Us Grid */
.contact-container-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  margin-top: 24px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.contact-channel-card:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.contact-channel-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.contact-form-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.contact-form-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.form-group-item {
  margin-bottom: 16px;
}

.form-group-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-control-input,
.form-control-select,
.form-control-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control-input:focus,
.form-control-select:focus,
.form-control-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.1);
}

.btn-submit-ticket {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-submit-ticket:hover {
  background: #d73211;
}

/* Responsive Breakpoints for Help Page */
@media (max-width: 992px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-sidebar {
    display: none;
  }
  .help-mobile-nav {
    display: flex;
  }
  .contact-container-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .help-content-card {
    padding: 20px 16px;
  }
  .help-page-title {
    font-size: 20px;
  }
  .step-card {
    flex-direction: column;
    gap: 12px;
  }
  .help-topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   14. Seller (Shop) Registration & Shop Settings
   ========================================================================== */
.seller-reg-subnav {
  background: #ee4d2d;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid #d43b1c;
}
.seller-reg-subnav::-webkit-scrollbar {
  display: none;
}
.seller-reg-tab {
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}
.seller-reg-tab:hover {
  background: rgba(0, 0, 0, 0.08);
}
.seller-reg-tab.active {
  background: #c73a1d;
}

.seller-breadcrumb {
  padding: 14px 0 16px;
  font-size: 13px;
  color: #555;
}
.seller-breadcrumb a {
  color: #555;
  text-decoration: none;
}
.seller-breadcrumb a:hover {
  color: #ee4d2d;
}
.seller-breadcrumb .active-crumb {
  color: #2e384d;
  font-weight: 700;
}

.seller-reg-container {
  max-width: 640px;
  margin: 0 auto 60px;
  padding: 0 14px;
}

.seller-reg-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef1f6;
  padding: 24px 22px;
  margin-bottom: 20px;
}

.seller-reg-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2b2b46;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-form-group {
  margin-bottom: 16px;
}
.reg-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}
.reg-form-label .required {
  color: #e53935;
  margin-left: 2px;
  font-weight: 700;
}

.reg-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reg-input:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}
.reg-input::placeholder {
  color: #a0a6b5;
}

.reg-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  appearance: auto;
}
.reg-select:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.reg-textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reg-textarea:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.reg-file-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reg-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  background: #f1f3f5;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  color: #495057;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  user-select: none;
}
.reg-file-btn:hover {
  background: #e9ecef;
}
.reg-file-name {
  font-size: 13px;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.reg-preview-thumb {
  margin-top: 8px;
  width: 100px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  display: none;
}

.floating-support-avatar {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  border: 2px solid #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-support-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.floating-support-avatar img,
.floating-support-avatar svg {
  width: 32px;
  height: 32px;
}

.shop-created-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 500px;
  background: #2e7d32;
  color: #fff;
  padding: 13px 18px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  animation: toastSlideUp 0.3s ease-out;
}
.shop-created-toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.btn-shop-save {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-shop-save:hover {
  background: #1565c0;
}
.btn-shop-save:disabled {
  background: #90caf9;
  cursor: not-allowed;
}

.shop-settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 20px;
}
.shop-settings-title {
  font-size: 20px;
  font-weight: 700;
  color: #2b2b46;
}
.shop-visit-link {
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shop-visit-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   15. Shopee-Style Auth Modal
   ========================================================================== */
.auth-modal-card {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.auth-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.auth-modal-close:hover {
  color: #333;
}
.auth-modal-body {
  padding: 24px 20px;
}


