/* ==========================================================================
   Orbex SurgiTech Zone – modern polish layer
   Loaded AFTER main.css. Keeps the original design & colours
   (burgundy #3e0925 headings, blue #6c95d9 accent) and only adds
   smooth motion, depth and micro-interactions.
   Remove this file from _Layout.cshtml to go back to the original look.
   ========================================================================== */

:root {
  --ox-ease: cubic-bezier(.22, .61, .36, 1);
  --ox-accent: var(--accent-color, #6c95d9);
  --ox-heading: var(--heading-color, #3e0925);
  --ox-shadow-sm: 0 4px 14px rgba(62, 9, 37, .06);
  --ox-shadow-lg: 0 18px 40px -12px rgba(62, 9, 37, .22);
  --ox-radius: 14px;
}

html { scroll-behavior: smooth; }

/* Accessibility: keyboard "skip to content" link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100000;
  background: var(--ox-heading); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ox-ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Visible keyboard focus everywhere (also a Lighthouse/SEO accessibility score item) */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ox-accent);
  outline-offset: 2px;
}

/* ---------- Scroll progress bar ---------- */
.ox-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100001;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ox-accent), var(--ox-heading));
  pointer-events: none;
}

/* ---------- Header ---------- */
#header { transition: box-shadow .35s var(--ox-ease), background-color .35s var(--ox-ease); }
body.ox-scrolled #header { box-shadow: 0 6px 24px -10px rgba(62, 9, 37, .18); }
#header .logo img { transition: transform .4s var(--ox-ease); }
#header .logo:hover img { transform: scale(1.03); }

/* mega-menu cards */
.navmenu .product-card { transition: transform .35s var(--ox-ease), box-shadow .35s var(--ox-ease); }
.navmenu .product-card:hover { transform: translateY(-4px); box-shadow: var(--ox-shadow-lg); }
.navmenu .product-card .product-image { overflow: hidden; }
.navmenu .product-card .product-image img { transition: transform .6s var(--ox-ease); }
.navmenu .product-card:hover .product-image img { transform: scale(1.07); }

/* search box */
.search-form .form-control { transition: box-shadow .3s var(--ox-ease), border-color .3s var(--ox-ease); }
.search-form .form-control:focus {
  border-color: var(--ox-accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ox-accent), transparent 78%);
}
.search-form .search-btn i { transition: transform .3s var(--ox-ease); display: inline-block; }
.search-form .search-btn:hover i { transform: scale(1.15) rotate(-8deg); }

/* ---------- Page title (inner pages) ---------- */
.page-title h1 { position: relative; display: inline-block; }
.page-title h1::after {
  content: ""; position: absolute; left: 0; bottom: -8px; height: 3px; width: 56px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ox-accent), var(--ox-heading));
  animation: ox-grow .9s var(--ox-ease) both .15s;
}
@keyframes ox-grow { from { width: 0; } to { width: 56px; } }

/* ---------- Section titles ---------- */
.section-title h2 { position: relative; }
.section-title h2::after {
  background: linear-gradient(90deg, var(--ox-accent), var(--ox-heading)) !important;
}

/* ---------- Hero ---------- */
.hero .slide-content h1 span::after,
.hero .slide-content .slide-heading span::after {
  transform-origin: left; animation: ox-underline 1s var(--ox-ease) both .4s;
}
@keyframes ox-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero .product-showcase .product-item {
  transition: transform .45s var(--ox-ease), box-shadow .45s var(--ox-ease);
}
.hero .product-showcase .product-item:hover { transform: translateY(-6px); box-shadow: var(--ox-shadow-lg); }
.hero .product-showcase .product-item .product-image { overflow: hidden; }
.hero .product-showcase .product-item img { transition: transform .7s var(--ox-ease); }
.hero .product-showcase .product-item:hover img { transform: scale(1.08) rotate(-1deg); }

.hero .floating-review { animation: ox-float 5s ease-in-out infinite; }
@keyframes ox-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero .featured-image img, .hero .sale-showcase .main-product img { transition: transform 1.2s var(--ox-ease); }
.hero .swiper-slide-active .featured-image img,
.hero .swiper-slide-active .sale-showcase .main-product img { animation: ox-kenburns 9s ease-out both; }
@keyframes ox-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero .swiper-button-next, .hero .swiper-button-prev { transition: transform .3s var(--ox-ease), opacity .3s; }
.hero .swiper-button-next:hover { transform: translateX(3px); }
.hero .swiper-button-prev:hover { transform: translateX(-3px); }

/* ---------- Buttons ---------- */
.btn-shop, .btn-primary, .add-to-cart-btn, .btn-view, .read-more {
  transition: transform .3s var(--ox-ease), box-shadow .3s var(--ox-ease), background-color .3s, color .3s !important;
}
.btn-shop:hover, .btn-primary:hover, .add-to-cart-btn:hover, .btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ox-accent), transparent 20%);
}
.read-more i, .btn-shop i { transition: transform .3s var(--ox-ease); display: inline-block; }
.read-more:hover i { transform: translateX(5px); }

/* button shine sweep (pure background, no pseudo-element conflicts) */
.btn-shop, .add-to-cart-btn, .orbex-cta {
  background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%) !important;
  background-size: 250% 100% !important;
  background-position: 120% 0 !important;
  background-repeat: no-repeat !important;
}
.btn-shop:hover, .add-to-cart-btn:hover, .orbex-cta:hover {
  background-position: -20% 0 !important;
  transition: background-position .8s var(--ox-ease), transform .3s var(--ox-ease), box-shadow .3s var(--ox-ease) !important;
}

/* ---------- Cards (promo, features, process, blog, products) ---------- */
.promo-cards .promo-card,
.shipping-info .delivery-card,
.about-2 .content-card,
.recent-posts article,
.category-product-list .product-box {
  transition: transform .45s var(--ox-ease), box-shadow .45s var(--ox-ease) !important;
  will-change: transform;
}
.promo-cards .promo-card:hover,
.shipping-info .delivery-card:hover,
.about-2 .content-card:hover,
.recent-posts article:hover,
.category-product-list .product-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--ox-shadow-lg);
}

.promo-cards .promo-card .promo-image img { transition: transform .7s var(--ox-ease); }
.promo-cards .promo-card:hover .promo-image img { transform: scale(1.08) translateY(-4px); }

.shipping-info .delivery-card .card-icon { transition: transform .5s var(--ox-ease); }
.shipping-info .delivery-card:hover .card-icon { transform: rotateY(180deg) scale(1.05); }

.about-2 .content-card .card-image,
.recent-posts .post-img,
.category-product-list .product-thumb { overflow: hidden; }
.about-2 .content-card .card-image img,
.recent-posts .post-img img,
.category-product-list .product-thumb img.main-img { transition: transform .8s var(--ox-ease); }
.about-2 .content-card:hover .card-image img,
.recent-posts article:hover .post-img img,
.category-product-list .product-box:hover .product-thumb img.main-img { transform: scale(1.07); }

/* product title links in the catalogue (now real, crawlable links) */
.category-product-list .product-price a,
.category-product-list .product-title a { color: inherit; text-decoration: none; transition: color .25s; }
.category-product-list .product-price a:hover,
.category-product-list .product-title a:hover { color: var(--ox-accent); }

/* ---------- Product details ---------- */
.product-details .thumbnail-item { transition: transform .3s var(--ox-ease), box-shadow .3s; }
.product-details .thumbnail-item:hover { transform: translateY(-3px); box-shadow: var(--ox-shadow-sm); }
.product-details .main-image { transition: opacity .35s var(--ox-ease); }
.product-details .whatsapp-inquiry-btn:hover i { animation: ox-wiggle .6s ease; }
@keyframes ox-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---------- Lazy images fade in ---------- */
.ox-js img.ox-fade { opacity: 0; transition: opacity .6s var(--ox-ease); }
.ox-js img.ox-fade.is-loaded { opacity: 1; }

/* ---------- FAQ ---------- */
.orbex-faq .accordion-item {
  border: 1px solid color-mix(in srgb, var(--ox-heading), transparent 90%);
  border-radius: var(--ox-radius) !important;
  margin-bottom: 14px; overflow: hidden;
  transition: box-shadow .35s var(--ox-ease), transform .35s var(--ox-ease);
}
.orbex-faq .accordion-item:hover { box-shadow: var(--ox-shadow-sm); transform: translateY(-2px); }
.orbex-faq .accordion-button {
  font-family: var(--heading-font); font-weight: 600; color: var(--ox-heading); font-size: 1.05rem;
  background: var(--surface-color, #fff); box-shadow: none !important;
}
.orbex-faq .accordion-button:not(.collapsed) {
  color: var(--ox-heading);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ox-accent), transparent 90%), transparent);
}
.orbex-faq .accordion-body { color: color-mix(in srgb, var(--default-color), transparent 15%); line-height: 1.75; }
.orbex-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background-color: var(--ox-accent) !important; color: #fff !important; border: none;
  padding: .8rem 1.6rem; border-radius: .5rem; font-weight: 600;
}
.orbex-cta:hover { background-color: color-mix(in srgb, var(--ox-accent), #000 10%) !important; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer .social-icons a { transition: transform .3s var(--ox-ease), background-color .3s, color .3s; }
.footer .social-icons a:hover { transform: translateY(-4px) scale(1.06); }
.footer .footer-links a { transition: padding-left .3s var(--ox-ease), color .3s; }
.footer .footer-links a:hover { padding-left: 6px; }
.footer .footer-contact a { color: inherit; }
.footer .footer-contact a:hover { color: var(--ox-accent); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; font-size: 28px;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ox-ease);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: ox-pulse 2.4s ease-out infinite;
}
@keyframes ox-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* scroll-to-top */
.scroll-top { transition: all .35s var(--ox-ease) !important; }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Respect users who prefer less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
