/*
Theme Name: SharpScript
Theme URI: http://localhost/sharpscript-wp
Description: Modern eCommerce theme for SharpScript
Version: 1.0
Author: SharpScript Team
Author URI: http://localhost/sharpscript-wp
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sharpscript
Domain Path: /languages
*/

/* ========================
   GENERAL STYLES
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site, .site-content, .page-wrapper, #page, .container {
  border: none !important;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a3a3a 0%, #0d1f2d 50%, #0a2a3a 100%);
  color: #ccc;
  line-height: 1.6;
  border: none !important;
}

html {
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #0a3a3a 0%, #0d1f2d 50%, #0a2a3a 100%);
  min-height: 100vh;
  border: none !important;
}

/* ========================
   HEADER STYLES
   ======================== */
.top-logo {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: all 0.3s ease;
}

.top-logo-img {
  max-width: 150px;
  height: auto;
}

/* Hide search suggestions dropdown */
#search-suggestions {
  display: none !important;
}

.floating-header {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(13, 13, 13, 0.95);
  border: 2px solid #9d4edd;
  border-radius: 50px;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 90%;
  max-width: 900px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: visible;
}

.floating-header.glow-effect {
  box-shadow: 0 0 10px rgba(160, 32, 240, 0.6), 0 0 20px rgba(160, 32, 240, 0.4), 0 0 30px rgba(160, 32, 240, 0.2), inset 0 0 10px rgba(160, 32, 240, 0.2) !important;
}

.pill-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bolt-wrapper {
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.bolt-wrapper::after {
  content: "Menu";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  
  color: #a020f0;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  
  opacity: 0;
  animation: menuHint 6s infinite;
}

@keyframes menuHint {
  0% { opacity: 0; }
  80% { opacity: 0; }
  85% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.bolt-icon {
  width: 38px;
  height: 38px;
  transition: filter 0.3s ease-in-out !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Glow effect for the pixelball when scrolling */
.bolt-icon.glow {
  filter: none;
}

.dropdown-menu {
  display: none;
  position: fixed;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid #9d4edd;
  border-radius: 10px;
  top: 180px;
  left: auto;
  right: 20px;
  min-width: 250px;
  z-index: 10000;
  overflow: visible;
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: calc(100% - 40px);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dropdown-menu a.menu-item-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  font-size: 16px;
  color: #a020f0;
  min-width: 20px;
}

.menu-icon-img {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-menu a:hover {
  background: #9d4edd;
  color: #fff;
  border-left-color: #fff;
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid #9d4edd;
  margin: 8px 0;
}

/* Dashboard Menu Slide Animations */
@keyframes slideMenuOut {
  from {
    top: 155px;
    opacity: 1;
  }
  to {
    top: 80px;
    opacity: 0;
  }
}

@keyframes slideMenuIn {
  from {
    top: 80px;
    opacity: 0;
  }
  to {
    top: 155px;
    opacity: 1;
  }
}

@keyframes wrapBorderGlowAnimation {
  0% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.9), inset 0 0 15px rgba(157, 78, 221, 0.4);
    border-color: transparent;
  }
  50% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.6), -15px 0 30px rgba(157, 78, 221, 0.6), 0 15px 30px rgba(157, 78, 221, 0.6), 15px 0 30px rgba(157, 78, 221, 0.6), inset 0 0 15px rgba(157, 78, 221, 0.3);
    border-color: rgba(157, 78, 221, 0.5);
  }
  100% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.2);
    border-color: #9d4edd;
  }
}

.dashboard-menu-bar.slide-out {
  animation: slideMenuOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.dashboard-menu-bar.slide-in {
  animation: slideMenuIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.dashboard-menu-bar.border-glow-active {
  animation: wrapBorderGlowAnimation 1.2s ease-out !important;
}

.pill-logo {
  max-width: 75px;
  height: auto;
}

.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.nav-icons .icon {
  width: 24px;
  height: 24px;
  filter: brightness(0.9);
  transition: filter 0.2s;
}

.nav-icons a:hover .icon {
  filter: brightness(1.2) drop-shadow(0 0 5px #9d4edd);
}

#cartBadge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #9d4edd;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* CART DROPDOWN - CLEAN BASE STYLES */
.cart-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: -100px;
  width: 350px;
  max-height: 450px;
  background: rgba(20, 20, 30, 0.98);
  border: 1px solid #9d4edd;
  border-radius: 10px;
  z-index: 10001;
  overflow-y: auto;
  flex-direction: column;
}

.cart-dropdown.active {
  display: flex !important;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(50, 50, 50, 0.7);
  border: 1px solid #9d4edd;
  border-radius: 20px;
  padding: 8px 15px;
  gap: 10px;
  position: relative;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #ccc;
  width: 150px;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #888;
}

.search-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  filter: brightness(0.9);
}

/* ========================
   FOOTER STYLES
   ======================== */
.footer {
  color: #ccc;
  padding: 60px 20px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #9d4edd;
  border-radius: 20px;
  padding: 60px 40px;
  background: #0d0d0d;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-sidelogo {
  max-width: 80px;
  height: auto;
}

.footer-tagline {
  color: #9d4edd;
  font-size: 14px;
  margin-top: 10px;
}

.footer-section h3 {
  color: #9d4edd;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #9d4edd;
  margin-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(50, 50, 50, 0.7);
  border: 1px solid #9d4edd;
  border-radius: 5px;
  color: #ccc;
  font-size: 14px;
}

.newsletter-input::placeholder {
  color: #888;
}

.newsletter-btn {
  padding: 10px 15px;
  background: #9d4edd;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.newsletter-btn:hover {
  background: #b563ff;
  transform: scale(1.05);
}

.newsletter-checkbox {
  margin: 12px 0;
  font-size: 12px;
}

.newsletter-checkbox input {
  margin-right: 8px;
}

.newsletter-checkbox label {
  color: #999;
  cursor: pointer;
}

.support-contact {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.support-contact h4 {
  color: #9d4edd;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.support-email {
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.support-email:hover {
  color: #9d4edd;
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #888;
}

.footer-copyright a {
  color: #9d4edd;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-copyright a:hover {
  color: #b563ff;
}

/* ========================
   MAIN CONTENT
   ======================== */
main {
  max-width: 1200px;
  margin: 200px auto 50px;
  padding: 0 20px;
  min-height: 600px;
}

.page-title {
  font-size: 36px;
  color: #9d4edd;
  margin-bottom: 30px;
  text-align: center;
}

/* ========================
   FRONT PAGE STYLES
   ======================== */

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 60px;
  background: radial-gradient(circle at top center, rgba(157,78,221,0.15) 0%, rgba(13,13,13,0.95) 45%),
              radial-gradient(circle at 20% 30%, rgba(0,191,255,0.15) 0%, transparent 45%),
              linear-gradient(180deg, #0a0410 0%, #0f0718 35%, #10041a 100%);
  border: 1px solid rgba(157,78,221,0.2);
  border-radius: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 15%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(160,32,240,0.25) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #dcd6ff;
  border: 1px solid rgba(157,78,221,0.3);
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 18px;
  color: #d0d0dd;
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px 40px;
  justify-content: center;
  color: #c9c4ff;
  font-size: 14px;
}

.hero-trust div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(157,78,221,0.18);
  padding: 12px 18px;
  border-radius: 9999px;
}

.hero-trust strong {
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #8e48ff 0%, #00c6ff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(142,72,255,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a06bff 0%, #33d9ff 100%);
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px) scale(1.02);
}

/* Buttons */

/* ========================
   ANIMATIONS
   ======================== */

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-glow {
  animation: floatY 5.6s ease-in-out infinite, glowPulse 3.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
  100% { opacity: 0.9; transform: scale(1); }
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section {
  background-size: 200% 200%;
  animation: bgShift 24s ease-in-out infinite;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 600ms cubic-bezier(.2,.8,.2,1), transform 600ms cubic-bezier(.2,.8,.2,1);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.step {
  will-change: transform, opacity;
  transition: transform 350ms ease, opacity 350ms ease;
}

.step:hover {
  transform: translateY(-8px) scale(1.03);
}

.hero-content.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.counter {
  display: inline-block;
}

/* CTA pulse - toggled by JS to avoid constant motion */
@keyframes ctaPulse {
  0% { box-shadow: 0 10px 30px rgba(142,72,255,0.18); transform: translateY(0); }
  50% { box-shadow: 0 22px 48px rgba(142,72,255,0.28); transform: translateY(-3px) scale(1.02); }
  100% { box-shadow: 0 10px 30px rgba(142,72,255,0.18); transform: translateY(0); }
}

.btn-primary.pulse {
  animation: ctaPulse 2200ms ease-in-out infinite;
}

.steps-connector {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #00bfff;
}

.btn-primary {
  background: #00bfff;
  color: #000;
  border-color: #00bfff;
}

.btn-primary:hover {
  background: #0099cc;
  border-color: #0099cc;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: #00bfff;
  border-color: #00bfff;
}

.btn-secondary:hover {
  background: #00bfff;
  color: #000;
  transform: scale(1.05);
}

/* Quick Access Grid Section */
.quick-access-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 50px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.access-card {
  border: 2px solid #9d4edd;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(157, 78, 221, 0.05);
  transition: all 0.3s ease;
}

.access-card:hover {
  border-color: #00bfff;
  background: rgba(0, 191, 255, 0.08);
  transform: translateY(-5px);
}

.card-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon img {
  width: 100px;
  height: 100px;
  display: inline-block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.access-card:hover .card-icon img {
  transform: scale(1.1);
}

.access-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

.access-card p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-link {
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.card-link:hover {
  color: #00ffff;
  text-decoration: underline;
}

/* ========================
   PRODUCT SHOWCASE CAROUSEL
   ======================== */
.product-showcase-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.showcase-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.showglass {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 350px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(50, 30, 80, 0.6) 100%);
  border: 3px solid #9d4edd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3), inset 0 0 20px rgba(157, 78, 221, 0.1), 0 10px 40px rgba(0, 0, 0, 0.5);
  perspective: 1000px;
}

.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: none;
}

.carousel-item.active {
  opacity: 1;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-product {
  text-align: center;
  padding: 40px;
  animation: floatUp 0.8s ease;
}

@keyframes floatUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-icon {
  font-size: 80px;
  margin-bottom: 10px;
  margin-top: 10px;
  display: inline-block;
  animation: pulse 2s infinite;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.carousel-product h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 700;
}

.carousel-product p {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 15px;
}

.product-price {
  font-size: 20px;
  color: #00bfff;
  font-weight: 700;
  margin-top: 15px;
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  background: rgba(157, 78, 221, 0.7);
  border: 1px solid #9d4edd;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #9d4edd;
  transform: scale(1.1);
}

.visit-shop-btn {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(135deg, #7c3aed 0%, #9d4edd 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border: 2px solid #9d4edd;
  box-shadow: 0 5px 20px rgba(157, 78, 221, 0.3);
  margin-top: 20px;
}

.visit-shop-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
  background: linear-gradient(135deg, #9d4edd 0%, #a020f0 100%);
}

/* How It Works Section */
.how-it-works-section {
  padding: 60px 20px;
  margin-bottom: 60px;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon img {
  width: 120px;
  height: 120px;
  display: inline-block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.step:hover .step-icon img {
  transform: scale(1.1);
}

.steps-container {
  position: relative;
}

.steps-connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: connectorFadeIn 1.2s ease forwards 0.35s;
}

.steps-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.connector-path {
  fill: none;
  stroke: rgba(0, 191, 255, 0.38);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawConnector 1.3s ease forwards 0.45s;
}

.connector-dot {
  fill: rgba(157, 78, 221, 0.9);
  filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.35));
  opacity: 0;
  animation: dotPop 0.8s ease forwards 0.75s;
}

@keyframes drawConnector {
  to { stroke-dashoffset: 0; }
}

@keyframes dotPop {
  0% { transform: scale(0.2); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes connectorFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .steps-connector {
    display: none;
  }
}

/* ========================
   WOOCOMMERCE PAGES FIX
   Cart, Checkout, Order Payment
   ======================== */

/* Target WooCommerce specific pages */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-pay {
  background: linear-gradient(135deg, #0f0015 0%, #1a0033 50%, #2d1b4e 100%) !important;
}

/* Fix header on WooCommerce pages */
body.woocommerce-cart .floating-header,
body.woocommerce-checkout .floating-header,
body.woocommerce-order-pay .floating-header {
  position: fixed !important;
  top: 120px !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 101 !important;
  background: rgba(13, 13, 13, 0.95) !important;
  border: 2px solid #9d4edd !important;
  border-radius: 50px !important;
  padding: 12px 25px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 30px !important;
  width: 90% !important;
  max-width: 900px !important;
  backdrop-filter: blur(10px) !important;
}

/* Fix top logo on WooCommerce pages */
body.woocommerce-cart .top-logo,
body.woocommerce-checkout .top-logo,
body.woocommerce-order-pay .top-logo {
  position: fixed !important;
  top: 15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
}

body.woocommerce-cart .top-logo-img,
body.woocommerce-checkout .top-logo-img,
body.woocommerce-order-pay .top-logo-img {
  max-width: 150px !important;
  height: auto !important;
  z-index: 9999 !important;
}

/* Fix pill logo on WooCommerce pages */
body.woocommerce-cart .pill-logo,
body.woocommerce-checkout .pill-logo,
body.woocommerce-order-pay .pill-logo {
  max-width: 75px !important;
  max-height: 45px !important;
  height: auto !important;
  z-index: 9999 !important;
  object-fit: contain !important;
}

/* Fix bolt icon on WooCommerce pages */
body.woocommerce-cart .bolt-icon,
body.woocommerce-checkout .bolt-icon,
body.woocommerce-order-pay .bolt-icon {
  width: 38px !important;
  height: 38px !important;
  z-index: 9999 !important;
  flex-shrink: 0 !important;
}

/* Push content down on WooCommerce pages */
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary,
body.woocommerce-order-pay #primary,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-order-pay .site-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-order-pay .woocommerce {
  margin-top: 120px !important;
  padding-top: 20px !important;
}

/* Ensure checkout titles are visible */
body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-order-pay h1 {
  margin-top: 30px !important;
  color: #fff !important;
}

/* Fix Paystack payment form visibility */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-privacy-policy-link {
  color: #ccc !important;
}

body.woocommerce-checkout input,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000 !important;
  border: 1px solid #9d4edd !important;
}

body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout select:focus {
  outline: none !important;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.5) !important;
}

/* Fix cart page layout */
body.woocommerce-cart table {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ccc !important;
}

body.woocommerce-cart table th {
  background: rgba(98, 0, 234, 0.2) !important;
  color: #bb86fc !important;
  border-color: #9d4edd !important;
}

body.woocommerce-cart table td {
  border-color: #9d4edd !important;
}

/* Paystack button styling */
body.woocommerce-checkout .woocommerce-notice,
body.woocommerce-checkout .payment_methods,
body.woocommerce-checkout #order_review_heading {
  color: #ccc !important;
}

body.woocommerce-checkout button.button {
  background: linear-gradient(135deg, #6200ea, #7c3aed) !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 30px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.3) !important;
}

body.woocommerce-checkout button.button:hover {
  box-shadow: 0 6px 20px rgba(98, 0, 234, 0.5) !important;
}

/* Ensure nav icons stay on top */
body.woocommerce-cart .nav-icons,
body.woocommerce-checkout .nav-icons,
body.woocommerce-order-pay .nav-icons {
  z-index: 9999 !important;
}

.step h3 {
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
}

/* Website Ordering Section */
.website-ordering-section {
  padding: 60px 20px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #000;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.website-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.website-image {
  text-align: center;
}

.website-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.website-text h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.website-text p {
  font-size: 16px;
  color: #bbb;
  margin-bottom: 30px;
}

/* ========================
   DASHBOARD MENU STYLES
   ======================== */
.dashboard-menu-bar {
  position: fixed !important;
  top: 155px !important;
  left: 52% !important;
  transform: translateX(-50%) !important;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  padding: 8px 10px !important;
  width: 720px !important;
  max-width: 95% !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  z-index: 101 !important;
  animation: slideDownMenuBar 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  animation-delay: 300ms !important;
  border: 2px solid rgba(157, 78, 221, 0.3) !important;
}

@keyframes wrapBorderGlow {
  0% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.9), inset 0 0 15px rgba(157, 78, 221, 0.4);
    border-color: transparent;
  }
  50% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.6), -15px 0 30px rgba(157, 78, 221, 0.6), 0 15px 30px rgba(157, 78, 221, 0.6), 15px 0 30px rgba(157, 78, 221, 0.6), inset 0 0 15px rgba(157, 78, 221, 0.3);
    border-color: rgba(157, 78, 221, 0.5);
  }
  100% {
    box-shadow: 0 -20px 30px rgba(157, 78, 221, 0.2);
    border-color: #9d4edd;
  }
}

@keyframes slideDownMenuBar {
  from {
    top: 120px;
    opacity: 0;
  }
  to {
    top: 155px;
    opacity: 1;
  }
}

.menu-bar-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  background: #1a1a1a !important;
}

.menu-avatar {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.menu-greeting {
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 5px;
}

.menu-items-horizontal {
  display: flex;
  gap: 2px;
}

.menu-item-link {
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.menu-item-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

@keyframes bellShake {
  0%, 100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(15deg);
  }
  45% {
    transform: rotate(-15deg);
  }
  60% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

#notificationBell.shake {
  animation: bellShake 0.5s ease-in-out;
  transform-origin: center top;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  /* Header styles moved to Additional CSS */

  .hero-section {
    padding: 35px 15px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .hero-pill {
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero-trust {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero-trust div {
    width: 100%;
  }

  .btn {
    width: 90%;
    max-width: 100%;
    padding: 10px 20px;
    font-size: 12px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .access-card {
    padding: 20px;
  }

  .quick-access-section {
    padding: 40px 15px;
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  /* Carousel responsive */
  .product-showcase-section {
    padding: 40px 15px;
    margin-bottom: 40px;
  }

  .showglass {
    height: 240px;
    max-width: 100%;
  }

  .carousel-product {
    padding: 15px;
  }

  .product-icon {
    width: 70px;
    height: 70px;
    font-size: 45px;
  }

  .carousel-product h3 {
    font-size: 16px;
    margin: 8px 0 3px 0;
  }

  .carousel-product p {
    font-size: 10px;
    margin: 3px 0;
  }

  .product-price {
    font-size: 14px;
    margin-top: 6px;
  }

  /* Footer responsive */
  .footer {
    padding: 30px 15px;
    margin-top: 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section h3 {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .footer-section ul li a {
    font-size: 12px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-input,
  .newsletter-btn {
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    top: 110px;
    right: 10px;
    min-width: 180px;
    padding: 8px 0;
  }

  /* Prevent overflow */
  body, html {
    overflow-x: hidden;
  }

  .floating-header {
    overflow: visible;
  }

  /* ========================
     ADDITIONAL MOBILE FIXES
     ======================== */
  
  /* Fix header spacing and prevent smushing */
  .floating-header {
    top: 55px !important;
    width: 96% !important;
    max-width: calc(100% - 12px) !important;
    padding: 8px 8px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
  }

  .pill-left {
    min-width: auto !important;
    flex-shrink: 0 !important;
  }

  .bolt-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .nav-icons {
    gap: 2px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .nav-icons a {
    margin: 0 !important;
    padding: 0 1px !important;
  }

  .nav-icons .icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  #cartBadge {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  /* Fix top logo on mobile */
  .top-logo {
    top: 2px !important;
  }

  .top-logo-img {
    max-width: 40px !important;
    height: auto !important;
  }

  /* Improve main content margins */
  main {
    margin-top: 100px !important;
    padding: 0 12px !important;
  }

  /* Fix footer on mobile */
  .footer-content {
    padding: 30px 15px !important;
    border-radius: 10px !important;
  }

  .footer-container {
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .footer-section h3 {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  .footer-section ul li a {
    font-size: 11px !important;
  }

  .footer-logo-section {
    margin-bottom: 15px !important;
  }

  .footer-sidelogo {
    max-width: 60px !important;
  }

  .footer-tagline {
    font-size: 12px !important;
  }

  .newsletter-form {
    flex-direction: column !important;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100% !important;
    font-size: 12px !important;
  }

  .support-contact {
    margin-top: 15px !important;
    padding-top: 10px !important;
  }

  .support-contact h4 {
    font-size: 11px !important;
  }

  .support-email {
    font-size: 12px !important;
  }

  .footer-copyright {
    font-size: 11px !important;
    padding-top: 15px !important;
  }

  /* Fix dashboard menu bar on mobile */
  .dashboard-menu-bar {
    top: 90px !important;
    width: 96% !important;
    max-width: calc(100% - 12px) !important;
    padding: 6px 6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .menu-bar-content {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .menu-avatar {
    width: 35px !important;
    height: 35px !important;
    margin-right: 5px !important;
  }

  .menu-greeting {
    font-size: 11px !important;
    margin-right: 3px !important;
  }

  .menu-item-link {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }

  /* Dropdown menu positioning on mobile */
  .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    top: 100px !important;
  }

  /* WooCommerce pages on mobile */
  body.woocommerce-cart .floating-header,
  body.woocommerce-checkout .floating-header,
  body.woocommerce-order-pay .floating-header {
    top: 55px !important;
    width: 96% !important;
    max-width: calc(100% - 12px) !important;
    padding: 8px 8px !important;
  }

  body.woocommerce-cart #primary,
  body.woocommerce-checkout #primary,
  body.woocommerce-order-pay #primary,
  body.woocommerce-cart .site-content,
  body.woocommerce-checkout .site-content,
  body.woocommerce-order-pay .site-content,
  body.woocommerce-cart .woocommerce,
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-order-pay .woocommerce {
    margin-top: 100px !important;
    padding: 10px !important;
  }

  /* Grid layouts on mobile */
  .steps-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .step:nth-child(3) {
    grid-column: 1 / -1;
    margin: 0 auto;
    max-width: 50%;
  }

  .step-icon img {
    width: 100px !important;
    height: 100px !important;
  }

  .website-content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .website-text h2 {
    font-size: 24px !important;
  }

  .website-text p {
    font-size: 14px !important;
  }

  /* Hide and show elements appropriately */
  .search-box {
    display: none !important;
  }
}

/* Extra small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  /* Header styles moved to Additional CSS */

  .hero-title {
    font-size: 20px !important;
  }

  .hero-subtitle {
    font-size: 11px !important;
  }

  .btn {
    width: 100% !important;
    padding: 8px 15px !important;
    font-size: 11px !important;
  }

  .section-title {
    font-size: 18px !important;
  }

  .access-card {
    padding: 15px 10px !important;
  }

  .card-icon img {
    width: 60px !important;
    height: 60px !important;
  }

  .access-card h3 {
    font-size: 14px !important;
  }

  .access-card p {
    font-size: 11px !important;
  }

  .showglass {
    height: 200px !important;
  }

  .product-icon {
    width: 50px !important;
    height: 50px !important;
  }

  .carousel-product h3 {
    font-size: 14px !important;
  }

  .carousel-product p {
    font-size: 9px !important;
  }

  .product-price {
    font-size: 12px !important;
  }

  .footer {
    padding: 20px 10px !important;
    margin-top: 20px !important;
  }

  .footer-content {
    padding: 20px 12px !important;
  }

  .footer-container {
    gap: 15px !important;
  }

  .footer-section h3 {
    font-size: 11px !important;
  }

  .footer-section ul li a {
    font-size: 10px !important;
  }

  .newsletter-input,
  .newsletter-btn {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .dropdown-menu {
    top: 95px !important;
    min-width: 150px !important;
  }

  .dashboard-menu-bar {
    top: 85px !important;
    width: 96% !important;
    padding: 5px 5px !important;
  }

  .menu-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  .menu-greeting {
    display: flex !important;
  }

  .menu-item-link {
    font-size: 8px !important;
    padding: 2px 4px !important;
  }

  /* Cart dropdown positioning for mobile */
  .cart-dropdown {
    position: fixed !important;
    top: 105px !important;
    left: 8px !important;
    right: auto !important;
    width: calc(100% - 16px) !important;
    max-width: 260px !important;
    max-height: 300px !important;
    display: flex !important;
    z-index: 10001 !important;
  }
}

/* TABLET FOOTER RESPONSIVE FIX */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 45px 20px !important;
    margin-top: 40px !important;
  }

  .footer-content {
    padding: 38px 30px !important;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
  }

  .footer-logo-section {
    grid-column: span 2;
  }

  .footer-logo {
    flex-wrap: wrap;
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
    margin-top: 12px;
  }

  .footer-section {
    min-width: 0;
  }

  .newsletter-form {
    flex-wrap: wrap;
    gap: 12px !important;
  }

  .newsletter-input {
    min-width: 180px !important;
    width: calc(100% - 120px) !important;
  }

  .newsletter-btn {
    width: auto !important;
    min-width: 100px !important;
  }
}

/* ========================
   CART DROPDOWN RESPONSIVE
   ======================== */

/* TABLET (768px - 1023px): Switch to left positioning */
@media (min-width: 768px) and (max-width: 1023px) {
  .cart-dropdown {
    position: fixed !important;
    top: 130px !important;
    left: 12px !important;
    right: auto !important;
    width: calc(100% - 24px) !important;
    max-width: 300px !important;
    max-height: 400px !important;
    z-index: 10001 !important;
  }
}

/* TABLET (768px - 1023px): 2-column layout for steps */
@media (min-width: 768px) and (max-width: 1023px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  .step:nth-child(3) {
    grid-column: 1 / -1;
    margin: 0 auto;
    max-width: 50%;
  }
}

/* MOBILE MEDIUM (480px - 767px): Left positioning */
@media (min-width: 480px) and (max-width: 767px) {
  .cart-dropdown {
    position: fixed !important;
    top: 120px !important;
    left: 12px !important;
    right: auto !important;
    width: calc(100% - 24px) !important;
    max-width: 280px !important;
    max-height: 350px !important;
    z-index: 10001 !important;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .step:nth-child(3) {
    grid-column: 1 / -1;
    margin: 0 auto;
    max-width: 50%;
  }
}

/* MOBILE SMALL (< 480px): Left positioning */
@media (max-width: 479px) {
  .cart-dropdown {
    position: fixed !important;
    top: 105px !important;
    left: 8px !important;
    right: auto !important;
    width: calc(100% - 16px) !important;
    max-width: 260px !important;
    max-height: 300px !important;
    z-index: 10001 !important;
  }
}

/* ========================
   PIXEL CIRCLE ANIMATION
   ======================== */

/* Circle wrapper - hidden by default */
.pixel-circle {
  width: 52px !important;
  height: 52px !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  opacity: 0 !important;
  z-index: 0 !important;
  object-fit: contain !important;
  pointer-events: none !important;
  display: block !important;
}

/* Circle visible and ready when user is logged in */
.pixel-circle.active {
  opacity: 1 !important;
}

/* Circle expanded (no static transform - animation handles it) */
.pixel-circle.expanded {
}

/* Circle rolling animation */
.pixel-circle.rolling {
  animation: pixelCircleRoll 1.2s ease-in-out forwards !important;
}

/* Continuous rolling on dashboard page */
.pixel-circle.continuous-roll {
  animation: pixelCircleRollContinuous 4s linear infinite !important;
}

/* Pixelball rolling animation */
.bolt-icon.rolling {
  animation: pixelballRoll 2s ease-in-out forwards !important;
}

/* Dashboard slides down */
main.slide-down {
  animation: slideDownDashboard 1.2s forwards !important;
}

/* Pixelball rotation keyframes */
@keyframes pixelballRoll {
  0% {
    transform: rotateZ(0deg) scale(1) !important;
  }
  50% {
    transform: rotateZ(360deg) scale(1.05) !important;
  }
  100% {
    transform: rotateZ(720deg) scale(1) !important;
  }
}

/* Circle rotation keyframes - anticlockwise rotation */
@keyframes pixelCircleRoll {
  0% {
    transform: translate(-50%, -50%) scale(1) !important;
  }
  50% {
    transform: translate(-50%, -50%) rotateZ(-360deg) scale(1.05) !important;
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(-720deg) scale(1) !important;
  }
}

/* Continuous rolling animation for dashboard page - anticlockwise */
@keyframes pixelCircleRollContinuous {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg) !important;
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(-360deg) !important;
  }
}

/* Dashboard slide down keyframes */
@keyframes slideDownDashboard {
  0% {
    transform: translateY(-300px) !important;
    opacity: 0 !important;
  }
  100% {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}
