/* ==================================================
   VANSH IT & COMM — DESKTOP STYLES
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-dark: #0B1220;
  --color-success: #22C55E;
  --color-success-hover: #16A34A;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: #E2E8F0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container-width: 1400px;

  --shadow-card: 0 4px 12px -2px rgba(11, 18, 32, 0.05), 0 2px 6px -1px rgba(11, 18, 32, 0.03);
  --shadow-hover: 0 12px 28px -4px rgba(11, 18, 32, 0.12), 0 4px 10px -2px rgba(11, 18, 32, 0.05);
  --shadow-dropdown: 0 20px 40px -8px rgba(11, 18, 32, 0.15), 0 8px 16px -4px rgba(11, 18, 32, 0.08);
}

/* ==================================================
   GLOBAL TYPOGRAPHY & DESKTOP RESET
   ================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: inherit;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

h4 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.font-body {
  font-family: var(--font-body);
}

/* ==================================================
   DESKTOP CONTAINER & SECTIONS
   ================================================== */
.container-custom {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 1280px) {
  .container-custom {
    padding-inline: 32px;
  }
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ==================================================
   DESKTOP BUTTON SYSTEM
   ================================================== */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
}

.btn-base:active {
  transform: scale(0.98);
}

.btn-base:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--color-primary);
}

.btn-dark {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

.btn-dark:hover {
  background-color: #1A253C;
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.3);
}

.btn-success {
  background-color: var(--color-success);
  color: #FFFFFF;
}

.btn-success:hover {
  background-color: var(--color-success-hover);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-sm {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ==================================================
   DESKTOP CARDS & PRODUCT GRIDS
   ================================================== */
.card-base {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  border-color: #93C5FD;
}

.product-card .img-wrapper {
  position: relative;
  width: 100%;
  height: 195px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid #F1F5F9;
}

@media (max-width: 640px) {
  .card-base {
    border-radius: 14px;
  }
  .product-card {
    border-radius: 14px;
  }
  .product-card .img-wrapper {
    height: 145px;
    padding: 8px;
  }
}

.product-card .img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #3B82F6;
}

.category-card img {
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

/* ==================================================
   PRODUCT BADGES
   ================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-refurbished {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-new {
  background-color: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-openbox {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-deal {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.badge-tested {
  background-color: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

/* ==================================================
   DESKTOP HEADER & 5-COLUMN MEGA MENU
   ================================================== */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  border-bottom: 1px solid var(--color-border);
}

.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(11, 18, 32, 0.08);
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 14px;
    padding: 7px 12px;
    gap: 6px;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: #EFF6FF;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Live Search Autocomplete Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
  display: none;
}

.search-results-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}

/* ==================================================
   DESKTOP MODALS
   ================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-wrapper.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dropdown);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-wrapper.open .modal-box {
  transform: scale(1);
}

/* ==================================================
   DESKTOP TOAST NOTIFICATIONS
   ================================================== */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: var(--color-dark);
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid var(--color-primary);
}

.toast.toast-success {
  border-left-color: var(--color-success);
}

.toast.toast-error {
  border-left-color: #EF4444;
}

.toast.toast-info {
  border-left-color: var(--color-primary);
}

/* ==================================================
   DESKTOP FLOATING BUTTONS
   ================================================== */
.floating-btn-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.floating-whatsapp {
  background-color: #25D366;
}

.floating-back-to-top {
  background-color: var(--color-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================================================
   MICRO-INTERACTIONS & CUSTOM SCROLLBAR
   ================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.heart-btn.active svg {
  fill: #EF4444;
  stroke: #EF4444;
  transform: scale(1.15);
  transition: transform 0.2s ease, fill 0.2s ease;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

img {
  text-indent: -9999px;
}

/* ==================================================
   MOBILE NAVIGATION DRAWER & BOTTOM BAR
   ================================================== */
.mobile-drawer-wrapper {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-wrapper.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(4px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: #FFFFFF;
  box-shadow: var(--shadow-dropdown);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}

.mobile-drawer-wrapper.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 45;
  padding: 0 4px;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* ==================================================
   FOOTER ENHANCEMENTS
   ================================================== */
.footer-link {
  color: #94A3B8;
  font-size: 0.8125rem;
  line-height: 1.5;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0F172A;
  border: 1px solid #1E293B;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-btn:hover {
  transform: translateY(-2px);
}

.footer-social-btn.wa:hover {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.footer-social-btn.ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.35);
}

.footer-social-btn.fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.footer-social-btn.yt:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

/* ==================================================
   MODAL OVERLAYS & QUICK VIEW
   ================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-wrapper.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  background: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.9);
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-wrapper.open .modal-box {
  transform: scale(1) translateY(0);
}

/* ==================================================
   TOAST NOTIFICATIONS
   ================================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  font-size: 0.8125rem;
  font-weight: 500;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success {
  border-left: 4px solid #22C55E;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-info {
  border-left: 4px solid #3B82F6;
}

/* ==================================================
   FLOATING ACTION BUTTONS (WhatsApp & Back-to-Top)
   ================================================== */
.floating-btn-group {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 1024px) {
  .floating-btn-group {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.floating-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.floating-whatsapp {
  background: #22C55E;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.floating-whatsapp:hover {
  background: #16A34A;
  color: #FFFFFF;
}

.floating-back-to-top {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.floating-back-to-top:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}