/* ============================================
   GearDrop - Smart Home & Auto Gear Store
   Cross-border E-commerce Dropshipping Site
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1280px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

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

ul { list-style: none; }

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

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.cart-btn {
  position: relative;
  background: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.cart-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text);
  padding: 8px;
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--bg);
}

.search-result-item .thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #1D4ED8 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #1E293B;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,0.4);
}

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

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

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

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

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

.btn-danger:hover {
  background: #DC2626;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

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

/* --- Features Bar --- */
.features-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Section Styles --- */
.section {
  padding: 64px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.badge-hot {
  background: var(--danger);
}

.badge-new {
  background: var(--success);
}

.badge-sale {
  background: var(--accent);
  color: #1E293B;
}

.product-image {
  height: 260px;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

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

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

.product-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.product-actions button:hover {
  background: var(--primary);
  color: white;
}

.product-info {
  padding: 20px;
}

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

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-info h3 a {
  color: var(--text);
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
}

.review-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

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

.add-to-cart-btn {
  width: 100%;
  margin-top: 16px;
}

/* --- Categories Section --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

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

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Benefits Section --- */
.benefits-section {
  background: var(--bg-white);
}

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

.benefit-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.benefit-card:hover {
  background: var(--bg);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.author-verified {
  font-size: 0.75rem;
  color: var(--success);
}

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 64px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

/* --- Footer --- */
.footer {
  background: #1E293B;
  color: #CBD5E1;
  padding: 64px 0 0;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #94A3B8;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
}

.payment-icons {
  display: flex;
  gap: 12px;
  font-size: 1.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb span {
  margin: 0 8px;
}

/* --- Products Page --- */
.products-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.filters-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

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

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

.filter-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.filter-group label:hover {
  color: var(--text);
}

.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
}

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

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

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

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

.products-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-white);
  cursor: pointer;
}

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.main-image {
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  border-radius: var(--radius-lg);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  margin-bottom: 16px;
  overflow: hidden;
}

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

.thumbnail-list {
  display: flex;
  gap: 12px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

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

.product-detail-info h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-price {
  margin-bottom: 20px;
}

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

.detail-price .original-price {
  font-size: 1.2rem;
}

.detail-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-features {
  margin-bottom: 24px;
}

.detail-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
}

.detail-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.2s;
}

.quantity-selector button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quantity-selector button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quantity-selector button:hover {
  background: var(--border);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-actions .btn {
  flex: 1;
}

.detail-meta {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Detail Description Gallery (CJ Style) --- */
.detail-desc-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.detail-desc-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-desc-gallery .desc-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  padding: 12px 0 4px;
  margin-top: 16px;
  color: var(--text);
  text-align: center;
}

/* --- Specs Table --- */
.detail-specs {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-specs h4 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 24px 24px 16px;
  background: var(--bg);
  margin: 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.specs-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--text-secondary);
  width: 40%;
  background: var(--bg);
}

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

/* --- Cart Sidebar --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 3000;
  box-shadow: var(--shadow-xl);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2999;
  display: none;
}

.cart-overlay.active {
  display: block;
}

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

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.close-cart {
  background: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  padding: 4px;
}

.close-cart:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.cart-item-qty span {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-item {
  background: none;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-left: 8px;
}

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

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-total span:last-child {
  color: var(--primary);
  font-size: 1.3rem;
}

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

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--success);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 4000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- About Page --- */
.about-hero {
  background: var(--primary);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.about-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .product-gallery {
    position: static;
  }

  .products-page {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 48px 0;
  }

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

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

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

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

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

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

  .detail-actions {
    flex-direction: column;
  }
}

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

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

  .product-image {
    height: 180px;
    font-size: 3rem;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 0.9rem;
  }
}

/* --- Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.chat-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
}

.chat-panel.active {
  display: block;
}

.chat-panel-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-panel-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.chat-panel-close {
  background: none;
  color: white;
  font-size: 1.2rem;
  opacity: 0.8;
}

.chat-panel-close:hover { opacity: 1; }

.chat-panel-body {
  padding: 20px;
}

.chat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: white;
  width: 100%;
  text-align: left;
}

.chat-option:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.chat-option .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.chat-panel-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .chat-panel {
    width: 280px;
    right: -10px;
  }
}
