/* =========================================
   PC CHOICE HEADER - MODERN RESTRUCTURE
   Cleaner, more spacious, better mobile UX
   ========================================= */

:root {
  --header-bg: #080e1a;
  --header-border: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #ff7920;
  --accent-hover: #ff8c3d;
  --hover-bg: rgba(255, 255, 255, 0.06);
  --search-bg: #0d1117;
  --search-border: #30363d;
}
.pcx-coming-soon{
  background:#FF820A;
  color:#ffffff;
  font-family:"Poppins",sans-serif;
  font-size:16px;
  font-weight:600;
  text-align:center;
  padding:10px 0;
  width:100%;
}

/* Screen Reader Only */
.pcx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prevent scroll when drawer open */
body.no-scroll {
  overflow: hidden;
}

/* ========== HEADER WRAPPER ========== */
.pcx-header-wrap {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.pcx-sticky-spacer {
  height: 0;
  transition: height 0.3s ease;
}

/* ========== MAIN HEADER ========== */
.pcx-header {
  position: relative;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.pcx-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== CONTAINER ========== */
.pcx-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height:auto;
}

.pcx-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px; /* Reduced from 72px */
  gap: clamp(16px, 3vw, 48px);
  padding: 0; /* Remove extra padding */
}

/* ========== LEFT SIDE (Logo + Nav) ========== */
.pcx-left {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex: 1;
  min-width: 0;
}

/* Brand/Logo */
.pcx-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.pcx-brand:hover {
  opacity: 0.8;
}

.pcx-brand img {
  height: 36px; /* Reduced from 40px */
  width: auto;
  display: block;
}

.pcx-brand__text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Navigation */
.pcx-nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.5vw, 32px);
}

.pcx-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.pcx-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pcx-nav a:hover,
.pcx-nav a:focus {
  color: var(--text-primary);
}

.pcx-nav a:hover::after,
.pcx-nav a:focus::after {
  transform: scaleX(1);
}

/* ========== SHOP PCS DROPDOWN ========== */
.pcx-nav-dropdown {
  position: relative;
  display: inline-block;
}

.pcx-nav-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.pcx-nav-toggle:hover,
.pcx-nav-toggle:focus {
  color: var(--text-primary);
  background: transparent;
}

.pcx-nav-toggle[aria-expanded="true"] {
  color: var(--text-primary);
  background: transparent;
}

.pcx-nav-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pcx-nav-toggle:hover::after,
.pcx-nav-toggle:focus::after {
  transform: scaleX(1);
}

.pcx-nav-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pcx-nav-toggle[aria-expanded="true"] .pcx-nav-arrow {
  transform: rotate(180deg);
}

.pcx-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 220px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.pcx-nav-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pcx-nav-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.pcx-nav-menu a::after {
  display: none; /* Remove underline effect in dropdown */
}

.pcx-nav-menu a:hover,
.pcx-nav-menu a:focus {
  background: rgba(255, 121, 32, 0.1);
  color: var(--accent);
  transform: translateX(4px);
}

/* Show nav on desktop */
@media (min-width: 1024px) {
  .pcx-nav {
    display: flex;
  }
}

/* ========== RIGHT SIDE (Actions) ========== */
.pcx-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Icon Buttons (Cart, Account, Search) */
.pcx-icon-btn,
.pcx-search-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;   /* Reduced from 44px */
  height: 40px;  /* Reduced from 44px */
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  text-decoration: none;
}

.pcx-icon-btn:hover,
.pcx-icon-btn:focus,
.pcx-search-toggle:hover,
.pcx-search-toggle:focus {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.pcx-icon-btn svg,
.pcx-search-toggle svg {
  width: 24px;  /* Increased from 22px */
  height: 24px; /* Increased from 22px */
  stroke: currentColor;
}

/* Cart Badge */
.pcx-badge {
  position: absolute;
  top: 4px;     /* Adjusted from 6px */
  right: 4px;   /* Adjusted from 6px */
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--header-bg);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(255, 121, 32, 0.4);
  animation: badgePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pcx-badge--empty {
  opacity: 0.5;
}

@keyframes badgePop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Hamburger Menu */
.pcx-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;    /* Reduced from 44px */
  height: 40px;   /* Reduced from 44px */
  padding: 11px 9px;  /* Adjusted padding */
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pcx-hamburger:hover,
.pcx-hamburger:focus {
  background: var(--hover-bg);
}

.pcx-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pcx-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);  /* Adjusted from 8px */
}

.pcx-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.pcx-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);  /* Adjusted from -8px */
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
  .pcx-hamburger {
    display: none;
  }
}

/* ========== EXPANDABLE SEARCH BAR ========== */
.pcx-search-bar {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  background: var(--search-bg);
  border-top: 1px solid var(--header-border);
}

.pcx-search-bar:not([hidden]) {
  max-height: 80px;
  opacity: 1;
}

.pcx-search-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 32px);
}

.pcx-search-bar__inner svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.pcx-search-bar__inner input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  min-width: 0;
}

.pcx-search-bar__inner input[type="search"]::placeholder {
  color: var(--text-muted);
}

.pcx-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.pcx-search-close:hover {
  background: var(--hover-bg);
}

.pcx-search-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

/* ========== MOBILE DRAWER ========== */
.pcx-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: var(--header-bg);
  display: flex;
  flex-direction: column;
  z-index: 10001;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

.pcx-drawer.is-open {
  left: 0;
}

/* Drawer Header */
.pcx-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
}

.pcx-drawer__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pcx-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pcx-drawer__close:hover {
  background: var(--hover-bg);
}

.pcx-drawer__close svg {
  width: 24px;
  height: 24px;
  fill: var(--text-secondary);
}

/* Drawer Navigation */
.pcx-drawer__nav {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcx-drawer__nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.pcx-drawer__nav a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pcx-drawer__nav a:hover,
.pcx-drawer__nav a:focus {
  background: rgba(255, 121, 32, 0.1);
  color: var(--accent);
  transform: translateX(4px);
}

.pcx-drawer__nav a:hover svg,
.pcx-drawer__nav a:focus svg {
  opacity: 1;
}

/* Mobile Drawer Section (Shop PCs Group) */
.pcx-drawer__section {
  border-bottom: 1px solid var(--header-border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.pcx-drawer__label {
  padding: 8px 16px 12px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pcx-drawer__sublink {
  padding-left: 32px !important;
  font-size: 15px !important;
}

.pcx-drawer__sublink svg {
  width: 18px !important;
  height: 18px !important;
}

/* Drawer Footer */
.pcx-drawer__footer {
  padding: 24px;
  border-top: 1px solid var(--header-border);
  flex-shrink: 0;
}

.pcx-drawer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.pcx-drawer__btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--header-bg);
  box-shadow: 0 4px 12px rgba(255, 121, 32, 0.3);
}

.pcx-drawer__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 121, 32, 0.4);
}

/* Overlay */
.pcx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pcx-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ========== RESPONSIVE ========== */

/* Hide dropdown on mobile */
@media (max-width: 1023px) {
  .pcx-nav-dropdown {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .pcx-header__row {
    min-height: 58px; /* Reduced from 64px */
  }
  
  .pcx-brand img {
    height: 32px; /* Reduced from 36px */
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pcx-header__row {
    min-height: 54px; /* Reduced from 60px */
  }
  
  .pcx-brand img {
    height: 30px; /* Reduced from 32px */
  }
  
  .pcx-icon-btn,
  .pcx-search-toggle {
    width: 38px;   /* Slightly smaller on mobile */
    height: 38px;
  }
  
  .pcx-icon-btn svg,
  .pcx-search-toggle svg {
    width: 20px;   /* Slightly smaller on mobile */
    height: 20px;
  }
  
  .pcx-hamburger {
    width: 38px;
    height: 38px;
    padding: 10px 8px;
  }
}

/* ========== ACCESSIBILITY ========== */

/* Focus styles */
.pcx-brand:focus,
.pcx-nav a:focus,
.pcx-nav-toggle:focus,
.pcx-icon-btn:focus,
.pcx-search-toggle:focus,
.pcx-hamburger:focus,
.pcx-search-close:focus,
.pcx-drawer__close:focus,
.pcx-drawer__nav a:focus,
.pcx-drawer__btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pcx-nav-menu a:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .pcx-right,
  .pcx-drawer,
  .pcx-overlay,
  .pcx-search-bar {
    display: none !important;
  }
}