/* ==========================================================================
   SoftKey Store — Editorial Software Marketplace
   Design System v2.0
   Inspired by Linear.app, Vercel.com, Raycast.com, Stripe.com
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #eeeeee;
  --color-text: #1b1b1b;
  --color-text-secondary: #5f6366;
  --color-text-tertiary: #737678;
  --color-accent: #2f3132;
  --color-accent-soft: rgba(47, 49, 50, 0.08);
  --color-border: #d6d6d6;
  --color-border-hover: #9b9b9b;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-glow: transparent;
  --color-nav-bg: rgba(255, 255, 255, 0.96);
  --color-hover-bg: rgba(27, 27, 27, 0.06);
  
  --font: 'Bahnschrift', 'Aptos Display', 'Segoe UI Variable', sans-serif;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 6px;
  
  /* Taste Skill Palette simplified to clean neutral shades */
  --color-amber: #1d1d1f;
  --color-amber-dark: #6e6e73;
  --color-violet: #1d1d1f;
  --color-cyan: #1d1d1f;
  --color-magenta: #1d1d1f;
  
  /* Smooth standard transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 150ms ease;
  --transition-spring-quick: 150ms ease;
}

[data-theme="dark"] {
  --color-bg: #09090b;
  --color-surface: #121214;
  --color-surface-2: #1e1e21;
  --color-text: #f4f4f5;
  --color-text-secondary: #a1a1aa;
  --color-text-tertiary: #71717a;
  --color-accent: #1d9bf0;
  --color-accent-soft: rgba(29, 155, 240, 0.1);
  --color-border: #27272a;
  --color-border-hover: #52525b;
  --color-glow: rgba(29, 155, 240, 0.12);
  --color-nav-bg: rgba(9, 9, 11, 0.8);
  --color-hover-bg: rgba(255, 255, 255, 0.04);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: var(--color-surface-2);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}
:root:not([data-theme="dark"]) .theme-toggle__sun {
  display: none;
}
:root:not([data-theme="dark"]) .theme-toggle__moon {
  display: block;
}

/* Smooth theme transitions */
body, nav, footer, .product-card, .btn, .nav__cart, .theme-toggle, input, select, textarea, .faq-item, .cart-item, .modal-content, .hero, .catalog, .product-detail__visual, .plan-option, .breadcrumb {
  transition: background-color var(--transition-slow), color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

/* Page Transitions */
body {
  opacity: 1;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), background-color var(--transition-slow), color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

body.fade-out {
  opacity: 0 !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fade-in-active {
  animation: fadeIn 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

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

body {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection {
  background: rgba(255, 158, 44, 0.2);
  color: var(--color-text);
}

::-moz-selection {
  background: rgba(255, 158, 44, 0.2);
  color: var(--color-text);
}

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

input, select, textarea {
  font-family: var(--font);
  color: inherit;
  outline: none;
}

/* TECHNICAL BACKGROUND GRID (Open Design) */
.tech-grid {
  display: none !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tech-grid__line {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
}

.tech-grid__line--h1 {
  top: 15vh;
  left: 0;
  width: 100%;
  height: 1px;
}

.tech-grid__line--h2 {
  top: 75vh;
  left: 0;
  width: 100%;
  height: 1px;
}

.tech-grid__line--v1 {
  left: calc(50vw - 550px);
  top: 0;
  width: 1px;
  height: 100%;
  border-left: 1px dashed rgba(255, 255, 255, 0.015);
}

.tech-grid__line--v2 {
  right: calc(50vw - 550px);
  top: 0;
  width: 1px;
  height: 100%;
  border-left: 1px dashed rgba(255, 255, 255, 0.015);
}

/* Add grid accent corner crossmarks */
.tech-grid::before,
.tech-grid::after {
  content: '+';
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 14px;
}

.tech-grid::before {
  top: 15vh;
  left: calc(50vw - 555px);
  transform: translate(-50%, -50%);
}

.tech-grid::after {
  top: 15vh;
  right: calc(50vw - 556px);
  transform: translate(50%, -50%);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.0;
  color: var(--color-text);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--color-text);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-text);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-text);
}

p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

small {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   4. Container
   ========================================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   5. Floating Navbar (.nav)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  position: relative;
}

.nav__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.store-preferences {
  position: relative;
}

.store-preferences__trigger {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 650;
  gap: 7px;
  height: 40px;
  justify-content: center;
  min-width: 92px;
  padding: 0 10px;
  white-space: nowrap;
}

.store-preferences__trigger:hover,
.store-preferences__trigger[aria-expanded="true"] {
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.store-preferences__menu {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: none;
  min-width: 240px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  z-index: 140;
}

.store-preferences__row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 38px;
}

.store-preferences__row > span {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.preference-segment {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  overflow: hidden;
}

.preference-segment__option {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
  height: 28px;
  min-width: 43px;
  padding: 0 8px;
}

.preference-segment__option:last-child {
  border-right: 0;
}

.preference-segment__option:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.preference-segment__option--active {
  background: var(--color-text);
  color: var(--color-bg);
}

.preference-segment__option--active:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.store-preferences__rate {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  font-size: 0.6875rem;
  line-height: 1.45;
  margin-top: 8px;
  padding-top: 8px;
}

.nav__logo {
  align-items: center;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 750;
  gap: 10px;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
}

.nav__logo span {
  color: inherit;
}

.nav__logo-image {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: block;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.nav__links {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
  white-space: nowrap;
}

.nav__links a {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  padding: 8px 9px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background-color var(--transition);
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--color-text);
  background: var(--color-hover-bg);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav__toggle {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.mobile-nav__toggle:hover,
.mobile-nav__toggle[aria-expanded="true"] {
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.mobile-nav__panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: none;
  position: fixed;
  right: 12px;
  top: 56px;
  width: min(240px, calc(100vw - 24px));
  z-index: 150;
}

.mobile-nav__links {
  display: grid;
}

.mobile-nav__links a,
.mobile-nav__theme {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  text-align: left;
  width: 100%;
}

.mobile-nav__links a:hover,
.mobile-nav__theme:hover,
.mobile-nav__links .nav__link--active {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.mobile-nav__theme {
  border-bottom: 0;
}

.nav__link--active {
  color: var(--color-text) !important;
}

.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  background: var(--color-surface);
}

.nav__cart:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: var(--color-surface-2);
}

.nav__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0);
  transition: transform var(--transition), opacity var(--transition);
  line-height: 1;
}

.nav__cart-badge.active {
  opacity: 1;
  transform: scale(1);
}

.nav__cart-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   6. Hero (.hero)
   ========================================================================== */

.hero {
  min-height: min(900px, calc(100dvh - 65.5px));
  display: flex;
  align-items: center;
  padding: 88px 0 52px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-sizing: border-box;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  color: var(--color-text);
  font-size: 4rem;
  letter-spacing: 0;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition);
}

.hero__link--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.hero__link--primary:hover {
  opacity: 0.85;
}

.hero__link svg {
  transition: transform var(--transition);
}

.hero__link:hover svg {
  transform: translateX(4px);
}

/* Floating Card Gallery */
.hero__visual {
  position: relative;
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__sequence-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  will-change: transform;
}

.hero__sequence-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero__sequence-item--active {
  opacity: 1;
  visibility: visible;
}

@keyframes floatMascot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Responsive constraints for visual grid */
@media (max-width: 900px) {
  .hero__grid {
    gap: 32px;
  }
  .hero__sequence-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__visual {
    display: flex;
    height: auto;
    margin-top: 24px;
  }
  .hero__sequence-container {
    max-width: 440px;
    height: 300px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   7. Brand rail
   ========================================================================== */

.brand-rail {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  width: 100%;
}

.brand-rail__viewport {
  overflow: hidden;
  scrollbar-width: none;
  width: 100%;
}

.brand-rail__viewport::-webkit-scrollbar {
  display: none;
}

.brand-rail__track {
  animation: brandRail 32s linear infinite;
  display: flex;
  width: max-content;
  will-change: transform;
}

.brand-rail__group {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.brand-rail__item {
  align-items: center;
  color: var(--color-text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  height: 64px;
  padding: 0 24px;
  transition: color var(--transition);
  white-space: nowrap;
}

.brand-rail__item::after {
  color: var(--color-border-hover);
  content: '\2022';
  font-size: 0.625rem;
  margin-left: 48px;
}

.brand-rail__item:hover,
.brand-rail__item:focus-visible {
  color: var(--color-text);
}

.brand-rail__item:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

@keyframes brandRail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   8. Catalog Section (.catalog)
   ========================================================================== */

.catalog {
  padding: 104px 0 80px;
  scroll-margin-top: 64px;
}

.catalog--home {
  padding-top: 56px;
}

.catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog__header h1,
.catalog__header h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.catalog__header-count {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   9. Search (.search)
   ========================================================================== */

.search {
  margin-bottom: 32px;
}

.search__wrapper {
  position: relative;
  display: block;
  flex: 0 1 280px;
  max-width: 280px;
  min-width: 180px;
  width: auto;
}

@media (max-width: 1240px) {
  .search__wrapper {
    display: none;
  }
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search__input {
  height: 40px;
  width: 100%;
  max-width: 320px;
  padding: 0 16px 0 40px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--color-text);
  outline: none;
  transition: all var(--transition);
  font-family: var(--font);
}

.search__input::placeholder {
  color: var(--color-text-tertiary);
}

.search__input:focus {
  border-color: var(--color-text);
  background: #ffffff;
}

/* Search Suggestions Dropdown */
.search__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: none;
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
}

.search__suggestions.hidden {
  display: none;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.search-suggestion-item:hover {
  background-color: var(--color-surface-2);
}

.search-suggestion-item__image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.search-suggestion-item__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-suggestion-item__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.search-suggestion-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-item__price {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.search-suggestions__empty {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   9b. Catalog Toolbar (.catalog__toolbar)
   ========================================================================== */

.catalog__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
}

.brand-filter__wrapper {
  display: flex;
  align-items: center;
}

.brand-filter {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.brand-filter:hover, .brand-filter:focus {
  border-color: var(--color-text-secondary);
}

.brand-filter option {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ==========================================================================
   10. Category Filters — Segmented Control (.filters)
   ========================================================================== */

.filters {
  display: flex;
  gap: 0;
  padding: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.filters__active-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: none;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-spring-quick), width var(--transition-spring-quick);
  z-index: 1;
  pointer-events: none;
  display: block;
}

.filters__btn {
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

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

.filters__btn--active {
  color: var(--color-text);
  font-weight: 600;
}

.filters__icon {
  margin-right: 2px;
  font-size: 0.875rem;
}

/* ==========================================================================
   11. Product Grid — Bento Layout (.products-grid)
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  row-gap: 36px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
}

/* ==========================================================================
   12. Product Cards (.product-card)
   ========================================================================== */

.product-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 28px;
}

.product-card__detail-link {
  border-radius: 8px;
  inset: 0;
  position: absolute;
  z-index: 3;
}

.product-card__detail-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.product-card__visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 2;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__visual {
  transform: none;
  box-shadow: none;
}

.product-card__image {
  width: 100%;
  height: 100%;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
}

.product-card__image[src*="canvapro" i],
.product-card__image[src*="windows" i] {
  object-fit: cover !important;
  object-position: center;
}

/* Specific logo-based overrides */
.product-card__image[src*="chatgpt" i],
.product-card__image[src*="codex" i],
.product-card__image[src*="elevenlabs" i],
.product-card__image[src*="grok" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card__image[src*="capcut" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card:has(.product-card__image[src*="capcut" i]) .product-card__visual {
  background: #000000 !important;
}

.product-card__image[src*="autodesk" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card:has(.product-card__image[src*="autodesk" i]) .product-card__visual {
  background: #e5e5e5 !important;
}

/* Microsoft Products (Cover) - Excluding Windows */
.product-card__image[src*="microsoft" i],
.product-card__image[src*="hotmail" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card__image[src*="outlook" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card:has(.product-card__image[src*="microsoft365" i]) .product-card__visual,
.product-card:has(.product-card__image[src*="office365" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card:has(.product-card__image[src*="outlook" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card:has(.product-card__image[src*="hotmail" i]) .product-card__visual {
  background: #000000 !important;
}

/* Gemini Products (Cover) */
.product-card:has(.product-card__image[src*="gemini" i]) .product-card__visual {
  background: #ffffff !important;
}

/* ElevenLabs (Cover) */
.product-card:has(.product-card__image[src*="elevenlabs" i]) .product-card__visual {
  background: #ffffff !important;
}

/* ChatGPT & Codex (Cover) */
.product-card:has(.product-card__image[src*="chatgpt" i]) .product-card__visual,
.product-card:has(.product-card__image[src*="codex" i]) .product-card__visual {
  background: #10a37f !important;
}

/* Super Grok (Cover) */
.product-card:has(.product-card__image[src*="grok" i]) .product-card__visual {
  background: #000000 !important;
}

/* YouTube Premium (Cover) */
.product-card__image[src*="youtube" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card:has(.product-card__image[src*="youtube" i]) .product-card__visual {
  background: #ffffff !important;
}

/* Gmail Cuentas (Cover) */
.product-card__image[src*="gmail" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card:has(.product-card__image[src*="gmail" i]) .product-card__visual {
  background: #ffffff !important;
}

/* Xbox Random Gift Card (Cover) */
.product-card:has(.product-card__image[src*="xbox" i]) .product-card__visual {
  background: #107c10 !important;
}

.product-card__image[src*="xbox" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* ExpressVPN (Cover) */
.product-card:has(.product-card__image[src*="expressvpn" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card__image[src*="expressvpn" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* HMA VPN (Cover) */
.product-card:has(.product-card__image[src*="hmavpn" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card__image[src*="hmavpn" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Gamma Pro (Cover) */
.product-card:has(.product-card__image[src*="gammapro" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card__image[src*="gammapro" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* DeepSeek API (Cover) */
.product-card:has(.product-card__image[src*="deepseek" i]) .product-card__visual {
  background: #ffffff !important;
}

.product-card__image[src*="deepseek" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Discord Nitro (Cover) */
.product-card:has(.product-card__image[src*="discord" i]) .product-card__visual {
  background: #5865f2 !important;
}

.product-card__image[src*="discord" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.product-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.product-card__brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card__color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card__brand {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-accent);
  padding: 2px 8px;
  background: var(--color-accent-soft);
  border-radius: 4px;
  flex-shrink: 0;
}

.product-card__tag--discount {
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
}

.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0;
  position: relative;
  z-index: 2;
}

.product-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.product-card__status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0.45rem 0 0;
  min-height: 20px;
}

.product-card__availability {
  align-items: center;
  color: var(--color-text-tertiary);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.product-card__availability::before {
  background: currentColor;
  content: "";
  height: 6px;
  margin-right: 7px;
  width: 6px;
}

.product-card__availability--available {
  color: #58c996;
}

.product-card__availability--pending {
  color: var(--color-text-tertiary);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  position: relative;
  z-index: 2;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.product-card__price-period {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

.product-card__price-original {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  margin-right: 8px;
}

.product-card__pricing {
  display: grid;
  gap: 4px;
}

.product-card__price-context,
.plan-option__price-context {
  color: var(--color-text-tertiary);
  display: block;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.plan-option__price-context {
  flex-basis: 100%;
  text-align: right;
}

.product-card__add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}

.catalog__more {
  display: flex;
  justify-content: center;
  min-height: 48px;
  padding-top: 32px;
}

.catalog__more .btn[hidden] {
  display: none;
}

.product-card__add-btn:hover {
  border-color: var(--color-text);
  color: var(--color-bg);
  background: var(--color-text);
}

.product-card__add-btn:disabled,
.product-card__add-btn:disabled:hover {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-tertiary);
  cursor: default;
  opacity: 0.58;
}

/* Uniform Card Grid Styles (Featured card style removed) */

/* ==========================================================================
   13. Product Detail Page (.product-detail)
   ========================================================================== */

.product-detail {
  padding: 0;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  padding: 24px 0 88px;
  align-items: start;
}

.product-detail__media {
  align-self: start;
  min-width: 0;
}

.product-detail__visual {
  background: var(--color-surface-2);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.product-detail__image {
  width: 100%;
  height: 100%;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  transition: none;
}

.product-detail__image[src*="canvapro" i],
.product-detail__image[src*="windows" i] {
  object-fit: cover !important;
  object-position: center;
}

.product-detail__visual:hover .product-detail__image {
  transform: none;
}

.product-detail__image[src*="autodesk" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="autodesk" i]) {
  background: #e5e5e5 !important;
}

/* Microsoft Products (Detail) - Excluding Windows */
.product-detail__image[src*="microsoft" i],
.product-detail__image[src*="hotmail" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__image[src*="outlook" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="microsoft365" i]),
.product-detail__visual:has(.product-detail__image[src*="office365" i]) {
  background: #ffffff !important;
}

.product-detail__visual:has(.product-detail__image[src*="outlook" i]) {
  background: #ffffff !important;
}

.product-detail__visual:has(.product-detail__image[src*="hotmail" i]) {
  background: #000000 !important;
}

/* Gemini Products (Detail) */
.product-detail__image[src*="gemini" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="gemini" i]) {
  background: #ffffff !important;
}

/* ElevenLabs (Detail) */
.product-detail__image[src*="elevenlabs" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="elevenlabs" i]) {
  background: #ffffff !important;
}

/* ChatGPT & Codex (Detail) */
.product-detail__image[src*="chatgpt" i],
.product-detail__image[src*="codex" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="chatgpt" i]) {
  background: #10a37f !important;
}

.product-detail__visual:has(.product-detail__image[src*="codex" i]) {
  background: #10a37f !important;
}

/* YouTube Premium (Detail) */
.product-detail__image[src*="youtube" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="youtube" i]) {
  background: #ffffff !important;
}

/* Gmail Cuentas (Detail) */
.product-detail__image[src*="gmail" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="gmail" i]) {
  background: #ffffff !important;
}

/* Super Grok (Detail) */
.product-detail__image[src*="grok" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="grok" i]) {
  background: #000000 !important;
}

/* Xbox (Detail) */
.product-detail__image[src*="xbox" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="xbox" i]) {
  background: #107c10 !important;
}

/* ExpressVPN (Detail) */
.product-detail__image[src*="expressvpn" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="expressvpn" i]) {
  background: #ffffff !important;
}

/* HMA VPN (Detail) */
.product-detail__image[src*="hmavpn" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="hmavpn" i]) {
  background: #ffffff !important;
}

/* Gamma Pro (Detail) */
.product-detail__image[src*="gammapro" i] {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="gammapro" i]) {
  background: #ffffff !important;
}

/* DeepSeek API (Detail) */
.product-detail__image[src*="deepseek" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="deepseek" i]) {
  background: #ffffff !important;
}

/* CapCut Pro (Detail) */
.product-detail__image[src*="capcut" i] {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="capcut" i]) {
  background: #000000 !important;
}


/* Discord Nitro (Detail) */
.product-detail__image[src*="discord" i] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail__visual:has(.product-detail__image[src*="discord" i]) {
  background: #5865f2 !important;
}

.product-detail__info {
  min-width: 0;
  padding: 0;
}

.product-detail__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.product-detail__eyebrow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-detail__brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}

.product-detail__availability {
  align-items: center;
  color: var(--color-text-tertiary);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-detail__availability::before {
  background: currentColor;
  content: "";
  height: 6px;
  margin-right: 7px;
  width: 6px;
}

.product-detail__availability--available {
  color: var(--color-success);
}

.product-detail__name {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--color-text);
  line-height: 1.12;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.product-detail__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 68ch;
}

.product-detail__meta {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
}

.product-detail__meta-item {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

.product-detail__meta-value {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.product-detail__price-large {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.product-detail__plans {
  border-top: 1px solid var(--color-border);
  display: grid;
  column-gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 24px;
}

.product-detail__plans .plan-option:only-child {
  grid-column: 1 / -1;
}

.product-detail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  width: 100%;
}

.product-detail__actions--single {
  grid-template-columns: 1fr;
}

.product-detail__purchase {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0 28px;
}

.product-detail__section-heading span {
  color: var(--color-text-tertiary);
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.product-detail__section-heading h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.product-detail__section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.product-detail__warranty {
  border-bottom: 1px solid var(--color-border);
  margin: 0;
  padding: 24px 0;
}

.product-detail__warranty-badge {
  display: grid;
  gap: 14px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}

.product-detail__warranty-badge--warning {
  /* Mantener el mismo borde y fondo neutro */
}

.product-detail__warranty-badge .warranty-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #10a37f;
  display: inline-flex;
}

.product-detail__warranty-badge--warning .warranty-icon {
  color: #ef4444;
}

.product-detail__warranty-title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0;
}

.product-detail__warranty-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   14. Plan Options (.plan-option)
   ========================================================================== */

.plan-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  justify-content: stretch;
  padding: 14px 12px;
  position: relative;
  text-align: left;
  transition: background-color var(--transition), color var(--transition);
}

.plan-option::before {
  border: 1.5px solid var(--color-border-hover);
  border-radius: 50%;
  content: "";
  height: 13px;
  width: 13px;
}

.plan-option:hover {
  background: var(--color-hover-bg);
  transform: none;
  box-shadow: none;
}

.plan-option--active {
  background: var(--color-surface-2);
  box-shadow: none;
}

.plan-option--active::before {
  background: var(--color-text);
  border: 3px solid var(--color-surface-2);
  outline: 1.5px solid var(--color-text);
}

.plan-option:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

[data-theme="dark"] .plan-option--active {
  border-color: var(--color-text);
  background: var(--color-surface-2);
  box-shadow: none;
}

.plan-option__label {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  min-width: 0;
  text-transform: none;
}

.plan-option--active .plan-option__label {
  color: var(--color-text);
}

.plan-option__price {
  align-items: baseline;
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 700;
  gap: 4px 8px;
  justify-content: flex-end;
  justify-self: end;
  letter-spacing: 0;
  color: var(--color-text);
  line-height: 1.1;
  text-align: right;
}

.plan-option__price .price-original {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--color-text-tertiary);
  display: inline;
  font-weight: 500;
  margin: 0;
}

.plan-option__price .price-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.plan-option__price .price-savings {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
  margin-top: 6px;
}

.plan-option__period, .plan-option__save {
  display: none !important;
}

/* ==========================================================================
   15. Buttons (.btn)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--secondary {
  background: #ffffff;
  color: var(--color-text);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  background: var(--color-surface-2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

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

.btn--danger {
  background: transparent;
  color: var(--color-danger);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.05);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 12px 24px;
  font-size: 0.9375rem;
  min-height: 46px;
}

.btn--full {
  width: 100%;
}

.btn--disabled,
.btn:disabled {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
}

/* ==========================================================================
   16. Breadcrumb (.breadcrumb)
   ========================================================================== */

.breadcrumb {
  padding: 92px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb a {
  color: var(--color-text-tertiary);
  font-size: 0.8125rem;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-text-secondary);
}

.breadcrumb__separator {
  color: var(--color-text-tertiary);
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumb__current {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   17. Cart Page (.cart-page)
   ========================================================================== */

.cart-page {
  padding: 120px 0 0;
}

.cart-page__title {
  margin-bottom: 32px;
}

.cart-page__title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 32px;
  min-width: 0;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 40px 0 80px;
}

.cart-page__items-section,
.cart-page__layout > * {
  min-width: 0;
}

.cart-page__items {
  min-width: 0;
}

/* ==========================================================================
   18. Cart Item (.cart-item)
   ========================================================================== */

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.cart-item__visual {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__image[src*="chatgpt" i],
.cart-item__image[src*="codex" i],
.cart-item__image[src*="elevenlabs" i],
.cart-item__image[src*="grok" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Brands that have transparent or solid backgrounds requiring custom fit & background colors */
.cart-item:has(.cart-item__image[src*="capcut" i]) .cart-item__visual {
  background: #000000 !important;
}
.cart-item__image[src*="capcut" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item:has(.cart-item__image[src*="autodesk" i]) .cart-item__visual {
  background: #e5e5e5 !important;
}
.cart-item__image[src*="autodesk" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item:has(.cart-item__image[src*="microsoft" i]) .cart-item__visual,
.cart-item:has(.cart-item__image[src*="microsoft365" i]) .cart-item__visual,
.cart-item:has(.cart-item__image[src*="office365" i]) .cart-item__visual,
.cart-item:has(.cart-item__image[src*="outlook" i]) .cart-item__visual {
  background: #ffffff !important;
}
.cart-item__image[src*="microsoft" i],
.cart-item__image[src*="office365" i],
.cart-item__image[src*="microsoft365" i],
.cart-item__image[src*="outlook" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item:has(.cart-item__image[src*="gemini" i]) .cart-item__visual {
  background: #ffffff !important;
}
.cart-item__image[src*="gemini" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item:has(.cart-item__image[src*="elevenlabs" i]) .cart-item__visual {
  background: #ffffff !important;
}

.cart-item:has(.cart-item__image[src*="chatgpt" i]) .cart-item__visual,
.cart-item:has(.cart-item__image[src*="codex" i]) .cart-item__visual {
  background: #10a37f !important;
}

.cart-item:has(.cart-item__image[src*="grok" i]) .cart-item__visual {
  background: #000000 !important;
}

.cart-item:has(.cart-item__image[src*="youtube" i]) .cart-item__visual {
  background: #ff0000 !important;
}
.cart-item__image[src*="youtube" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item:has(.cart-item__image[src*="gmail" i]) .cart-item__visual {
  background: #ffffff !important;
}
.cart-item__image[src*="gmail" i] {
  width: 80%;
  height: 80%;
  object-fit: contain;
}


.cart-item__info {
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.cart-item__brand {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.cart-item__plan {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
}

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

.cart-item__qty-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  min-width: 20px;
  text-align: center;
}

.cart-item__price {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.cart-item__remove {
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__remove:hover {
  color: var(--color-danger);
}

/* ==========================================================================
   19. Cart Summary (.cart-summary)
   ========================================================================== */

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.cart-summary__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.cart-summary__row--discount {
  color: var(--color-success);
}

.cart-summary__row--total {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.cart-summary__btn {
  width: 100%;
  margin-top: 20px;
}

.cart-summary__secure {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   20. Empty States
   ========================================================================== */

.empty-state,
.cart-empty,
.products-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-tertiary);
}

.empty-state__icon,
.cart-empty__icon,
.products-empty__icon {
  font-size: 3rem;
  opacity: 0.15;
  margin-bottom: 20px;
}

.empty-state__title,
.cart-empty__title,
.products-empty__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.empty-state__desc,
.cart-empty__desc,
.products-empty__desc {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.cart-empty__link,
.empty-state__link {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity var(--transition);
}

.cart-empty__link:hover,
.empty-state__link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   21. Toast Notification (.toast)
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition-slow);
  box-shadow: none;
  pointer-events: none;
  white-space: nowrap;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   22. Footer (.footer)
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   23. Feature List (.feature-list)
   ========================================================================== */

.product-detail__features {
  margin: 0;
  padding: 24px 0 0;
}

.product-detail__features .product-detail__section-heading {
  margin-bottom: 12px;
}

.feature-list {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border);
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  min-width: 0;
  padding: 11px 0;
}

.feature-item__check {
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   24. Price Utilities
   ========================================================================== */

.price-original {
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.price-period {
  color: var(--color-text-tertiary);
  font-size: 0.8125rem;
}

.price-savings {
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   25. Related Products (.related)
   ========================================================================== */

.related {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.related__title {
  margin-bottom: 32px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.related__grid .product-card {
  min-height: auto;
}

/* ==========================================================================
   26. Animations & Keyframes
   ========================================================================== */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in-delay-1 {
  animation-delay: 50ms;
}

.animate-fade-in-delay-2 {
  animation-delay: 100ms;
}

.animate-fade-in-delay-3 {
  animation-delay: 150ms;
}

.animate-fade-in-delay-4 {
  animation-delay: 200ms;
}

.animate-fade-in-delay-5 {
  animation-delay: 250ms;
}

.animate-fade-in-delay-6 {
  animation-delay: 300ms;
}

/* ==========================================================================
   27. Gradient Text Utility
   ========================================================================== */

.gradient-text,
.accent {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   28. Scrollbar
   ========================================================================== */

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

/* ==========================================================================
   29. Utilities
   ========================================================================== */

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

[hidden],
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ==========================================================================
   30. Responsive — 1024px
   ========================================================================== */

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

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



  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail__media {
    max-width: 720px;
    width: 100%;
  }

  .product-detail__visual {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .product-detail__actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cart-page__layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  h1 {
    font-size: 3rem;
  }

  .hero__title {
    max-width: 600px;
  }
}

/* ==========================================================================
   31. Responsive — 768px
   ========================================================================== */

@media (max-width: 768px) {
  .nav__inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav__links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .theme-toggle {
    display: none;
  }

  .search__wrapper {
    display: block;
    min-width: 0;
  }

  .nav__actions {
    gap: 8px;
  }

  .search__suggestions {
    min-width: unset;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 28px;
  }



  .hero {
    min-height: calc(100dvh - 64px);
    padding: 88px 0 40px;
    display: flex;
    align-items: center;
  }

  h1 {
    font-size: 2.25rem;
  }

  .cart-item {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }

  .cart-item__visual {
    width: 48px;
    height: 48px;
  }

  .cart-item__quantity {
    grid-row: 2;
    grid-column: 2;
  }

  .cart-item__remove {
    grid-row: 2;
    grid-column: 3;
  }

  .catalog__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search__wrapper,
  .search__input {
    width: 100%;
    max-width: 100%;
  }

  .filters {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

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

  .product-detail__name {
    font-size: 1.75rem;
  }

  .product-detail__plans {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }



  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__copyright {
    flex-direction: column;
    gap: 4px;
  }
}

* {
  letter-spacing: 0 !important;
}

/* ==========================================================================
   32. Responsive — 480px
   ========================================================================== */

@media (max-width: 480px) {
  .nav__logo span {
    display: none;
  }

  .nav__actions {
    gap: 6px;
  }

  .store-preferences__trigger,
  .mobile-nav__toggle,
  .nav__cart {
    height: 36px;
    width: 36px;
  }

  .store-preferences__trigger {
    min-width: 36px;
    padding: 0;
  }

  .store-preferences__trigger-text {
    display: none;
  }

  .store-preferences__menu {
    right: -82px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .brand-rail__item {
    height: 58px;
    padding: 0 18px;
  }



  .hero {
    min-height: calc(100dvh - 64px);
    padding: 80px 0 32px;
  }

  .hero__grid {
    gap: 20px;
  }

  .hero__title {
    margin-bottom: 16px;
    font-size: 2.4rem;
    line-height: 1.08;
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__visual {
    margin-top: 8px;
  }

  .hero__sequence-container {
    height: 220px;
  }

  h1:not(.hero__title) {
    font-size: 1.875rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail__plans {
    flex-direction: column;
  }

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

  .product-detail__layout {
    padding: 16px 0 60px;
  }

  .container {
    padding: 0 16px;
  }

  .product-card {
    padding: 0 0 24px;
  }

  .breadcrumb {
    padding: 100px 0 12px;
  }

  .catalog {
    padding: 88px 0 48px;
  }

  .catalog--home {
    padding-top: 40px;
  }

  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .filters__active-bg {
    display: none;
  }

  .filters__btn {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    line-height: 1.25;
    white-space: normal;
  }

  .filters__btn--active {
    background: var(--color-surface);
    border-color: var(--color-border);
  }

  .filters__btn:last-child {
    grid-column: 1 / -1;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .cart-page__layout {
    gap: 32px;
    padding: 24px 0 60px;
  }
}

/* Keep every primary action reachable on very narrow in-app browsers. */
@media (max-width: 360px) {
  .nav {
    height: 104px;
  }

  .nav__inner {
    display: grid;
    gap: 8px 10px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 40px 40px;
    padding: 8px 12px;
  }

  .nav__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .nav__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    min-width: 0;
  }

  .nav__inner > .search__wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .mobile-nav__panel,
  .store-preferences__menu {
    position: fixed;
    right: 12px;
    top: 112px;
  }

  .hero {
    min-height: calc(100dvh - 104px);
    padding-top: 128px;
  }

  .catalog {
    scroll-margin-top: 104px;
  }

  .breadcrumb {
    padding-top: 124px;
  }

  .offers-banner,
  .support-header {
    margin-top: 0;
    padding-top: 128px;
  }

  .payment-result,
  .orders-page {
    padding-top: 124px;
  }

  .cart-page__title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .support-header h1 {
    font-size: 2.15rem;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   33. Print Styles
   ========================================================================== */

@media print {
  .nav,
  .toast,
  .marquee {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
  }

  .product-card {
    break-inside: avoid;
  }
}

/* ==========================================================================
   34. Offers Page Styles
   ========================================================================== */

.offers-banner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin: 120px auto 48px;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.offers-banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.offers-banner__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.offers-banner__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 8px;
  text-wrap: balance;
}

.offers-banner__subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 520px;
  text-wrap: pretty;
}

.countdown-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
}

.countdown-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.countdown-val {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-top: 8px;
}

.countdown-divider-line {
  width: 1px;
  height: 36px;
  background-color: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .offers-banner {
    max-width: 800px;
    gap: 32px;
  }
  .offers-banner__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .offers-banner {
    margin-top: 100px;
    padding: 48px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .offers-banner__content {
    align-items: center;
    text-align: center;
  }
  .offers-banner__title {
    font-size: 1.75rem;
  }
  .offers-banner__subtitle {
    font-size: 0.95rem;
  }
  .countdown-dashboard {
    gap: 16px;
  }
  .countdown-col {
    min-width: 70px;
  }
  .countdown-val {
    font-size: 2rem;
  }
  .countdown-lbl {
    font-size: 0.625rem;
    letter-spacing: 0.05em;
  }
  .countdown-divider-line {
    height: 28px;
  }
}

/* ==========================================================================================
   35. Support FAQ Page Styles
   ========================================================================== */

.support-header {
  text-align: center;
  padding: 120px 0 40px;
  max-width: 600px;
  margin: 0 auto;
}

.support-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 16px;
  line-height: 1.1;
}

.support-header p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.support-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto 48px;
}

.support-search__input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--transition);
  box-shadow: none;
  color: var(--color-text);
}

.support-search__input::placeholder {
  color: var(--color-text-tertiary);
}

.support-search__input:focus {
  border-color: var(--color-border-hover);
  box-shadow: none;
}

.support-search__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item--active {
  border-color: var(--color-accent) !important;
  box-shadow: none;
}

.faq-item__header {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  cursor: pointer;
  border: none;
}

.faq-item__question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0;
}

.faq-item__icon {
  color: var(--color-text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item--active .faq-item__icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-item__answer-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-bottom: 24px;
}

.faq-empty {
  text-align: center;
  padding: 48px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.faq-empty__text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.faq-empty__subtext {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   36. Checkout Modal & 3D Card
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: fadeIn 200ms ease forwards;
}

.modal__content {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  box-shadow: none;
  z-index: 1;
  animation: modalEnter 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 900px) {
  .modal__content {
    padding: 32px 20px 20px;
  }
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

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

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 24px;
}

@media (max-width: 850px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }
}

.checkout-layout__card-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}

/* 3D Rotating Credit Card Mockup */
.credit-card {
  width: 320px;
  height: 190px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.credit-card--flipped {
  transform: rotateY(180deg);
}

.credit-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow: none;
}

.credit-card__face--front {
  background: linear-gradient(135deg, #1d1d1f 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .credit-card__face--front {
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-card__face--back {
  background: linear-gradient(135deg, #121214 0%, #1d1d1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotateY(180deg);
  padding: 0;
}

[data-theme="dark"] .credit-card__face--back {
  background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Elements Front */
.credit-card__chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%);
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: none;
}

.credit-card__logo {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
  opacity: 0.8;
}

.credit-card__number {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.125em;
  margin-bottom: 20px;
  font-family: monospace;
}

.credit-card__footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.credit-card__label {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.credit-card__value {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Elements Back */
.credit-card__strip {
  height: 40px;
  background: #000000;
  width: 100%;
  margin-top: 24px;
}

.credit-card__signature {
  background: rgba(255, 255, 255, 0.8);
  height: 36px;
  margin: 20px 24px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
}

.credit-card__cvv {
  font-family: monospace;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-form__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.form-group input {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 0.9375rem;
  transition: all var(--transition);
  color: var(--color-text);
}

.form-group input:focus {
  border-color: var(--color-border-hover);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.input-validation-icon {
  position: absolute;
  right: 14px;
  font-size: 0.875rem;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.error-message {
  font-size: 0.75rem;
  color: var(--color-danger);
  display: none;
  margin-top: -2px;
}

.form-group--invalid input {
  border-color: var(--color-danger) !important;
}

.form-group--invalid .error-message {
  display: block;
}

.checkout-form__submit {
  margin-top: 24px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: normal;
  padding: 0;
}

.modal__content--checkout {
  max-width: 520px;
}

.checkout-layout.demo-checkout {
  display: block;
  padding: 0;
}

.demo-checkout__heading {
  padding-right: 36px;
}

.section-kicker {
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.demo-checkout__heading h2 {
  margin: 7px 0 8px;
  color: var(--color-text);
  font-size: 1.6rem;
}

.demo-checkout__heading p,
.demo-checkout__notice {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-checkout__lines {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.demo-checkout__lines li,
.demo-checkout__total {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.demo-checkout__lines li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-checkout__lines strong,
.demo-checkout__total strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.demo-checkout__total {
  align-items: center;
  font-size: 1rem;
}

.demo-checkout__total strong {
  font-size: 1.3rem;
}

.demo-checkout__notice {
  margin: 16px 0;
  padding: 13px 0;
  border-block: 1px solid var(--color-border);
}

.demo-checkout > .btn {
  width: 100%;
}

.checkout-layout.payment-checkout {
  display: block;
  padding: 0;
}

.payment-checkout__heading {
  padding-right: 36px;
}

.payment-checkout__heading h2 {
  margin: 7px 0 8px;
  color: var(--color-text);
  font-size: 1.6rem;
}

.payment-checkout__heading p,
.payment-checkout__notice,
.payment-checkout__message {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.payment-checkout__lines {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.payment-checkout__lines li,
.payment-checkout__total {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.payment-checkout__lines li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-checkout__lines strong,
.payment-checkout__total strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.payment-checkout__total {
  align-items: center;
}

.payment-checkout__total strong {
  font-size: 1.3rem;
}

.payment-checkout__form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.payment-checkout__form[hidden],
.telegram-payment[hidden] {
  display: none !important;
}

.telegram-payment {
  margin-top: 20px;
  padding-block: 18px;
  border-block: 1px solid var(--color-border);
}

.telegram-payment p {
  margin: 0 0 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.telegram-payment .btn {
  width: 100%;
}

.payment-checkout__field {
  display: grid;
  gap: 7px;
}

.payment-checkout__field > span,
.payment-methods legend {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0;
}

.payment-checkout__field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

.payment-checkout__field input:focus {
  border-color: var(--color-text-secondary);
  outline: 2px solid transparent;
}

.payment-checkout__customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-checkout__customer[hidden] {
  display: none;
}

.payment-methods {
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-methods__list {
  margin-top: 7px;
  border-top: 1px solid var(--color-border);
}

.payment-method {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 54px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.payment-method input {
  accent-color: var(--color-text);
}

.payment-method span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.payment-method strong,
.payment-method small {
  overflow-wrap: anywhere;
}

.payment-method small {
  color: var(--color-text-tertiary);
}

.payment-method--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.payment-checkout__message {
  min-height: 21px;
  margin: 0;
}

.payment-checkout__message[data-state="success"] {
  color: var(--color-success);
}

.payment-checkout__message[data-state="error"] {
  color: var(--color-danger);
}

.payment-action {
  display: grid;
  justify-items: center;
  gap: 12px;
  border-block: 1px solid var(--color-border);
  padding: 18px 0;
}

.payment-action[hidden] {
  display: none !important;
}

.payment-action [hidden] {
  display: none !important;
}

.payment-action__qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.payment-action__code {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.yape-payment {
  display: grid;
  gap: 0;
  width: 100%;
}

.yape-payment[hidden] {
  display: none !important;
}

.yape-payment__amount {
  display: grid;
  gap: 5px;
  padding: 2px 0 18px;
  text-align: left;
}

.yape-payment__amount > span,
.yape-payment__details span {
  color: var(--color-text-secondary);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
}

.yape-payment__amount strong {
  color: var(--color-text);
  font-size: 2.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.yape-payment__amount small {
  color: var(--color-text-tertiary);
  line-height: 1.45;
}

.yape-payment__details {
  border-top: 1px solid var(--color-border);
}

.yape-payment__details > div {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 10px 0;
}

.yape-payment__details span {
  grid-column: 1;
}

.yape-payment__details strong {
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95rem;
  grid-column: 1;
  overflow-wrap: anywhere;
}

.yape-copy {
  align-self: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 34px;
  padding: 0 11px;
}

.yape-copy:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.yape-payment__steps {
  color: var(--color-text-secondary);
  display: grid;
  gap: 9px;
  line-height: 1.5;
  margin: 0;
  padding: 18px 0 18px 22px;
}

.yape-payment__verification {
  align-items: end;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 18px;
}

.yape-payment__verification input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
  text-align: center;
}

.yape-payment__verification .btn {
  min-height: 44px;
  min-width: 140px;
}

.yape-payment__feedback {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 10px 0 0;
  min-height: 19px;
}

.yape-payment__feedback[data-state="success"] {
  color: var(--color-success);
}

.yape-payment__feedback[data-state="error"] {
  color: var(--color-danger);
}

.payment-checkout__form > .btn,
.payment-action > .btn {
  width: 100%;
}

.payment-checkout__form > .btn[hidden] {
  display: none !important;
}

.payment-checkout__notice {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 560px) {
  .payment-checkout__customer {
    grid-template-columns: 1fr;
  }

  .yape-payment__verification {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .yape-payment__verification .btn {
    width: 100%;
  }
}

.payment-result {
  width: min(620px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 64px;
}

.payment-result h1 {
  margin: 8px 0 12px;
  color: var(--color-text);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}

.payment-result > p:not(.section-kicker) {
  max-width: 56ch;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.payment-result__order {
  margin-top: 24px;
  padding-block: 14px;
  border-block: 1px solid var(--color-border);
  color: var(--color-text) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.payment-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.payment-result__actions [hidden] {
  display: none !important;
}

/* ========================================================================== 
   Order confirmation and customer tracking
   ========================================================================== */

.payment-processing,
.order-confirmation {
  margin-top: 22px;
}

.payment-processing[hidden],
.order-confirmation[hidden],
.payment-checkout__heading[hidden],
.payment-checkout__lines[hidden],
.payment-checkout__total[hidden],
.payment-checkout__notice[hidden] {
  display: none !important;
}

.payment-processing {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 82px;
  border-block: 1px solid var(--color-border);
}

.payment-processing__indicator {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: orderSpin 800ms linear infinite;
}

@keyframes orderSpin {
  to { transform: rotate(360deg); }
}

.payment-processing strong {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

.payment-processing p {
  margin: 3px 0 0;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-confirmation__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #238636;
  border-radius: 50%;
  color: #238636;
  background: color-mix(in srgb, #238636 8%, transparent);
}

[data-theme="dark"] .order-confirmation__mark {
  border-color: #3fb950;
  color: #3fb950;
}

.order-confirmation h2 {
  margin: 7px 0 9px;
  color: var(--color-text);
  font-size: 1.65rem;
  letter-spacing: 0;
}

.order-confirmation > p:not(.section-kicker) {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.order-confirmation__meta {
  margin: 22px 0 0;
  border-top: 1px solid var(--color-border);
}

.order-confirmation__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border);
}

.order-confirmation__meta dt {
  color: var(--color-text-tertiary);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.order-confirmation__meta dd {
  margin: 0;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 650;
  text-align: right;
}

.order-progress {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.order-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  min-height: 62px;
}

.order-progress li > span {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 5px 0 0 5px;
  border: 2px solid var(--color-border-hover);
  border-radius: 50%;
  background: var(--color-surface);
}

.order-progress li:not(:last-child)::after {
  position: absolute;
  top: 17px;
  bottom: -4px;
  left: 9px;
  width: 1px;
  content: '';
  background: var(--color-border);
}

.order-progress li.is-complete > span,
.order-progress li.is-current > span {
  border-color: #1d9bf0;
  background: #1d9bf0;
}

.order-progress li.is-current > span {
  outline: 4px solid color-mix(in srgb, #1d9bf0 15%, transparent);
}

.order-progress li > div {
  display: grid;
  align-content: start;
  gap: 3px;
}

.order-progress strong {
  color: var(--color-text);
  font-size: 0.88rem;
}

.order-progress small {
  color: var(--color-text-tertiary);
  font-size: 0.76rem;
  line-height: 1.4;
}

.order-confirmation__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.order-confirmation__actions .btn {
  width: 100%;
}

.order-confirmation__email {
  margin-top: 15px !important;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem !important;
}

.orders-page {
  min-height: calc(100vh - 180px);
  padding-top: 112px;
  padding-bottom: 72px;
}

.orders-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.orders-header h1 {
  margin: 7px 0 5px;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.orders-header > div > p:last-child {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: 0.84rem;
}

.icon-text-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-text-secondary);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.icon-text-button:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.icon-text-button[aria-busy="true"] svg,
#refresh-orders-btn[aria-busy="true"] svg {
  animation: orderSpin 800ms linear infinite;
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  min-height: 560px;
}

.order-index {
  border-right: 1px solid var(--color-border);
}

.order-index__row {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 18px 20px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.order-index__row:hover,
.order-index__row.is-active {
  background: var(--color-surface-2);
}

.order-index__row.is-active {
  box-shadow: inset 2px 0 #1d9bf0;
  padding-left: 14px;
}

.order-index__top,
.order-index__bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-index__top strong {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-index__top small,
.order-index__product {
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
}

.order-index__product {
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-index__bottom > strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-secondary);
  font-size: 0.69rem;
  font-weight: 650;
  white-space: nowrap;
}

.order-status--preparing {
  border-color: color-mix(in srgb, #1d9bf0 45%, var(--color-border));
  color: #1577b7;
}

[data-theme="dark"] .order-status--preparing { color: #71c4f8; }
.order-status--delivered { border-color: color-mix(in srgb, #238636 50%, var(--color-border)); color: #238636; }
[data-theme="dark"] .order-status--delivered { color: #56d364; }
.order-status--expired { color: var(--color-danger); }

.order-detail {
  min-width: 0;
  padding: 30px 0 0 42px;
}

.order-detail__placeholder,
.orders-empty {
  display: grid;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: var(--color-text-secondary);
}

.orders-empty {
  padding-right: 20px;
}

.orders-empty h2 {
  margin: 14px 0 7px;
  color: var(--color-text);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.orders-empty p {
  max-width: 31ch;
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.orders-empty__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.order-detail__header,
.order-detail__section-head,
.order-detail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.order-detail__header {
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.order-detail__header h2 {
  margin: 6px 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.order-detail__header p:last-child,
.order-detail__eta {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.order-detail__summary {
  padding: 21px 0;
  border-bottom: 1px solid var(--color-border);
}

.order-detail__summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
}

.order-detail__summary li,
.order-detail__summary > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-detail__summary li span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.order-detail__summary li small {
  margin-left: 8px;
  color: var(--color-text-tertiary);
}

.order-detail__summary li strong,
.order-detail__summary > div strong {
  flex: 0 0 auto;
  color: var(--color-text);
  font-size: 0.86rem;
}

.order-detail__summary > div {
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

.order-detail__progress,
.order-delivery {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.order-detail__section-head h3 {
  margin: 5px 0 0;
  color: var(--color-text);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.order-detail__eta {
  max-width: 68ch;
  margin-top: 12px;
}

.order-progress--page {
  max-width: 540px;
  margin-top: 22px;
}

.order-delivery pre {
  max-height: 320px;
  overflow: auto;
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-text);
  background: var(--color-surface-2);
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.order-delivery > p {
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.order-detail__footer {
  min-height: 58px;
}

.live-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
}

.live-update i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #238636;
}

[data-theme="dark"] .live-update i { background: #3fb950; }

.text-action {
  padding: 0;
  border: 0;
  color: #1577b7;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

[data-theme="dark"] .text-action { color: #71c4f8; }
.text-action:disabled { color: var(--color-text-tertiary); cursor: not-allowed; }

@media (max-width: 800px) {
  .orders-layout {
    grid-template-columns: 1fr;
  }

  .order-index {
    border-right: 0;
  }

  .order-index__row {
    padding-right: 0;
  }

  .order-index__row.is-active {
    padding-left: 12px;
  }

  .order-detail {
    padding: 28px 0 0;
  }
}

@media (max-width: 560px) {
  .order-confirmation__actions {
    grid-template-columns: 1fr;
  }

  .orders-page {
    padding-top: 90px;
  }

  .orders-header {
    align-items: flex-start;
  }

  .orders-header h1 {
    font-size: 1.65rem;
  }

  .icon-text-button span {
    display: none;
  }

  .icon-text-button {
    width: 38px;
    padding: 0;
  }

  .order-detail__header {
    display: grid;
  }

  .order-detail__header .order-status {
    justify-self: start;
  }
}

/* ==========================================================================
   20. Reviews Section (.reviews-section)
   ========================================================================== */

.reviews-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.reviews-section__header {
  margin-bottom: 32px;
}

.reviews-section__header-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-section__header-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
}

.reviews-section__rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-section__rating-avg {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.reviews-section__stars {
  display: flex;
  gap: 2px;
}

.reviews-section__count {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.review-item:hover {
  border-color: var(--color-text-secondary);
}

.review-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-item__author-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-item__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-item__date {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.review-item__stars {
  display: flex;
  gap: 2px;
}

.review-item__comment {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Star SVG Icons styling */
.star {
  color: var(--color-border);
  flex-shrink: 0;
}

.star--filled {
  color: #f59e0b; /* Golden Yellow */
}

@media (min-width: 768px) {
  .reviews-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   37. Admin Page Styles
   ========================================================================== */

.admin-page {
  padding: 120px 0 60px;
}

.admin-header {
  margin-bottom: 32px;
}

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

.admin-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-text);
}

.admin-header__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
}

.admin-stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

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

.admin-controls__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.admin-controls__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.admin-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--color-text);
  transition: all var(--transition);
}

.admin-search-input:focus {
  border-color: var(--color-border-hover);
  outline: none;
}

.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.admin-select {
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
}

.admin-select:focus {
  border-color: var(--color-border-hover);
}

.admin-table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  margin-bottom: 32px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  padding: 16px 24px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 24px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  transition: background-color var(--transition);
}

.admin-table tbody tr:hover {
  background-color: var(--color-hover-bg);
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-product-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.admin-product-info {
  display: flex;
  flex-direction: column;
}

.admin-product-name {
  font-weight: 600;
  color: var(--color-text);
}

.admin-product-id {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-badge--category {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.admin-badge--discount {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.admin-badge--popular {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.admin-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-price-row {
  white-space: nowrap;
}

.admin-price-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-right: 4px;
}

.admin-price-value {
  font-weight: 500;
}

.admin-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

.admin-color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-color-preview {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.admin-color-input {
  width: 48px;
  height: 32px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: transparent;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

@media (max-width: 768px) {
  .admin-header__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-controls__left {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-wrapper {
    max-width: 100%;
  }
}

/* ==========================================================================
   38. Design Polish, Contrast & Layout Improvements
   ========================================================================== */

/* Section Dividers & Margins */
.hero {
  border-bottom: 1px solid var(--color-border);
}

.reviews-section {
  padding-bottom: 40px; /* spacing at the bottom of the section */
}

/* Custom Select Dropdowns Chevron */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236e6e73'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px !important;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Logitech-inspired light surfaces: neutral product wells on pure white. */
:root:not([data-theme="dark"]) .product-card__visual,
:root:not([data-theme="dark"]) .product-detail__visual,
:root:not([data-theme="dark"]) .cart-item__visual,
:root:not([data-theme="dark"]) .search-suggestion-item__image {
  background: #eeeeee !important;
}

:root:not([data-theme="dark"]) .product-card__visual,
:root:not([data-theme="dark"]) .product-detail__visual {
  border-color: #eeeeee;
}

/* Product-specific placeholder used until a dedicated cover is assigned. */
.product-card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  color: #17191c !important;
  text-shadow: none;
  letter-spacing: 0;
  border-radius: inherit;
  border: 1px solid #dedede;
  background: #e7e7e7;
  box-shadow: none;
  overflow: hidden;
}

.product-card__fallback--visible {
  display: flex;
}

.product-card__fallback-mark {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem;
  border-bottom: 3px solid var(--brand-color, #1d9bf0);
  color: inherit;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.product-card__fallback-name {
  display: -webkit-box;
  max-width: 92%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

[data-theme="dark"] .product-card__fallback {
  color: #f2f3f5 !important;
  border-color: #2f3338;
  background: #1c1f23;
}

.product-card__fallback--small {
  font-size: 0.875rem;
}

.product-card__fallback--small .product-card__fallback-name,
.product-card__fallback--medium .product-card__fallback-name {
  display: none;
}

.product-card__fallback--medium {
  font-size: 1.25rem;
}

.product-card__fallback--large {
  font-size: 2.5rem;
}

.product-card__fallback--xlarge {
  font-size: 4.5rem;
}

.product-card__fallback--xlarge .product-card__fallback-name {
  max-width: 78%;
  font-size: 1rem;
}

/* Dark Mode Contrast Fixes */
[data-theme="dark"] .btn--secondary {
  background: var(--color-surface);
  color: var(--color-text) !important;
  border-color: var(--color-border);
}

[data-theme="dark"] .btn--secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
}

[data-theme="dark"] .search__suggestions {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: none;
}

[data-theme="dark"] .search-suggestion-item:hover {
  background-color: var(--color-hover-bg);
}

[data-theme="dark"] .search__input:focus {
  background: var(--color-surface-2);
}

[data-theme="dark"] .filters__active-bg {
  background: var(--color-surface-2);
  box-shadow: none;
}

/* ==========================================================================
   Custom Dropdown Selects (.custom-select)
   ========================================================================== */

.custom-select {
  position: relative;
  display: inline-block;
  min-width: 180px;
  font-family: var(--font);
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
  text-align: left;
}

.custom-select__trigger:hover {
  border-color: var(--color-border-hover);
}

.custom-select__trigger--active {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.custom-select__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.custom-select__chevron {
  color: var(--color-text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.custom-select__trigger--active .custom-select__chevron {
  transform: rotate(180deg);
  color: var(--color-text);
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  animation: dropdownFadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-select__options.hidden {
  display: none !important;
}

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

.custom-select__option {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__option:hover {
  background: var(--color-hover-bg);
  color: var(--color-text);
}

.custom-select__option--selected {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

/* Dark mode adjustments for custom select */
[data-theme="dark"] .custom-select__options {
  background: var(--color-surface);
  box-shadow: none;
  border-color: var(--color-border);
}

[data-theme="dark"] .custom-select__option--selected {
  background: rgba(0, 102, 204, 0.15);
  color: #3b82f6;
}
