/* ==========================================================================
   ABIMEDIA TECH - DYNAMIC & PROFESSIONAL IT THEME
   PrestaShop 9 | child_hummingbird (Modern Tech Design)
   ========================================================================== */

/* --- MODERN TECH VARIABLES & PALETTE --- */
:root {
  /* Core Colors */
  --tech-bg-dark: #0f172a;
  --tech-bg-darker: #020617;
  --tech-bg-glass: rgba(15, 23, 42, 0.7);
  --tech-bg-glass-light: rgba(30, 41, 59, 0.7);
  
  /* Accents - Cyber Blue & Neon Purple */
  --tech-accent-primary: #0ea5e9;
  --tech-accent-glow: rgba(14, 165, 233, 0.5);
  --tech-accent-secondary: #8b5cf6;
  --tech-accent-success: #10b981;
  --tech-accent-danger: #ef4444;

  /* Typography Colors */
  --tech-text-main: #f8fafc;
  --tech-text-muted: #94a3b8;
  --tech-text-dark: #1e293b;

  /* UI Elements */
  --tech-border-glass: rgba(255, 255, 255, 0.1);
  --tech-border-glow: 0 0 10px var(--tech-accent-glow);
  --tech-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Borders & Radius */
  --tech-radius-sm: 8px;
  --tech-radius-md: 16px;
  --tech-radius-lg: 24px;
  --tech-radius-pill: 9999px;
  
  /* Transitions */
  --tech-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tech-transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--tech-bg-darker);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
  background-attachment: fixed;
  color: var(--tech-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tech-text-main);
}

a {
  color: var(--tech-accent-primary);
  text-decoration: none;
  transition: all var(--tech-transition-fast);
}

a:hover {
  color: var(--tech-accent-secondary);
  text-shadow: var(--tech-border-glow);
}

/* --- HEADER: GLASSMORPHISM & STICKY --- */
#header {
  background: var(--tech-bg-glass) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tech-border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--tech-shadow-glass);
}

.header-nav {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 0;
}

.header-nav .user-info a,
.header-nav .contact-link a {
  color: var(--tech-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav .user-info a:hover,
.header-nav .contact-link a:hover {
  color: var(--tech-text-main);
}

.header-top {
  padding: 20px 0 !important;
  background: transparent !important;
}

.header-top .search-widget form {
  background: var(--tech-bg-glass-light);
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-pill);
  display: flex;
  overflow: hidden;
  transition: all var(--tech-transition-fast);
}

.header-top .search-widget form:focus-within {
  border-color: var(--tech-accent-primary);
  box-shadow: var(--tech-border-glow);
}

.header-top .search-widget input {
  background: transparent;
  border: none;
  color: var(--tech-text-main);
  padding: 12px 24px;
  width: 100%;
}

.header-top .search-widget input::placeholder {
  color: var(--tech-text-muted);
}

.header-top .search-widget button {
  background: transparent;
  color: var(--tech-accent-primary);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: all var(--tech-transition-fast);
}

.header-top .search-widget button:hover {
  transform: scale(1.1);
}

/* Cart Icon */
.blockcart .header {
  background: var(--tech-bg-glass-light);
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-pill);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--tech-transition-fast);
}

.blockcart .header:hover {
  border-color: var(--tech-accent-primary);
  box-shadow: var(--tech-border-glow);
}

.blockcart .cart-products-count {
  background: linear-gradient(135deg, var(--tech-accent-primary), var(--tech-accent-secondary));
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- NAVIGATION MENU (MEGAMENU) --- */
.top-menu {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-menu > li > a {
  color: var(--tech-text-main) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.top-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-accent-primary), var(--tech-accent-secondary));
  transition: width var(--tech-transition-smooth);
}

.top-menu > li:hover > a::after {
  width: 100%;
}

/* --- PRODUCT GRID & CARDS --- */
.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.product-miniature {
  background: var(--tech-bg-glass-light);
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-md);
  overflow: hidden;
  transition: all var(--tech-transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-miniature:hover {
  transform: translateY(-10px);
  border-color: var(--tech-accent-primary);
  box-shadow: var(--tech-border-glow), var(--tech-shadow-glass);
}

.product-miniature .thumbnail-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ffffff; /* keep background white for product images */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-miniature img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--tech-transition-smooth);
}

.product-miniature:hover img {
  transform: scale(1.08);
}

.product-miniature .product-description {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--tech-bg-glass-light);
  border-top: 1px solid var(--tech-border-glass);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-title a {
  color: var(--tech-text-main);
  text-decoration: none;
}

.product-price-and-shipping {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tech-accent-primary);
  font-family: 'JetBrains Mono', monospace;
}

/* Product Flags (New, Sale, etc.) */
.product-flags {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.product-flag {
  padding: 4px 12px;
  border-radius: var(--tech-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-flag.new {
  background: var(--tech-accent-secondary);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.product-flag.discount {
  background: var(--tech-accent-danger);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Add to cart button on hover */
.product-miniature .add-to-cart {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--tech-accent-primary), var(--tech-accent-secondary));
  color: #fff;
  border: none;
  border-radius: var(--tech-radius-pill);
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: all var(--tech-transition-smooth);
  width: max-content;
  box-shadow: var(--tech-border-glow);
}

.product-miniature:hover .add-to-cart {
  bottom: 20px;
  opacity: 1;
}

.product-miniature .add-to-cart:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 0 20px var(--tech-accent-primary);
}

/* --- BUTTONS --- */
.btn-primary {
  background: linear-gradient(135deg, var(--tech-accent-primary), var(--tech-accent-secondary));
  color: #fff;
  border: none;
  border-radius: var(--tech-radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--tech-transition-fast);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--tech-text-main);
  border: 1px solid var(--tech-border-glass);
  border-radius: var(--tech-radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  transition: all var(--tech-transition-fast);
}

.btn-secondary:hover {
  background: var(--tech-bg-glass-light);
  border-color: var(--tech-accent-primary);
}

/* --- HOME SLIDER / BANNER OVERRIDE --- */
.carousel {
  border-radius: var(--tech-radius-lg);
  overflow: hidden;
  box-shadow: var(--tech-shadow-glass);
  border: 1px solid var(--tech-border-glass);
  margin-bottom: 40px;
}

.carousel-inner {
  border-radius: var(--tech-radius-lg);
}

/* --- FOOTER --- */
#footer {
  background: var(--tech-bg-glass) !important;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--tech-border-glass);
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-container {
  color: var(--tech-text-muted);
}

.footer-container h3 {
  color: var(--tech-text-main);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--tech-accent-primary);
}

.footer-container ul li a {
  color: var(--tech-text-muted);
  transition: all var(--tech-transition-fast);
  display: inline-block;
  padding: 4px 0;
}

.footer-container ul li a:hover {
  color: var(--tech-accent-primary);
  transform: translateX(5px);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--tech-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--tech-bg-glass-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tech-accent-primary);
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px var(--tech-accent-glow); }
  50% { box-shadow: 0 0 25px var(--tech-accent-primary); }
  100% { box-shadow: 0 0 10px var(--tech-accent-glow); }
}

/* Utility Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.tech-gradient-text {
  background: linear-gradient(135deg, var(--tech-accent-primary), var(--tech-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
