/* ==========================================================================
   OLY â€” INTERNATIONAL SPORTSWEAR
   Desktop, Android & iOS Full Compatibility Stylesheet
   ========================================================================== */

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

:root {
  --oly-bg: #ffffff;
  --oly-surface: #f8f9fa;
  --oly-surface-hover: #f1f3f5;
  --oly-black: #000000;
  --oly-text-sub: #666666;
  --oly-font-heading: 'Syncopate', sans-serif;
  --oly-font-body: 'Plus Jakarta Sans', sans-serif;

  /* iOS Safe Area Insets */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Prevent ugly blue/grey highlight box on iOS & Android tap */
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--oly-font-body);
  background-color: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth inertial scrolling for iOS Safari */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  padding-top: var(--sat);
  padding-bottom: var(--sab);
}

/* Category Filter Pills */
.cat-btn {
  background-color: #f8f9fa;
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  outline: none !important;
  cursor: pointer;
  white-space: nowrap;
  /* Min 44px touch target height for iOS & Android */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-btn:hover {
  color: #000000;
  border-color: #cccccc;
}

.cat-btn.active {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.cat-btn.active:hover {
  color: #ffffff !important;
  background-color: #1a1a1a !important;
}

/* 3D Perspective Container */
.perspective-container {
  perspective: 1200px;
}

/* Clean Minimal Card Effect (Flat, Steady & Stationary) */
.card-3d {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  touch-action: manipulation;
}

@media (min-width: 1024px) {
  .card-3d:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
  }
}

.card-3d-img-layer {
  transition: opacity 0.2s ease;
}

.card-3d-content-layer {
  position: relative;
}

/* Hero 3D Showcase Card */
.hero-3d-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 36px;
  border: 1px solid #e9ecef;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.06);
  transform-style: preserve-3d;
}

/* Hero 1st View Photoshoot Showcase Card (100% Real Model Photos) */
.hero-photoshoot-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero-reel-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-reel-btn.active {
  border-color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.06);
}

.hero-angle-btn {
  padding: 2px 7px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10px;
}

.hero-angle-btn.active {
  background: #000000;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Minimal Header Navigation Link */
.nav-link-minimal {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.nav-link-minimal:hover,
.nav-link-minimal.active {
  background-color: #000000;
  color: #ffffff;
}

/* OLY Logo SVG Component */
.oly-logo-svg {
  height: 26px;
  width: auto;
  color: #000000;
}

/* Button Pill 3D */
.btn-3d-black {
  background-color: #000000;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  user-select: none;
  -webkit-user-select: none;
}
.btn-3d-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
  background-color: #1a1a1a;
}

/* Brand Personality Badge */
.brand-pillar-badge {
  padding: 8px 16px;
  border-radius: 9999px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  display: inline-block;
}

/* Mobile & Tablet Specific Responsive Tweak */
@media (max-width: 640px) {
  .hero-3d-card {
    padding: 24px 16px;
    border-radius: 24px;
  }
  .btn-3d-black {
    width: 100%;
    justify-content: center;
  }
}

/* Hide scrollbar for seamless touch horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   iOS & Android Native Mobile Web Compatibility Enhancements
   ========================================================================== */

/* Prevent iOS Safari automatic viewport zoom when tapping form inputs */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Prevent modal background body scroll on iOS Safari & Android Chrome */
.fixed {
  overscroll-behavior: contain;
}

/* iOS Bottom Home Bar & Safe Area Padding for Floating Elements */
.pb-safe {
  padding-bottom: max(1rem, var(--sab));
}

/* ==========================================================================
   GOOGLE 9-DOTS APPS LAUNCHER (COMPANIES & VENTURES MENU)
   ========================================================================== */
.apps-launcher-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.apps-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
  -webkit-user-select: none;
}

.apps-btn:hover,
.apps-btn.active,
.apps-btn[aria-expanded="true"] {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.18);
  transform: scale(1.06);
}

.apps-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.2s ease;
}

.apps-btn:hover .apps-icon {
  transform: scale(1.08);
}

/* Floating Apps Popover (Google Style) */
.apps-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.05);
  padding: 1.1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
  box-sizing: border-box;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.apps-menu-popover.active,
.apps-menu-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.apps-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f1f3f5;
}

.apps-menu-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.apps-menu-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
}
.apps-menu-link:hover {
  text-decoration: underline;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 0.65rem 0.25rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
}

.app-item:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Strict uniform squircle dimensions for every company icon */
.app-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.app-item:hover .app-icon-wrap {
  transform: scale(1.06);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.15rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  text-align: center;
  max-width: 100%;
}

.app-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  text-align: center;
  max-width: 100%;
}

.apps-menu-account-bar {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.apps-account-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.18s ease;
}

.apps-account-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.apps-menu-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f3f4;
  text-align: center;
}

.btn-apps-explore {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
}
.btn-apps-explore:hover {
  background: #000000;
  color: #ffffff;
}

/* Top Holdings Navigation Bar (Removed / Disabled) */
.holding-bar {
  display: none !important;
}

/* ========================================================
   UNIVERSAL CROSS-PLATFORM & MULTI-OS COMPATIBILITY ENGINE
   Supports: Android, iOS, Windows, macOS, Linux, ChromeOS
   Screens: Mobile (320px-480px), Tablets (768px-1024px),
            Laptops & 4K Desktops (1200px-2560px+)
   ======================================================== */

/* 1. Global Viewport, Layout & Text Protection */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  line-height: 1.6;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. Form Controls & Touch Targets for iOS Safari & Android Chrome */
input, select, textarea {
  font-size: 16px !important; /* Eliminates the forced zoom-in bug on iOS Safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 12px;
}

button, a, .cat-btn, .nav-link-minimal, .apps-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 3. Sleek Scrollbars across Windows, Linux, and Android/macOS */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 rgba(241, 245, 249, 0.8);
}

/* 4. Modal Overlays with Dynamic Viewport Height (100dvh) */
.fixed[class*="inset-0"],
[class*="modal-overlay"],
[class*="cart-overlay"],
[class*="orders-overlay"] {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  padding-top: calc(10px + var(--sat));
  padding-bottom: calc(10px + var(--sab));
  padding-left: calc(10px + var(--sal));
  padding-right: calc(10px + var(--sar));
  overscroll-behavior: contain;
}

/* Modal Content Areas */
[class*="modal-content"],
.max-h-screen,
[class*="overflow-y-auto"] {
  max-height: calc(90dvh - var(--sat) - var(--sab));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Cart Sidebar Safe Area */
[class*="cart-drawer"],
.fixed.right-0.top-0 {
  height: 100vh;
  height: 100dvh;
  padding-top: var(--sat);
  padding-bottom: var(--sab);
}

/* 5. Responsive Mobile Layout (480px â€” Standard Smartphones) */
@media (max-width: 480px) {
  .font-heading {
    font-size: 1.8rem !important;
    line-height: 1.15 !important;
  }

  /* Full-width hero CTA buttons on mobile */
  .btn-3d-black {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Stack hero layout vertically */
  .hero-3d-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  /* Tighter nav on small screens */
  .nav-link-minimal {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.03em;
  }

  /* Apps launcher mobile centering */
  .apps-menu-popover {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 350px;
    margin: 0 auto;
    padding: 0.95rem;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  }

  .apps-grid {
    gap: 0.4rem;
  }

  .app-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }

  .app-name {
    font-size: 0.72rem;
  }

  .app-tag {
    font-size: 0.6rem;
  }

  /* Product cards tighter spacing */
  .card-3d {
    border-radius: 18px;
  }
}

/* 6. Ultra-Small Phone Layout (380px â€” iPhone SE, small Androids) */
@media (max-width: 380px) {
  .font-heading {
    font-size: 1.5rem !important;
  }

  .nav-link-minimal {
    font-size: 10px;
    padding: 5px 8px;
  }

  .apps-menu-popover {
    width: 260px;
    right: -50px;
  }

  .brand-pillar-badge {
    font-size: 9px;
    padding: 6px 12px;
  }
}

/* 7. Tablet Layout (iPad, Galaxy Tab, Windows Surface â€” 769px to 1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
  .apps-menu-popover {
    width: 310px;
  }

  .hero-3d-card {
    max-width: 380px;
  }
}

/* 8. Large Desktop Displays (Windows, macOS, Linux â€” 1440p to 4K) */
@media (min-width: 1600px) {
  body {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 9. Print Styles for All Desktop OS */
@media print {
  .fixed,
  .apps-launcher-wrapper,
  .holding-bar,
  [class*="cart"],
  [class*="modal"],
  [class*="overlay"] {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* 10. Reduced Motion Accessibility (All OS system preferences) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 11. High Contrast Mode Support (Windows) */
@media (forced-colors: active) {
  .btn-3d-black {
    border: 2px solid ButtonText;
  }
  .card-3d {
    border: 1px solid CanvasText;
  }
  .cat-btn {
    border: 1px solid ButtonText;
  }
  .cat-btn.active {
    background: Highlight;
    color: HighlightText;
  }
}

/* 12. Dark Mode Foundation (System OS-level dark theme detection) */
@media (prefers-color-scheme: dark) {
  :root {
    --oly-bg: #0a0a0a;
    --oly-surface: #141414;
    --oly-surface-hover: #1c1c1c;
    --oly-black: #ffffff;
    --oly-text-sub: #a1a1a1;
  }
}


/* ==========================================================================
   SLEEK TOAST NOTIFICATION & ENHANCED MODAL CONTROLS
   ========================================================================== */
.oly-toast {
  position: fixed;
  bottom: calc(24px + var(--sab));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000000;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 92vw;
}
.oly-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111111;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-close-btn:hover {
  background: #f1f5f9;
  color: #000000;
  transform: scale(1.05);
}

/* ==========================================================================
   SLEEK TOAST NOTIFICATION & ENHANCED MODAL CONTROLS
   ========================================================================== */
.oly-toast {
  position: fixed;
  bottom: calc(24px + var(--sab));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000000;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 92vw;
}
.oly-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111111;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-close-btn:hover {
  background: #f1f5f9;
  color: #000000;
  transform: scale(1.05);
}

