/* ==========================================================================
   Twocan Africa International - Modern Hardware & Fleet Technology Stylesheet
   Theme: Bold Cardinal Red (#d9232d) & High-Contrast Modern Editorial
   Inspired by GadgetHub Modern Clean Electronics Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Work+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #111111;
  --primary-hover: #000000;
  --secondary-color: #F9F6F3;
  --dark-color: #1c1c1e;
  --body-color: #374151;
  --muted-color: #6b7280;
  --light-color: #ffffff;
  --light-gray: #f3f4f6;
  --border-color: #e5e7eb;
  --border-light: rgba(0, 0, 0, 0.08);

  /* Red Brand Theme Colors */
  --brand-red: #d9232d;
  --brand-red-hover: #b91c1c;
  --brand-red-dark: #991b1b;
  --brand-red-light: #fef2f2;
  --brand-red-border: #fca5a5;

  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;

  --heading-font: 'Work Sans', sans-serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --serif-font: 'Merriweather', serif;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.68;
  color: var(--body-color);
  background-color: #ffffff;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.heading-tracking {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.secondary-font {
  font-family: var(--serif-font);
}

.watermark-title {
  font-family: var(--serif-font);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: rgba(17, 17, 17, 0.04);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  margin-bottom: -1.75rem;
  line-height: 1;
}

/* Section Spacings */
.padding-small {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.padding-medium {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.padding-large {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

/* Alpine x-cloak */
[x-cloak] {
  display: none !important;
}

/* Modern Editorial Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.85rem;
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-modern-red {
  background-color: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}
.btn-modern-red:hover {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 35, 45, 0.35);
}

.btn-modern-dark {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}
.btn-modern-dark:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 35, 45, 0.25);
}

.btn-modern-light {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}
.btn-modern-light:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 35, 45, 0.2);
}

.btn-modern-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-modern-outline-light:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-modern-outline-dark {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-modern-outline-dark:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Nav Link Underline Hover Effect */
.nav-link-ltr {
  position: relative;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link-ltr::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-red);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-ltr:hover::before,
.nav-link-ltr.active::before {
  width: 100%;
}

.nav-link-ltr:hover {
  color: #ffffff;
}

/* Dropdown Menu System */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--heading-font);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  padding-left: 1.45rem;
}

.nav-dropdown-item .badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Product Card - GadgetHub Style */
.product-item {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  border-color: var(--brand-red-border);
  box-shadow: 0 16px 32px -8px rgba(217, 35, 45, 0.12);
  transform: translateY(-4px);
}

.product-item .img-box {
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover .img-box img {
  transform: scale(1.06);
}

/* Hover Action Concern Bar */
.product-item .cart-concern {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.product-item:hover .cart-concern {
  opacity: 1;
  transform: translateY(0);
}

.cart-concern-action {
  font-family: var(--heading-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.2s ease;
}
.cart-concern-action:hover {
  color: var(--brand-red);
}

.cart-concern-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--primary-color);
  background-color: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-concern-icon:hover {
  background-color: var(--brand-red);
  color: #ffffff;
}

/* Video Section Play Button (GadgetHub Style) */
.play-btn-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(217, 35, 45, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  animation: play-pulse 2s infinite ease-in-out;
  cursor: pointer;
}

.play-btn-circle:hover {
  background: #ffffff;
  color: var(--brand-red);
  border-color: #ffffff;
  transform: scale(1.1) !important;
}

@keyframes play-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(217, 35, 45, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0);
    transform: scale(1);
  }
}

/* Split Collection Banners (50/50 Dual Editorial) */
.split-collection-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-size: cover;
  background-position: center;
}

.split-collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.45) 0%, rgba(17, 17, 17, 0.85) 100%);
  transition: background 0.3s ease;
}

.split-collection-card:hover::before {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.9) 100%);
}

.split-collection-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  color: #ffffff;
}

/* Range Slider Styling */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #e2e8f0;
  border-radius: 9999px;
}
input[type=range]::-webkit-slider-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--brand-red);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(217, 35, 45, 0.4);
  transition: transform 0.15s ease, background 0.2s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--brand-red-hover);
}

/* Search Popup (GadgetHub Style) */
.search-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.search-popup-container {
  width: 90%;
  max-width: 720px;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-popup.is-visible .search-popup-container {
  transform: translateY(0);
}

/* Subtle modern card styling */
.modern-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.modern-card:hover {
  border-color: var(--brand-red-border);
  box-shadow: 0 10px 24px -6px rgba(217, 35, 45, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}
