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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --accent: #ffffff;
  --accent-hover: #cccccc;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

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

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

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

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

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

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

/* Nav Search Bar */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 16px;
  flex: 0 1 320px;
  min-width: 180px;
}

.nav-search-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  min-width: 0;
}

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

.nav-search-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.nav-search-btn {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===== Hero Carousel ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide backgrounds — dark gradient placeholders */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.slide-bg-1 {
  background: radial-gradient(ellipse 80% 70% at 30% 50%, #4a2c17 0%, #1a1410 70%);
}

.slide-bg-2 {
  background: radial-gradient(ellipse 80% 70% at 70% 40%, #3a2820 0%, #1a1512 40%, #0a0a0a 80%);
}

.slide-bg-3 {
  background: radial-gradient(ellipse 60% 60% at 50% 30%, #4a3a2a 0%, #1e1a15 50%, #0a0a0a 90%);
}

.slide-bg-4 {
  background: radial-gradient(ellipse 70% 80% at 60% 60%, #5a1a2a 0%, #1a1015 70%);
}

.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.2) 0%,
    rgba(10, 10, 10, 0) 50%,
    rgba(10, 10, 10, 0.6) 100%
  );
}

/* Subtle texture pattern */
.slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.008) 1px,
      rgba(255, 255, 255, 0.008) 2px
    );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: slideFadeIn 0.8s ease;
}

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

.slide-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.slide-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg-primary);
  background: var(--text-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-secondary {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

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

.btn-outline {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
  left: 32px;
}

.carousel-next {
  right: 32px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.indicator.active {
  background: var(--text-primary);
  transform: scale(1.3);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== Section Shared ===== */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 32px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

/* ===== Products Grid ===== */
.products {
  background: var(--bg-primary);
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), background var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--bg-hover);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

/* Product image gradients */
.gradient-1 {
  background: linear-gradient(135deg, #e8d5c4 0%, #d4a574 40%, #c4956a 100%);
}
.gradient-2 {
  background: linear-gradient(135deg, #7b8c7b 0%, #5a6b5a 40%, #3d4d3d 100%);
}
.gradient-3 {
  background: linear-gradient(135deg, #6b7b8d 0%, #4a5a6b 50%, #2d3d4d 100%);
}
.gradient-4 {
  background: linear-gradient(135deg, #8d8d8d 0%, #6a6a6a 50%, #4a4a4a 100%);
}
.gradient-5 {
  background: linear-gradient(135deg, #e8e0d5 0%, #d4c8b8 40%, #c0b0a0 100%);
}
.gradient-6 {
  background: linear-gradient(135deg, #5a6b8a 0%, #3d4d6b 50%, #2a354a 100%);
}
.gradient-7 {
  background: linear-gradient(135deg, #8b6b4a 0%, #6b4d2e 50%, #4a3018 100%);
}
.gradient-8 {
  background: linear-gradient(135deg, #6b5b5b 0%, #4a3d3d 40%, #2d2222 100%);
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.03) 0%, transparent 60%);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: 20px 24px 24px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.product-current-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-old-price {
  font-size: 0.85rem;
  color: #555;
  text-decoration: line-through;
  font-weight: 400;
}

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

.product-stars {
  color: #f0c040;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

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

.products-loading,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Collections ===== */
.collections {
  background: var(--bg-secondary);
}

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

.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}


.collection-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.collection-card:hover .collection-bg {
  transform: scale(1.05);
}

.coll-bg-1 {
  background: linear-gradient(135deg, #5a3a2a 0%, #3a2018 50%, #2a1510 100%);
}
.coll-bg-2 {
  background: linear-gradient(135deg, #4a2a3a 0%, #3a1a2a 50%, #2a101a 100%);
}
.coll-bg-3 {
  background: linear-gradient(135deg, #4a3a2a 0%, #3a2a1a 50%, #2a1a10 100%);
}
.coll-bg-4 {
  background: linear-gradient(135deg, #3a4a3a 0%, #2a3a2a 50%, #1a2a1a 100%);
}
.coll-bg-5 {
  background: linear-gradient(135deg, #5a2020 0%, #3a1515 50%, #2a1010 100%);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.4) 50%,
    rgba(10, 10, 10, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  z-index: 1;
}

.collection-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.collection-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 360px;
}

/* ===== Features ===== */
.features {
  background: var(--bg-primary);
}

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

.tech-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: background var(--transition), transform var(--transition);
}

.tech-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.tech-icon-1 {
  background: linear-gradient(135deg, #5c8a4a 0%, #3a6a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-icon-2 {
  background: linear-gradient(135deg, #8a6a4a 0%, #6a4a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-icon-3 {
  background: linear-gradient(135deg, #4a6a8a 0%, #2a4a6a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-icon-4 {
  background: linear-gradient(135deg, #8a4a5a 0%, #6a2a3a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ===== About / Philosophy ===== */
.about {
  background: var(--bg-secondary);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-icon:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--bg-hover);
}

.newsletter p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

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

.btn-subscribe {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg-primary);
  background: var(--text-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-subscribe:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ===== Auth Modal (Dark Theme) ===== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.auth-overlay.show {
  display: flex;
}

.auth-modal {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #2a2a2a;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b6b6b;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

.auth-body {
  padding: 28px 24px;
}

.auth-body .form-group {
  margin-bottom: 18px;
}

.auth-body .form-group label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-body .form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-body .form-group input:focus {
  border-color: #555;
}

.auth-body .form-group input::placeholder {
  color: #555;
}

/* Code row: input + send button */
.code-row {
  display: flex;
  gap: 8px;
}

.code-row input {
  flex: 1;
}

.btn-send-code {
  padding: 12px 16px;
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-send-code:hover:not(:disabled) {
  background: #333;
  border-color: #555;
  color: #fff;
}

.btn-send-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: none;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  margin-top: 6px;
}

.auth-submit:hover {
  background: #ddd;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.auth-close:hover {
  color: #fff;
}

.auth-modal-inner {
  position: relative;
}

/* ===== User Dropdown ===== */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  padding: 5px 14px 5px 5px;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.user-btn:hover {
  border-color: #555;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ccc;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 180px;
  overflow: hidden;
  z-index: 100;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #ccc;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #252525;
  color: #fff;
}

.user-dropdown .dropdown-divider {
  height: 1px;
  background: #2a2a2a;
}

/* ===== Profile Section ===== */
.profile-section {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a2a;
}

.profile-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #aaa;
}

.profile-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-header .profile-email {
  font-size: 0.85rem;
  color: #888;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-grid .form-group {
  margin-bottom: 0;
}

.profile-grid .form-group label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}

.profile-grid .form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.profile-grid .form-group input:focus {
  border-color: #555;
}

.profile-grid .form-group input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn-dark-primary {
  padding: 10px 24px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-dark-primary:hover {
  background: #ddd;
}

.btn-dark-outline {
  padding: 10px 24px;
  background: transparent;
  color: #ccc;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-dark-outline:hover {
  border-color: #666;
  color: #fff;
}

.profile-toast {
  display: none;
  margin-top: 16px;
  padding: 10px 16px;
  background: #1a3a1a;
  border: 1px solid #2a5a2a;
  border-radius: 8px;
  color: #5ac85a;
  font-size: 0.85rem;
}

/* Nav login button */
.nav-login-btn {
  padding: 8px 22px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.nav-login-btn:hover {
  background: #ddd;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

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

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


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

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

  .section-container {
    padding: 80px 24px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .carousel-prev {
    left: 16px;
  }

  .carousel-next {
    right: 16px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 0 16px;
    height: 64px;
  }

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

  .product-info {
    padding: 14px 16px 18px;
  }

  .product-name {
    font-size: 0.85rem;
  }

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


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

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

  .social-icons {
    justify-content: center;
  }

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

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

  .carousel-indicators {
    bottom: 100px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .btn-primary {
    padding: 12px 32px;
    font-size: 0.85rem;
  }

  .section-container {
    padding: 60px 16px;
  }

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

  .section-subtitle {
    margin-bottom: 40px;
  }
}

/* ===== View All Button ===== */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.section-header .section-title {
  margin-bottom: 0;
}
.view-all-btn {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 400;
}
.view-all-btn:hover {
  text-decoration: underline;
}


#chatMessages::-webkit-scrollbar { width: 4px; }
#chatMessages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }


/* ===== Language Switcher ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  line-height: 1.4;
}
.lang-switch-btn:hover {
  background: #f1f5f9;
}
.lang-switch-btn.active {
  background: #2563eb;
  color: #fff;
}
.lang-switch-btn + .lang-switch-btn {
  border-left: 1px solid #e2e8f0;
}
@media (max-width: 768px) {
  .lang-switch {
    margin-right: 8px;
  }
  .lang-switch-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
}
