/* ===== TrendFinds - Global Styles ===== */
:root {
  --primary: #ff6b6b;
  --primary-dark: #ee5a5a;
  --secondary: #4ecdc4;
  --dark: #2d3436;
  --gray: #636e72;
  --light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ===== Header & Navigation ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 5%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.logo span {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--gray);
  position: relative;
  padding: 5px 0;
}

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

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

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

.cart-icon {
  position: relative;
  font-size: 1.4rem;
  color: var(--dark);
  background: none;
  padding: 8px;
}

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

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

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

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--dark);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 1rem;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat .label {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
}

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

/* ===== Value Props ===== */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-prop {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-prop:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-prop .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-prop h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-prop p {
  color: var(--gray);
  font-size: 0.95rem;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

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

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

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
  transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-actions button {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.btn-view {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.btn-view:hover {
  background: var(--dark);
  color: var(--white);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.product-solves {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-solves::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffc107;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--gray);
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.original-price {
  font-size: 1rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* ===== Category Filter ===== */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--gray);
}

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  font-size: 1rem;
}

.testimonial-info .stars {
  font-size: 0.9rem;
}

.testimonial p {
  color: var(--gray);
  font-style: italic;
}

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

.newsletter h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form .btn {
  background: var(--dark);
  color: var(--white);
}

.newsletter-form .btn:hover {
  background: #000;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col p,
.footer-col a {
  color: #b2bec3;
  font-size: 0.95rem;
  line-height: 2;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #b2bec3;
  font-size: 0.9rem;
}

/* ===== Product Detail Page ===== */
.product-detail {
  padding: 40px 5%;
}

.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.main-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

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

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 2rem 0;
}

.breadcrumb {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.product-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rating-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-large .stars {
  font-size: 1.2rem;
}

.rating-large span {
  font-weight: 600;
}

.product-description {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.feature-item::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}

.solves-problem {
  background: #e8f8f5;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary);
}

.solves-problem strong {
  color: var(--secondary);
  font-size: 1.1rem;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original-large {
  font-size: 1.5rem;
  color: var(--gray);
  text-decoration: line-through;
}

.discount-badge {
  background: #ffeaea;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.product-actions-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-selector label {
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-controls button {
  width: 40px;
  height: 40px;
  background: var(--light);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark);
}

.quantity-controls button:hover {
  background: #e0e0e0;
}

.quantity-controls input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
}

.product-shipping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== Cart Page ===== */
.cart-page {
  padding: 40px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.cart-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.cart-item-remove {
  color: #e74c3c;
  background: none;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

.cart-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  padding-top: 1rem;
  border-top: 2px solid #eee;
  margin-top: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-cart h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empty-cart p {
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ===== Checkout Page ===== */
.checkout-page {
  padding: 40px 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

.checkout-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.order-summary-checkout {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.order-summary-checkout h3 {
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
  margin-top: 1rem;
}

/* ===== AliExpress Integration ===== */
.aliexpress-import {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.aliexpress-import h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.aliexpress-import p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.import-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.import-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.import-form input:focus {
  border-color: var(--primary);
}

.import-form .btn {
  white-space: nowrap;
}

.import-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #e8f8f5;
  border-radius: var(--radius);
  display: none;
}

.import-result.success {
  display: block;
}

.import-result.error {
  display: block;
  background: #ffeaea;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #27ae60;
}

.toast.error {
  background: #e74c3c;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    padding: 60px 5%;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 5%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }

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

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-remove {
    grid-column: 1 / -1;
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .price-large {
    font-size: 2rem;
  }
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 2rem;
  z-index: 999;
}

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

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: var(--dark);
}

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

/* ===== Auth Nav ===== */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

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

.auth-link-signup {
  background: var(--primary);
  color: var(--white);
}

.auth-link-signup:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.auth-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

/* ===== Auth Pages ===== */
.auth-section {
  padding: 60px 5%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 460px;
  border: 1px solid #f0f0f0;
}

.auth-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: var(--gray);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form .btn {
  width: 100%;
}

.auth-btn {
  margin-top: 0.5rem;
  padding: 14px;
}

.auth-footer {
  text-align: center;
  color: var(--gray);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-message {
  background: #ffeaea;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== Admin Panel ===== */
.admin-page {
  padding: 40px 5%;
  background: var(--light);
  min-height: 80vh;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 800;
}

.admin-header p {
  color: var(--gray);
  margin-top: 0.25rem;
}

.admin-tag {
  font-size: 0.7rem;
  background: var(--secondary);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  letter-spacing: 0;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-card-sub {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.field-hint {
  display: block;
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.admin-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-message.success {
  background: #e8f8f5;
  color: #1e8449;
}

.admin-message.error {
  background: #ffeaea;
  color: #c0392b;
}

.form-message {
  background: #ffeaea;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  background: var(--light);
}

.admin-table tr:hover td {
  background: #fcfcfc;
}

.inactive-row {
  opacity: 0.6;
}

.admin-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-name {
  font-weight: 600;
}

.admin-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e8f8f5;
  color: #1e8449;
}

.admin-status.inactive {
  background: #f0f0f0;
  color: var(--gray);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.admin-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-btn-danger {
  color: #e74c3c;
}

.admin-btn-danger:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: #ffeaea;
}

/* ===== Buy on AliExpress ===== */
.btn-aliexpress {
  background: #e62e04;
  color: var(--white);
}

.btn-aliexpress:hover {
  background: #c42804;
  box-shadow: 0 8px 20px rgba(230, 46, 4, 0.3);
}

.buy-aliexpress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem;
  }
}
