/* ===================================
   MOROTO2026 - Premium Cultural E-commerce
   =================================== */

:root {
  /* Colors */
  --deep-charcoal: #111827;
  --earth-brown: #6b4423;
  --warm-sand: #e8d8b8;
  --karamoja-yellow: #f4b400;
  --terracotta: #c86a3a;
  --olive-green: #6d8b4e;
  --white: #ffffff;
  --background: #fafaf7;
  --text: #1b1b1b;

  /* Typography */
  --font-heading: "Cinzel", "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --font-button: "Manrope", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-charcoal);
}

.brand-accent {
  color: var(--karamoja-yellow);
}

.nav-link {
  font-family: var(--font-button);
  font-weight: 500;
  color: var(--deep-charcoal);
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link:hover {
  color: var(--terracotta);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--karamoja-yellow);
  color: var(--deep-charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--deep-charcoal) 0%,
    var(--earth-brown) 100%
  );
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/hero_bg.webp") center/cover;
}

@media (min-width: 992px) {
    .hero-section::before {
         background: url("../images/hero_bg.webp") center/contain;
    }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.7), rgb(17 24 39));
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.countdown-container {
  margin-bottom: 2rem;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 180, 0, 0.2);
  border: 1px solid var(--karamoja-yellow);
  color: var(--karamoja-yellow);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .text-accent {
  color: var(--karamoja-yellow);
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-cta .btn {
  font-family: var(--font-button);
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
}

.hero-features {
  margin-top: 4rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  gap: 0.75rem;
}

.feature-item i {
  font-size: 2rem;
  color: var(--karamoja-yellow);
}

.feature-item span {
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep-charcoal);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Tribe Cards */
.tribe-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  cursor: pointer;
}

.tribe-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.tribe-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tribe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100% 
  );
}

.tribe-content {
  padding: 2rem;
}

.tribe-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--deep-charcoal);
}

.tribe-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.badge-limited {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.product-actions {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: bottom 0.4s ease;
  display: flex;
  justify-content: center;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-info {
  padding: 1.5rem;
}

.product-tribe {
  display: block;
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--deep-charcoal);
}

.product-price {
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--earth-brown);
}

/* Product Page */
.product-page {
  padding-top: 100px;
}

.product-preview-container {
  background: var(--white);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.tshirt-preview {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 3/4;
}

.tshirt-base,
.tshirt-design {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tshirt-design {
  z-index: 2;
  mix-blend-mode: multiply;
}

.color-selector {
  margin-top: 2rem;
}

.color-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--deep-charcoal);
}

.color-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--deep-charcoal);
  box-shadow: var(--shadow-md);
}

.color-option i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.color-option.active i {
  opacity: 1;
}

.size-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size-option {
  min-width: 60px;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  background: var(--white);
  border-radius: 10px;
  font-family: var(--font-button);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-option:hover {
  border-color: var(--terracotta);
}

.size-option.active {
  background: var(--deep-charcoal);
  color: var(--white);
  border-color: var(--deep-charcoal);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #e0e0e0;
  background: var(--white);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.quantity-selector input {
  width: 80px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem;
  font-weight: 600;
}

.stock-info {
  padding: 1rem;
  background: rgba(109, 139, 78, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--olive-green);
  font-weight: 500;
}

.trust-badges-small {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.trust-item i {
  font-size: 1.2rem;
  color: var(--olive-green);
}

.tribe-story-box {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.tribe-story-box h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--deep-charcoal);
}

.tribe-story-box h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--earth-brown);
}

.tribe-story-box p {
  color: #666;
  line-height: 1.8;
}

/* Checkout */
.checkout-page {
  padding-top: 100px;
}

.page-title {
  font-size: 2.5rem;
  color: var(--deep-charcoal);
}

.checkout-step {
  margin-bottom: 2rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--karamoja-yellow);
  color: var(--deep-charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-button);
}

.step-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option {
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: var(--terracotta);
}

.payment-option input:checked + label {
  border-color: var(--karamoja-yellow);
  background: rgba(244, 180, 0, 0.05);
}

.payment-option label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  margin: 0;
}

.payment-option i {
  font-size: 2rem;
  color: var(--terracotta);
}

.order-summary {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.order-item {
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item h6 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pickup-info {
  background: rgba(244, 180, 0, 0.1);
}

.pickup-info h6 {
  color: var(--earth-brown);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--deep-charcoal);
  color: var(--white);
  padding: 80px 0 40px;
}
/* Mobile devices */
@media (max-width: 767.98px) {
    .footer {
        padding: 40px 0 40px;
    }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--karamoja-yellow);
  border-color: var(--karamoja-yellow);
  color: var(--deep-charcoal);
}

.footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--karamoja-yellow);
}

.footer-links i {
  margin-right: 0.5rem;
  color: var(--karamoja-yellow);
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-trust {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  font-family: var(--font-button);
  font-weight: 600;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: #b55a2f;
  border-color: #b55a2f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--deep-charcoal);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--earth-brown) 0%,
    var(--deep-charcoal) 100%
  );
}

.cta-box {
  text-align: center;
  color: var(--white);
  padding: 4rem 2rem;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.8;
}

.cta-trust i {
  color: var(--karamoja-yellow);
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .product-preview-container {
    margin-bottom: 2rem;
  }

  .order-summary {
    position: static !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .tribe-story-box {
    padding: 2rem 1.5rem;
  }

  .trust-badges-small {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Utilities */
.bg-light {
  background-color: #f8f9fa !important;
}

.sticky-top {
  position: sticky;
  z-index: 100;
}

.fade-up {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================================
   Mobile Optimizations for 2-Column Grid Layouts
   ========================================== */
@media (max-width: 767.98px) {
  /* Product Card Mobile Optimizations */
  .product-card {
    border-radius: 12px;
  }
  
  .product-info {
    padding: 0.60rem 0.5rem;
  }
  
  .product-tribe {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  
  .product-name {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    /* Gracefully truncate long product names to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-price {
    font-size: 0.9rem;
  }
  
  .badge-limited {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  .product-actions {
    bottom: -40px;
    padding: 0.5rem;
  }
  
  .product-actions .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
  }

  /* Tribe Card Mobile Optimizations */
  .tribe-card {
    border-radius: 12px;
  }
  
  .tribe-image {
    height: 220px; /* Reduced height for balanced 2-column mobile layout */
  }
  
  .tribe-content {
    padding: 1rem;
  }
  
  .tribe-content h3 {
    /*font-size: 0.9rem;*/
    margin-bottom: 0.25rem;
  }
  
  .tribe-content p {
    /*font-size: 0.7rem;*/
    margin-bottom: 0.75rem;
    /* Gracefully truncate long descriptions to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .tribe-content .btn-sm {
    /*font-size: 0.7rem;*/
    padding: 0.65rem 0.5rem;
    min-width: auto;
  }
}