:root {
  /* Färgpalett - Bas */
  --color-white: #F4F4F4;
  --color-creme: #FAF5F0;
  --color-black: #000000;
  
  /* Färgpalett - Mörka */
  --color-purple: #230032;
  --color-burgundy: #411423;
  --color-forest: #324123;
  
  /* Färgpalett - Ljusare/Mattare varianter */
  --color-purple-muted: #5F4669;
  --color-burgundy-muted: #6E4650;
  --color-forest-muted: #64735A;

  /* Tema-mappning (Applikation) */
  --bg-color-main: var(--color-white);
  --bg-color-creme: var(--color-creme);
  --text-color-main: var(--color-purple);
  --text-color-muted: var(--color-forest);
  --border-color: var(--color-black);
  
  --hero-bg-color: var(--color-burgundy);
  --hero-text-color: var(--color-creme);
  --input-focus-border: var(--color-black);

  /* Typografi */
  --font-family-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-serif: "Forum", Georgia, serif;
  /* Typografi - Storlekar (Ändra här för att påverka hela sidan) */
  --size-h1: 76px;
  --size-h2: 60px;
  --size-h2-alt: 60px;
  --size-h3: 24px;
  --size-h4: 24px;
  --size-h5: 18px;
  --size-p: 16px;
  --header-height: 54px;

  /* Realism / Poster Configurator Properties */
  --frame-width: clamp(8px, 1.5vh, 15px);
  --sunlight-blend: overlay;
  --sunlight-opacity: 0.18;
}

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

html,
body {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-serif);
  font-weight: 400;
}

h1 {
  font-size: var(--size-h1);
}

h2 {
  font-size: var(--size-h2);
}

h3 {
  font-size: var(--size-h3);
}

h4 {
  font-size: var(--size-h4);
}

h5 {
  font-size: var(--size-h5);
}

p {
  font-size: var(--size-p);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

/* ================= ANNOUNCEMENT BAR ================= */
.announcement-bar {
  background-color: var(--text-color-main);
  color: var(--bg-color-main);
  text-align: center;
  padding: 8px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.announcement-bar:hover {
  opacity: 0.85;
}

/* ================= HEADER ================= */
.site-header {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background-color: var(--bg-color-main);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-color);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.header-nav,
.header-icons {
  display: flex;
  gap: 1.5rem;
}

.header-nav a,
.header-icons a {
  font-size: 11px;
  text-transform: capitalize;
}

/* ================= HERO SECTION (50/50 SPLIT) ================= */
.hero-section {
  width: 100%;
  padding: 0 16px;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  width: 100%;
}

.hero-block {
  display: flex;
  flex-direction: column;
}

.hero-block-text {
  background-color: var(--hero-bg-color);
  color: var(--hero-text-color);
  justify-content: flex-end;
  padding: 4rem;
}

.hero-title {
  font-size: var(--size-h1);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: var(--size-p);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-block-image {
  background-color: #e5e5e5;
  background-image: url('img/AstralTraces_Hero.jpg');
  background-size: cover;
  background-position: center;
}

/* ================= PLANET GENERATOR SECTION ================= */
.usp-config-section {
  height: auto;
  padding: 0;
  background-color: #ffffff;
}

.configurator-header {
  text-align: center;
  padding: 80px 16px 40px 16px;
  background-color: #ffffff;
}

.configurator-header h2 {
  font-family: var(--font-family-serif);
  font-size: var(--size-h2);
  font-weight: 400;
  margin: 0;
  color: var(--text-color-main);
  letter-spacing: -0.01em;
}

.usp-product-layout {
  width: 100%;
  height: calc(100vh - var(--header-height));
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 50vw 50vw;
  /* Strict 50/50 */
  gap: 0;
  align-items: stretch;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.usp-product-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Centered poster as requested */
  background: url('img/AT_Poster-Background.jpg') center/cover no-repeat;
  padding: 3vh 6vw;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  container-type: size; /* Enable container queries for the room container */
}

.usp-product-gallery.show-room-view {
  background: #ffffff;
}

.usp-artboard-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Centered */
}

.usp-artboard {
  position: relative;
  /* Scale applied via size classes */
  width: auto;
  aspect-ratio: 5/7;
  /* default 50x70 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  flex-shrink: 0;
  /* Prevents the poster from shrinking when a frame is added */
  /* Removed padding to fix absolute positioning coordinates */
  transition: all 0.5s ease;
  container-type: inline-size;
  /* Enable container queries for scalable typography */

  /* Paper realism: clean paper shadow when no frame is active */
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.08);

  /* ================= DEFAULT POSTER LAYOUT VARIABLES (50x70) ================= */
  --solar-width: 85.714%;
  --solar-y: 40.3%;
  --title-font-size: 2.2cqw;
  --title-top: 73.5%;
  --title-width: 80%;
  --title-left: 10%;
  --date-font-size: 7.5cqw;
  --date-top: 77.3%;
  --text-font-size: 1.2cqw;
  --text-top: 84%;
  --text-width: 46%;
  --text-left: 27%;
}

/* Sunlight overlay on top of poster artwork and frame */
.usp-artboard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('img/AT_Poster-Background.jpg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: var(--sunlight-blend, overlay);
  opacity: var(--sunlight-opacity, 0.18);
  pointer-events: none;
  z-index: 10; /* Sits on top of SVG planets, dates, and names */
  transition: all 0.5s ease;
}

/* Artboard Themes */
.theme-dawn {
  background: #F9F6F0;
  color: #38422A;
}

.theme-dawn .orbit {
  stroke: #A89F91;
  opacity: 0.8;
}

.theme-dawn .sun,
.theme-dawn .planet circle {
  fill: #38422A;
  stroke: #38422A;
}

.theme-space {
  background: #23022E;
  color: #FAF5F0;
}

.theme-space .orbit {
  stroke: rgba(250, 245, 240, 0.4);
  opacity: 0.8;
}

.theme-space .sun,
.theme-space .planet circle {
  fill: #FAF5F0;
}

.theme-forest {
  background: #38422A;
  color: #FAF5F0;
}

.theme-forest .orbit {
  stroke: rgba(250, 245, 240, 0.3);
  opacity: 0.8;
}

.theme-forest .sun,
.theme-forest .planet circle {
  fill: #FAF5F0;
}

.theme-ash {
  background: #111111;
  color: #FAF5F0;
}

.theme-ash .orbit {
  stroke: rgba(250, 245, 240, 0.3);
  opacity: 0.8;
}

.theme-ash .sun,
.theme-ash .planet circle {
  fill: #FAF5F0;
}

.theme-moon {
  background: #F4F4F4;
  color: #111111;
}

.theme-moon .orbit {
  stroke: rgba(17, 17, 17, 0.3);
  opacity: 0.8;
}

.theme-moon .sun,
.theme-moon .planet circle {
  fill: #111111;
}

.theme-sunset {
  background: #4F172B;
  color: #FAF5F0;
}

.theme-sunset .orbit {
  stroke: rgba(250, 245, 240, 0.3);
  opacity: 0.8;
}

.theme-sunset .sun,
.theme-sunset .planet circle {
  fill: #FAF5F0;
}

/* Theme Selector UI - See line 772 for active version */

/* Typography Setup */
.usp-poster-info {
  font-family: var(--font-family-serif);
}

/* Artboard Sizes */
.size-30x40 {
  aspect-ratio: 3/4;
  height: 60%;

  /* --- Overrides for small format (30x40) --- */
  --solar-width: 80%;
  --solar-y: 38%;
  --title-font-size: 2.8cqw;
  --title-top: 70%;
  --date-font-size: 8.5cqw;
  --date-top: 74.5%;
  --text-font-size: 1.6cqw;
  --text-top: 82%;
  --text-width: 54%;
  --text-left: 23%;
}

.size-50x70 {
  aspect-ratio: 5/7;
  height: 75%;
  /* Medium format inherits defaults from .usp-artboard */
}

.size-70x100 {
  aspect-ratio: 7/10;
  height: 90%;

  /* --- Overrides for large format (70x100) --- */
  --solar-width: 90%;
  --solar-y: 42.5%;
  --title-font-size: 1.8cqw;
  --title-top: 75.5%;
  --date-font-size: 6.5cqw;
  --date-top: 79%;
  --text-font-size: 0.95cqw;
  --text-top: 85%;
  --text-width: 40%;
  --text-left: 30%;
}

/* Poster Typography & Layout (Uses variables driven by format overrides) */
.usp-artboard #display-title {
  display: none;
  font-family: var(--font-family-serif);
  font-size: var(--title-font-size);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-align: center;
  position: absolute;
  top: var(--title-top);
  left: var(--title-left);
  right: var(--title-left);
  width: var(--title-width);
  line-height: 1.2;
}

/* Maintain font-traditional class for backwards compatibility with print scripts */
.font-traditional #display-title,
.usp-artboard.has-title #display-title {
  display: block;
}

.usp-artboard #display-custom-text {
  display: block;
  font-family: var(--font-family-serif);
  font-size: var(--text-font-size);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  line-height: 1.5;
  position: absolute;
  top: var(--text-top);
  bottom: auto;
  left: var(--text-left);
  right: var(--text-left);
  width: var(--text-width);
  text-align: center;
}

.usp-artboard #display-date {
  font-family: var(--font-family-serif);
  font-size: var(--date-font-size);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  position: absolute;
  top: var(--date-top);
  left: 0;
  right: 0;
  text-align: center;
}

.usp-poster-info {
  margin-top: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  text-align: center;
  font-family: var(--font-family-serif);
}

.usp-artboard #solar-system {
  position: absolute;
  top: var(--solar-y);
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--solar-width);
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.usp-artboard #solar-svg {
  width: 100%;
  height: 100%;
}

#solar-system {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#solar-svg {
  width: 100%;
  height: auto;
  transform-origin: center;
}

.orbit {
  fill: none;
  stroke-width: 1.5px;
  opacity: 0.8;
}

#loading-indicator {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* CONFIGURATOR FORM (DASHBOARD STYLE) */
.usp-product-configurator {
  padding: 0 40px 24px 40px;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.usp-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  overflow-y: auto;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

/* 2-Column Grid for Date, Greeting (left) & Theme selector (right) */
.config-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.config-left-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-right-col {
  display: flex;
  flex-direction: column;
}

/* Theme Selector Card */
.theme-card-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
}

.theme-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-main);
  margin-bottom: 0px;
}

.theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.theme-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.theme-btn.active,
.theme-btn:hover {
  opacity: 1;
  border-color: var(--text-color-main);
}

.theme-btn.active {
  box-shadow: 0 0 0 1px var(--text-color-main);
}

.theme-btn:hover {
  transform: translateY(-1px);
}

.theme-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
}

.theme-name {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-color-main);
  letter-spacing: 0.05em;
  padding-bottom: 2px;
}

/* Theme Selector Image Preview */
.theme-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom controls wrapping */
.config-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.usp-input-group label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-main);
}

.usp-input {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 0;
}

.astra-button-wrapper {
  display: flex;
  margin-bottom: 4px;
}

.manual-text-details {
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fafafa;
}

.manual-text-summary {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.manual-text-summary::-webkit-details-marker {
  display: none;
}

.manual-text-summary::after {
  content: "+";
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color-muted);
  transition: transform 0.2s ease;
}

.manual-text-details[open] .manual-text-summary::after {
  content: "−";
}

.manual-text-content {
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manual-text-content .usp-input-group {
  margin-bottom: 0;
}

#custom-text {
  height: 90px;
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: none;
  color: #111111;
}

#occasion-input {
  height: 90px;
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: none;
  color: #111111;
}

#custom-text::placeholder {
  color: #a8a8a8;
  font-size: 11px;
  line-height: 1.5;
}

/* Generera Button (Colorful Gradient, Dark Purple, Square corners, Taller) */
.usp-btn-secondary {
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  height: 44px; /* Taller (h-11 equivalent) */
  padding: 0 24px;
  background-color: var(--color-purple); /* Dark Purple brand color */
  color: var(--color-creme);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle dark border */
  border-radius: 0px; /* Sharp corners (no border radius) */
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 6px;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Background blur gradient (indigo to purple to pink) */
.usp-btn-secondary .btn-gradient-bg {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px; /* Expand slightly outside to avoid muddy edge clipping */
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  opacity: 0; /* Hidden by default */
  filter: blur(12px);
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover and active states */
.usp-btn-secondary:hover:not(:disabled) .btn-gradient-bg {
  opacity: 0.75;
  filter: blur(8px);
}

.usp-btn-secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.75); /* Brighter border */
  animation: button-glow-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes button-glow-pulse {
  0% {
    box-shadow: 
      0 0 4px rgba(99, 102, 241, 0.4),
      0 0 8px rgba(168, 85, 247, 0.3),
      0 0 12px rgba(236, 72, 153, 0.2);
  }
  100% {
    box-shadow: 
      0 0 10px rgba(99, 102, 241, 0.55),
      0 0 18px rgba(168, 85, 247, 0.45),
      0 0 26px rgba(236, 72, 153, 0.35);
  }
}

.usp-btn-secondary:active:not(:disabled) {
}

.usp-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading background pulse */
.usp-btn-secondary .btn-gradient-bg.loading {
  opacity: 0.5;
  animation: gradient-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes gradient-pulse {
  from { opacity: 0.35; filter: blur(10px); }
  to { opacity: 0.65; filter: blur(14px); }
}

/* Relative content layout */
.usp-btn-secondary .btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.usp-btn-secondary .btn-content span {
  color: var(--color-creme);
  font-family: var(--font-family-sans);
  font-weight: 600;
}

.astra-btn-icon {
  width: 17px; /* A bit larger */
  height: 17px; /* A bit larger */
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
}

.astra-btn-icon.rotating {
  animation: astra-rotate 2s linear infinite;
}

@keyframes astra-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Spinner for loading state */
.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

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

#buy-poster {
  margin-top: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 30px;
}

.usp-shipping-info {
  grid-column: span 2;
  font-size: 10px;
  margin-top: 8px;
}

/* Removed duplicate gallery padding */

.usp-artboard {
  max-height: 80vh;
}

.usp-config-header {
  margin-bottom: 1rem;
}

.usp-product-title {
  font-family: var(--font-family-sans);
  font-size: 1.2rem;
  /* Reduced from h3 */
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.usp-product-price {
  font-size: 1.1rem;
  color: var(--text-color-muted);
  margin-bottom: 0;
}

.usp-product-desc {
  font-size: 0.9rem;
  color: var(--text-color-muted);
  line-height: 1.6;
}

/* Removed conflicting usp-controls block */
.usp-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 10;
}

.usp-input-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-main);
  margin-bottom: 2px;
}

.input-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}

.input-header-flex label {
  margin-bottom: 0;
}

.astra-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-bg-color);
  border: 1.5px solid var(--hero-bg-color);
  padding: 1px 5px;
  border-radius: 2px;
  opacity: 0.85;
  user-select: none;
  font-family: var(--font-family-sans);
  line-height: 1.2;
}

.usp-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: transparent;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-color-main);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

/* Custom select styling */
.date-select-container {
  display: flex;
  gap: 8px;
}

.date-select {
  flex: 1;
  min-width: 0;
  padding: 6px 32px 6px 12px;
  font-size: 11px;
}

/* Language Selector */
.lang-selector-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-color-main);
  opacity: 0.85;
}

.lang-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-color-main);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s ease, border-bottom-color 0.2s ease;
  border-bottom: 1px solid transparent;
  line-height: 1;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn.active {
  opacity: 1;
  border-bottom: 1px solid var(--text-color-main);
}

.header-lang-selector {
  margin-top: 0;
  margin-right: 0.25rem;
}

.header-lang-selector .lang-btn {
  font-size: 10px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .header-right,
  .header-left {
    gap: 1rem !important;
  }
  .header-icons {
    gap: 0.75rem !important;
  }
}

.lang-divider {
  opacity: 0.3;
  font-size: 9px;
  pointer-events: none;
  user-select: none;
}

select.usp-input {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2323022E%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}


.usp-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 1px var(--input-focus-border);
}

.usp-btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--text-color-main);
  color: var(--bg-color-main);
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.usp-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.usp-shipping-info {
  text-align: center;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-color-muted);
}

/* ================= GALLERY SECTION ================= */
.gallery-section {
  padding: 4rem 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-header h2 {
  font-size: var(--size-h2);
  /* Match other section titles */
  font-weight: 400;
  margin-bottom: 3rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 5/4; /* Anpassad efter 5:4 bilderna i liggande format */
  object-fit: cover;
  background-color: #f0f0f0;
}

.gallery-item-info {
  margin-top: 0.5rem;
}

.gallery-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-item-artist {
  font-size: 0.8rem;
  color: var(--text-color-muted);
}

/* ================= OCCASIONS SECTION ================= */
.occasions-section {
  padding: 80px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.occasion-card {
  display: flex;
  flex-direction: column;
}

.occasion-image {
  width: 100%;
  aspect-ratio: 4/5;
  margin-bottom: 24px;
  overflow: hidden;
  background-color: #e5e5e5;
}

.occasion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.occasion-card:hover .occasion-image img {
  transform: scale(1.05);
}

.occasion-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h3);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
  /* Reduced to sit closer to subtitle */
}

.occasion-subtitle {
  font-family: var(--font-family-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-main);
  display: block;
  margin-bottom: 16px;
}

.occasion-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color-main);
}

/* ================= HOW IT WORKS (STEPS) SECTION ================= */
.steps-section {
  background-color: var(--hero-bg-color); /* Burgundy (#4F172B) */
  color: var(--color-creme);
  padding: 60px 16px 80px 16px; /* Mindre space ovanför rubrik, balanserad botten */
}

.steps-container {
  max-width: 1100px; /* Tryck ihop innehållet för bättre radlängd och sidmarginaler */
  margin: 0 auto;
}

.steps-main-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h2-alt); /* 60px */
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px; /* Något minskat avstånd till stegen */
  color: var(--color-creme);
  letter-spacing: -0.01em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px; /* Något minskat gap för att ge plats åt border/padding */
}

.step-card {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(250, 245, 240, 0.15); /* Tunn linje till vänster */
  padding-left: 20px;
  transition: border-color 0.3s ease;
}

.step-card:hover {
  border-color: rgba(250, 245, 240, 0.35); /* Lyser upp subtilt vid hover */
}

.step-number {
  font-family: var(--font-family-serif);
  font-size: 80px;
  line-height: 1;
  color: rgba(250, 245, 240, 0.15); /* Elegant translucent white */
  margin-bottom: 8px;
  user-select: none;
  transition: color 0.3s ease;
}

.step-card:hover .step-number {
  color: rgba(250, 245, 240, 0.4); /* Glow on hover */
}

.step-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h3);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-creme);
}

.step-copy {
  font-size: 13px; /* Slightly smaller copy */
  line-height: 1.6;
  color: rgba(250, 245, 240, 0.7); /* Soft light gray for secondary text */
  text-wrap: pretty; /* Motverkar fula radbrytningar och orphans */
}

/* ================= REVIEWS SECTION ================= */
.reviews-section {
  padding: 100px 16px;
  background-color: var(--color-burgundy); /* Burgundy */
}

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

.reviews-main-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h2-alt);
  font-weight: 400;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-creme);
  letter-spacing: -0.01em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-burgundy-muted); /* Matta burgundy */
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.review-stars {
  color: var(--color-creme); /* Ljusgrå/creme stjärnor */
  font-size: 14px;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-creme);
  font-style: italic;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.review-author {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(250, 245, 240, 0.6);
  font-weight: 600;
}

/* ================= FAQ SECTION ================= */
.faq-section {
  padding: 100px 16px;
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-main-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h2-alt);
  font-weight: 400;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-color-main);
  letter-spacing: -0.01em;
}

.faq-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
}

.faq-question {
  list-style: none;
  padding: 24px 40px 24px 0;
  font-family: var(--font-family-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color-main);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-color-main);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: "−"; /* Unicode minus sign */
}

.faq-answer {
  padding: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color-muted);
}

.faq-answer p {
  margin: 0;
  text-wrap: pretty;
}

/* ================= TRUST SECTION ================= */
.trust-section {
  padding: 120px 16px;
  background-color: var(--text-color-muted);
  /* Dark green #38422A */
  color: var(--bg-color-main);
  /* Light #F4F4F4 */
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-main-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h2-alt);
  font-weight: 400;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.01em;
  color: var(--bg-color-main);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-item-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h4);
  font-weight: 400;
  position: relative;
  padding-bottom: 12px;
  color: var(--bg-color-main);
}

.trust-item-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--bg-color-main);
}

.trust-item-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bg-color-main);
  opacity: 0.9;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--bg-color-main);
  padding: 4rem 16px 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-size: var(--size-h5);
  text-transform: none;
  /* Never uppercase serif */
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.newsletter-desc {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-color-muted);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-color-main);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
}

.newsletter-btn {
  padding: 0 1.5rem;
  background-color: var(--text-color-main);
  color: var(--bg-color-main);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  color: var(--text-color-muted);
}

.footer-left-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.footer-ai-disclosure {
  font-size: 9px;
  color: var(--text-color-muted);
  opacity: 0.45;
  line-height: 1.45;
  max-width: 340px;
}

.legal-links .footer-links {
  display: flex;
  gap: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer-left-meta {
    align-items: center;
    text-align: center;
  }
  .footer-ai-disclosure {
    max-width: 100%;
    margin: 0;
  }
  .legal-links .footer-links {
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --size-h1: clamp(36px, 8vw, 48px);
    --size-h2: clamp(28px, 6vw, 36px);
    --size-h2-alt: clamp(28px, 6vw, 36px);
    --size-h3: 20px;
    --size-h4: 20px;
    --size-h5: 16px;
    --size-p: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-block-text {
    padding: 3rem 1.5rem;
  }

  .hero-block-image {
    min-height: 400px;
  }

  .header-nav {
    display: none;
  }

  .footer-top {
    flex-direction: column;
  }

  .occasions-grid,
  .trust-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-grid,
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }

  .steps-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Webkit */
  }

  .step-card,
  .gallery-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .trust-main-title {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .steps-section {
    padding: 40px 16px 60px 16px;
  }

  .steps-main-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .reviews-section {
    padding: 60px 16px;
  }

  .reviews-main-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .review-card {
    padding: 32px 20px;
  }

  .faq-section {
    padding: 60px 16px;
  }

  .faq-main-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .faq-question {
    font-size: 15px;
    padding: 20px 40px 20px 0;
  }
}

/* ================= CART DRAWER ================= */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-color-main);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-header h3 {
  font-family: var(--font-family-sans);
  font-size: var(--size-h5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.cart-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color-main);
  line-height: 1;
}

.cart-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
  width: 80px;
  aspect-ratio: 5/7;
  background-color: #EAEAEA;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.cart-item-details h4 {
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-color-muted);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
}

/* DYNAMIC FRAME INJECTION */
.frame-upsell {
  background-color: #F9F6F0;
  padding: 20px;
  border-radius: 0;
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

.frame-upsell h4 {
  font-family: var(--font-family-serif);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-color-main);
}

.frame-upsell p {
  font-size: 13px;
  color: var(--text-color-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.frame-product {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #FFFFFF;
  padding: 12px;
  border-radius: 0;
}

.frame-img-placeholder {
  width: 40px;
  height: 40px;
  background-color: #C1A87D;
  /* Oak color representation */
  border-radius: 0;
  background-image: url('img/ramar/Frame_50x70_closeup_01_web_95f77b2e-ed10-43f6-9ff3-93d04be33a13.jpg');
  background-size: cover;
  background-position: center;
}

.frame-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-size: 12px;
}

.frame-name {
  font-weight: 600;
}

.frame-price {
  color: var(--text-color-muted);
}

.upsell-add-btn {
  background-color: var(--text-color-main);
  color: var(--bg-color-main);
  border: none;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.upsell-add-btn:hover {
  opacity: 0.8;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--bg-color-main);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.checkout-btn {
  margin-top: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .usp-config-section {
    padding: 20px 0;
  }

  .usp-product-layout {
    grid-template-columns: 1fr;
    height: auto; /* Unlock viewport height restriction */
    max-width: 100%;
    border-radius: 0;
  }

  .usp-product-gallery {
    padding: 24px;
    height: auto;
    min-height: auto;
    aspect-ratio: 4/5; /* Lock aspect ratio on mobile to prevent height collapse */
    position: relative;
    box-sizing: border-box;
  }

  .usp-artboard-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .usp-artboard {
    height: auto !important; /* Allow aspect-ratio to dictate height */
    width: 100%;
    max-width: 380px; /* Constrain size so it stays clean and elegant */
  }

  /* Fix collapsing room view and overflow on mobile */
  .usp-room-container {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  .usp-product-configurator {
    padding: 24px;
    height: auto; /* Let it grow naturally */
    overflow: visible;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .usp-controls {
    overflow-y: visible; /* Scroll naturally with the main page scroll */
    height: auto;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    gap: 20px;
  }

  .config-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



/* PREMIUM DETAILS (COL 3) */
.premium-details {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  margin-top: 2vh;
  padding-top: 2vh;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.detail-icon {
  font-size: 16px;
  opacity: 0.8;
}

.detail-text strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.detail-text p {
  font-size: 10px;
  color: var(--text-color-muted);
  line-height: 1.4;
  margin: 0;
}

/* Glass reflection and inner depth shadow when a frame is active */
.usp-artboard.frame-oak::before,
.usp-artboard.frame-black::before,
.usp-artboard.frame-white::before,
.usp-artboard.frame-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9; /* Sits below sunlight overlay (z-index 10) but above poster contents */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35), inset 0 0 2px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 18%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease;
}

.usp-artboard.frame-white::before {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15), inset 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Artboard Frames & Positioning */
.frame-oak {
  border: var(--frame-width) solid #DDAE8C; /* Clean warm light oak base */
  box-sizing: content-box;
  box-shadow: 
    inset 0 0 12px rgba(0, 0, 0, 0.22),
    0 20px 45px rgba(0, 0, 0, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.frame-black {
  border: var(--frame-width) solid #1F1F1F;
  box-sizing: content-box;
  box-shadow: 
    inset 0 0 12px rgba(0, 0, 0, 0.4),
    0 20px 45px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.frame-white {
  border: var(--frame-width) solid #FFFFFF;
  box-sizing: content-box;
  box-shadow: 
    inset 0 0 8px rgba(0, 0, 0, 0.08),
    0 20px 45px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.frame-dark {
  border: var(--frame-width) solid #2A170B; /* Dark wenge/walnut base */
  box-sizing: content-box;
  box-shadow: 
    inset 0 0 12px rgba(0, 0, 0, 0.35),
    0 20px 45px rgba(0, 0, 0, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

/* Expand sunlight overlay and glass reflection to cover the frame border */
.frame-oak::after,
.frame-black::after,
.frame-white::after,
.frame-dark::after,
.frame-oak::before,
.frame-black::before,
.frame-white::before,
.frame-dark::before {
  top: calc(-1 * var(--frame-width)) !important;
  left: calc(-1 * var(--frame-width)) !important;
  right: calc(-1 * var(--frame-width)) !important;
  bottom: calc(-1 * var(--frame-width)) !important;
}

/* Miter-jointed frame bars styling */
.frame-bar {
  display: none;
  position: absolute;
  background-repeat: repeat;
  z-index: 15; /* Sits exactly on top of the border area */
  transition: all 0.3s ease;
}

/* Show them only when a frame class is active */
.frame-oak .frame-bar,
.frame-black .frame-bar,
.frame-white .frame-bar,
.frame-dark .frame-bar {
  display: block;
}

/* Custom filters & opacities per wood type to make grain pop and adjust tint */
.frame-oak .frame-bar {
  opacity: 1.0;
  filter: contrast(0.95);
}

.frame-black .frame-bar {
  opacity: 0.72;
  filter: contrast(1.25) brightness(0.48);
}

.frame-white .frame-bar {
  opacity: 1.0;
}

.frame-dark .frame-bar {
  opacity: 0.88;
  filter: contrast(1.15) brightness(0.85);
}

/* Position and Clip-path trapezoids to form 45-degree miter joints */
.frame-bar-top {
  top: calc(-1 * var(--frame-width));
  left: calc(-1 * var(--frame-width));
  right: calc(-1 * var(--frame-width));
  height: var(--frame-width);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--frame-width)) 100%, var(--frame-width) 100%);
}

.frame-bar-bottom {
  bottom: calc(-1 * var(--frame-width));
  left: calc(-1 * var(--frame-width));
  right: calc(-1 * var(--frame-width));
  height: var(--frame-width);
  clip-path: polygon(var(--frame-width) 0, calc(100% - var(--frame-width)) 0, 100% 100%, 0 100%);
}

.frame-bar-left {
  top: calc(-1 * var(--frame-width));
  bottom: calc(-1 * var(--frame-width));
  left: calc(-1 * var(--frame-width));
  width: var(--frame-width);
  clip-path: polygon(0 0, 100% var(--frame-width), 100% calc(100% - var(--frame-width)), 0 100%);
}

.frame-bar-right {
  top: calc(-1 * var(--frame-width));
  bottom: calc(-1 * var(--frame-width));
  right: calc(-1 * var(--frame-width));
  width: var(--frame-width);
  clip-path: polygon(0 var(--frame-width), 100% 0, 100% 100%, 0 calc(100% - var(--frame-width)));
}

/* Frame specific backgrounds:
   Combines linear-gradients for 3D directional lighting (source: top-left)
   with wood textures scaled up for larger, clearer grain patterns. */

/* OAK FRAME */
.frame-oak .frame-bar-top {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), 
    linear-gradient(rgba(221, 174, 140, 0.84), rgba(221, 174, 140, 0.84)), 
    url('img/ramar/oak_wood_texture.png');
  background-blend-mode: normal, normal, normal;
  background-size: auto, auto, 350% 100%;
}
.frame-oak .frame-bar-bottom {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), 
    linear-gradient(rgba(221, 174, 140, 0.84), rgba(221, 174, 140, 0.84)), 
    url('img/ramar/oak_wood_texture.png');
  background-blend-mode: normal, normal, normal;
  background-size: auto, auto, 350% 100%;
}
.frame-oak .frame-bar-left {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), 
    linear-gradient(rgba(221, 174, 140, 0.84), rgba(221, 174, 140, 0.84)), 
    url('img/ramar/oak_wood_texture_vertical.png');
  background-blend-mode: normal, normal, normal;
  background-size: auto, auto, 100% 350%;
}
.frame-oak .frame-bar-right {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), 
    linear-gradient(rgba(221, 174, 140, 0.84), rgba(221, 174, 140, 0.84)), 
    url('img/ramar/oak_wood_texture_vertical.png');
  background-blend-mode: normal, normal, normal;
  background-size: auto, auto, 100% 350%;
}

/* BLACK FRAME */
.frame-black .frame-bar-top {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), 
    url('img/ramar/black_wood_texture.png');
  background-size: auto, 300% 100%;
}
.frame-black .frame-bar-bottom {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), 
    url('img/ramar/black_wood_texture.png');
  background-size: auto, 300% 100%;
}
.frame-black .frame-bar-left {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), 
    url('img/ramar/black_wood_texture_vertical.png');
  background-size: auto, 100% 300%;
}
.frame-black .frame-bar-right {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), 
    url('img/ramar/black_wood_texture_vertical.png');
  background-size: auto, 100% 300%;
}

/* WHITE FRAME (Clean lacquered white, no wood texture, just 3D shading) */
.frame-white .frame-bar-top {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
}
.frame-white .frame-bar-bottom {
  background-image: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06));
}
.frame-white .frame-bar-left {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
}
.frame-white .frame-bar-right {
  background-image: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06));
}

/* DARK WOOD FRAME */
.frame-dark .frame-bar-top {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), 
    linear-gradient(rgba(75, 44, 21, 0.78), rgba(75, 44, 21, 0.78)), 
    url('img/ramar/oak_wood_texture.png');
  background-blend-mode: normal, multiply, normal;
  background-size: auto, 350% 100%, 350% 100%;
}
.frame-dark .frame-bar-bottom {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
    linear-gradient(rgba(75, 44, 21, 0.78), rgba(75, 44, 21, 0.78)), 
    url('img/ramar/oak_wood_texture.png');
  background-blend-mode: normal, multiply, normal;
  background-size: auto, 350% 100%, 350% 100%;
}
.frame-dark .frame-bar-left {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), 
    linear-gradient(rgba(75, 44, 21, 0.78), rgba(75, 44, 21, 0.78)), 
    url('img/ramar/oak_wood_texture_vertical.png');
  background-blend-mode: normal, multiply, normal;
  background-size: auto, 100% 350%, 100% 350%;
}
.frame-dark .frame-bar-right {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
    linear-gradient(rgba(75, 44, 21, 0.78), rgba(75, 44, 21, 0.78)), 
    url('img/ramar/oak_wood_texture_vertical.png');
  background-blend-mode: normal, multiply, normal;
  background-size: auto, 100% 350%, 100% 350%;
}

/* Custom Size Selector */
.size-selector {
  display: flex;
  gap: 8px;
}
.size-btn {
  flex: 1;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color-main);
  text-align: center;
  line-height: 1.3;
}
.size-btn.active {
  background: var(--text-color-main);
  color: var(--bg-color-main);
  border-color: var(--text-color-main);
}
.size-btn .size-price {
  font-size: 11px;
  font-weight: normal;
  opacity: 0.8;
}

/* Custom Frame Selector */
.frame-selector {
  display: flex;
  gap: 8px;
}
.frame-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
}
.frame-btn.active,
.frame-btn:hover {
  opacity: 1;
}
.frame-preview {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.frame-btn.active .frame-preview {
  border-color: var(--text-color-main);
  box-shadow: 0 0 0 1px var(--text-color-main);
}
.frame-btn:hover .frame-preview {
  border-color: var(--text-color-main);
}
.frame-preview.no-frame {
  background-color: #f0f0f0;
  position: relative;
}
.frame-preview.no-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: #ccc;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.frame-preview-dark {
  background-image: url('img/ramar/Frame_50x70_closeup_01_web_95f77b2e-ed10-43f6-9ff3-93d04be33a13.jpg');
  filter: brightness(0.4) sepia(0.3) contrast(1.1) saturate(1.1);
}
.frame-name {
  font-size: 11px;
  text-align: center;
  color: var(--text-color-main);
  line-height: 1.2;
}
.frame-btn .frame-price {
  font-size: 11px;
  color: var(--text-color-muted);
  font-weight: normal;
  display: block;
  margin-top: 1px;
}

/* Trust Badges Inline */
.trust-badges-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  gap: 3px;
}
.trust-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
  flex-wrap: wrap;
}
.trust-features .dot {
  opacity: 0.5;
  font-size: 10px;
}
.trust-payments {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ================= PREVIEW VIEWS & ROOM MOCKUPS ================= */
.preview-tabs {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 10;
}

.preview-tab {
  background: transparent;
  border: none;
  font-family: var(--font-family-serif);
  font-size: 14px;
  color: var(--text-color-muted);
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.preview-tab:hover {
  color: var(--text-color-main);
}

.preview-tab.active {
  color: var(--text-color-main);
}

.preview-tab.active::after {
  content: '';
  position: absolute;
  top: auto;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background-color: var(--text-color-main);
}

.usp-room-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* Sits on top of the gallery background */
  
  /* Guarantee a perfect square that covers the gallery exactly */
  /* The gallery is 50vw wide and roughly 100vh tall */
  width: max(50vw, 100vh);
  height: max(50vw, 100vh);
  
  overflow: hidden;
  background-color: #f7f7f7;
  transition: opacity 0.5s ease-in-out;
}

#room-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* When room view class is active, toggle visibility */
.show-room-view .usp-artboard-container {
  display: none;
}

.show-room-view .usp-room-container {
  display: block;
}

.usp-room-artwork-slot {
  position: absolute;
  transform: none; /* Already compensated in 3D render so it is upright on screen */
  transform-origin: center center;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size; /* Enable container queries for frame width scale */
}

/* Bounding box coordinates from pixel analysis */
.usp-room-container.size-30x40 .usp-room-artwork-slot {
  left: 60.006%;
  top: 44.832%;
  width: 12.147%;
  height: 16.553%;
}

.usp-room-container.size-50x70 .usp-room-artwork-slot {
  left: 56.090%;
  top: 33.329%;
  width: 19.979%;
  height: 28.355%;
}

.usp-room-container.size-70x100 .usp-room-artwork-slot {
  left: 55.600%;
  top: 21.337%;
  width: 27.566%;
  height: 40.292%;
}

/* Force artboard inside mockup slot to fill bounds exactly and scale frame width */
.usp-room-artwork-slot #artboard {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important; /* Overrides pre-existing aspect-ratios to prevent distortion */
  max-height: none !important;
  max-width: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  --frame-width: 4cqi; /* Default fallback */
}

.usp-room-container.size-30x40 .usp-room-artwork-slot #artboard {
  --frame-width: 4cqi;
}

.usp-room-container.size-50x70 .usp-room-artwork-slot #artboard {
  --frame-width: 2.4cqi;
}

.usp-room-container.size-70x100 .usp-room-artwork-slot #artboard {
  --frame-width: 1.7cqi;
}

/* Noise overlay blending */
.usp-room-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('img/AT_Noise.png');
  background-size: cover;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  z-index: 20;
}

.usp-room-shadow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 15; /* Sits below the noise but above the frame */
  opacity: 0.05; /* 5% opacity */
  mix-blend-mode: multiply; /* Perfect for shadows */
}

/* ================= ACTIVE NAVBAR ITEM ================= */
.header-nav a.active {
  opacity: 1 !important;
  border-bottom: 1.5px solid var(--text-color-main);
  padding-bottom: 2px;
}

/* ================= ABOUT PAGE STYLING ================= */
.about-hero {
  background-color: var(--hero-bg-color); /* Burgundy */
  color: var(--hero-text-color); /* Creme */
  padding: 120px 16px;
  text-align: center;
}

.about-title {
  font-family: var(--font-family-serif);
  font-size: var(--size-h1);
  font-weight: 400; /* Ensure elegant regular weight of Forum, preventing synthetic bolding */
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-subtitle {
  font-size: 16px;
  color: rgba(250, 245, 240, 0.85);
  max-width: 600px;
  margin: 16px auto 0 auto;
  line-height: 1.6;
}

.about-story-section {
  padding: 100px 16px;
  background-color: var(--bg-color-main);
}

.about-story-container {
  max-width: 700px; /* Smal spaltbredd för maximal läsbarhet och redaktionell känsla */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.story-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid rgba(35, 0, 50, 0.08); /* Elegant visual cue matching startsida step dividers */
  padding-left: 28px;
}

.story-heading {
  font-family: var(--font-family-serif);
  font-size: 32px;
  color: var(--text-color-main);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.story-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color-main);
  opacity: 0.85;
  text-wrap: pretty;
}

.story-image-block {
  margin: 20px 0;
  text-align: center;
}

.story-image {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.story-image-caption {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-color-muted);
  font-style: italic;
  text-wrap: pretty;
}

/* ================= ABOUT CONTACT SECTION (FULL-WIDTH GREEN) ================= */
.about-contact-section {
  padding: 100px 16px;
  background-color: var(--text-color-muted); /* Dark forest green #324123 matching startsida Trust section */
  color: var(--color-creme);
  text-align: center;
}

.about-contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-contact-heading {
  font-family: var(--font-family-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--color-creme);
  letter-spacing: -0.01em;
}

.about-contact-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(250, 245, 240, 0.85);
  max-width: 600px;
  margin: 0 auto 32px auto;
  text-wrap: pretty;
}

.about-contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.about-contact-links a {
  color: var(--color-creme);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.about-contact-links a:hover {
  opacity: 0.7;
}

.about-cta-container {
  text-align: center;
  margin-top: 20px;
}

.about-cta-btn {
  display: inline-block;
  background-color: var(--text-color-main); /* Purple/black brand button color */
  color: var(--bg-color-creme); /* Creme text */
  padding: 16px 48px;
  border-radius: 8px; /* Match startsida button border-radius */
  font-size: 13px;
  font-weight: 600; /* Match startsida button font-weight */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: none;
}

.about-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ================= ABOUT PAGE RESPONSIVE ================= */
@media (max-width: 900px) {
  .about-hero {
    padding: 80px 16px;
  }

  .about-title {
    font-size: 40px;
  }

  .about-story-section {
    padding: 60px 16px;
  }

  .about-story-container {
    gap: 40px;
  }

  .story-heading {
    font-size: 26px;
  }

  .story-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .about-contact-section {
    padding: 60px 16px;
  }

  .about-contact-heading {
    font-size: 26px;
  }

  .about-contact-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .about-contact-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* ================= LEGAL PAGE (VILLKOR.HTML) ================= */
.legal-layout-section {
  padding: 80px 16px;
  background-color: var(--bg-color-main);
}

.legal-container {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: fit-content;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color-muted);
  border-left: 2px solid transparent;
  padding-left: 16px;
  transition: all 0.25s ease;
  font-weight: 500;
  display: block;
}

.legal-nav-link:hover {
  color: var(--text-color-main);
  opacity: 1;
}

.legal-nav-link.active {
  color: var(--text-color-main);
  border-left-color: var(--text-color-main);
  font-weight: 600;
  opacity: 1;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.legal-section {
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: calc(var(--header-height) + 40px);
  border-radius: 4px;
  transition: background-color 0.5s ease;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--text-color-main);
  letter-spacing: -0.01em;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color-main);
  max-width: 600px;
  opacity: 0.85;
}

.legal-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-color-main);
}

@keyframes flash-bg {
  0% {
    background-color: rgba(65, 20, 35, 0.08);
  }
  100% {
    background-color: transparent;
  }
}

.highlight-flash {
  animation: flash-bg 1.5s ease-out;
  padding: 10px;
  margin: -10px;
}

/* ================= LEGAL PAGE RESPONSIVE ================= */
@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-sidebar {
    position: static;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 24px;
    margin-bottom: 10px;
  }

  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .legal-nav-link {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    display: inline-block;
  }

  .legal-nav-link.active {
    border-bottom-color: var(--text-color-main);
  }

  .legal-content {
    gap: 50px;
  }

  .legal-section {
    padding-bottom: 40px;
  }

  .legal-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
}

/* Newsletter Success State */
.newsletter-success {
  margin-top: 1rem;
  padding: 1.2rem;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.4s ease forwards;
}

/* If the body has a dark theme or footer has specific background we can adapt, but since the footer background is light/neutral, a dark text main looks good */
.newsletter-success h4 {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-success p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-color-muted);
  margin-bottom: 1rem;
}

.coupon-code-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  background: var(--text-color-main);
  color: var(--bg-color-main);
  padding: 6px 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coupon-code:hover {
  opacity: 0.9;
}

.coupon-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-color-main);
  color: var(--bg-color-main);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.coupon-code.copied .coupon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

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

/* ================= MOBILE HAMBURGER MENU & DRAWER ================= */
.mobile-nav-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 8px 8px 0;
  align-items: center;
  justify-content: center;
  color: var(--text-color-main);
  z-index: 150;
  outline: none;
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Show hamburger button only on mobile */
@media (max-width: 900px) {
  .mobile-nav-btn {
    display: flex;
  }
}

/* Mobile Nav Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-color-main);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  padding: 24px 20px;
  box-sizing: border-box;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-drawer-logo {
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-color-main);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color-main);
  line-height: 1;
  padding: 4px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.mobile-drawer-link {
  font-family: var(--font-family-serif);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--text-color-main);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.mobile-drawer-link:hover {
  opacity: 0.6;
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
}

.mobile-drawer-lang {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-drawer-lang button {
  background: transparent;
  border: none;
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-color-main);
  cursor: pointer;
  opacity: 0.6;
  padding: 4px 8px;
  border-bottom: 1px solid transparent;
}

.mobile-drawer-lang button.active {
  opacity: 1;
  border-bottom-color: var(--text-color-main);
}

.mobile-drawer-meta {
  font-size: 10px;
  color: var(--text-color-muted);
}

@media (max-width: 600px) {
  /* Hide country selector on mobile to save space */
  .header-icons a:nth-of-type(1) {
    display: none !important;
  }
  
  /* Horisontellt svepbar ramväljare */
  .frame-selector {
    display: flex !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .frame-selector::-webkit-scrollbar {
    display: none;
  }
  
  .frame-btn {
    flex: 0 0 76px !important;
  }
}

@media (max-width: 480px) {
  /* Hide header language selector and show inside drawer instead */
  .header-lang-selector {
    display: none !important;
  }
}


