/* ============================================
   ARANOZ REDESIGN — Phase 1: Foundation
   Premium Design System + Lenis Smooth Scroll
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens (CSS Variables) --- */
:root {
  /* Color Palette */
  --ar-primary: #ff3368;
  --ar-primary-dark: #e62958;
  --ar-accent: #1a1a2e;
  --ar-bg: #fafafa;
  --ar-bg-dark: #0f0f1a;
  --ar-surface: #ffffff;
  --ar-surface-glass: rgba(255, 255, 255, 0.6);
  --ar-text: #1a1a2e;
  --ar-text-muted: #8a8a9a;
  --ar-text-light: #b0b0c0;
  --ar-border: rgba(0, 0, 0, 0.06);
  --ar-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ar-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --ar-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --ar-shadow-glow: 0 0 40px rgba(255, 51, 104, 0.15);
  --ar-radius-sm: 8px;
  --ar-radius-md: 16px;
  --ar-radius-lg: 24px;
  --ar-radius-xl: 32px;
  --ar-transition: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Global Reset & Smooth Scroll Body --- */
html {
  scroll-behavior: initial !important; /* Lenis will handle smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  color: var(--ar-text);
  background: var(--ar-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Disable old animate.css effects (Phase 1 cleanup) --- */
.animated,
[class*="fadeIn"],
[class*="fadeOut"],
[class*="slideIn"],
[class*="slideOut"],
[class*="bounceIn"],
[class*="zoomIn"] {
  animation: none !important;
  -webkit-animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Disable AOS attributes */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* --- Typography Foundation --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

p, li, span, a {
  font-family: var(--font-body);
}

/* --- Selection Color --- */
::selection {
  background: var(--ar-primary);
  color: #fff;
}

/* --- Smooth image rendering --- */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* --- Utility: Reveal Animation Containers --- */
.ar-reveal {
  overflow: hidden;
}

.ar-reveal-inner {
  transform: translateY(100%);
  will-change: transform;
}

.ar-split-line {
  overflow: hidden;
  display: inline-block;
}

.ar-split-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

.ar-split-char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

/* --- Fade-up utility for ScrollTrigger --- */
.ar-fade-up {
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

.ar-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scale-in utility --- */
.ar-scale-in {
  opacity: 0;
  transform: scale(0.9);
  will-change: transform, opacity;
}

/* --- Clip reveal utility --- */
.ar-clip-reveal {
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

/* --- Page transition overlay (Barba-less CSS/GSAP page load transition) --- */
.ar-page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--ar-accent);
  z-index: 99999;
  opacity: 1; /* starts fully visible, fades out via GSAP */
  pointer-events: none;
  will-change: opacity;
}

/* --- Preloader (Phase 2) --- */
.ar-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--ar-accent);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}

.ar-preloader-content {
  text-align: center;
}

.ar-preloader-number {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ar-preloader-bar {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 30px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.ar-preloader-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--ar-primary), #ff6b8a);
  border-radius: 2px;
  will-change: width;
}

.ar-preloader-brand {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  margin-top: 40px;
}

/* --- Hero Word Reveal (Phase 2) --- */
.ar-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 6px;
}

.ar-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Make hero section ready for animation entry */
.banner_text_iner h1 {
  line-height: 1.1 !important;
}

.banner_text_iner p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ar-text-muted);
  line-height: 1.7;
}

/* ════======================================
   Phase 3: Micro-interactions & UI Redesign
   ====================================================== */

/* --- Custom Cursor --- */
.ar-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 51, 104, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.4s var(--ar-transition),
              height 0.4s var(--ar-transition),
              border-color 0.3s ease,
              background 0.3s ease,
              opacity 0.3s ease;
  will-change: transform;
  display: none;
}

.ar-cursor.is-active {
  width: 60px;
  height: 60px;
  background: rgba(255, 51, 104, 0.06);
  border-color: rgba(255, 51, 104, 0.2);
}

.ar-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--ar-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: opacity 0.2s ease, transform 0.1s ease;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .ar-cursor, .ar-cursor-dot {
    display: block;
  }
  /* Hide default cursor globally */
  *, *::before, *::after {
    cursor: none !important;
  }
}

.ar-cursor-dot.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* --- Glassmorphism Navbar --- */
.main_menu.home_menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ar-border);
  transition: transform 0.5s var(--ar-transition),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar-nav .nav-link {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  color: var(--ar-text) !important;
  padding: 8px 16px !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--ar-primary) !important;
}

/* Nav hover line indicator */
.ar-nav-line {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--ar-primary);
  border-radius: 2px;
  display: block;
}

/* --- Product Card Redesign --- */
.single_product_item {
  background: var(--ar-surface);
  border-radius: var(--ar-radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--ar-border);
  transition: box-shadow 0.4s var(--ar-transition),
              border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.single_product_item:hover {
  box-shadow: var(--ar-shadow-lg) !important;
  border-color: rgba(255, 51, 104, 0.1);
  transform: none !important; /* Override old CSS transform, GSAP handles tilt */
}

.single_product_item img {
  border-radius: var(--ar-radius-md) var(--ar-radius-md) 0 0;
  transition: none !important; /* GSAP handles scale */
  will-change: transform;
}

.single_product_text {
  padding: 16px 20px 20px !important;
}

.single_product_text h4 {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ar-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.single_product_text h3 {
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ar-primary);
  margin-bottom: 10px;
}

.single_product_text .add_cart {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
}

/* --- Section Titles Redesign --- */
.section_tittle h2 {
  font-family: var(--font-heading) !important;
  color: var(--ar-text);
  margin-bottom: 40px;
}

.section_tittle h2 span,
.product_list .section_tittle h2 span,
.product_list .section_tittle span {
  color: var(--ar-primary) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  margin-left: 0 !important;
}

/* --- CTA Buttons Redesign --- */
.btn_2 {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 36px !important;
  border-radius: var(--ar-radius-sm) !important;
  background: var(--ar-primary) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  will-change: transform;
  /* Reset fixed dimensions from legacy theme */
  width: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.btn_2:hover {
  box-shadow: var(--ar-shadow-glow);
}

.btn_3 {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em;
  border-radius: var(--ar-radius-sm) !important;
  will-change: transform;
}

/* --- Footer Redesign --- */
.footer_part {
  background: var(--ar-accent) !important;
}

.single_footer_part h4 {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px !important;
  margin-bottom: 20px !important;
}

.single_footer_part ul li a {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  transition: color 0.2s ease, padding-left 0.3s ease;
}

.single_footer_part ul li a:hover {
  padding-left: 6px;
  color: var(--ar-primary) !important;
}

/* --- Breadcrumb Redesign --- */
.breadcrumb.breadcrumb_bg {
  background: linear-gradient(135deg, var(--ar-accent) 0%, #16213e 100%) !important;
  padding: 100px 0 60px !important;
}

.breadcrumb_iner h2 {
  font-family: var(--font-heading) !important;
  color: #fff !important;
  letter-spacing: -0.02em;
}

/* --- Dropdown Redesign --- */
.dropdown-menu {
  border: none !important;
  border-radius: var(--ar-radius-md) !important;
  box-shadow: var(--ar-shadow-lg) !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
}

.dropdown-item {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: var(--ar-radius-sm) !important;
  padding: 10px 16px !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 51, 104, 0.06) !important;
  color: var(--ar-primary) !important;
}

/* --- Form Inputs Redesign --- */
.form-control {
  font-family: var(--font-body) !important;
  border: 1.5px solid var(--ar-border) !important;
  border-radius: var(--ar-radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--ar-surface) !important;
}

.form-control:focus {
  border-color: var(--ar-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 104, 0.1) !important;
  outline: none !important;
}

/* --- Scrollbar Redesign --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ===========================================
   Phase 4: Advanced ScrollTrigger Animations
   =========================================== */

/* --- Horizontal Scroll Section --- */
.ar-horizontal-scroll {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.ar-horizontal-wrapper {
  display: flex;
  gap: 30px;
  padding: 0 5vw;
  width: fit-content;
  will-change: transform;
}

.ar-horizontal-wrapper .single_product_item {
  flex: 0 0 320px;
  margin: 0; /* Override any col/row margins */
}

/* --- Pinned Showcase --- */
.ar-pinned-showcase {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  background: var(--ar-bg-dark);
  color: #fff;
  min-height: 100vh; /* Needs to be tall to allow scrolling */
  overflow: visible;
}

.ar-pinned-left {
  flex: 0 0 50%;
  height: 100vh; /* Viewport height for pinning */
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ar-pinned-left img {
  width: 80%;
  max-width: 600px;
  object-fit: contain;
  border-radius: var(--ar-radius-lg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.ar-pinned-right {
  flex: 0 0 50%;
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ar-feature-item {
  margin-bottom: 80px;
}

.ar-feature-item h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--ar-primary);
}

.ar-feature-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
  .ar-pinned-showcase {
    flex-direction: column;
  }
  .ar-pinned-left {
    height: 50vh;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ar-bg-dark);
  }
  .ar-pinned-right {
    padding: 60px 5%;
  }
}

/* ===========================================
   Phase 6: Polish & Bug Fixes
   =========================================== */

/* Fix 2: Hero banner — clean layout without owl-carousel */
.banner_part {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f4ff 100%);
  padding-top: 80px; /* Account for fixed navbar */
}

.banner_text_iner h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  color: var(--ar-text) !important;
}

/* Fix 3: Hide legacy scroll-to-top button */
.scroll-top,
#scrollUp,
[class*="scroll_up"],
.back-to-top {
  display: none !important;
}

/* Fix 4: Footer link contrast improvement */
.single_footer_part ul li a {
  color: rgba(255, 255, 255, 0.65) !important;
}

.single_footer_part ul li a:hover {
  color: var(--ar-primary) !important;
}

.single_footer_part h4 {
  color: #fff !important;
}

.copyright_text p {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix 5: Footer social icons — ensure FontAwesome renders */
.social_icon a i {
  font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free", FontAwesome !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.social_icon a {
  font-size: 16px;
}

/* Fix 6: Products page filter alignment */
.product_sidebar_fixel,
.filter_sidebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product_sidebar_fixel .nice-select,
.product_sidebar_fixel select {
  height: 45px !important;
  line-height: 45px !important;
  border-radius: var(--ar-radius-sm) !important;
}

/* Fix 7: Breadcrumb pages — proper padding for fixed navbar */
.breadcrumb.breadcrumb_bg {
  padding-top: 120px !important;
}

/* Fix 8: Contact form button */
.contact_part .btn_2,
.comment_form .btn_2 {
  width: auto;
  padding: 14px 40px !important;
}

/* Fix 9: Mobile responsive adjustments */
@media (max-width: 767px) {
  .banner_part {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .banner_text_iner h1 {
    font-size: 2rem !important;
  }

  .ar-horizontal-wrapper .single_product_item {
    flex: 0 0 260px;
  }

  .ar-pinned-showcase {
    min-height: auto;
  }
}
