:root {
  --color-primary: #FF6B6B;
  --color-primary-dark: #E85D5D;
  --color-secondary: #4ECDC4;
  --color-secondary-dark: #3DB8AF;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin: var(--space-12) 0 var(--space-8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.btn--full {
  width: 100%;
  padding: var(--space-4);
  font-size: 1.05rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font: inherit;
}

.link-btn:hover {
  color: var(--color-primary-dark);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo__mark {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  position: relative;
}

.logo__mark::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 2px;
  width: 20px;
  height: 8px;
  border-radius: 10px 10px 0 0;
  background: var(--color-primary-dark);
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav {
  display: none;
  gap: var(--space-6);
}

.nav a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}

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

.cart-toggle {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Views Setup */
.view {
  display: block;
  animation: fadeIn var(--transition);
}

.view.hidden {
  display: none !important;
}

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

/* Hero */
.hero {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.72) 100%), url('/assets/hero_pattern_bg.jpg');
  background-size: auto, 380px;
  background-repeat: repeat;
  background-position: center;
  padding: var(--space-16) 0 var(--space-14);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__content h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero__timer {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-8);
}

.timer__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.timer__digits {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-text);
}

.timer__sep {
  opacity: 0.4;
  font-weight: 400;
}

/* Trust */
.trust {
  background: var(--color-surface);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.trust__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  font-size: 0.95rem;
}

.trust__item i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* Shop Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 107, 0.2);
}

.product-img {
  aspect-ratio: 1/1;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Updated to 0 for full-bleed images */
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Explicit targeted rules matching the focused elements */
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(1) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(2) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(3) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(4) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(5) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(6) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(7) > div:nth-of-type(1),
main#main-content:nth-of-type(1) > div#shop-view:nth-of-type(1) > section#shop:nth-of-type(3) > div:nth-of-type(1) > div#productGrid:nth-of-type(1) > article:nth-of-type(8) > div:nth-of-type(1) {
  padding: 0;
  overflow: hidden;
}

.product-img svg {
  width: 80%;
  height: auto;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed, 0.3s) ease;
}

.product-card:hover .product-thumbnail {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-5);
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.product-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-5);
  min-height: 40px;
}

/* Back Button */
.back-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--color-text);
  background: var(--color-border);
}

/* Customization Layout */
.customize-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .customize-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Large Preview Panel */
.preview-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cap-display {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.preview__svg {
  width: 100%;
  height: auto;
  max-height: 320px;
}

.live-text {
  position: absolute;
  top: 69.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.5vw, 2.2rem);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 1.5px 4px rgba(0,0,0,0.4);
  pointer-events: none;
  text-align: center;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Options/Controls Panel */
.options-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.options-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.options-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form__group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.label__hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.form__group input, .form__group select, .form__group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: var(--transition);
}

.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.input__wrapper {
  position: relative;
}

.input__counter {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Nickname Chips styling */
.nickname-chips {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: #FFFBEB;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-warning);
}

.chips__label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #B45309;
}

.chips__list {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Revealed Price Block */
.price-reveal {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.price-breakdown {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.breakdown-row--total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  margin-top: var(--space-2);
}

.breakdown-divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2) 0;
}

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

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

.hidden {
  display: none !important;
}

/* Drawers */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.drawer[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer[aria-hidden="false"] .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
  z-index: 10;
}

.drawer__close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

/* Steps Section */
.how {
  background: var(--color-surface);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
}

.step__num {
  width: 40px;
  height: 40px;
  background: rgba(78, 205, 196, 0.1);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Support Cards */
.support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.support__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.support__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.support__card i {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.support__card h3 {
  font-size: 1.15rem;
}

.support__card p {
  font-size: 1.1rem;
  font-weight: 600;
}

.support__card small {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Cart Items inside Drawer */
.cart-items {
  margin: var(--space-4) 0;
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  position: relative;
}

.cart-item__img {
  width: 60px;
  height: 60px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.cart-item__img svg {
  width: 80%;
  height: auto;
}

.cart-item__details {
  flex: 1;
}

.cart-item__details h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cart-item__details p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cart-item__price {
  font-weight: 700;
  align-self: center;
}

.cart-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
}

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

.cart-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.cart-total {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* Modal Styling */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal__content {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.modal[aria-hidden="false"] .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

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

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.checkout-form .form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .checkout-form .form__row {
    grid-template-columns: 1fr;
  }
}

/* Checkbox Style */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-4);
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  cursor: pointer;
}

/* Footer styling */
.footer {
  background: var(--color-surface);
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand p {
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

.footer__links h4, .footer__legal h4 {
  margin-bottom: var(--space-3);
  font-size: 1rem;
}

.footer__links a, .footer__legal button {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
  text-align: left;
}

.footer__links a:hover, .footer__legal button:hover {
  color: var(--color-primary);
}

.footer__bottom {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
}

/* Color Swatch Selector */
.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: var(--space-2); /* 8px spacing */
  align-items: center;
  margin-top: var(--space-2);
}

.swatch-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: var(--transition);
  outline: none;
}

.swatch-btn:hover {
  transform: scale(1.05);
}

.swatch-btn.active {
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-text);
}

.swatch-btn:focus-visible {
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-text), 0 0 0 4px var(--color-secondary);
}

/* Perfect alignment and sizing for the custom name text on the beanie */
main#main-content:nth-of-type(1) > div#customize-view:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div#capDisplay:nth-of-type(1) > svg#capPreview:nth-of-type(1) > text:nth-of-type(1) > textpath#liveText:nth-of-type(1) {
  font-size: 20px !important;
  font-weight: 800 !important;
  dominant-baseline: central !important;
  letter-spacing: 1.5px !important;
  fill: #FFFFFF !important;
}
