/* ==========================================================================
   PC BYTES - Component Styles
   All reusable UI components for the cyber/gaming e-commerce theme
   ========================================================================== */


/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 6, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3xl);
}

@media (max-width: 768px) {
  .navbar__inner {
    padding: 0 var(--space-md);
  }
  /* Guest Login/Register buttons duplicate the slide-out menu at mobile widths */
  .navbar__auth {
    display: none !important;
  }
  /* Logged-in user dropdown: hide the name label to save space, keep avatar tappable */
  .navbar__user-name,
  .navbar__arrow {
    display: none;
  }
}

/* Navbar - Scrolled State */
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--border-light);
  background: rgba(6, 6, 11, 0.98);
}

/* Navbar Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.5px;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar__logo-text span:first-child {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 0, 68, 0.7);
}

.navbar__logo-text span:last-child {
  color: var(--text);
  text-shadow: 0 0 16px rgba(255, 0, 68, 0.5), 0 0 32px rgba(255, 0, 68, 0.25);
}

/* Navbar Menu */
.navbar__menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  margin-left: 32px;
}

/* Navbar Item */
.navbar__item {
  position: relative;
}

/* Navbar Link */
.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.navbar__link.active {
  color: var(--primary);
}

.navbar__link i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.navbar__item:hover .navbar__link i {
  transform: rotate(180deg);
}

/* Navbar Dropdown (Mega Menu) */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 200;
}

.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
  cursor: pointer;
}

.navbar__dropdown a:last-child {
  border-bottom: none;
}

.navbar__dropdown a:hover {
  color: var(--text);
  background: var(--primary-glow);
  padding-left: 26px;
}

.navbar__dropdown a i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  color: var(--primary);
}

/* Navbar Right Section */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navbar Search */
.navbar__search {
  display: none;
}

.navbar__search.active {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 16px;
  gap: 8px;
}

.navbar__search input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 10px 0;
  width: 200px;
}

.navbar__search input::placeholder {
  color: var(--text-faint);
}

/* Search Toggle Button */
.search-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.search-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--border-primary);
  background: var(--primary-glow);
}

/* Cart Button */
.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}

.cart-btn:hover {
  color: var(--primary);
  border-color: var(--border-primary);
  background: var(--primary-glow);
  box-shadow: var(--shadow-glow-primary);
}

/* Cart Count Badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* Login & Register Buttons */
.btn-login {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-login:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-register {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  transition: var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-register:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  right: -100%;
  width: min(300px, 86vw);
  height: calc(100vh - var(--navbar-height));
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: var(--space-lg);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu__overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.mobile-menu__link i {
  width: 20px;
  text-align: center;
}

.mobile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transform-origin: center;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px) scale(1.03);
}
.btn:hover::before {
  left: 130%;
}
.btn:active {
  transform: translateY(0) scale(0.97);
}

/* Primary Button - Cyan */
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 0, 68, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 6px 25px rgba(255, 0, 68, 0.4);
}

/* Accent Button - Red */
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 68, 0.25);
}

.btn--accent:hover {
  box-shadow: 0 6px 25px rgba(255, 0, 68, 0.4);
}

/* Success Button - Green */
.btn--success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
}

.btn--success:hover {
  box-shadow: 0 6px 25px rgba(0, 230, 118, 0.4);
}

/* Pre-Built PC Button - Orange with looping glow + icon bounce (premium CTA) */
.btn--prebuilt {
  background: linear-gradient(135deg, #ff5500, #ff8a00, #ff5500);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}
.btn--prebuilt::before {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.btn--prebuilt:hover {
  transform: translateY(-2px) scale(1.04);
  background-position: 100% 50%;
  box-shadow: 0 8px 28px rgba(255, 85, 0, 0.55), 0 0 0 2px rgba(255, 138, 0, 0.4);
  animation: prebuiltGlow 1.6s ease-in-out infinite;
}
.btn--prebuilt__icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn--prebuilt:hover .btn--prebuilt__icon {
  animation: prebuiltIconBounce 0.6s ease-in-out infinite;
}
@keyframes prebuiltGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(255, 85, 0, 0.55), 0 0 0 2px rgba(255, 138, 0, 0.4); }
  50%      { box-shadow: 0 10px 34px rgba(255, 85, 0, 0.75), 0 0 0 3px rgba(255, 138, 0, 0.6); }
}
@keyframes prebuiltIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-8deg); }
  75%      { transform: translateY(-3px) rotate(8deg); }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover,
  .btn:active { transform: none; }
  .btn::before { transition: none; left: -75%; }
  .btn:hover::before { left: -75%; }
  .btn--prebuilt:hover,
  .btn--prebuilt:hover .btn--prebuilt__icon { animation: none; }
}

/* Outline Button */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  box-shadow: var(--shadow-glow-primary);
}

.btn--outline.btn--danger:hover {
  border-color: var(--error, #f44);
  color: var(--error, #f44);
  background: rgba(255, 68, 68, 0.08);
  box-shadow: none;
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Button Sizes */
.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15px;
  letter-spacing: 1.5px;
}

/* Disabled Button */
.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* Button with Icon */
.btn i {
  font-size: 14px;
}

.btn--icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
}


/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 0, 68, 0.1);
}

/* Product Image Container */
.product-card__image {
  height: 300px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Product Badge */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.product-card__badge--new {
  background: var(--primary);
  color: #000;
}

.product-card__badge--sale {
  background: var(--accent);
  color: #fff;
}

.product-card__badge--low-stock {
  background: var(--warning);
  color: #000;
}

.product-card__badge--out-of-stock {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.product-card__badge--pre-order {
  background: var(--info);
  color: #fff;
}

/* Wishlist Button */
.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  transition: var(--transition-fast);
}

.product-card__wishlist:hover,
.product-card__wishlist.active {
  color: var(--accent);
  background: rgba(255, 0, 68, 0.2);
  border-color: var(--border-accent);
}

/* Product Body */
.product-card__body {
  padding: 18px;
}

.product-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__name a {
  color: var(--text);
  transition: var(--transition-fast);
}

.product-card__name a:hover {
  color: var(--primary);
}

.product-card__brand {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Product Footer */
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
}

.product-card__price--old,
.product-card__old-price {
  text-decoration: line-through;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 400;
}

.product-card__btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.product-card:hover .product-card__btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-card__btn:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
  opacity: 0.9;
}

.product-card__btn--disabled,
.product-card__btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
}

/* Cart icon inside Add to Cart button */
.product-card__btn-icon {
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: middle;
  transition: width 0.25s ease, margin-right 0.25s ease;
  margin-right: 0;
  line-height: 1;
}

.product-card__btn:hover .product-card__btn-icon {
  width: 16px;
  margin-right: 6px;
}

/* Product Card - No Image Placeholder */
.product-card--no-img .product-card__image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
}

.product-card--no-img .product-card__image i {
  font-size: 36px;
}

.product-card--no-img .product-card__image span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ==========================================================================
   WISHLIST HEART
   ========================================================================== */

.wishlist-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 6, 11, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
}

.wishlist-heart__icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}

.wishlist-heart:hover {
  background: rgba(255, 0, 68, 0.15);
  border-color: var(--primary);
}

.wishlist-heart:hover .wishlist-heart__icon {
  color: var(--primary);
  animation: heartbeat 1s ease-in-out infinite;
}

.wishlist-heart--active .wishlist-heart__icon {
  color: var(--primary);
}

.wishlist-heart--active:hover .wishlist-heart__icon {
  animation: heartbeat 1s ease-in-out infinite;
}

/* Wishlist tooltip */
.wishlist-heart__tooltip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wishlist-heart:hover .wishlist-heart__tooltip {
  opacity: 1;
}

.product-card {
  position: relative;
}

/* ==========================================================================
   QUICK VIEW BUTTON ON PRODUCT CARD
   ========================================================================== */

.product-card__quick-view {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 6, 11, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  padding: 0;
}

.product-card:hover .product-card__quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick-view:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */

.quickview {
  max-width: 1000px;
  width: 95%;
  position: relative;
}

.quickview__content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
}

/* Carousel */
.quickview__carousel {
  position: relative;
  background: var(--bg-dark);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview__carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.quickview__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2;
  padding: 0;
  line-height: 1;
}

.quickview__carousel-arrow--prev { left: 10px; }
.quickview__carousel-arrow--next { right: 10px; }

.quickview__carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.quickview__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.quickview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.quickview__dot--active {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(255, 0, 68, 0.5);
}

/* Info panel */
.quickview__info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 80vh;
}

.quickview__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
}

.quickview__name {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0;
  color: var(--primary);
}

.quickview__brand {
  font-size: 13px;
  color: var(--text-muted);
}

.quickview__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.quickview__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-heading);
}

.quickview__old-price {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 16px;
}

.quickview__discount {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.quickview__stock {
  font-size: 13px;
  font-weight: 600;
}

.quickview__stock--in { color: var(--success); }
.quickview__stock--low { color: var(--warning); }
.quickview__stock--out { color: var(--text-muted); }
.quickview__stock--pre-order { color: var(--info); }

/* Specs table */
.quickview__specs {
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.quickview__specs-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
}

.quickview__specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
}

.quickview__specs-table tr {
  border-bottom: 1px solid var(--border);
}

.quickview__specs-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.quickview__specs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.quickview__spec-key {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  width: 30%;
}

.quickview__spec-val {
  color: var(--text);
  font-size: 13px;
}

/* Quantity */
.quickview__qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quickview__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quickview__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quickview__qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.quickview__qty-btn:hover { background: var(--bg-hover); }

.quickview__qty-val {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}

/* Actions */
.quickview__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.quickview__btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview__btn-grab {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.quickview__btn-grab:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
}

.quickview__view-full {
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.quickview__view-full:hover {
  opacity: 0.8;
}

/* Responsive Quick View */
@media (max-width: 768px) {
  .quickview__content {
    grid-template-columns: 1fr;
  }
  .quickview__carousel {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    aspect-ratio: 4/3;
  }
  .quickview { max-width: 95vw; }
}

/* Wishlist Grid (account panel) */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.wishlist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.wishlist-card:hover {
  border-color: var(--primary-dim);
}

.wishlist-card__img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-card__info {
  flex: 1;
  min-width: 0;
}

.wishlist-card__name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.wishlist-card__price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

.wishlist-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}


/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  background: linear-gradient(180deg, var(--primary-glow), transparent);
}

.category-card__icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}

img.category-card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  background: transparent;
}

.category-card__name {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.category-card:hover .category-card__name {
  color: var(--text);
}

.category-card__count {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}


/* ==========================================================================
   DEAL CARDS
   ========================================================================== */

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.deal-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 0, 68, 0.1);
}

.deal-card__image {
  height: 180px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.deal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-card__discount {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
}

.deal-card__body {
  padding: 18px;
}

.deal-card__name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.deal-card__prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.deal-card__price--new {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.deal-card__price--old {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: line-through;
}

/* Deal Countdown */
.deal-card__countdown {
  display: flex;
  gap: 8px;
}

.deal-card__time-unit {
  background: var(--bg-dark);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 48px;
  border: 1px solid var(--border);
}

.deal-card__time-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.deal-card__time-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-top: 2px;
}


/* ==========================================================================
   REVIEW CARDS
   ========================================================================== */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--border-light);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.review-card__stars i {
  color: var(--warning);
  font-size: 14px;
}

.review-card__stars i.empty {
  color: var(--text-faint);
}

.review-card__text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 20px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 700;
  font-size: 14px;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-faint);
}

.review-card__platform {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Social review groups (Google / Facebook) ─────────────────────── */
.reviews-group {
  margin-bottom: 40px;
}
.reviews-widget {
  min-height: 280px;
  margin-top: 8px;
}
.reviews-widget:empty::before,
.reviews-widget:has(> script:only-child)::before {
  content: 'Loading reviews\2026';
  display: block;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.reviews-group__header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.reviews-group__heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reviews-group__heading--google { color: #4285f4; }
.reviews-group__heading--facebook { color: #1877f2; }
.reviews-group__link {
  color: inherit;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
  text-decoration: none;
}
.reviews-group__link:hover { text-decoration: underline; opacity: 1; }

.reviews-scroll {
  position: relative;
}
.reviews-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.reviews-row::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .reviews-row {
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
  }
}
.reviews-row > .review-card { scroll-snap-align: start; }

.reviews-scroll__btn {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.reviews-scroll__btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* ── Social review card variant ───────────────────────────────────── */
.review-card--social {
  position: relative;
  padding: 20px;
}
.review-card--social .review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-card--social .review-card__stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}
.review-card--social .review-card__text {
  font-style: normal;
  font-size: 14px;
  margin-bottom: 0;
}
.review-card__verified {
  color: #4285f4;
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 0 2px #4285f4 inset;
}
.review-card__verified--facebook { box-shadow: 0 0 0 2px #1877f2 inset; color: #1877f2; }
.review-card__platform-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  background: #fff;
  color: #4285f4;
  font-family: var(--font-heading);
}
.review-card__platform-badge--google {
  background: conic-gradient(from 0deg, #4285f4, #34a853, #fbbc04, #ea4335, #4285f4);
  color: #fff;
  position: absolute;
}
.review-card__platform-badge--google::before {
  content: 'G';
  position: absolute;
  inset: 2px;
  background: var(--bg-card);
  color: #4285f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.review-card__platform-badge--facebook {
  background: #1877f2;
  color: #fff;
}


/* ==========================================================================
   MODAL / OVERLAY
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal__close,
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  z-index: 10;
  transition: var(--transition-fast);
  cursor: pointer;
  outline: none;
}

.modal__close:hover,
.modal-close:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}


/* ==========================================================================
   AUTH MODAL (Login / Register)
   ========================================================================== */

.auth-modal {
  max-width: 430px;
  border-top: 3px solid var(--primary);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.auth-modal__tabs {
  display: flex;
  background: var(--bg-dark);
}

.auth-modal__tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.auth-modal__tab:hover {
  color: var(--text-secondary);
}

.auth-modal__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-modal__body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.auth-modal__body::-webkit-scrollbar {
  width: 8px;
}
.auth-modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.auth-modal__body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
.auth-modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.auth-modal__form {
  display: none;
}

.auth-modal__form.active {
  display: block;
}

.auth-modal__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-modal__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-modal__social {
  display: flex;
  gap: 12px;
}

.auth-modal__social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.auth-modal__social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  color: var(--text);
}

/* ── Enhanced auth modal elements ───────────────────────── */
.auth-modal__welcome {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.auth-modal__welcome strong {
  color: var(--text-primary);
  font-weight: 600;
}
.auth-modal .form-label .required {
  color: #ef4444;
  margin-left: 2px;
}
.auth-modal__inline-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
}
.auth-modal__link {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}
.auth-modal__link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.auth-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.auth-modal__row .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.auth-modal__row .form-label {
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  margin-bottom: 6px;
}
.auth-modal .form-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.auth-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-modal__terms {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0 14px 0;
}
.auth-modal__terms a {
  color: var(--primary);
  text-decoration: none;
}
.auth-modal__terms a:hover {
  text-decoration: underline;
}
.auth-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.auth-modal__actions .btn {
  flex: 1;
}
.auth-modal__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

/* Social sign-in buttons (Facebook / Google) */
.auth-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.auth-social:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth-social__icon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.15);
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.auth-social--facebook {
  background: #3b5998;
}
.auth-social--google {
  background: #dd4b39;
}


/* ==========================================================================
   CART MODAL
   ========================================================================== */

.cart-modal {
  max-width: 500px;
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.cart-modal__header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.cart-modal__header .modal-close {
  position: static;
  margin-left: 20px;
  flex-shrink: 0;
}

.cart-modal__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-modal__title i {
  color: var(--primary);
}

.cart-modal__count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.cart-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-modal__empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-modal__empty i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  color: var(--text-faint);
}

.cart-modal__footer {
  position: sticky;
  bottom: 0;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cart-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-modal__total-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.cart-modal__total-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.cart-modal__checkout-btn {
  width: 100%;
}

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

/* Image wrapper — actual class used by cart.js */
.cart-item__img-wrap,
.cart-item__image {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__img,
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__no-img {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.3;
}

/* Details column — actual class used by cart.js */
.cart-item__details,
.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cart-item__price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

/* Line total — actual class used by cart.js */
.cart-item__line-total {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  width: 88px;
  text-align: right;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 36px;
}

.cart-item__qty {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.cart-item__qty-btn:hover {
  border-color: var(--border-primary);
  color: var(--primary);
}

.cart-item__qty-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  border: 1px solid var(--border-primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition-fast);
  outline: none;
}

.cart-item__remove:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.form-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
}

textarea.form-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff80' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-error {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
}


/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 80px;
  right: 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
}

.toast i {
  font-size: 18px;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
}

.toast__close {
  color: var(--text-faint);
  font-size: 14px;
  padding: 4px;
  transition: var(--transition-fast);
}

.toast__close:hover {
  color: var(--text);
}

/* Toast Variants */
.toast--success {
  border-left: 3px solid var(--success);
}

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

.toast--error {
  border-left: 3px solid var(--accent);
}

.toast--error i {
  color: var(--accent);
}

.toast--info {
  border-left: 3px solid var(--info);
}

.toast--info i {
  color: var(--info);
}

.toast--warning {
  border-left: 3px solid var(--warning);
}

.toast--warning i {
  color: var(--warning);
}

/* Toast Exit Animation */
.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}


/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--pending {
  background: var(--warning-glow);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge--processing {
  background: rgba(68, 138, 255, 0.15);
  color: var(--info);
  border: 1px solid rgba(68, 138, 255, 0.3);
}

.badge--completed {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid var(--border-success);
}

.badge--cancelled {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.badge--shipped {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--border-primary);
}


/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

/* Section Label (Small tag above titles) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-label--accent {
  color: var(--accent);
}

.section-label--accent::before {
  background: var(--accent);
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.section-title .highlight-primary {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 0, 68, 0.5), 0 0 40px rgba(255, 0, 68, 0.2);
}

.section-title .highlight-accent {
  color: var(--accent);
}

/* Section Subtitle */
.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.6;
}


/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-elevated) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-image {
  height: 190px;
  background: linear-gradient(
    90deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
  padding: 18px;
}

.skeleton-text .skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--bg-surface) 0%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text .skeleton-line:nth-child(1) {
  width: 60%;
}

.skeleton-text .skeleton-line:nth-child(2) {
  width: 90%;
}

.skeleton-text .skeleton-line:nth-child(3) {
  width: 40%;
}


/* ==========================================================================
   STATS COUNTER
   ========================================================================== */

.stat {
  text-align: center;
  padding: var(--space-lg);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}


/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 0, 68, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 0, 68, 0.5);
}

/* ── Messenger FAB ──────────────────────────────────────── */
.messenger-wrap {
  position: fixed;
  bottom: 78px;
  right: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
}
.messenger-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0084FF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
  transition: var(--transition);
  animation: messenger-pulse 2s ease-in-out 1s 3;
}
.messenger-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 132, 255, 0.6);
}
@keyframes messenger-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(0, 132, 255, 0.7); }
}

/* ── Messenger contact CTA (replaces old contact form) ──────────── */
.contact__form--messenger { text-align: center; }
.contact__form-lead {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.contact__messenger-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px 0;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}
.contact__messenger-perks > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 132, 255, 0.06);
  border: 1px solid rgba(0, 132, 255, 0.18);
  border-radius: var(--radius-sm);
}
.contact__messenger-perks span { font-size: 18px; }
.btn--messenger {
  background: linear-gradient(135deg, #0084FF, #0066CC);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.35);
}
.btn--messenger:hover {
  box-shadow: 0 8px 28px rgba(0, 132, 255, 0.55);
  color: #fff;
}
.btn--messenger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact__form-fallback {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}
.contact__form-fallback a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.contact__form-fallback a:hover { text-decoration: underline; }

/* Chat bubble next to the Messenger FAB */
.messenger-bubble {
  position: relative;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 30px 8px 14px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  animation: messenger-bubble-in 0.4s ease-out 0.6s both;
}
.messenger-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #fff;
}
.messenger-bubble__close {
  position: absolute;
  top: 2px;
  right: 6px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.messenger-bubble__close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.messenger-bubble--hidden {
  display: none !important;
}
@keyframes messenger-bubble-in {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Hide bubble on narrow screens to avoid overlap */
@media (max-width: 480px) {
  .messenger-bubble { display: none; }
}
