/* BinduMart Complete Purple E-Commerce Design System */
:root {
  --primary-purple: #7e22ce;
  --primary-purple-hover: #6b21a8;
  --dark-purple: #3b0764;
  --deep-purple: #581c87;
  --medium-purple: #9333ea;
  --light-purple: #c084fc;
  --soft-purple: #f3e8ff;
  --bg-purple: #faf5ff;
  
  --text-dark: #1e1b4b;
  --text-muted: #64748b;
  --border-color: #e9d5ff;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  
  --success-green: #10b981;
  --danger-red: #ef4444;
  --warning-orange: #f97316;
  
  --shadow-sm: 0 1px 3px rgba(126, 34, 206, 0.08);
  --shadow-md: 0 4px 12px rgba(126, 34, 206, 0.12);
  --shadow-lg: 0 10px 25px rgba(88, 28, 135, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
}

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

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

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--soft-purple);
}
::-webkit-scrollbar-thumb {
  background: var(--medium-purple);
  border-radius: var(--radius-full);
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, var(--dark-purple), var(--deep-purple));
  color: #ffffff;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #ffffff;
  color: var(--dark-purple);
}

/* Header & Main Navigation */
.main-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--border-color);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-purple);
}

.brand-logo i {
  background: linear-gradient(135deg, var(--primary-purple), var(--medium-purple));
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(126, 34, 206, 0.3);
}

.brand-logo span.highlight {
  color: var(--medium-purple);
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-box {
  display: flex;
  background: var(--bg-purple);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
}

.search-btn {
  background: var(--primary-purple);
  color: #fff;
  padding: 0 24px;
  font-size: 1.1rem;
  transition: background 0.2s;
}

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

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 6px;
  display: none;
  z-index: 1010;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.suggestion-item:hover {
  background: var(--soft-purple);
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.action-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
}

.action-item i {
  font-size: 1.3rem;
  color: var(--primary-purple);
  margin-bottom: 2px;
}

.action-badge {
  position: absolute;
  top: -6px;
  right: 2px;
  background: var(--danger-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sub-Navigation Bar */
.sub-nav {
  background: var(--dark-purple);
  color: #fff;
}

.sub-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cat-dropdown-btn {
  background: var(--medium-purple);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
}

.cat-dropdown-btn:hover {
  background: var(--primary-purple-hover);
  color: #ffffff !important;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: #e9d5ff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 0;
  display: inline-block;

}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff !important;
  border-bottom: 3px solid var(--light-purple);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--deep-purple), var(--dark-purple));
  box-shadow: 0 6px 16px rgba(88, 28, 135, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--soft-purple);
  color: var(--dark-purple) !important;
  border: 1px solid var(--border-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-purple) !important;
  border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
  background: var(--primary-purple);
  color: #ffffff !important;
}

.btn-success {
  background: var(--success-green);
  color: #ffffff !important;
}

.btn-danger {
  background: var(--danger-red);
  color: #ffffff !important;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Container Layout */
.main-content {
  max-width: 1280px;
  margin: 25px auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.sidebar-categories {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 15px 0;
}

.category-list {
  list-style: none;
  margin-top: 5px;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.category-list li a:hover {
  background: var(--primary-purple);
  color: #ffffff !important;
  padding-left: 25px;
  font-weight: 600;
}

.category-list li a:hover span {
  color: #ffffff !important;
}

.category-list li a:hover i {
  color: #ffffff !important;
}

.hero-slider {
  background: linear-gradient(135deg, var(--dark-purple), var(--deep-purple));
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content {
  max-width: 550px;
  z-index: 2;
}

.hero-badge {
  background: rgba(192, 132, 252, 0.25);
  color: var(--light-purple);
  border: 1px solid var(--light-purple);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #e9d5ff;
  margin-bottom: 25px;
}

.hero-image {
  max-width: 380px;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-purple);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--medium-purple);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 15px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.product-badge.sale {
  background: var(--danger-red);
}

.wishlist-btn-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--soft-purple);
  color: var(--dark-purple);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s;
}

.wishlist-btn-icon:hover, .wishlist-btn-icon.active {
  background: var(--primary-purple);
  color: #ffffff;
}

.product-img-wrapper {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.product-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-category-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 10px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.sale-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-purple);
}

.regular-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  padding: 8px 5px;
  font-size: 0.85rem;
}

/* Category Cards */
.cat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(126, 34, 206, 0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(126, 34, 206, 0.25);
  border-color: var(--primary-purple);
}

.cat-card:hover::before {
  left: 100%;
}

.cat-card i {
  font-size: 2.5rem;
  color: var(--primary-purple);
  margin-bottom: 12px;
  transition: all 0.3s ease;
  display: inline-block;
}

.cat-card:hover i {
  color: var(--deep-purple);
  transform: scale(1.15) rotate(5deg);
}

.cat-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 8px 0;
  transition: color 0.3s ease;
}

.cat-card:hover h4 {
  color: var(--primary-purple);
}

.cat-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 5px 0 0 0;
  transition: color 0.3s ease;
}

.cat-card:hover p {
  color: var(--text-dark);
}

/* Trust Badges Bar */
.trust-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  border: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-item i {
  font-size: 2rem;
  color: var(--primary-purple);
  background: var(--soft-purple);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-info h4 {
  font-size: 0.95rem;
  color: var(--dark-purple);
}

.trust-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--dark-purple);
  color: #e9d5ff;
  padding-top: 50px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--light-purple);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #e9d5ff;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  background: #270346;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #c084fc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: #c084fc;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Trending Tech Blog Section */
.trending-posts-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 100%);
  padding: 60px 20px 30px;
  margin-top: 30px;
  margin-bottom: 0;
}

.section-heading-row {
  max-width: 1280px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  color: #ffffff;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 999px;
  color: #f5d0fe;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-heading-row h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.blog-posts-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(126, 34, 206, 0.18);
}

.blog-image {
  width: 100%;
  height: 190px;
  background-image: var(--blog-image);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.5));
}

.blog-image-badge {
  position: relative;
  z-index: 1;
  margin: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-block;
  background: var(--soft-purple);
  color: var(--primary-purple);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  width: fit-content;
}

.blog-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-dark);
}

.blog-card h4 a {
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-card h4 a:hover {
  color: var(--primary-purple);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  flex-wrap: wrap;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i {
  color: var(--primary-purple);
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blog-modal.is-open {
  display: flex;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.blog-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.blog-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

.blog-modal-image {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.blog-modal-body {
  padding: 32px 28px 28px;
}

.blog-modal-category {
  display: inline-block;
  background: var(--soft-purple);
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

.blog-modal-body h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.9rem, 2.3vw, 2.8rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.blog-modal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.blog-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-modal-excerpt {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.blog-modal-content {
  color: var(--text-dark);
  line-height: 1.8;
  display: grid;
  gap: 16px;
}

.blog-modal-content h4 {
  margin-top: 12px;
  color: var(--deep-purple);
  font-size: 1.1rem;
}

.blog-modal-content ul {
  padding-left: 18px;
  color: var(--text-muted);
}

.blog-modal-action {
  display: inline-flex;
  margin-top: 22px;
}

@media (max-width: 992px) {
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .trending-posts-section {
    padding-top: 48px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h4 {
    font-size: 1rem;
  }

  .blog-card p {
    font-size: 0.85rem;
  }

  .blog-modal-body {
    padding: 24px 18px 20px;
  }

  .blog-modal-image {
    height: 220px;
  }
}

/* Modals & Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 18px 20px;
  background: var(--dark-purple);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item img {
  width: 65px;
  height: 65px;
  object-fit: contain;

}

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

.cart-item-info h5 {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.cart-footer {
  padding: 20px;
  background: var(--bg-purple);
  border-top: 1px solid var(--border-color);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 25px;
  background: var(--dark-purple);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 25px;
}

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

.toast {
  background: var(--dark-purple);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--medium-purple);
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Admin Styling */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 80vh;
  gap: 20px;
}

.admin-sidebar {
  background: var(--dark-purple);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 0;
}

.admin-menu {
  list-style: none;
}

.admin-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #e9d5ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-menu li a:hover, .admin-menu li a.active {
  background: var(--primary-purple);
  color: #fff;
}

.stat-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--soft-purple);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.table th {
  background: var(--soft-purple);
  color: var(--dark-purple);
  font-weight: 700;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .sidebar-categories {
    display: none;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .brand-logo i {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
  }

  .search-box {
    min-height: 42px;
  }

  .search-input {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .search-btn {
    padding: 0 16px;
    font-size: 1rem;
  }

  .header-actions {
    gap: 8px;
    margin-left: auto;
  }

  .action-item {
    min-width: 46px;
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .action-item i {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .action-badge {
    top: -5px;
    right: 3px;
    width: 16px;
    height: 16px;
    font-size: 0.58rem;
  }

  .top-bar-info {
    font-size: 0.75rem;
  }
  .hero-slider {
    padding: 25px;
    flex-direction: column;
    text-align: center;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-image {
    margin-top: 20px;
  }
  .sub-nav-container {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    flex: 1;
  }

  .header-actions {
    gap: 6px;
  }

  .action-item {
    min-width: 36px;
  }

  .action-item span:last-child {
    display: none;
  }

  .action-badge {
    right: 1px;
  }
}


/* ==========================================================
   Impersonation Banner ("Viewing as: ...")
   Amber on purpose -- it must never read as normal site chrome.
   ========================================================== */
.imp-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4000;            /* above .main-header (z-index 1000) */
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.imp-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 46px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.imp-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
}

.imp-banner-text #imp-customer-name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.imp-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #b45309;
  border: none;
  border-radius: var(--radius-sm, 6px);
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.imp-banner-btn:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

/* Push the page down so the fixed banner never covers content, and keep the
   sticky header docked directly beneath it. */
body.is-impersonating {
  padding-top: 46px;
}

body.is-impersonating .main-header {
  top: 46px;
}

@media (max-width: 600px) {
  .imp-banner-inner {
    min-height: 72px;
    justify-content: center;
    text-align: center;
  }
  body.is-impersonating {
    padding-top: 72px;
  }
  body.is-impersonating .main-header {
    top: 72px;
  }
}

/* Notice shown in the account panel while an admin is viewing as a customer.
   Matches the amber of the impersonation banner so the two read as one state. */
.acc-imp-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #d97706;
  color: #92400e;
  border-radius: var(--radius-sm, 6px);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.acc-imp-notice i {
  flex-shrink: 0;
}

/* ==========================================================
   Account sidebar contrast fix

   The customer account panel reuses .admin-menu, but renders it on a white
   card instead of the .admin-sidebar dark purple. That makes the base rule
   `.admin-menu li a { color: #e9d5ff }` (line ~1377) about 1.36:1 against
   white -- the inactive items were effectively invisible.

   Scoped to .account-dashboard-wrapper so the real admin sidebar, which still
   sits on dark purple, keeps its original pale-lavender text untouched.

   The hover/active pair is restated here on purpose: the scoped base selector
   has the same specificity as the global `.admin-menu li a:hover`, so without
   these it would win on source order and flatten both states.
   ========================================================== */
.account-dashboard-wrapper .admin-menu li a {
  color: var(--dark-purple);
}

.account-dashboard-wrapper .admin-menu li a:hover,
.account-dashboard-wrapper .admin-menu li a.active {
  background: var(--primary-purple);
  color: #fff;
}
