/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --secondary: #F59E0B;
  --secondary-dark: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --dark: #1E293B;
  --gray: #64748B;
  --light-gray: #F1F5F9;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

input,
select,
textarea {
  font-family: var(--font);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--dark);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.announcement-bar a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar a:hover {
  color: #FCD34D;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

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

.nav-logo:hover {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 38px;
  width: 200px;
  font-size: 14px;
  color: var(--dark);
  background: var(--light-gray);
  transition: var(--transition);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  width: 240px;
}

.nav-search input::placeholder {
  color: var(--gray);
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  color: var(--gray);
  font-size: 15px;
  pointer-events: none;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--dark);
  font-size: 22px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-cart:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--light-gray);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px 24px;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-mobile .nav-links a {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
}

.nav-mobile .nav-search input {
  width: 100%;
}

.nav-mobile .nav-search {
  width: 100%;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1E293B 0%, #2563EB 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  padding: 60px 20px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -1px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1.4;
  vertical-align: middle;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

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

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #DC2626;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #059669;
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  gap: 6px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading .spinner {
  width: 16px;
  height: 16px;
}

/* === SECTION === */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 8px;
  line-height: 1.6;
}

/* === CATEGORY CARDS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: block;
}

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

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}

.category-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.category-count {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* === PRODUCT CARDS === */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
  flex-shrink: 0;
}

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

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.badge-featured {
  background: var(--primary);
  color: var(--white);
}

.badge-trending {
  background: #8B5CF6;
  color: var(--white);
}

.badge-sale {
  background: var(--danger);
  color: var(--white);
}

.badge-bestseller {
  background: var(--success);
  color: var(--white);
}

.badge-new {
  background: var(--secondary);
  color: var(--white);
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  color: var(--gray);
  transition: var(--transition);
  z-index: 1;
}

.product-wishlist:hover,
.product-wishlist.active {
  color: var(--danger);
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--gray);
}

.stars {
  color: #F59E0B;
  letter-spacing: 1px;
  font-size: 14px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

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

.price-discount {
  font-size: 12px;
  background: #FEE2E2;
  color: var(--danger);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

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

.btn-add-cart:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
}

/* === PROMO BANNER === */
.promo-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #F97316 100%);
  padding: 64px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.promo-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.promo-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.promo-code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 2px dashed var(--white);
  padding: 8px 28px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: var(--transition);
}

.promo-code:hover {
  background: rgba(255, 255, 255, 0.3);
}

.promo-banner .btn {
  position: relative;
  z-index: 1;
}

/* === WHY US === */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-us-item {
  text-align: center;
  padding: 32px 16px;
}

.why-us-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
  display: block;
}

.why-us-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.why-us-desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
  font-size: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

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

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 2px;
}

.author-label {
  font-size: 13px;
  color: var(--gray);
}

/* === NEWSLETTER === */
.newsletter-section {
  background: var(--dark);
  padding: 72px 20px;
  text-align: center;
  color: var(--white);
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.newsletter-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  color: var(--dark);
  background: var(--white);
}

.newsletter-input::placeholder {
  color: var(--gray);
}

.newsletter-btn {
  background: var(--secondary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--gray);
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.breadcrumb-sep {
  color: var(--border);
  user-select: none;
}

.breadcrumb-current {
  color: var(--gray);
  font-weight: 500;
}

/* === CART === */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--light-gray);
  border-bottom: 2px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-table tbody tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

.cart-product-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

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

.cart-product-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--dark);
}

.cart-product-variant {
  font-size: 13px;
  color: var(--gray);
}

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

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--dark);
  line-height: 1;
}

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

.qty-input {
  width: 50px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}

.qty-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cart-remove {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.cart-remove:hover {
  text-decoration: underline;
  background: #FEE2E2;
}

.cart-summary-box {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}

.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--gray);
}

.cart-summary-row:last-of-type {
  border-bottom: none;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  border-top: 2px solid var(--border);
  margin-top: 4px;
}

.promo-input-group {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.promo-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  color: var(--dark);
}

.promo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cart-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* === CHECKOUT === */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-step {
  flex: 1;
  max-width: 200px;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.checkout-step.done:not(:last-child)::after {
  background: var(--success);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--border);
  color: var(--gray);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-number.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-number.done {
  background: var(--success);
  color: var(--white);
}

.step-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.step-label.active {
  color: var(--primary);
  font-weight: 600;
}

.step-label.done {
  color: var(--success);
  font-weight: 600;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-start: start;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--dark);
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--dark);
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid {
  border-color: var(--success);
}

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-help {
  color: var(--gray);
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.5;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 90px;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--light-gray);
  border: 1px solid var(--border);
}

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

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--light-gray);
  flex-shrink: 0;
}

.gallery-thumb:hover {
  border-color: var(--primary);
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

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

.product-detail-info .product-category {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.product-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--dark);
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray);
}

.product-detail-rating .stars {
  font-size: 16px;
}

.product-detail-rating a {
  color: var(--primary);
}

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-detail-price .price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.product-detail-price .price-original {
  font-size: 1.2rem;
  color: var(--gray);
  text-decoration: line-through;
}

.product-detail-price .price-discount {
  font-size: 14px;
  padding: 4px 10px;
}

.product-short-desc {
  color: var(--gray);
  line-height: 1.75;
  margin: 20px 0;
  font-size: 15px;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.stock-in {
  background: #D1FAE5;
  color: #065F46;
}

.stock-low {
  background: #FEF3C7;
  color: #92400E;
}

.stock-out {
  background: #FEE2E2;
  color: #991B1B;
}

.product-options {
  margin: 20px 0;
}

.option-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--dark);
}

.option-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-swatch {
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
}

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

.qty-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.qty-section .qty-btn {
  width: 38px;
  height: 38px;
  font-size: 18px;
  border: 2px solid var(--border);
}

.qty-section .qty-input {
  width: 60px;
  padding: 8px;
  font-size: 16px;
  height: 38px;
  border: 2px solid var(--border);
}

.add-cart-section {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-add-cart-main {
  flex: 1;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart-main:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-wishlist-main {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gray);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-wishlist-main:hover,
.btn-wishlist-main.active {
  border-color: var(--danger);
  color: var(--danger);
  background: #FEE2E2;
}

.product-meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}

.product-meta span {
  margin-right: 16px;
}

.product-meta strong {
  color: var(--dark);
  font-weight: 600;
}

/* === PRODUCT TABS === */
.product-tabs {
  margin-top: 56px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.tab-btn:hover {
  color: var(--dark);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-table tr:nth-child(odd) {
  background: var(--light-gray);
}

.specs-table tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.specs-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.specs-table td:first-child {
  font-weight: 600;
  width: 40%;
  color: var(--dark);
}

.specs-table td:last-child {
  color: var(--gray);
}

/* === REVIEWS === */
.reviews-summary {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
}

.reviews-average {
  text-align: center;
  flex-shrink: 0;
}

.reviews-average .avg-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.reviews-average .stars {
  font-size: 20px;
  margin: 4px 0;
}

.reviews-average .total-reviews {
  font-size: 13px;
  color: var(--gray);
}

.review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.review-author {
  font-weight: 600;
  color: var(--dark);
}

.review-date {
  font-size: 13px;
  color: var(--gray);
}

.review-title {
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--dark);
}

.review-body {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

/* === ALERTS === */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: #D1FAE5;
  border-color: var(--success);
  color: #065F46;
}

.alert-error {
  background: #FEE2E2;
  border-color: var(--danger);
  color: #991B1B;
}

.alert-info {
  background: #DBEAFE;
  border-color: var(--primary);
  color: #1E40AF;
}

.alert-warning {
  background: #FEF3C7;
  border-color: var(--warning);
  color: #92400E;
}

.alert-dismissible {
  position: relative;
}

.alert-dismissible button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: inherit;
  padding: 0 0 0 12px;
  opacity: 0.7;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.alert-dismissible button:hover {
  opacity: 1;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.page-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.page-dots {
  color: var(--gray);
  padding: 0 4px;
}

/* === FOOTER === */
.footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
  letter-spacing: -0.5px;
}

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

.footer-desc {
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item .icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-icon {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pt-5 { padding-top: 32px; }

.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 32px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.sticky { position: sticky; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }
.bg-primary { background: var(--primary); }
.bg-dark { background: var(--dark); }

.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
  pointer-events: all;
  position: relative;
  border-left: 4px solid transparent;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--white);
}

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

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

.toast-info {
  border-left-color: var(--primary);
}

.toast-warning {
  border-left-color: var(--warning);
  background: #1C1917;
}

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

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
    max-height: 80px;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease forwards;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 100;
  transition: var(--transition);
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.back-to-top.visible {
  display: flex;
}

/* === LOADING / SPINNER === */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.spinner-primary {
  border-color: rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  flex-direction: column;
  gap: 16px;
  color: var(--gray);
  font-size: 14px;
}

.page-loader .spinner {
  width: 40px;
  height: 40px;
  border-width: 4px;
  border-color: rgba(37, 99, 235, 0.15);
  border-top-color: var(--primary);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 15px;
}

/* === SHOP PAGE FILTERS === */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  transition: var(--transition);
}

.filter-item:hover {
  color: var(--dark);
}

.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 12px;
  background: var(--light-gray);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: var(--gray);
}

.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-range input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  color: var(--dark);
  width: 100%;
}

.price-range input:focus {
  border-color: var(--primary);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-results {
  font-size: 14px;
  color: var(--gray);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
}

.shop-sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* === ORDER STATUS / TRACKING === */
.order-status-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
  padding: 0 20px;
}

.order-status-bar::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.order-step-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray);
  border: 2px solid var(--border);
  background: var(--white);
}

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

.order-step.current .order-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.order-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  max-width: 80px;
}

.order-step.complete .order-step-label,
.order-step.current .order-step-label {
  color: var(--dark);
  font-weight: 600;
}

/* === WISHLIST === */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === ACCOUNT PAGE === */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.account-user {
  padding: 24px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 10px;
}

.account-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 15px;
}

.account-email {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.account-nav {
  padding: 8px 0;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.account-nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.account-nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

.account-nav-item .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* === ORDER TABLE === */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--light-gray);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--dark);
  vertical-align: middle;
}

.orders-table tbody tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-processing { background: #DBEAFE; color: #1E40AF; }
.status-shipped { background: #EDE9FE; color: #4C1D95; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* === PRODUCT COMPARISON === */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.compare-table th {
  background: var(--light-gray);
  font-weight: 700;
  color: var(--dark);
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: var(--light-gray);
  color: var(--gray);
}

.compare-table tr:nth-child(even) td:not(:first-child) {
  background: #FAFBFF;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

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

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

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--dark);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* === TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

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

.tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}

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

/* === RESPONSIVE === */

/* Large Desktop adjustments */
@media (max-width: 1280px) {
  .footer-grid {
    gap: 32px;
  }
}

/* Tablet / Medium */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .shop-layout {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .account-layout {
    grid-template-columns: 200px 1fr;
  }

  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet / Small */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .navbar {
    position: sticky;
    top: 0;
  }

  .navbar .container,
  .nav-inner {
    position: relative;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.open {
    display: block;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .cart-summary-box {
    position: static;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .add-cart-section {
    flex-direction: column;
  }

  .btn-wishlist-main {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
  }

  .reviews-summary {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 20px 12px;
  }

  .category-icon {
    font-size: 2rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-steps .step-label {
    display: none;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .cart-table {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: block;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
  }

  .cart-table td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .cart-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .cart-product-img {
    width: 80px;
    height: 80px;
  }

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

  .product-detail-info h1 {
    font-size: 1.4rem;
  }

  .product-detail-price .price-current {
    font-size: 1.6rem;
  }

  .footer-payment-icons {
    justify-content: center;
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }

  .back-to-top {
    bottom: 60px;
    right: 16px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-thumbs {
    gap: 6px;
  }

  .gallery-thumb {
    width: 56px;
    height: 56px;
  }
}

/* === PRINT === */
@media print {
  .navbar,
  .footer,
  .btn,
  .back-to-top,
  .toast-container,
  .announcement-bar,
  .newsletter-section,
  .breadcrumb,
  .nav-mobile,
  .filter-sidebar,
  .cart-actions,
  .promo-input-group {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 16pt 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24pt;
  }

  .product-gallery {
    position: static;
  }

  .cart-table th,
  .cart-table td {
    padding: 8pt 10pt;
    font-size: 10pt;
  }

  .order-status-bar {
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  tr {
    page-break-inside: avoid;
  }

  .cart-summary-box {
    position: static;
    box-shadow: none;
    border: 1pt solid #ccc;
  }

  img {
    max-width: 200pt;
  }
}
