* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #f6f6f7;
  color: #111;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  width: 100%;
  padding: 18px 6%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e7e7e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #111;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
}

.icon-link {
  position: relative;
  font-size: 18px;
}

.icon-link span {
  position: absolute;
  top: -9px;
  right: -11px;
  background: #111;
  color: white;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 6% 50px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.small-label {
  font-size: 13px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 58px;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 600px;
}

.hero-description {
  font-size: 17px;
  color: #5f5f5f;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-dark {
  background: #111;
  color: white;
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: #111;
  border: 1px solid #ddd;
}

.btn-light:hover {
  background: #f2f2f2;
}

.hero-image img {
  border-radius: 24px;
  height: 500px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.brands {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 6% 50px;
  text-align: center;
}

.brands p {
  color: #777;
  margin-bottom: 20px;
}

.brand-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: #333;
  font-weight: 600;
}

.apple-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 6% 60px;
}

.apple-card {
  border-radius: 28px;
  padding: 50px;
  min-height: 260px;
  display: flex;
  align-items: end;
  overflow: hidden;
  transition: 0.35s;
}

.apple-card:hover {
  transform: translateY(-6px);
}

.apple-card.dark {
  background: linear-gradient(135deg, #111, #2d2d2d);
  color: white;
  margin-bottom: 22px;
}

.apple-card.light {
  background: #ffffff;
}

.apple-card.gray {
  background: #eceef2;
}

.apple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.apple-text h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.apple-text h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.apple-text p {
  max-width: 520px;
  color: inherit;
}

.filters-section,
.products-section,
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 6% 60px;
}

.filters-section h2,
.section-head h2,
.page-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.section-head p,
.page-subtitle {
  color: #666;
  margin-bottom: 28px;
}

.search-box {
  margin: 24px 0 18px;
}

.search-box input {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  outline: none;
  font-size: 15px;
  background: white;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filters button {
  padding: 10px 18px;
  border: none;
  background: white;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  border: 1px solid #e4e4e4;
  transition: 0.3s;
}

.filters button:hover,
.filters button.active {
  background: #111;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: white;
  border-radius: 22px;
  padding: 18px;
  transition: 0.35s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.product-image-wrap {
  background: #f4f5f7;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-card img {
  height: 190px;
  object-fit: contain;
  transition: 0.35s;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-category {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.stars {
  color: #f5b301;
  margin-bottom: 10px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.product-actions button {
  flex: 1;
  padding: 11px 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.cart-btn {
  background: #111;
  color: white;
}

.cart-btn:hover {
  background: #000;
}

.heart-btn {
  width: 48px;
  flex: unset !important;
  background: #f1f2f4;
  color: #111;
  font-size: 18px;
}

.heart-btn:hover {
  background: #ececec;
}

.heart-btn.active {
  color: #e11d48;
  background: #ffe5ec;
}

.newsletter {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 6%;
}

.newsletter-content {
  background: #111;
  color: white;
  border-radius: 28px;
  padding: 50px 30px;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 34px;
  margin-bottom: 22px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  width: 320px;
  max-width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  outline: none;
}

.newsletter-form button {
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.empty-message {
  background: white;
  border-radius: 20px;
  padding: 30px;
  color: #666;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}

.panel {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cart-item,
.wishlist-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

.cart-item:last-child,
.wishlist-item:last-child {
  border-bottom: none;
}

.item-image {
  background: #f4f5f7;
  border-radius: 16px;
  padding: 10px;
}

.item-image img {
  height: 70px;
  object-fit: contain;
}

.item-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.item-meta {
  color: #666;
  font-size: 14px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.remove-btn,
.secondary-btn,
.primary-btn {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.remove-btn {
  background: #f3f4f6;
  color: #111;
  padding: 10px 14px;
}

.primary-btn {
  width: 100%;
  background: #111;
  color: white;
  padding: 14px 18px;
}

.primary-btn:hover {
  background: #000;
}

.secondary-btn {
  width: 100%;
  background: #f3f4f6;
  color: #111;
  padding: 14px 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #444;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  margin-top: 18px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.success-box {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-link {
  display: block;
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.single-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: white;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.single-product-image {
  background: #f4f5f7;
  border-radius: 24px;
  padding: 30px;
}

.single-product-image img {
  width: 100%;
  height: 420px;
  object-fit: contain;
}

.single-product-info h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.single-product-info .product-category {
  margin-bottom: 12px;
}

.single-product-info .single-price {
  font-size: 30px;
  font-weight: 800;
  margin: 16px 0;
}

.single-product-info .single-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.single-product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.single-product-actions button,
.single-product-actions a {
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn {
  background: #f3f4f6;
  color: #111;
}

.back-btn:hover {
  background: #e9eaec;
}

.loading-box {
  background: white;
  border-radius: 20px;
  padding: 30px;
  color: #666;
}

.site-footer {
  background: #111;
  color: #d4d4d8;
  margin-top: 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 6% 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-links p,
.footer-links a {
  color: #b3b3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 20px 26px;
  color: #8f8f96;
  font-size: 14px;
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 44px;
  }

  .apple-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-layout,
  .checkout-layout,
  .single-product,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    flex-direction: column;
    padding: 20px 6%;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-image img {
    height: 320px;
  }

  .apple-card {
    padding: 30px 24px;
    min-height: 220px;
  }

  .apple-text h2 {
    font-size: 28px;
  }

  .apple-text h3 {
    font-size: 24px;
  }

  .filters-section h2,
  .section-head h2,
  .newsletter-content h2,
  .page-title {
    font-size: 28px;
  }

  .product-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-content {
    padding: 38px 20px;
  }

  .cart-item,
  .wishlist-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .single-product-image img {
    height: 300px;
  }

  .single-product-info h1 {
    font-size: 30px;
  }
}
.chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #2d2d2d);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
}

.chatbot-toggle:hover {
  transform: translateY(-4px) scale(1.03);
  background: #000;
}

.chatbot-box {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 360px;
  max-width: calc(100% - 32px);
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: 0.3s ease;
}

.chatbot-box.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: #111;
  color: white;
  padding: 18px 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.chatbot-header p {
  font-size: 12px;
  color: #cfcfd4;
}

.chatbot-header button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.chatbot-messages {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: #f8f8fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-message,
.user-message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.bot-message {
  background: white;
  color: #111;
  align-self: flex-start;
  border: 1px solid #ececec;
}

.user-message {
  background: #111;
  color: white;
  align-self: flex-end;
}

.chatbot-quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  flex-wrap: wrap;
  background: white;
}

.chatbot-quick-actions button {
  border: 1px solid #e4e4e7;
  background: #f7f7f8;
  color: #111;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.3s;
}

.chatbot-quick-actions button:hover {
  background: #111;
  color: white;
}

.chatbot-input-area {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: white;
  border-top: 1px solid #ececec;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 13px 16px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
}

.chatbot-input-area button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.chatbot-input-area button:hover {
  background: #000;
}

@media (max-width: 768px) {
  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .chatbot-box {
    right: 16px;
    bottom: 82px;
    width: calc(100% - 32px);
  }

  .chatbot-messages {
    height: 280px;
  }
}
.typing-message {
  display: flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
}

.typing-message span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  display: inline-block;
  animation: bounceDots 1.2s infinite ease-in-out;
}

.typing-message span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-message span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounceDots {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chatbot-header h3 {
  letter-spacing: 0.3px;
}

.chatbot-box {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-messages::-webkit-scrollbar {
  width: 7px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 20px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
/* Fixed Velora interactions */
.toast-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(14px);
  transition: 0.25s ease;
  z-index: 9999;
  font-size: 14px;
  font-weight: 700;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.wishlist-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.small-action {
  width: auto;
  padding: 10px 14px;
}

.detail-actions {
  max-width: 360px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: #555;
  font-weight: 600;
}

.back-link:hover {
  color: #111;
}

@media (max-width: 768px) {
  .toast-message {
    left: 16px;
    right: 16px;
    text-align: center;
  }

  .wishlist-actions {
    width: 100%;
  }

  .wishlist-actions button {
    flex: 1;
  }
}
#authArea {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn,
.logout-btn,
.auth-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.login-btn:hover,
.logout-btn:hover {
  background: #111;
  color: white;
}

.auth-btn {
  background: #f3f4f6;
  cursor: default;
}
.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.thank-you-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.thank-you-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: popUp 0.3s ease;
}

.thank-you-card h2 {
  margin-bottom: 10px;
}

.thank-you-card p {
  color: #666;
  margin-bottom: 20px;
}

.thank-you-card button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}

@keyframes popUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
  }
#authArea {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* NORMAL */
.login-btn,
.logout-btn,
.auth-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  /* shrink EVERYTHING */
  #authArea {
    gap: 4px;
  }

  .login-btn,
  .logout-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  .auth-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  /* 🔥 THIS IS THE KEY PART */
  .auth-btn {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 768px) {

  body {
    padding: 20px;
    height: auto;
  }

  .container {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .right {
    padding: 30px 20px;
  }

  input {
    padding: 12px;
    font-size: 14px;
  }

  button {
    padding: 12px;
    font-size: 14px;
  }

  h2 {
    font-size: 20px;
  }
}