/* Reset and Root Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #ff6600;
  --primary-hover: #e55c00;
  --primary-light: #fff0e6;
  --dark-color: #222222;
  --gray-dark: #555555;
  --gray-medium: #888888;
  --gray-light: #f6f6f6;
  --border-color: #e5e5e5;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

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

button, input {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Utilities */
.text-center { text-align: center; }
.bold { font-weight: 700; }
.italic { font-style: italic; }
.font-small { font-size: 12px; }
.font-medium { font-size: 14px; }
.font-xsmall { font-size: 10px; }
.icon-small { width: 16px; height: 16px; }
.icon-medium { width: 20px; height: 20px; }
.bg-gray { background-color: #333333; }
.bg-white { background-color: var(--white); }
.bg-black { background-color: var(--black); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark-color); }
.text-blue { color: #0066cc; }
.text-green { color: #00aa66; }
.text-orange { color: var(--primary-color); }

/* --- Top Announcement Bar --- */
.announcement-bar {
  background-color: #0d1216;
  color: var(--white);
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  position: relative;
}

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

.announcement-item svg {
  color: #00e676; /* Green check/delivery icon */
}

.announcement-item a:hover {
  text-decoration: underline;
}

.announcement-item .highlight {
  color: #ffb300;
  font-weight: 600;
}

.announcement-item .bold {
  font-weight: 700;
}

.bar-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.chevron-inline {
  width: 8px;
  height: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
}

@media (max-width: 768px) {
  .announcement-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
  }
  .bar-divider {
    display: none;
  }
}

/* --- Header Navigation --- */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.temu-logo-box {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 48px;
  box-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
  transition: var(--transition);
}

.temu-logo-box:hover {
  transform: translateY(-2px);
  background-color: var(--primary-hover);
}

.logo-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 100%;
}

.logo-icon-svg {
  width: 10px;
  height: 10px;
  fill: var(--white);
}

.temu-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-top: 2px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
  white-space: nowrap;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-item:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

/* Search Bar */
.search-bar-wrapper {
  flex-grow: 1;
  max-width: 500px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 14px;
  transition: var(--transition);
  background-color: var(--gray-light);
}

.search-input:focus {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.search-button {
  position: absolute;
  right: 4px;
  background-color: var(--dark-color);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

/* Header Utilities */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}

.util-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--dark-color);
}

.util-item:hover {
  color: var(--primary-color);
}

.util-text-double {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.util-text-double .small-text {
  font-size: 10px;
  color: var(--gray-medium);
}

.util-text-double .bold-text {
  font-size: 12px;
  font-weight: 700;
}

.util-text {
  font-size: 13px;
}

.bold-text {
  font-weight: 600;
}

.cart-icon-wrapper {
  background-color: var(--gray-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .search-bar-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .header-utilities {
    gap: 12px;
  }
  .util-text-double, .util-text {
    display: none;
  }
}

/* --- Breadcrumbs --- */
.breadcrumb-container {
  padding: 16px 24px;
  background-color: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-medium);
}

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

.breadcrumbs .separator {
  color: var(--border-color);
  font-size: 11px;
}

.breadcrumbs .current {
  color: var(--dark-color);
  font-weight: 500;
}

/* --- Hero Banner Section --- */
.hero-section {
  max-width: 1400px;
  margin: 0 auto 32px auto;
  padding: 0 24px;
}

.hero-container {
  background: linear-gradient(135deg, #fefefe 0%, #fff7f2 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-text-content h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-dark);
}

.hero-image-wrapper {
  max-width: 320px;
  width: 100%;
}

.hero-illustration {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.hero-container:hover .hero-illustration {
  transform: scale(1.05) rotate(2deg);
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    padding: 30px;
    text-align: center;
    gap: 24px;
  }
  .hero-text-content h1 {
    font-size: 32px;
  }
  .hero-image-wrapper {
    max-width: 200px;
  }
}

/* --- Support Help Cards --- */
.support-cards-section {
  max-width: 1400px;
  margin: 0 auto 48px auto;
  padding: 0 24px;
}

.support-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.support-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #ffd8cc;
}

.card-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.card-icon-circle svg {
  width: 28px;
  height: 28px;
}

.orange-bg {
  background-color: var(--primary-color);
}

.dark-orange-bg {
  background-color: #f24e1e;
}

.card-details {
  flex-grow: 1;
}

.card-details h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-details p {
  color: var(--gray-dark);
  font-size: 14px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.address-text {
  font-weight: 500;
  color: var(--dark-color) !important;
}

.warning-alert {
  background-color: #fff9f6;
  border: 1px dashed #ffd5c6;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.warning-dot {
  color: #ff5000;
  font-size: 10px;
  margin-top: 3px;
}

.warning-alert p {
  font-size: 12px;
  color: #ff5000;
  margin-bottom: 0;
  line-height: 1.4;
}

.warning-link {
  color: #ff5000;
  font-weight: 600;
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .support-cards-grid {
    grid-template-columns: 1fr;
  }
  .support-card {
    padding: 24px;
  }
}

/* --- Social Media Section --- */
.social-media-section {
  max-width: 1400px;
  margin: 0 auto 56px auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--dark-color);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.social-card {
  background-color: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
}

.social-card:hover {
  background-color: var(--white);
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

/* Brand Colors */
.instagram-gradient {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.facebook-blue {
  background-color: #1877f2;
}

.twitter-black {
  background-color: #111111;
}

.tiktok-dark {
  background-color: #000000;
}

.youtube-red {
  background-color: #ff0000;
}

.pinterest-red {
  background-color: #e60023;
}

.social-details {
  display: flex;
  flex-direction: column;
}

.social-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
}

.social-handle {
  font-size: 12px;
  color: var(--gray-medium);
}

/* --- FAQ Accordion Grid --- */
.faq-section {
  max-width: 1400px;
  margin: 0 auto 56px auto;
  padding: 0 24px;
}

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

.faq-category {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.faq-category:hover {
  box-shadow: var(--shadow-sm);
  border-color: #e0e0e0;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--gray-light);
}

.category-icon {
  width: 24px;
  height: 24px;
  color: var(--dark-color);
}

.faq-category-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
}

.faq-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-links li a {
  font-size: 14px;
  color: var(--gray-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--gray-light);
}

.faq-links li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.faq-links .arrow {
  font-size: 11px;
  color: var(--gray-medium);
  transition: transform 0.2s;
}

.faq-links li a:hover .arrow {
  color: var(--primary-color);
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-links {
    grid-template-columns: 1fr;
  }
}

/* --- Secondary Help CTA --- */
.secondary-cta-section {
  max-width: 1400px;
  margin: 0 auto 72px auto;
  padding: 0 24px;
}

.secondary-cta-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark-color);
  border: 1.5px solid var(--border-color);
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--dark-color);
  background-color: var(--gray-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Sticky Floating Action Buttons --- */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.float-btn svg {
  width: 20px;
  height: 20px;
  color: var(--dark-color);
}

.float-label {
  font-size: 9px;
  color: var(--gray-dark);
  font-weight: 600;
  margin-top: 2px;
}

.float-btn:hover {
  background-color: var(--primary-light);
  border-color: #ffd8cc;
}

.float-btn:hover svg {
  color: var(--primary-color);
}

.float-btn:hover .float-label {
  color: var(--primary-color);
}

/* Scroll top button styling when hidden/shown */
.scroll-top-btn {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

@media (max-width: 768px) {
  .floating-actions {
    right: 16px;
    bottom: 30px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-label {
    display: none;
  }
}

/* --- Footer --- */
.main-footer {
  background-color: #15171a;
  color: #a0a5ab;
  padding: 56px 24px 24px 24px;
  border-top: 1px solid #282b30;
}

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

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

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: #a0a5ab;
}

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

.app-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.app-features-list li {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a5ab;
}

.check-icon {
  color: #00e676;
  font-weight: 700;
}

.app-download-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.app-download-buttons a {
  display: flex;
  align-items: center;
  background-color: #2b2f36;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 140px;
  border: 1px solid transparent;
}

.app-download-buttons a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: #353a42;
}

.app-download-buttons svg {
  width: 100%;
  height: 24px;
}

.footer-social-wrapper h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.footer-social-icons a {
  background-color: #2b2f36;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a5ab;
}

.footer-social-icons a:hover {
  background-color: var(--white);
  color: var(--black);
}

.footer-social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .app-features-list {
    grid-template-columns: 1fr;
  }
}

/* --- Badges & Certifications Row --- */
.footer-badges-container {
  border-top: 1px solid #282b30;
  border-bottom: 1px solid #282b30;
  padding: 32px 0;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.badge-group h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-item {
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-text {
  font-size: 11px;
}

.font-apple {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* Colors inside G Pay */
.g-blue { color: #4285F4; }
.g-red { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green { color: #34A853; }

.circle-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.circle-badge.red { background-color: #eb001b; }
.circle-badge.yellow { background-color: #ff5f00; margin-left: -5px; }

@media (max-width: 768px) {
  .footer-badges-container {
    flex-direction: column;
    gap: 24px;
  }
}

/* --- Legal Footer Row --- */
.footer-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.privacy-choice-icon {
  color: #00e676;
  font-weight: bold;
}

@media (max-width: 600px) {
  .footer-legal-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
