/*
 * DILMAN Store — Complete Stylesheet
 * Includes: Original Frontend CSS + Backend/Form/Pagination CSS
 */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #8B5CF6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --sale: #F43F5E;
  --hot: #F59E0B;
  --new: #10B981;
  --pro: #A855F7;
  --bg: #050514;
  --bg-raised: #0A0A20;
  --bg-card: #0F0F28;
  --bg-input: #12122A;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #F1F1F6;
  --fg-secondary: #A1A1B5;
  --muted: #5A5A72;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-ad-height: 65px;
  --hero-min-height: 420px;
  --hero-side-width: 280px;
  --notify-width: 340px
}

html.light {
  --bg: #F5F5FA;
  --bg-raised: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #EEEEF5;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.13);
  --border-strong: rgba(0, 0, 0, 0.18);
  --fg: #111122;
  --fg-secondary: #55556A;
  --muted: #8888A0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1)
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition)
}

a:hover {
  color: var(--primary)
}

img {
  max-width: 100%;
  display: block
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit
}

ul {
  list-style: none
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 100000;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s
}

.skip-link:focus {
  top: 0
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important
  }

  html {
    scroll-behavior: auto
  }
}

/* Announcement Bar */
#announcementBar {
  background: #0F0F28;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 40px 8px 16px;
  font-size: 12px;
  color: var(--fg-secondary);
  position: relative;
  z-index: 100;
  transition: all 0.35s ease
}

html.light #announcementBar {
  background: #E8E0FF
}

#announcementBar.hidden {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  opacity: 0
}

.ann-slots {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center
}

.ann-sep {
  color: var(--muted);
  opacity: 0.4
}

.ann-slot .hl-yellow {
  color: #FBBF24;
  font-weight: 700
}

.ann-dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition)
}

.ann-dismiss:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08)
}

/* Topbar */
.topbar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 6px 28px;
  font-size: 11px;
  color: var(--fg-secondary);
  position: relative;
  z-index: 90
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.topbar-left strong {
  color: var(--primary);
  margin-left: 3px
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.topbar-right a {
  color: var(--fg-secondary);
  transition: color var(--transition)
}

.topbar-right a:hover {
  color: var(--primary)
}

.theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  font-size: 12px;
  transition: var(--transition)
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary)
}

/* Notify */
.notify-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0
}

.notify-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  font-size: 12px;
  transition: var(--transition);
  position: relative
}

.notify-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary)
}

.notify-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary)
}

.notify-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--sale);
  border-radius: 50%;
  border: 1.5px solid var(--bg-raised);
  pointer-events: none;
  transition: var(--transition);
  animation: notifyPulse 2s ease-in-out infinite
}

html.light .notify-dot {
  border-color: var(--bg-raised)
}

.notify-btn.active .notify-dot,
.notify-btn.read .notify-dot {
  opacity: 0;
  transform: scale(0);
  animation: none
}

@keyframes notifyPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5)
  }

  50% {
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0)
  }
}

.notify-dropdown {
  position: fixed;
  z-index: 99999;
  width: min(var(--notify-width), calc(100vw - 24px));
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: hidden
}

.notify-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto
}

.notify-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--arrow-left, auto);
  right: auto;
  width: 12px;
  height: 12px;
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
  z-index: 1;
  transition: left 0.25s ease
}

.nd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border)
}

.nd-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px
}

.nd-title i {
  color: var(--primary);
  font-size: 12px
}

.nd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--sale);
  color: white;
  font-size: 9px;
  font-weight: 800;
  border-radius: 99px;
  padding: 0 5px;
  margin-left: 4px
}

.nd-mark-read {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer
}

.nd-mark-read:hover {
  background: rgba(59, 130, 246, 0.1)
}

.nd-body {
  max-height: 310px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch
}

.nd-body::-webkit-scrollbar {
  width: 4px
}

.nd-body::-webkit-scrollbar-track {
  background: transparent
}

.nd-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px
}

.nd-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid var(--border)
}

.nd-item:last-child {
  border-bottom: none
}

.nd-item:hover {
  background: rgba(59, 130, 246, 0.04)
}

.nd-item.unread {
  background: rgba(59, 130, 246, 0.03)
}

.nd-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%
}

.nd-item.read {
  opacity: 0.6
}

.nd-item.read::before {
  display: none
}

.nd-item-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  flex-shrink: 0
}

.nd-item-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card)
}

.nd-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.nd-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px
}

.nd-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6
}

.nd-icon-green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981
}

.nd-icon-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6
}

.nd-icon-orange {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B
}

.nd-icon-red {
  background: rgba(244, 63, 94, 0.12);
  color: #F43F5E
}

.nd-item-content {
  flex: 1;
  min-width: 0
}

.nd-item-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.nd-item-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500
}

.nd-footer {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  text-align: center
}

.nd-footer a {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition)
}

.nd-footer a:hover {
  color: var(--accent);
  gap: 6px
}

/* Header Ad */
.header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px;
  position: relative;
  z-index: 80
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center
}

.header-ad-banner {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: var(--header-ad-height);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  transition: var(--transition)
}

.header-ad-banner:hover {
  transform: scale(1.002)
}

.header-ad-tag {
  position: absolute;
  top: 6px;
  left: 8px;
  background: var(--sale);
  color: white;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 3
}

.header-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.3)
}

.header-ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(5, 5, 20, 0.5);
  z-index: 2
}

.header-ad-overlay-text {
  font-size: 13px;
  color: white;
  font-weight: 400
}

.header-ad-overlay-text strong {
  color: var(--primary)
}

.header-ad-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav-bar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px)
}

html.light .nav-bar {
  background: rgba(255, 255, 255, 0.92)
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 58px;
  gap: 0
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 20px;
  padding: 4px 0
}

.nav-logo:hover {
  color: var(--fg)
}

.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0
}

.l-dev {
  color: var(--fg)
}

.l-mart {
  color: var(--primary);
  font-weight: 400
}

.nav-menu {
  display: flex;
  align-items: stretch;
  height: 58px;
  gap: 0;
  flex-shrink: 0
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  white-space: nowrap;
  transition: var(--transition);
  position: relative
}

.nav-link i {
  font-size: 11px
}

.nav-link.all-link {
  color: #3B82F6
}

.nav-link.flash-link {
  color: #F59E0B
}

.nav-link.premium-link {
  color: #8B5CF6
}

.nav-link.free-link {
  color: #06B6D4
}

.nav-link:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05)
}

html.light .nav-link:hover {
  background: rgba(0, 0, 0, 0.04)
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transition: width 0.25s ease
}

.nav-link:hover::after {
  width: 60%
}

.nav-spacer {
  flex: 1;
  min-width: 8px
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: var(--transition)
}

.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08)
}

.icon-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08)
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sale);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 8px
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
  color: white
}

/* ── PROFILE AVATAR + DROPDOWN ── */
.profile-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 8px
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
  outline: none
}

.profile-trigger:hover,
.profile-trigger:focus-visible {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.07)
}

.profile-trigger.open {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.09);
  box-shadow: 0 0 0 3px var(--primary-glow)
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  transition: var(--transition)
}

.profile-trigger:hover .profile-avatar {
  box-shadow: 0 0 0 2px var(--primary)
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.profile-username {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1
}

.profile-chevron {
  font-size: 9px;
  color: var(--muted);
  transition: transform 0.22s ease;
  margin-left: 2px
}

.profile-trigger.open .profile-chevron {
  transform: rotate(180deg)
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
  z-index: 99999
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto
}

.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
  z-index: 1
}

.pd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%)
}

.pd-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2)
}

.pd-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.pd-user-info {
  flex: 1;
  min-width: 0
}

.pd-user-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.pd-user-role {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500
}

.pd-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px
}

.pd-verified i {
  font-size: 8px
}

.pd-menu {
  padding: 6px 0
}

.pd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left
}

.pd-item:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04)
}

html.light .pd-item:hover {
  background: rgba(0, 0, 0, 0.04)
}

.pd-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition)
}

.pd-item:hover .pd-item-icon {
  transform: scale(1.1)
}

.pdi-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6
}

.pdi-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6
}

.pdi-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981
}

.pdi-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B
}

.pdi-red {
  background: rgba(244, 63, 94, 0.1);
  color: #F43F5E
}

.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0
}

.pd-item-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.12);
  color: #F43F5E
}

.pd-item-badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981
}

.pd-logout {
  color: #F43F5E !important
}

.pd-logout:hover {
  background: rgba(244, 63, 94, 0.07) !important
}

.pd-logout .pd-item-icon {
  background: rgba(244, 63, 94, 0.1);
  color: #F43F5E
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease
}

html.light .search-overlay {
  background: rgba(0, 0, 0, 0.5)
}

.search-overlay.open {
  opacity: 1;
  visibility: visible
}

.search-overlay-box {
  width: min(560px, calc(100vw - 32px));
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden
}

.search-overlay.open .search-overlay-box {
  transform: translateY(0) scale(1)
}

.search-overlay-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border)
}

.search-overlay-input-wrap i {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0
}

.search-overlay-input {
  flex: 1;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg)
}

.search-overlay-input::placeholder {
  color: var(--muted)
}

.search-overlay-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0
}

.search-overlay-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08)
}

.search-overlay-hints {
  padding: 12px 20px 16px
}

.search-overlay-hint-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px
}

.search-overlay-hints-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.search-hint-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition)
}

.search-hint-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08)
}

/* Hero */
.hero-outer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 0
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr var(--hero-side-width);
  gap: 20px
}

.hero-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: var(--hero-min-height);
  background: var(--bg-card);
  border: 1px solid var(--border)
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 48px 52px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2
}

.hero-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  background: var(--primary)
}

.hg-blue {
  top: -80px;
  left: -60px
}

.hg-purple {
  background: var(--accent);
  bottom: -80px;
  right: -40px
}

.hero-bg-num {
  position: absolute;
  bottom: -30px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 160px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  letter-spacing: 0.3px
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: -0.5px
}

.ht-grad {
  color: var(--primary)
}

.hero-sub {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 480px
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px
}

.hero-price .from {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through
}

.hero-price .big {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--fg);
  line-height: 1
}

.hero-price .big small {
  font-size: 22px;
  font-weight: 700
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 12px var(--primary-glow)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
  color: white
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03)
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary)
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-secondary);
  font-size: 13px;
  z-index: 5;
  transition: var(--transition);
  backdrop-filter: blur(8px)
}

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

.hero-prev {
  left: 14px
}

.hero-next {
  right: 14px
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  border: none;
  cursor: pointer
}

.hero-dot.active {
  background: var(--primary);
  width: 24px
}

.hero-dot:hover {
  background: var(--primary)
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.hero-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer
}

.hero-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1)
}

.hero-card-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  pointer-events: none;
  font-size: 0
}

.hero-card-icon i {
  font-size: 80px;
  opacity: 0.12;
  color: var(--primary)
}

.hc2 .hero-card-icon i {
  color: #5865F2
}

.hero-card-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 10px
}

.hero-card-price {
  font-size: 13px;
  color: var(--fg-secondary)
}

.hero-card-price strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 16px
}

.hero-card-arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 12px;
  transition: var(--transition)
}

.hero-card:hover .hero-card-arrow {
  background: var(--primary);
  color: white
}

/* Trust Features */
.trust-features-section {
  max-width: 1400px;
  margin: 28px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 1
}

.tf-inner {
  width: 100%
}

.tf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px
}

.tf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center
}

.tf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition)
}

.tf-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.08)
}

.tf-card:hover::before {
  opacity: 1
}

.tf-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  margin: 0 auto 14px auto;
  transition: var(--transition)
}

.tf-card:hover .tf-icon {
  transform: scale(1.1)
}

.tf-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6
}

.tf-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6
}

.tf-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981
}

.tf-yellow {
  background: rgba(250, 204, 21, 0.1);
  color: #FACC15
}

.tf-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B
}

.tf-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4
}

.tf-card h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px
}

.tf-card p {
  font-size: 11px;
  color: var(--fg-secondary);
  line-height: 1.5
}

/* Categories */
.categories {
  padding: 48px 0 0
}

.cat-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 28px
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.3px
}

.st-accent {
  color: var(--primary)
}

.section-sub {
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 4px
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition)
}

.see-all:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary)
}

.see-all-green {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3)
}

.see-all-green:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #10B981
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px
}

.cat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition)
}

.cat-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08)
}

.cat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 19px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  transition: var(--transition);
}

.cat-item:hover .cat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.cat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px
}

.cat-count {
  font-size: 11px;
  color: var(--muted)
}

/* Section */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 28px 0
}

.flash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap
}

.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--sale);
  border-radius: 99px;
  animation: pulseBadge 2s ease-in-out infinite
}

@keyframes pulseBadge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4)
  }

  50% {
    box-shadow: 0 0 0 8px rgba(244, 63, 94, 0)
  }
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono)
}

.count-unit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  min-width: 32px;
  text-align: center
}

.count-sep {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px
}

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

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.1)
}

.product-card:focus-visible {
  box-shadow: 0 0 0 2px var(--primary), 0 12px 36px rgba(59, 130, 246, 0.1)
}

.product-img-bg {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg-input);
  font-size: 0
}

.product-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease
}

.product-card:hover .product-img-bg img {
  transform: scale(1.06)
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 3
}

.badge-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase
}

.badge-sale {
  background: var(--sale);
  color: white
}

.badge-hot {
  background: var(--hot);
  color: #000
}

.badge-new {
  background: var(--new);
  color: white
}

.badge-pro {
  background: var(--pro);
  color: white
}

.badge-free {
  background: #10B981;
  color: white
}

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition)
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0)
}

@media(hover:none) {
  .product-actions {
    opacity: 1;
    transform: translateX(0)
  }
}

.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: white;
  transition: var(--transition)
}

.action-btn:hover {
  background: var(--primary);
  border-color: var(--primary)
}

.product-info {
  padding: 14px 16px 16px
}

.product-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.product-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px
}

.mp-dl {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary)
}

.mp-life {
  background: rgba(16, 185, 129, 0.1);
  color: var(--new)
}

.mp-update {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent)
}

.stars {
  font-size: 12px;
  color: #FBBF24;
  margin-bottom: 10px;
  letter-spacing: 1px
}

.review-count {
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.price-now {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg)
}

.price-free {
  color: #10B981
}

.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through
}

.price-save {
  font-size: 10px;
  font-weight: 700;
  color: var(--sale);
  background: rgba(244, 63, 94, 0.1);
  padding: 2px 7px;
  border-radius: 4px
}

.add-to-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition)
}

.add-to-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow)
}

.add-to-cart-free {
  background: #10B981
}

.add-to-cart-free:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25)
}

/* Banners */
.banners-section {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 1
}

.banners-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.banner {
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  min-height: 180px;
  display: flex;
  align-items: center
}

.banner:hover {
  transform: translateY(-3px)
}

.banner-1 {
  background: #0D1B2A;
  border: 1px solid rgba(59, 130, 246, 0.15)
}

.banner-2 {
  background: #0A1F14;
  border: 1px solid rgba(16, 185, 129, 0.15)
}

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.45)
}

.banner-content {
  position: relative;
  z-index: 2
}

.banner-bg {
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 90px;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  z-index: 1
}

.banner-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 10px
}

.banner-discount {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition)
}

.banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
  color: white
}

/* Trending */
.trending-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch
}

.trending-featured {
  position: relative;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background-size: cover;
  background-position: center
}

.trending-featured:hover {
  border-color: var(--primary)
}

.tf-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 1
}

.tf-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  bottom: -40px;
  left: -40px;
  pointer-events: none;
  z-index: 1
}

.tf-glow2 {
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  top: -20px;
  right: -20px;
  pointer-events: none;
  z-index: 1
}

.tf-content {
  position: relative;
  z-index: 2
}

.trending-featured-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px
}

.trending-featured-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 12px
}

.trending-featured-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 18px
}

.trending-grid-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: stretch
}

.product-card-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column
}

.product-card-sm:hover {
  border-color: var(--primary);
  transform: translateY(-3px)
}

.product-card-sm .product-img-bg {
  height: 120px !important
}

.product-card-sm .product-info {
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  flex: 1
}

.product-card-sm .product-name {
  font-size: 12px !important;
  margin-bottom: 6px !important
}

.product-card-sm .product-cat {
  font-size: 9px !important;
  margin-bottom: 4px !important
}

.product-card-sm .stars {
  font-size: 10px !important;
  margin-bottom: 8px !important
}

.product-card-sm .product-price {
  margin-bottom: 10px !important
}

.product-card-sm .price-now {
  font-size: 14px !important
}

.product-card-sm .price-old {
  font-size: 11px !important
}

.product-card-sm .add-to-cart {
  margin-top: auto;
  padding: 8px !important;
  font-size: 11px !important
}

/* Owner */
.owner-section {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 28px
}

.owner-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center
}

.owner-avatar {
  font-size: 56px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 6px var(--primary)
}

.owner-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px
}

.owner-info p {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 14px
}

.owner-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.owner-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input)
}

.owner-badge-tilt {
  transform: rotate(-1deg);
  display: inline-block
}

.owner-badge-accent {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25)
}

.owner-badge-green {
  color: var(--new);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  transform: rotate(0.8deg);
  display: inline-block
}

.owner-badge-hot {
  color: var(--hot);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25)
}

.owner-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.owner-stat {
  text-align: center;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm)
}

.owner-stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 2px
}

.owner-stat .lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500
}

/* Bundles */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--primary)
}

.bundle-free {
  border-color: rgba(16, 185, 129, 0.25)
}

.bundle-free:hover {
  border-color: var(--new);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12)
}

.bundle-starter {
  border-color: rgba(59, 130, 246, 0.25)
}

.bundle-starter:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15)
}

.bundle-ultimate {
  border-color: var(--accent)
}

.bundle-ultimate:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15)
}

.bundle-pro-plus {
  border-color: var(--hot)
}

.bundle-pro-plus:hover {
  border-color: var(--hot);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15)
}

.bundle-header {
  margin-bottom: 16px
}

.bundle-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px
}

.tag-free {
  background: rgba(16, 185, 129, 0.1);
  color: var(--new)
}

.tag-starter {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary)
}

.tag-ultimate {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent)
}

.tag-pro-plus {
  background: rgba(245, 158, 11, 0.1);
  color: var(--hot)
}

.bundle-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px
}

.bundle-sub {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.45
}

.bundle-price-block {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 18px;
  color: var(--fg)
}

.bundle-currency {
  font-size: 16px;
  font-weight: 700
}

.bundle-amount {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  line-height: 1
}

.bundle-amount.free-amount {
  color: var(--new)
}

.bundle-period {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px
}

.bundle-features {
  margin-bottom: 20px;
  flex: 1
}

.bundle-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-secondary);
  margin-bottom: 8px
}

.bundle-features li i {
  font-size: 9px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  flex-shrink: 0
}

.bundle-features li.disabled {
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.5
}

.bundle-features li.disabled i {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted)
}

.bundle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  width: 100%;
  margin-top: auto
}

.btn-free {
  background: var(--new);
  color: white
}

.btn-free:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  color: white
}

.btn-starter {
  background: var(--primary);
  color: white
}

.btn-starter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-glow);
  color: white
}

.btn-ultimate {
  background: var(--accent);
  color: white
}

.btn-ultimate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
  color: white
}

.btn-pro-plus {
  background: var(--hot);
  color: #000
}

.btn-pro-plus:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  color: #000
}

/* Tab Products */
.tab-products-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 28px 0
}

.tp-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0
}

.tp-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0
}

.tp-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition)
}

.tp-tab:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03)
}

.tp-tab.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.06)
}

.tp-tab.active::after {
  background: var(--primary)
}

.tp-panel {
  display: none
}

.tp-panel.active {
  display: block
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px
}

.tp-grid .product-card .product-img-bg {
  height: 150px
}

.tp-grid .product-card .product-info {
  padding: 12px 14px 14px
}

.tp-grid .product-card .product-name {
  font-size: 12px;
  margin-bottom: 6px
}

.tp-grid .product-card .product-cat {
  font-size: 9px;
  margin-bottom: 4px
}

.tp-grid .product-card .product-meta {
  display: none
}

.tp-grid .product-card .stars {
  font-size: 10px;
  margin-bottom: 6px
}

.tp-grid .product-card .price-now {
  font-size: 15px
}

.tp-grid .product-card .price-old {
  font-size: 10px
}

.tp-grid .product-card .add-to-cart {
  padding: 8px;
  font-size: 11px
}

/* Footer */
.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 48px 28px 24px
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 36px;
  margin-bottom: 32px
}

.footer-brand p {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 300px
}

.footer-brand .logo {
  font-size: 24px;
  margin-bottom: 14px;
  display: inline-flex
}

.footer-brand .logo-icon {
  margin-right: 10px
}

.social-links {
  display: flex;
  gap: 8px
}

.social-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-secondary);
  transition: var(--transition)
}

.social-link:hover {
  color: white;
  background: var(--primary);
  border-color: var(--primary)
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.footer-col ul li {
  margin-bottom: 8px
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-secondary);
  transition: var(--transition)
}

.footer-col ul li a i {
  font-size: 8px;
  color: var(--muted);
  transition: var(--transition)
}

.footer-col ul li a:hover {
  color: var(--primary)
}

.footer-col ul li a:hover i {
  color: var(--primary)
}

.footer-nl-desc {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.5;
  margin-bottom: 14px
}

.footer-nl-form {
  display: flex;
  gap: 6px
}

.footer-nl-input {
  flex: 1;
  padding: 9px 14px;
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  outline: none;
  transition: var(--transition)
}

.footer-nl-input::placeholder {
  color: var(--muted)
}

.footer-nl-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1)
}

.footer-nl-btn {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border: none
}

.footer-nl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow)
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px
}

.footer-bottom p {
  font-size: 11px;
  color: var(--muted)
}

.pay-icons {
  display: flex;
  align-items: center;
  gap: 10px
}

.pay-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700
}

.pi-paypal .paypal-word {
  font-family: var(--font-heading)
}

.pp-dark {
  color: #003087
}

.pp-light {
  color: #009CDE
}

.pi-fib svg {
  display: block
}

.pi-qi {
  gap: 5px
}

.qi-text {
  font-weight: 800;
  font-size: 10px;
  color: #fb7100
}

.pi-fastpay .fastpay-word {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #ff005d
}

.fastpay-dark {
  color: #333
}

html.light .fastpay-dark {
  color: #111
}

.pay-label {
  display: block;
  text-align: center;
  line-height: 1.2
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1)
}

.toast.show {
  opacity: 1;
  transform: translateX(0)
}

.toast.hide {
  opacity: 0;
  transform: translateX(40px)
}

.toast-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0
}

.toast-icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--new)
}

.toast-icon-red {
  background: rgba(244, 63, 94, 0.15);
  color: var(--sale)
}

.toast-body {
  flex: 1;
  min-width: 0
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px
}

.toast-sub {
  font-size: 11px;
  color: var(--fg-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.toast-close {
  font-size: 12px;
  color: var(--muted);
  padding: 4px;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none
}

.toast-close:hover {
  color: var(--fg)
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  animation: toastProgress linear forwards
}

@keyframes toastProgress {
  from {
    width: 100%
  }

  to {
    width: 0%
  }
}

/* Go Top */
#goTop {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--primary-glow);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
  border: none;
  cursor: pointer
}

#goTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

#goTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--primary-glow)
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ═══ BACKEND SPECIFIC ADDITIONS ═══ */
/* Form Controls (Shop sort, etc.) */
select.form-control {
  appearance: none;
  -webkit-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='%235A5A72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary)
}

.page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 14px
}

/* Alert Messages (Backend) */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.5s
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1200px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-side {
    flex-direction: row;
    gap: 16px
  }

  .hero-card {
    flex: 1
  }

  .tp-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .tp-grid .product-card:nth-child(5) {
    display: none
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px
  }

  .owner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center
  }

  .owner-badges {
    justify-content: center
  }

  .owner-stats {
    max-width: 320px;
    margin: 0 auto
  }

  .banners-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px
  }

  .tf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
  }

  .tf-card {
    padding: 20px 16px
  }

  .trending-layout {
    grid-template-columns: 1fr 1fr;
    gap: 16px
  }

  .trending-featured {
    min-height: 320px;
    padding: 24px
  }

  .trending-featured-title {
    font-size: 18px
  }

  .trending-featured-price {
    font-size: 22px
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .tp-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .tp-grid .product-card:nth-child(4),
  .tp-grid .product-card:nth-child(5) {
    display: none
  }
}

@media(max-width:768px) {
  :root {
    --radius: 12px
  }

  .topbar-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center
  }

  .hero-outer {
    padding: 16px 16px 0
  }

  .hero-slide {
    padding: 28px 20px
  }

  .hero-title {
    font-size: 26px
  }

  .hero-price .big {
    font-size: 32px
  }

  .hero-side {
    flex-direction: row;
    gap: 10px
  }

  .hero-card {
    padding: 16px
  }

  .hero-card-title {
    font-size: 14px
  }

  .hero-card-price strong {
    font-size: 14px
  }

  .hero-card-icon i {
    font-size: 50px
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
  }

  .trending-layout {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .trending-featured {
    min-height: 280px;
    padding: 20px
  }

  .trending-featured-title {
    font-size: 16px
  }

  .trending-featured-price {
    font-size: 20px
  }

  .product-card-sm .product-img-bg {
    height: 90px !important
  }

  .product-card-sm .product-name {
    font-size: 11px !important
  }

  .section-title {
    font-size: 22px
  }

  .section {
    padding: 40px 16px 0
  }

  .flash-header {
    gap: 10px
  }

  .owner-section {
    padding: 0 16px;
    margin-top: 40px
  }

  .owner-inner {
    padding: 24px 16px;
    gap: 16px
  }

  .owner-avatar {
    width: 60px;
    height: 60px;
    font-size: 32px;
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--primary);
    margin: 0 auto
  }

  .owner-info h3 {
    font-size: 16px
  }

  .owner-info p {
    font-size: 12px;
    margin-bottom: 10px
  }

  .banners-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .banner {
    padding: 20px;
    min-height: 160px
  }

  .banner-title {
    font-size: 16px
  }

  .banner-discount {
    font-size: 24px
  }

  .banner-eyebrow {
    font-size: 9px
  }

  .banner-btn {
    padding: 6px 12px;
    font-size: 10px
  }

  .pay-icons {
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center
  }

  .pay-icon {
    padding: 4px 8px;
    font-size: 10px;
    gap: 3px
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .bundle-card {
    padding: 18px 14px
  }

  .bundle-amount {
    font-size: 28px
  }

  .bundle-title {
    font-size: 15px
  }

  .bundle-sub {
    font-size: 11px
  }

  .bundle-features li {
    font-size: 11px;
    margin-bottom: 6px
  }

  .bundle-features li i {
    width: 14px;
    height: 14px;
    font-size: 8px
  }

  .bundle-btn {
    padding: 8px 14px;
    font-size: 11px
  }

  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .tp-grid .product-card:nth-child(4),
  .tp-grid .product-card:nth-child(5) {
    display: block
  }

  .tp-tabs {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none
  }

  .tp-tabs::-webkit-scrollbar {
    display: none
  }

  .tp-tab {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap
  }

  .notify-dropdown {
    width: 300px;
    right: -10px
  }
}

@media(max-width:520px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .products-grid .product-card:nth-child(n+5) {
    display: none
  }

  .hero-title {
    font-size: 22px
  }

  .hero-btns {
    flex-direction: column
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center
  }

  .hero-side {
    flex-direction: row;
    gap: 8px
  }

  .hero-card {
    padding: 12px 10px
  }

  .hero-card-eyebrow {
    font-size: 8px;
    margin-bottom: 4px
  }

  .hero-card-title {
    font-size: 12px
  }

  .hero-card-price strong {
    font-size: 12px
  }

  .hero-card-arrow {
    width: 24px;
    height: 24px;
    font-size: 10px;
    bottom: 8px;
    right: 8px
  }

  .hero-card-icon i {
    font-size: 40px
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
  }

  .cat-item {
    padding: 14px 8px
  }

  .cat-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
    margin: 0 auto 6px
  }

  .cat-label {
    font-size: 11px
  }

  .cat-count {
    font-size: 9px
  }

  .trust-features-section {
    padding: 0 12px;
    margin-top: 20px
  }

  .tf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
  }

  .tf-card {
    padding: 12px 6px
  }

  .tf-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 8px
  }

  .tf-card h4 {
    font-size: 10px;
    margin-bottom: 2px
  }

  .tf-card p {
    font-size: 8px;
    line-height: 1.3
  }

  .trending-layout {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .trending-featured {
    min-height: 220px;
    padding: 16px
  }

  .trending-featured-title {
    font-size: 14px;
    margin-bottom: 8px
  }

  .trending-featured-price {
    font-size: 18px;
    margin-bottom: 12px
  }

  .trending-featured .add-to-cart {
    padding: 6px 10px;
    font-size: 9px
  }

  .trending-grid-products {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .product-card-sm .product-img-bg {
    height: 70px !important
  }

  .product-card-sm .product-info {
    padding: 6px !important
  }

  .product-card-sm .product-cat {
    display: none
  }

  .product-card-sm .product-name {
    font-size: 10px !important;
    margin-bottom: 2px !important
  }

  .product-card-sm .stars {
    display: none
  }

  .product-card-sm .product-price {
    margin-bottom: 4px !important
  }

  .product-card-sm .price-now {
    font-size: 12px !important
  }

  .product-card-sm .price-old {
    font-size: 8px !important
  }

  .product-card-sm .price-save {
    display: none
  }

  .product-card-sm .add-to-cart {
    padding: 4px !important;
    font-size: 8px !important
  }

  .product-card .product-img-bg {
    height: 110px
  }

  .product-card .product-info {
    padding: 8px
  }

  .product-card .product-name {
    font-size: 11px;
    margin-bottom: 4px
  }

  .product-card .product-cat {
    font-size: 8px;
    margin-bottom: 2px
  }

  .product-card .product-meta {
    display: none
  }

  .product-card .stars {
    font-size: 9px;
    margin-bottom: 4px
  }

  .product-card .product-price {
    margin-bottom: 6px
  }

  .product-card .price-now {
    font-size: 14px
  }

  .product-card .price-old {
    font-size: 9px
  }

  .product-card .add-to-cart {
    padding: 6px;
    font-size: 10px
  }

  .owner-inner {
    padding: 20px 12px;
    gap: 12px;
    justify-items: center
  }

  .owner-avatar {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin: 0 auto
  }

  .owner-info h3 {
    font-size: 15px;
    margin-bottom: 4px
  }

  .owner-info p {
    font-size: 11px;
    line-height: 1.4
  }

  .owner-badges {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px
  }

  .owner-badge {
    padding: 3px 6px;
    font-size: 8px;
    white-space: nowrap
  }

  .owner-stats {
    max-width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px
  }

  .owner-stat {
    padding: 8px 2px
  }

  .owner-stat .num {
    font-size: 14px
  }

  .owner-stat .lbl {
    font-size: 7px
  }

  .banners-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px
  }

  .banner {
    padding: 14px;
    min-height: 140px
  }

  .banner-title {
    font-size: 14px
  }

  .banner-discount {
    font-size: 20px;
    margin-bottom: 10px
  }

  .banner-bg {
    font-size: 50px
  }

  .banner-eyebrow {
    font-size: 8px
  }

  .banner-btn {
    padding: 5px 10px;
    font-size: 9px
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .bundle-card {
    padding: 14px 10px
  }

  .bundle-amount {
    font-size: 24px
  }

  .bundle-currency {
    font-size: 13px
  }

  .bundle-title {
    font-size: 13px
  }

  .bundle-sub {
    font-size: 10px
  }

  .bundle-tag {
    font-size: 8px;
    padding: 2px 7px;
    margin-bottom: 5px
  }

  .bundle-features li {
    font-size: 10px;
    margin-bottom: 4px;
    gap: 5px
  }

  .bundle-features li i {
    width: 13px;
    height: 13px;
    font-size: 7px
  }

  .bundle-btn {
    padding: 7px 10px;
    font-size: 10px
  }

  .pay-icons {
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px
  }

  .pay-icon {
    padding: 3px 5px;
    font-size: 8px;
    gap: 2px;
    flex-shrink: 0
  }

  .pi-fib svg,
  .pi-qi svg {
    height: 12px
  }

  .pi-crypto svg {
    height: 10px
  }

  .fastpay-word,
  .paypal-word {
    font-size: 9px
  }

  .pay-label {
    font-size: 6px;
    line-height: 1.1
  }

  .qi-text {
    font-size: 8px
  }

  .footer-nl-form {
    flex-direction: column
  }

  #toast-container {
    right: 12px;
    left: 12px;
    bottom: 12px
  }

  .toast {
    min-width: auto;
    max-width: none
  }

  .tp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
  }

  .tp-grid .product-card .product-img-bg {
    height: 100px
  }

  .tp-grid .product-card .product-info {
    padding: 8px
  }

  .tp-grid .product-card .product-name {
    font-size: 10px;
    margin-bottom: 3px
  }

  .tp-grid .product-card .product-cat {
    display: none
  }

  .tp-grid .product-card .stars {
    font-size: 8px;
    margin-bottom: 3px
  }

  .tp-grid .product-card .price-now {
    font-size: 13px
  }

  .tp-grid .product-card .add-to-cart {
    padding: 6px;
    font-size: 10px
  }

  .tp-tab {
    padding: 6px 10px;
    font-size: 11px
  }

  .notify-dropdown {
    width: 280px;
    right: -20px
  }

  .pagination {
    gap: 4px
  }

  .page-btn {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
    padding: 0 8px
  }
}
/* ============================================
   SERVICES PAGE (/services) — additions
   Scoped under .services-page so the marketplace
   pages (.tf-grid, .banners-inner, etc.) are untouched.
   ============================================ */
.nav-link.services-link { color: #10B981 }

.services-page .tf-grid {
  grid-template-columns: repeat(4, 1fr)
}

.services-page .banners-inner {
  grid-template-columns: repeat(3, 1fr)
}

/* Process steps ("How It Works") */
.process-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 28px 0
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: var(--transition)
}

.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.08)
}

.process-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px
}

.process-step p {
  font-size: 12.5px;
  color: var(--fg-secondary);
  line-height: 1.6
}

.process-arrow {
  display: none;
  position: absolute;
  top: 30px;
  right: -26px;
  color: var(--border-strong);
  font-size: 16px;
  z-index: 2
}

@media (min-width: 769px) {
  .process-arrow { display: block }
  .process-step:last-child .process-arrow { display: none }
}

/* Service / pricing cards that link to a quote request instead of "buy now" */
.svc-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition)
}

.svc-quote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
  color: white
}

.from-price {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px
}

/* Contact banners (WhatsApp / Telegram / Email) */
.contact-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer
}

.contact-banner:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1)
}

.contact-banner-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  margin: 0 auto 16px;
  color: white
}

.cb-whatsapp { background: #25D366 }
.cb-telegram { background: #229ED9 }
.cb-email { background: var(--primary) }

.contact-banner h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px
}

.contact-banner p {
  font-size: 12px;
  color: var(--fg-secondary);
  margin-bottom: 18px;
  line-height: 1.5
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr) }
  .services-page .tf-grid { grid-template-columns: repeat(2, 1fr) }
  .services-page .banners-inner { grid-template-columns: 1fr }
}

@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr }
  .services-page .tf-grid { grid-template-columns: repeat(2, 1fr) }
}

/* ============================================
   DILMAN Store — Cart / Checkout / Product / Auth pages
   ============================================ */

.page-hero { padding: 32px 0 8px; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-hero h1 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--fg); }
.breadcrumb { font-size: 12px; color: var(--fg-secondary); margin-bottom: 8px; }
.breadcrumb a { color: var(--fg-secondary); }
.breadcrumb a:hover { color: var(--primary); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.cart-item-img { width: 90px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; color: var(--fg); font-size: 14px; margin-bottom: 4px; }
.cart-item-name a { color: var(--fg); }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-price { font-size: 13px; color: var(--fg-secondary); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 28px; height: 28px; background: var(--bg-input); border: none; color: var(--fg); cursor: pointer; font-size: 14px; }
.qty-control input { width: 36px; text-align: center; border: none; background: transparent; color: var(--fg); font-size: 13px; }
.cart-item-remove { background: none; border: none; color: #F43F5E; cursor: pointer; font-size: 13px; }
.cart-item-remove:hover { text-decoration: underline; }
.cart-item-line-total { font-weight: 800; color: var(--fg); }

.summary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.summary-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--fg); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-secondary); margin-bottom: 10px; }
.summary-row.total { font-size: 16px; font-weight: 800; color: var(--fg); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.empty-cart { text-align: center; padding: 70px 20px; color: var(--fg-secondary); }
.empty-cart i { font-size: 48px; opacity: .3; margin-bottom: 16px; display: block; }

/* Auth */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; }
.auth-card h1 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 6px; color: var(--fg); }
.auth-sub { text-align: center; color: var(--fg-secondary); font-size: 13px; margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Base form control (used outside .auth-card--gold too, e.g. Profile, Contact) */
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow, rgba(59,130,246,0.15)); }
.form-control:disabled { opacity: .65; cursor: not-allowed; background: var(--bg-card); }
.form-control::placeholder { color: var(--muted); }
input[type="file"].form-control { padding: 8px 12px; cursor: pointer; }

/* Profile edit avatar */
.profile-edit-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-edit-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: #fff; overflow: hidden; flex-shrink: 0; }
.profile-edit-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-edit-avatar-file { flex: 1; }
.profile-edit-avatar-file small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.auth-error { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.3); color: #F43F5E; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.auth-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10B981; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--fg-secondary); margin-top: 18px; }
.auth-foot a { color: var(--primary); font-weight: 600; }
.btn-block { width: 100%; justify-content: center; }

/* Auth — Gold variant (login) */
.auth-wrap--gold { margin: 70px auto; }
.auth-card--gold {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(245,158,11,0.10), transparent 55%),
    var(--bg-card);
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.35);
  box-shadow: 0 6px 20px rgba(245,158,11,0.18);
}
.auth-card--gold h1 { font-size: 22px; }
.auth-sub--gold { text-align: center; color: var(--fg-secondary); font-size: 13px; margin-bottom: 22px; }

.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--fg);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover { border-color: var(--border-strong); background: var(--bg-raised); transform: translateY(-1px); }
.social-btn i { font-size: 15px; }
.social-btn--github i { color: var(--fg); }
.social-btn--google i { color: #EA4335; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-card--gold .form-group label { display: flex; align-items: center; gap: 4px; }
.auth-card--gold .form-group label .req { color: var(--hot); }
.auth-card--gold .form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  transition: var(--transition);
}
.auth-card--gold .form-control:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }

.password-field { position: relative; }
.password-field .form-control { padding-right: 42px; }
.password-toggle {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: none; border: none; color: var(--fg-secondary); cursor: pointer;
  font-size: 14px; padding: 4px; display: flex;
}
.password-toggle:hover { color: var(--fg); }

.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-secondary); cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--hot); cursor: pointer; }
.auth-forgot { font-size: 13px; color: var(--hot); font-weight: 600; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

.btn-gold {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #F5C451, var(--hot));
  color: #1A1100;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,158,11,0.3); }
.btn-gold:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.auth-foot--gold { text-align: center; font-size: 13px; color: var(--fg-secondary); margin-top: 22px; }
.auth-foot--gold a { color: var(--hot); font-weight: 600; text-decoration: none; }
.auth-foot--gold a:hover { text-decoration: underline; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pd-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.pd-cat { color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.pd-title { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--fg); margin-bottom: 10px; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--fg-secondary); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price-now { font-size: 30px; font-weight: 800; color: var(--fg); }
.pd-price-old { font-size: 16px; color: var(--fg-secondary); text-decoration: line-through; }
.pd-desc { color: var(--fg-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.pd-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; font-size: 12px; color: var(--fg-secondary); }
.pd-meta span i { color: var(--primary); margin-right: 4px; }
.pd-actions { display: flex; gap: 10px; }
.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: 13px; color: var(--fg); }
.review-date { font-size: 11px; color: var(--fg-secondary); }

/* Static / about / legal / contact */
.static-page { max-width: 880px; margin: 0 auto; padding: 40px 24px 70px; color: var(--fg-secondary); line-height: 1.8; font-size: 14px; }
.static-page h1 { font-family: var(--font-heading); font-size: 30px; color: var(--fg); margin-bottom: 18px; }
.static-page h2 { font-family: var(--font-heading); font-size: 19px; color: var(--fg); margin: 28px 0 10px; }
.static-page p { margin-bottom: 12px; }
.static-page ul { margin: 0 0 14px 20px; }
.static-page li { margin-bottom: 6px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.contact-info-card h4 { color: var(--fg); font-size: 14px; margin-bottom: 6px; }
.contact-info-card p { color: var(--fg-secondary); font-size: 13px; margin: 0; }

.about-hero { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0; }
.about-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.about-stat .num { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--primary); display: block; }
.about-stat .lbl { font-size: 12px; color: var(--fg-secondary); }

.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.order-num { font-weight: 700; color: var(--fg); font-size: 14px; }
.order-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.order-status.completed, .order-status.paid { background: rgba(16,185,129,0.12); color: #10B981; }
.order-status.pending { background: rgba(245,158,11,0.12); color: #F59E0B; }
.order-status.cancelled, .order-status.refunded { background: rgba(244,63,94,0.12); color: #F43F5E; }
.order-status.processing { background: rgba(59,130,246,0.12); color: var(--primary); }

.account-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.account-tabs a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--fg-secondary); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px; }
.account-tabs a.active, .account-tabs a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.account-tabs a .tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; background: var(--sale); color: #fff; font-size: 9px; font-weight: 800; border-radius: 99px; }
.account-tabs a.active .tab-badge { background: rgba(255,255,255,0.3); }

/* Notifications page (full list) — realistic inbox-style layout */
.np-toolbar { display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.np-toolbar-check { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--border-strong); cursor: pointer; flex-shrink: 0; }
.np-toolbar-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--fg-secondary); font-size: 13px; border: none; background: none; cursor: pointer; transition: var(--transition); }
.np-toolbar-btn:hover { background: var(--bg-input); color: var(--fg); }
.np-toolbar-spacer { flex: 1; }
.np-toolbar-count { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Split shell: scrollable list on the left, reading pane on the right (Gmail-style) */
.np-shell { display: flex; align-items: stretch; height: 560px; max-height: 70vh; border-top: 1px solid var(--border); }

.np-list { display: flex; flex-direction: column; width: 360px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid var(--border); padding: 6px; }
.np-list::-webkit-scrollbar { width: 8px; }
.np-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

.np-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; text-decoration: none; color: inherit; cursor: pointer; position: relative; background: var(--bg-card); border-radius: 8px; transition: background 0.15s ease, box-shadow 0.15s ease; }
.np-item:hover { background: var(--bg-input); }
.np-item.unread { background: rgba(59, 130, 246, 0.05); }
.np-item.unread:hover { background: rgba(59, 130, 246, 0.09); }
.np-item.active { background: rgba(59, 130, 246, 0.14); box-shadow: inset 3px 0 0 var(--primary); }

.np-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex-shrink: 0; background: var(--bg); cursor: pointer; }

.np-star { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: none; background: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: var(--transition); }
.np-star:hover { background: var(--bg-card); color: var(--hot); }
.np-star.starred { color: var(--hot); }
.np-star.starred i { font-weight: 900; }

.np-item-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 15px; flex-shrink: 0; position: relative; }
.np-item-icon .np-verified { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; border: 2px solid var(--bg-card); }
.np-item-img { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-input); }
.np-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.np-item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-item-title { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-item.unread .np-item-title { font-weight: 800; }
.np-item-snippet { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--fg-secondary); font-weight: 400; }
.np-item.unread .np-item-snippet { color: var(--fg); font-weight: 600; }
.np-item-snippet .np-dash { color: var(--muted); font-weight: 400; margin-right: 4px; }

.np-item-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 8px; }
.np-item-time { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.np-item.unread .np-item-time { color: var(--primary); font-weight: 700; }
.np-item-actions { display: none; align-items: center; gap: 2px; }
.np-item:hover .np-item-actions { display: flex; }
.np-item:hover .np-item-time-wrap { display: none; }
.np-action-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: none; background: none; color: var(--fg-secondary); font-size: 12px; cursor: pointer; transition: var(--transition); }
.np-action-btn:hover { background: var(--bg-card); color: var(--primary); }

/* Reading pane — right column, shows the currently selected notification */
.np-reading-pane { flex: 1; min-width: 0; overflow-y: auto; position: relative; background: var(--bg-card); }
.np-reading-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 40px; }
.np-reading-empty i { font-size: 40px; opacity: 0.35; }
.np-reading-empty p { font-size: 13.5px; }
.np-reading-content { display: none; padding: 16px 28px 32px; animation: npFadeIn 0.16s ease; }
@keyframes npFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.np-reading-toolbar { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.np-reading-toolbar #npReadingBack { display: none; }
.np-reading-toolbar .np-action-btn.starred { color: var(--hot); }

.np-reading-subject { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--fg); margin-bottom: 16px; line-height: 1.3; }

.np-reading-meta { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.np-reading-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.np-reading-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-reading-avatar .np-item-icon { width: 40px; height: 40px; font-size: 16px; }
.np-reading-fromto { flex: 1; min-width: 0; }
.np-reading-sender { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--fg); }
.np-reading-sender .np-verified-inline { color: var(--primary); font-size: 12px; }
.np-reading-to { font-size: 12px; color: var(--muted); margin-top: 3px; }
.np-reading-date { font-size: 12px; color: var(--muted); white-space: nowrap; }

.np-reading-body { font-size: 14px; line-height: 1.8; color: var(--fg); }
.np-reading-body p { margin-bottom: 10px; }
.np-detail-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 18px; background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.np-detail-cta:hover { filter: brightness(1.08); }
.np-reading-footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); line-height: 1.6; }

.np-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.np-empty i { font-size: 34px; margin-bottom: 10px; opacity: 0.4; display: block; }

@media (max-width: 900px) {
  .np-list { width: 300px; }
}

/* Mobile: list and reading pane become a single-pane, slide-over navigation like the Gmail app */
@media (max-width: 768px) {
  .np-shell { height: auto; max-height: none; position: relative; overflow: hidden; border-top: none; }
  .np-list { width: 100%; border-right: none; max-height: 70vh; }
  .np-reading-pane { position: absolute; inset: 0; transform: translateX(100%); transition: transform 0.22s ease; max-height: 70vh; z-index: 2; }
  .np-shell.reading .np-list { display: none; }
  .np-shell.reading .np-reading-pane { transform: translateX(0); }
  .np-reading-toolbar #npReadingBack { display: flex; margin-right: auto; }
  .np-reading-content { padding: 14px 16px 28px; }
  .np-item-title { font-size: 13px; }
  .np-item-snippet { font-size: 13px; }
  .np-item-actions { display: none !important; }
}

@media (max-width: 900px) {
  .cart-layout, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SHOP PAGE — Filters Sidebar, Toolbar, Grid/List Views
   ═══════════════════════════════════════════════════════════════ */

.shop-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-secondary); margin-bottom: 22px;
}
.shop-breadcrumb a { color: var(--fg-secondary); transition: var(--transition); }
.shop-breadcrumb a:hover { color: var(--primary); }
.shop-breadcrumb i { font-size: 9px; opacity: .5; }
.shop-breadcrumb span { color: var(--fg); font-weight: 600; }

.shop-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  align-items: start;
  gap: 28px;
  padding-bottom: 60px;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.shop-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 88px;
}

.sf-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.sf-head h3 {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  color: var(--fg); display: flex; align-items: center; gap: 9px;
}
.sf-head h3 i { color: var(--accent); font-size: 14px; }
.sf-clear {
  font-size: 12px; font-weight: 600; color: var(--primary);
  transition: var(--transition);
}
.sf-clear:hover { color: var(--accent); }

.sf-search {
  position: relative; margin-bottom: 20px;
}
.sf-search i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 12px;
}
.sf-search input {
  width: 100%; padding: 11px 14px 11px 36px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font-body); transition: var(--transition);
}
.sf-search input:focus { outline: none; border-color: var(--primary); }
.sf-search input::placeholder { color: var(--muted); }

.filter-group {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.filter-group:first-of-type { padding-top: 0; border-top: none; }

.filter-group summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--fg-secondary);
  user-select: none;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 10px; color: var(--muted); transition: transform 0.25s ease;
}
.filter-group[open] summary::after { transform: rotate(180deg); }

.filter-body {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 4px;
}

/* Category nav links */
.sf-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 500; color: var(--fg-secondary);
  transition: var(--transition);
}
.sf-nav-link:hover { background: var(--bg-input); color: var(--fg); }
.sf-nav-link.active { background: var(--primary-glow); color: var(--primary); font-weight: 700; }
.sf-nav-link i { width: 14px; text-align: center; font-size: 12px; }
.sf-nav-icon { width: 14px; text-align: center; font-size: 13px; line-height: 1; }
.sf-nav-count {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--bg-input); padding: 1px 7px; border-radius: 99px;
}
.sf-nav-link.active .sf-nav-count { color: var(--primary); background: rgba(59,130,246,0.12); }

/* Checkbox filters */
.sf-check {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px; font-size: 13px; color: var(--fg-secondary);
  cursor: pointer; transition: var(--transition);
}
.sf-check:hover { color: var(--fg); }
.sf-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.sf-check i { width: 14px; text-align: center; font-size: 11px; color: var(--muted); }
.sf-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--muted);
}
.sf-dot.badge-sale { background: var(--sale); }
.sf-dot.badge-hot { background: var(--hot); }
.sf-dot.badge-new { background: var(--new); }
.sf-dot.badge-pro { background: var(--pro); }
.sf-dot.badge-free { background: #10B981; }

/* Price range */
.sf-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.sf-price-row input {
  width: 100%; padding: 9px 10px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font-body);
}
.sf-price-row input:focus { outline: none; border-color: var(--primary); }
.sf-price-row input::-webkit-outer-spin-button,
.sf-price-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sf-apply {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; background: var(--accent); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition); margin-bottom: 12px;
}
.sf-apply:hover { background: var(--primary); transform: translateY(-1px); }

.sf-price-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-pill {
  padding: 5px 11px; font-size: 11.5px; font-weight: 600;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--fg-secondary); border-radius: 99px; transition: var(--transition);
}
.sf-pill:hover { border-color: var(--primary); color: var(--fg); }
.sf-pill.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Main column ─────────────────────────────────────────── */
.shop-main { min-width: 0; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.st-heading h1 {
  font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--fg);
  margin-bottom: 3px;
}
.st-count { font-size: 13px; color: var(--fg-secondary); }

.st-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 14px; background: var(--bg-input);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='%23A1A1B5' d='M3 4.5l3 3 3-3'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center;
  border: 1px solid var(--border); color: var(--fg); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; transition: var(--transition);
}
.st-select:focus { outline: none; border-color: var(--primary); }
.st-select-sm { padding-right: 30px; }

.st-view-toggle {
  display: flex; gap: 2px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px;
}
.st-view-btn {
  width: 32px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: var(--radius-xs);
  color: var(--muted); cursor: pointer; transition: var(--transition); font-size: 13px;
}
.st-view-btn:hover { color: var(--fg); }
.st-view-btn.active { background: var(--primary); color: white; }

/* Grid / List */
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.shop-grid.list-view {
  display: flex; flex-direction: column; gap: 14px;
}
.shop-grid.list-view .product-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
}
.shop-grid.list-view .product-img-bg { height: 100%; min-height: 140px; }
.shop-grid.list-view .product-info {
  padding: 16px 20px; display: flex; flex-direction: column; justify-content: center;
}
.shop-grid.list-view .product-desc { display: -webkit-box; }
.shop-grid.list-view .product-price { margin: 8px 0; }
.shop-grid.list-view .add-to-cart { width: max-content; padding-left: 22px; padding-right: 22px; }

.product-desc {
  font-size: 12px; color: var(--fg-secondary); line-height: 1.5;
  margin: 4px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state */
.shop-empty {
  text-align: center; padding: 90px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.shop-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); border-radius: 50%;
  font-size: 26px; color: var(--muted);
}
.shop-empty h2 { font-family: var(--font-heading); font-size: 19px; color: var(--fg); margin-bottom: 6px; }
.shop-empty p { font-size: 13px; color: var(--fg-secondary); margin-bottom: 22px; }

.page-btn-nav { font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}
@media (max-width: 640px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .st-controls { width: 100%; }
  .st-select { flex: 1; }
  .shop-grid.list-view .product-card { grid-template-columns: 120px 1fr; }
  .shop-grid.list-view .product-img-bg { min-height: 100px; }
}
/* ══════════════════════════════════════════════════════════
   SIDE DRAWERS — Cart & Wishlist (slide-out panels)
   ══════════════════════════════════════════════════════════ */
.sd-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 3, 12, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99990;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sd-overlay.open { opacity: 1; visibility: visible; }

.side-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: min(408px, 100vw);
  background: var(--bg-raised);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 48px rgba(0,0,0,0.35);
  z-index: 99991;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-drawer.open { transform: translateX(0); }

.sd-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sd-head-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg);
}
.sd-head-title i { font-size: 16px; }
.sd-head-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px;
  background: var(--sale); color: #fff; font-size: 11px; font-weight: 800;
  font-family: var(--font-body);
}
.sd-close {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--fg-secondary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0; font-size: 13px;
}
.sd-close:hover { background: var(--bg-card); color: var(--fg); border-color: var(--border-hover); transform: rotate(90deg); }

.sd-body {
  flex: 1; overflow-y: auto; padding: 6px 22px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.sd-body::-webkit-scrollbar { width: 5px; }
.sd-body::-webkit-scrollbar-track { background: transparent; }
.sd-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sd-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 240px; color: var(--muted); font-size: 22px;
}

.sd-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; height: 100%; min-height: 400px; padding: 30px 10px;
}
.sd-empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.sd-icon-cart { background: rgba(139, 92, 246, 0.12); color: var(--accent); }
.sd-icon-heart { background: rgba(244, 63, 94, 0.12); color: #F43F5E; }
.sd-empty-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  color: var(--fg); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px;
}
.sd-empty-sub { font-size: 13px; color: var(--fg-secondary); line-height: 1.55; margin-bottom: 24px; max-width: 260px; }

.sd-item {
  display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border);
  position: relative; animation: fadeInUp 0.3s ease;
}
.sd-item:last-child { border-bottom: none; }
.sd-item-img {
  width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden;
  flex-shrink: 0; background: var(--bg-input);
}
.sd-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sd-item-name {
  font-size: 13px; font-weight: 700; color: var(--fg); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sd-item-name:hover { color: var(--primary); }
.sd-item-price { font-size: 12px; color: var(--fg-secondary); font-weight: 600; }
.sd-item-price .sd-price-now { color: var(--fg); font-weight: 800; font-size: 13px; }
.sd-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.sd-item-remove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 5px; border-radius: var(--radius-xs); transition: var(--transition);
  flex-shrink: 0; line-height: 1;
}
.sd-item-remove:hover { color: #F43F5E; background: rgba(244, 63, 94, 0.1); }
.sd-item-linetotal { font-size: 13px; font-weight: 800; color: var(--fg); white-space: nowrap; align-self: flex-start; margin-top: 2px; }

.sd-item .qty-control { flex-shrink: 0; }
.sd-item .qty-control button { width: 24px; height: 24px; font-size: 12px; }
.sd-item .qty-control input { width: 28px; font-size: 12px; }

.sd-add-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 99px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body); white-space: nowrap;
}
.sd-add-btn:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }
.sd-add-btn.added { background: #10B981 !important; }

.sd-foot {
  border-top: 1px solid var(--border); padding: 18px 22px 20px;
  background: var(--bg-raised); flex-shrink: 0;
}
.sd-subtotal-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 14px;
}
.sd-subtotal-row span:last-child { font-size: 19px; font-weight: 800; color: var(--fg); font-family: var(--font-heading); }
.sd-foot .btn-outline { margin-top: 8px; }

@media (max-width: 480px) {
  .side-drawer { width: 100vw; border-left: none; }
}

/* ── Side Drawer — Login Gate (guest lock screen) ───────── */
.sd-lock-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; height: 100%; min-height: 440px; padding: 30px 24px;
}
.sd-lock-icon {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 26px;
}
.sd-lock-icon.sd-icon-cart { background: rgba(139, 92, 246, 0.12); color: var(--accent); }
.sd-lock-icon.sd-icon-heart { background: rgba(244, 63, 94, 0.12); color: #F43F5E; }
.sd-lock-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--fg);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px;
}
.sd-lock-sub {
  font-size: 13px; color: var(--fg-secondary); line-height: 1.6;
  margin-bottom: 26px; max-width: 280px;
}
.sd-lock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff; font-weight: 700; font-size: 14px; font-family: var(--font-body);
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); width: 100%; max-width: 230px;
}
.sd-lock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
.sd-lock-alt { margin-top: 16px; font-size: 12.5px; color: var(--fg-secondary); }
.sd-lock-alt a { color: var(--primary); font-weight: 700; }
.sd-lock-alt a:hover { color: var(--accent); text-decoration: underline; }
