/* ==========================================================================
   DESIGN SYSTEM - BUDLI WEB COPY
   ========================================================================== */

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

:root {
  /* Color Palette - HSL Tailored */
  --primary-hue: 336;
  --primary-sat: 74%;
  --primary-light: 45%; /* #bc1c5c - ITBT Magenta style */
  
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), calc(var(--primary-light) - 8%));
  --primary-glow: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.15);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Theme: Light (Default) */
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-glow: rgba(188, 28, 92, 0.1);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-color: #0b0f19;
  --bg-card: #151f32;
  --bg-card-hover: #1b283f;
  --bg-nav: rgba(11, 15, 25, 0.85);
  --border-color: #1e293b;
  --border-glow: rgba(188, 28, 92, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-on-primary: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  
  --glass-bg: rgba(21, 31, 50, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html, body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ANNOUNCEMENT & HEADER
   ========================================================================== */

.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #ec4899 50%, var(--primary) 100%);
  color: white;
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 100;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Search Bar Container */
.search-wrapper {
  position: relative;
  flex: 0 1 400px;
  margin: 0 24px;
}

.search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  transition: all var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: var(--bg-card);
}

.search-bar input {
  width: 100%;
  font-size: 14px;
  padding-left: 8px;
}

.search-bar i {
  color: var(--text-muted);
}

/* Suggestive search results */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 101;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

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

.suggestion-item:hover {
  background-color: var(--bg-card-hover);
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}

.suggestion-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.suggestion-details span {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* Actions in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  position: relative;
  font-size: 18px;
  transition: all var(--transition-fast);
}

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

.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.3s ease;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 10px rgba(188, 28, 92, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(188, 28, 92, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(188, 28, 92, 0.4) 100%), url('../assets/images/hero_banner.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 64px;
  color: white;
  opacity: 1; /* Dynamic switchable slider if needed */
  transition: opacity var(--transition-slow);
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

.hero-tag {
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */

.trust-badges {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

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

.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.trust-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

/* ==========================================================================
   CIRCULAR CATEGORIES
   ========================================================================== */

.categories-section {
  padding: 48px 0;
}

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

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.category-circle-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

.category-circle-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-card-hover);
}

.category-image-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-pill);
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.category-circle-card:hover .category-image-wrap {
  background-color: var(--primary-glow);
  transform: scale(1.05);
}

.category-image-wrap i {
  font-size: 38px;
  color: var(--primary);
}

.category-circle-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.category-circle-card span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCT CARD & GRID
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-premium);
}

.card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

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

.badge-discount {
  background-color: #ef4444;
  color: white;
}

.card-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.card-wishlist:hover {
  transform: scale(1.1);
  color: #ef4444;
}

.card-wishlist.active {
  color: #ef4444;
  background-color: #fef2f2;
  border-color: #fee2e2;
}

.product-image-container {
  height: 220px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.product-image-container img {
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.product-brand {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 42px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--warning);
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 4px;
}

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

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

.old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

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

.product-card-footer .btn {
  width: 100%;
}

/* ==========================================================================
   SELL DEVICE CTA
   ========================================================================== */

.sell-promo-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #31103f 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.sell-promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

.sell-promo-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sell-promo-title {
  font-size: 38px;
  font-weight: 800;
}

.sell-promo-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.sell-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.sell-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sell-step-num {
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.sell-promo-graphic {
  display: flex;
  justify-content: center;
}

.graphic-circle {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--primary) 0%, rgba(188, 28, 92, 0.1) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 50px rgba(188, 28, 92, 0.3);
}

.graphic-circle i {
  font-size: 80px;
  color: white;
  animation: float 3s ease-in-out infinite;
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */

.testimonials-section {
  padding: 64px 0;
  background-color: var(--bg-card);
}

.testimonial-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.quote-icon {
  font-size: 32px;
  color: var(--primary-glow);
}

.testimonial-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
}

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

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
  padding: 64px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

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

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1), padding var(--transition-normal);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 24px;
  transition: max-height var(--transition-normal) cubic-bezier(1, 0, 1, 0), padding var(--transition-normal);
}

.faq-question i {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 64px 0 24px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h3 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-newsletter p {
  font-size: 14px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  margin-top: 8px;
}

.newsletter-form input {
  background-color: #1e293b;
  color: white;
  border: 1px solid #334155;
  border-right: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
  width: 100%;
}

.newsletter-form button {
  background-color: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   CART SIDEBAR DRAWER
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

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

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

.drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.close-drawer-btn {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--text-main);
}

.drawer-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 12px;
}

.empty-cart-state i {
  font-size: 48px;
  color: var(--border-color);
}

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

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item-grade {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--success);
}

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

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
}

.remove-item-btn {
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
  align-self: flex-start;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.remove-item-btn:hover {
  color: #ef4444;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-card);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.cart-summary-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-summary-total span {
  color: var(--primary);
}

.drawer-footer .btn {
  width: 100%;
}

/* ==========================================================================
   CATEGORY & FILTERING STYLES (category.html)
   ========================================================================== */

.category-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.filter-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-filters-btn {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

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

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

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

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-option-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.category-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}

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

.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.toolbar-sort select {
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (product.html)
   ========================================================================== */

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 40px 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-wrap {
  height: 480px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.main-image-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.thumb-img {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

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

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

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info-brand {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.product-info-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.product-info-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.verified-buyer-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
}

.verified-buyer-reviews span {
  color: var(--text-muted);
}

.badge-stock {
  background-color: var(--success-glow);
  color: var(--success);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.product-info-price-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.grade-pill {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-color);
  transition: all var(--transition-fast);
}

.grade-pill:hover {
  border-color: var(--primary);
}

.grade-pill.active {
  border-color: var(--primary);
  background-color: var(--primary-glow);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.grade-name {
  font-size: 14px;
  font-weight: 700;
}

.grade-price {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

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

.product-info-actions .btn {
  flex-grow: 1;
}

.qc-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 14px;
}

.qc-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qc-feature-item i {
  color: var(--success);
}

.tabs-container {
  margin-top: 32px;
}

.tab-headers {
  display: flex;
  border-bottom: 2px solid var(--border-color);
}

.tab-header {
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-header.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  padding: 24px 0;
  animation: fadeIn 0.3s ease;
}

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

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

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 12px 16px;
}

.specs-label {
  font-weight: 700;
  color: var(--text-muted);
  width: 30%;
}

.specs-val {
  color: var(--text-main);
}

/* ==========================================================================
   SELL CALCULATOR PAGE (sell.html)
   ========================================================================== */

.sell-layout {
  max-width: 800px;
  margin: 40px auto;
}

.sell-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.sell-header {
  text-align: center;
  margin-bottom: 32px;
}

.sell-header h1 {
  font-size: 32px;
  font-weight: 800;
}

.sell-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.sell-form-group {
  margin-bottom: 24px;
}

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

.sell-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sell-select:focus {
  border-color: var(--primary);
}

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

.sell-radio-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-color);
  transition: all var(--transition-fast);
}

.sell-radio-card:hover {
  border-color: var(--primary);
}

.sell-radio-card.active {
  border-color: var(--primary);
  background-color: var(--primary-glow);
  color: var(--primary);
}

.sell-radio-card i {
  font-size: 24px;
  margin-bottom: 8px;
}

.sell-radio-card h4 {
  font-size: 14px;
  font-weight: 700;
}

.sell-radio-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sell-radio-card.active p {
  color: var(--primary);
}

.sell-quote-box {
  background-color: var(--primary-glow);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 32px;
  display: none;
  animation: popIn 0.3s ease;
}

.sell-quote-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.sell-quote-val {
  font-size: 38px;
  font-weight: 800;
  margin: 12px 0;
  color: var(--primary);
}

.sell-quote-box .btn {
  margin-top: 8px;
}

/* ==========================================================================
   CHECKOUT PAGE & SIMULATION (checkout.html)
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 40px 0;
}

.checkout-form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.checkout-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.checkout-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.checkout-input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-input-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-color);
  font-size: 14px;
}

.checkout-input-group input:focus {
  border-color: var(--primary);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background-color: var(--bg-color);
  transition: all var(--transition-fast);
}

.payment-method-card:hover {
  border-color: var(--primary);
}

.payment-method-card.active {
  border-color: var(--primary);
  background-color: var(--primary-glow);
  color: var(--primary);
}

.payment-method-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payment-method-card i {
  font-size: 20px;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-title {
  font-size: 14px;
  font-weight: 700;
}

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

.payment-method-card.active .payment-desc {
  color: var(--primary);
}

.checkout-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-items-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.checkout-price-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Checkout Success Modal overlay */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.success-modal {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-premium);
  animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background-color: var(--success-glow);
  color: var(--success);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px auto;
  position: relative;
}

.success-icon-wrap::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--success);
  border-radius: var(--radius-pill);
  opacity: 0.3;
  animation: pulseScale 1.5s infinite;
}

.success-modal h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-modal p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseScale {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-slider {
    height: 400px;
  }
  .hero-title {
    font-size: 38px;
  }
  .category-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: relative;
    top: 0;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .nav-menu {
    display: none; /* Mobile navigation should be implemented via slide drawer */
  }
  .search-wrapper {
    flex: 1 1 auto;
    margin: 0 12px;
  }
  .hero-slider {
    height: 320px;
  }
  .hero-slide {
    padding: 0 32px;
  }
  .hero-title {
    font-size: 28px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .sell-promo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
    text-align: center;
  }
  .sell-promo-graphic {
    order: -1;
  }
  .sell-step {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sell-radios {
    grid-template-columns: 1fr;
  }
  .checkout-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
