/*
Theme Name:   Evert Poom iMac
Theme URI:    https://evertpoom.ee
Description:  iMac G3 Desktop — products as desktop icons, Finder windows, translucent plastic Y2K
Author:       Evert Poom
Template:     storefront
Version:      1.0
*/

/* ═══════════════════════════════════════════════════
   MAC OS LOGIN SCREEN
═══════════════════════════════════════════════════ */
#im-login-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #FFB6C1 url('img/wallpaper.png?v=3') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: opacity 0.5s ease;
}
#im-login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(6px);
  transform: scale(1.05);
}
#im-login-screen.im-login-out {
  opacity: 0;
  pointer-events: none;
}
.im-login-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  cursor: pointer;
}
.im-login-inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
}
.im-login-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.im-login-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.im-login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.im-login-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.im-login-name {
  font-family: 'Geneva', 'Lucida Grande', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.im-login-hint {
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: opacity 0.3s;
}
.im-login-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin: 12px auto 0;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: imSpin 0.6s linear infinite;
}
.im-login-spinner.im-spin-active {
  display: block;
}
@keyframes imSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   CSS VARIABLES — iMAC G3 PALETTE
═══════════════════════════════════════════════════ */
:root {
  --im-bondi:       #00BFFF;
  --im-bondi-dark:  #0099CC;
  --im-grape:       #6B3FA0;
  --im-tangerine:   #FF6600;
  --im-lime:        #66CC00;
  --im-strawberry:  #CC0033;
  --im-blueberry:   #333399;
  --im-graphite:    #808080;
  --im-snow:        #F0F0F0;
  --im-white:       #FFFFFF;
  --im-titlebar:    rgba(200,200,220,0.85);
  --im-titlebar-stripe: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.25) 0px,
    rgba(255,255,255,0.25) 1px,
    transparent 1px,
    transparent 3px
  );
  --im-window-bg:   rgba(238,238,238,0.95);
  --im-window-border: #999;
  --im-shadow:      rgba(0,0,0,0.35);
  --im-desktop-bg:  #3366CC;
  --im-menubar-bg:  rgba(255,255,255,0.92);
  --im-text:        #222;
  --im-icon-shadow: rgba(0,0,0,0.25);
  --im-highlight:   #3366FF;
  --im-selection:   #3366FF;
}

/* ═══════════════════════════════════════════════════
   RESET — KILL STOREFRONT DEFAULTS
═══════════════════════════════════════════════════ */
.site, #page, .hfeed,
.content-area, #primary, .site-main, main, main.site-main,
#content, .site-content, .woocommerce .content-area,
.woocommerce-page .content-area,
.site-header,
.hentry, article, .type-page,
.storefront-handheld-footer-bar,
.secondary-navigation, .main-navigation,
button.menu-toggle {
  background-color: transparent !important;
  background-image: none !important;
}

body,
body.woocommerce,
body.woocommerce-page {
  background: #FFB6C1 !important; /* soft pink fallback matching wallpaper */
  margin: 0;
  padding: 0;
  font-family: 'Charcoal', 'Chicago', 'Geneva', 'Lucida Grande', 'Trebuchet MS', sans-serif;
  color: var(--im-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Lock shop/archive/product/cart/checkout to viewport — no page scroll, true desktop feel */
body.post-type-archive-product,
body.tax-product_cat,
body.single-product,
body.woocommerce-cart,
body.woocommerce-checkout {
  overflow: hidden !important;
  height: 100vh !important;
}

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


/* ═══════════════════════════════════════════════════
   DESKTOP WALLPAPER
═══════════════════════════════════════════════════ */
#im-desktop-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('img/wallpaper.png?v=3') center/cover no-repeat;
  background-size: cover;
}

/* ═══════════════════════════════════════════════════
   MAC OS 9 MENU BAR
═══════════════════════════════════════════════════ */
#im-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000; /* above WP admin bar */
  height: 32px;
  background: var(--im-menubar-bg);
  border-bottom: 1px solid #aaa;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: 'Chicago', 'Charcoal', 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* When WP admin bar is present, shift menubar below it */
.admin-bar #im-menubar {
  top: 32px;
}
.admin-bar .im-desktop-icons {
  top: 64px; /* 32px admin bar + 32px menubar */
}
.admin-bar #im-desktop-wallpaper {
  top: 32px;
}

.im-menu-apple {
  font-size: 18px;
  margin-right: 14px;
  cursor: default;
  color: #FF69B4;
}

.im-menu-item {
  padding: 2px 10px;
  cursor: default;
  border-radius: 3px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  transition: background 0.1s;
}
.im-menu-item:hover {
  background: #FF69B4;
  color: #fff;
}

.im-menu-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: normal;
  font-size: 11px;
  color: #333;
}

.im-menu-cart {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 12px;
}
.im-menu-cart:hover {
  background: #FF69B4;
  color: #fff;
}
.im-cart-badge {
  background: var(--im-strawberry);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 14px;
  text-align: center;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════
   CONTENT AREA — PUSH BELOW MENUBAR
═══════════════════════════════════════════════════ */
#page {
  padding-top: 24px; /* menubar height */
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.col-full {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#content {
  padding: 0 !important;
  margin: 0 !important;
}
.site-content {
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════
   DESKTOP ICONS GRID (Shop / Archive)
═══════════════════════════════════════════════════ */
.im-desktop-icons {
  position: fixed;
  top: 32px; /* below menubar */
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  overflow: hidden;
  z-index: 2;
}

.im-desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: default;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.15s, box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
  gap: 4px;
  z-index: 1;
}
.im-desktop-icon:hover {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.im-desktop-icon:active,
.im-desktop-icon.im-selected {
  background: rgba(255,105,180,0.35);
}
.im-desktop-icon:active .im-icon-label,
.im-desktop-icon.im-selected .im-icon-label {
  background: rgba(255,105,180,0.7);
}
/* Folder icon on desktop — same size as product icons but no photo border */
.im-nudes-folder-icon {
  gap: 0 !important;
}
.im-nudes-folder-icon .im-icon-label {
  margin-top: -6px;
}
.im-folder-icon-img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.im-desktop-icon.im-icon-dragging {
  opacity: 0.85;
  cursor: grabbing !important;
  transition: none !important;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

/* Product thumbnail — Mac OS X icon style */
.im-icon-img {
  width: 88px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.1);
}

.im-icon-label {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  text-align: center;
  line-height: 1.3;
  max-width: 130px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Geneva', 'Lucida Grande', 'Trebuchet MS', sans-serif;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.im-icon-price {
  font-size: 11px;
  font-weight: bold;
  color: #FF69B4;
  margin-top: 1px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ═══════════════════════════════════════════════════
   FINDER WINDOW (Single Product / Cart / Checkout)
═══════════════════════════════════════════════════ */
.im-finder-window {
  background: var(--im-window-bg);
  border: 1px solid var(--im-window-border);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 8px 32px var(--im-shadow),
    0 2px 8px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
  margin: 20px auto;
  max-width: 960px;
  width: calc(100% - 40px);
  overflow: hidden;
  position: relative;
}

.im-finder-titlebar {
  background: var(--im-titlebar);
  background-image: var(--im-titlebar-stripe);
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #bbb;
  border-radius: 8px 8px 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.im-finder-titlebar:active {
  cursor: grabbing;
}

.im-titlebar-buttons {
  display: flex;
  gap: 6px;
  margin-right: 10px;
}
.im-btn-close,
.im-btn-minimize,
.im-btn-maximize {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3);
}
.im-btn-close {
  background: #FF5F57;
}
.im-btn-minimize {
  background: #FFBD2E;
}
.im-btn-maximize {
  background: #28C840;
}

.im-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  font-family: 'Charcoal', 'Chicago', 'Geneva', sans-serif;
  margin-right: 50px; /* offset for buttons */
}

.im-finder-toolbar {
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  border-bottom: 1px solid #ccc;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

.im-toolbar-btn {
  background: linear-gradient(180deg, #fafafa 0%, #ddd 100%);
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #333;
  text-decoration: none !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-toolbar-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #eee 100%);
  color: #000;
}

.im-finder-body {
  padding: 20px;
  background: #fff;
  min-height: 200px;
}

/* ═══════════════════════════════════════════════════
   SINGLE PRODUCT — MULTI-WINDOW DESKTOP LAYOUT
   Three Finder windows: Gallery, Info, Related
═══════════════════════════════════════════════════ */
/* Multi-window desktop — windows open in a hand-arranged Mac layout.
   Each window is absolutely positioned at its preferred opening spot;
   users can then drag them anywhere on the desktop. */
.im-multi-windows {
  position: relative;
  padding: 20px;
  max-width: 1320px;
  margin: 0 auto;
  z-index: 3;
  min-height: 720px;
  /* Let clicks pass through the empty desktop area to the icons beneath;
     the windows themselves re-enable pointer events below. */
  pointer-events: none;
}
.im-multi-windows .im-finder-window {
  pointer-events: auto;
}

/* Gallery window — left side, sized to widest photo (set via JS) */
.im-window-gallery {
  position: absolute;
  top: 64px;
  left: 83px;
  max-width: 580px !important;
  z-index: 3;
  animation: im-window-open 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) 0.05s both;
}

/* Info window — right side, sitting highest on the desktop */
.im-window-info {
  position: absolute;
  top: 24px;
  left: 678px;
  width: 560px;
  max-width: 560px;
  z-index: 5;
  animation: im-window-open 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) 0.18s both;
}

/* Related window — center-bottom, layered between gallery and info */
.im-window-related {
  position: absolute;
  top: 473px;
  left: 460px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 95%;
  z-index: 4;
  animation: im-window-open 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) 0.32s both;
}

/* Related window body — 4 items in a single row at their natural size, no scrolling */
.im-window-related .im-finder-body {
  overflow: hidden;
  padding: 10px 12px !important;
  min-height: 0 !important;
}
.im-window-related .im-related-grid {
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: flex-start;
  gap: 10px;
  padding: 4px;
}

/* Finder body inside product windows */
.im-window-gallery .im-finder-body,
.im-window-info .im-finder-body {
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Gallery inside its window */
.im-product-gallery {
  text-align: center;
}
.im-product-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  background: #fff;
}
.im-product-gallery .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
}
.im-product-gallery .woocommerce-product-gallery__image {
  margin: 0 !important;
}

/* Cap the image height so a tall portrait image never makes the gallery
   window taller than the viewport. The JS also caps window width
   proportionally — together they keep the window fully on screen. */
.im-window-gallery {
  display: flex;
  flex-direction: column;
}
.im-window-gallery .im-finder-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.im-window-gallery .im-product-gallery,
.im-window-gallery .woocommerce-product-gallery,
.im-window-gallery .flex-viewport,
.im-window-gallery .woocommerce-product-gallery__wrapper {
  flex: 1 1 auto;
  min-height: 0;
}
.im-window-gallery .woocommerce-product-gallery__image,
.im-window-gallery .woocommerce-product-gallery__image a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.im-window-gallery .woocommerce-product-gallery__image img {
  max-height: calc(100vh - 340px) !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Gallery thumbnails */
.im-product-gallery .flex-control-thumbs {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
}
.im-product-gallery .flex-control-thumbs li {
  width: 60px !important;
  margin: 0 !important;
}
.im-product-gallery .flex-control-thumbs li img {
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}
.im-product-gallery .flex-control-thumbs li img.flex-active {
  border-color: var(--im-bondi);
  box-shadow: 0 0 0 2px rgba(0,191,255,0.3);
}

/* ── Product Info window content ── */
.im-product-info {
  font-family: 'Geneva', 'Lucida Grande', 'Trebuchet MS', sans-serif;
}
.im-product-info .product_title {
  font-size: 20px;
  font-weight: bold;
  color: var(--im-text);
  margin: 0 0 8px;
  font-family: 'Charcoal', 'Chicago', 'Geneva', sans-serif;
}
.im-product-info .price {
  font-size: 18px;
  font-weight: bold;
  color: var(--im-bondi-dark);
  margin-bottom: 12px;
}
.im-product-info .woocommerce-product-details__short-description {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 12px;
}

/* Variation swatches */
.im-product-info .ep-swatches-wrap { margin-bottom: 12px; }
.im-product-info .ep-swatches {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.im-product-info .ep-swatch-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: linear-gradient(180deg, #fafafa 0%, #ddd 100%);
  color: #333;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  transition: all 0.15s;
}
.im-product-info .ep-swatch-label:hover {
  background: linear-gradient(180deg, #fff 0%, #eee 100%);
  border-color: #888;
}
.im-product-info .ep-swatch-selected {
  background: var(--im-selection) !important;
  color: #fff !important;
  border-color: var(--im-blueberry) !important;
  box-shadow: 0 0 0 2px rgba(51,102,255,0.3);
}

/* Add to cart button */
.im-product-info .single_add_to_cart_button,
.im-product-info button[type="submit"] {
  background: linear-gradient(180deg, #6cf 0%, var(--im-bondi) 50%, var(--im-bondi-dark) 100%) !important;
  color: #fff !important;
  border: 1px solid #0088AA !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  font-family: 'Charcoal', 'Chicago', 'Geneva', sans-serif !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  transition: all 0.15s;
}
.im-product-info .single_add_to_cart_button:hover {
  background: linear-gradient(180deg, #7df 0%, #00d4ff 50%, var(--im-bondi) 100%) !important;
}

/* Quantity hidden — keep minimal styles just in case */
.im-product-info .quantity { display: none !important; }

.im-product-info .variations .label { display: none !important; }
.im-product-info .reset_variations { display: none !important; }
/* Hide "Laos" stock message and quantity selector */
.im-product-info .woocommerce-variation-availability { display: none !important; }
.im-product-info .stock { display: none !important; }
.im-product-info .quantity { display: none !important; }

.im-product-info .variations,
.im-product-info .variations td,
.im-product-info .variations tr,
.im-product-info .variations th,
.im-product-info table.variations,
.im-product-info table.variations td,
.woocommerce div.product form.cart .variations {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.im-product-info .variations_form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
}
/* Tighten the single_variation wrap */
.im-product-info .single_variation_wrap {
  margin: 0;
  padding: 0;
}
.im-product-info .woocommerce-variation {
  margin: 0 !important;
  padding: 0 !important;
}

/* Product data tabs in Info window */
.im-window-info .woocommerce-tabs {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}
.im-window-info .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0 0 10px;
  border-bottom: 1px solid #ccc;
}
.im-window-info .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #eee;
}
.im-window-info .woocommerce-tabs ul.tabs li.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}
.im-window-info .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  text-decoration: none;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-window-info .woocommerce-tabs ul.tabs li.active a { color: #333; }
.im-window-info .woocommerce-tabs .panel {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

/* Hide WC's default related products output (we render our own) */
.im-window-info .related.products,
.im-window-info .up-sells {
  display: none !important;
}

/* Hide WP edit post link on single product */
.im-product-info .edit-link,
.im-product-info .post-edit-link,
.im-finder-body .edit-link,
.im-finder-body .post-edit-link,
a.post-edit-link {
  display: none !important;
}

/* Inline description (replaces tabs) */
.im-inline-desc {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-inline-desc p { margin: 0 0 8px; }

/* ── Related products — embedded section inside Info window ── */
.im-related-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}
.im-related-heading {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888 !important;
  margin: 0 0 12px !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-weight: bold !important;
}

/* ── Related products grid — Mac Finder icon view ── */
.im-related-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px;
  justify-content: center;
}
.im-related-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 110px;
  text-align: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 6px 6px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.im-related-item:hover {
  background: rgba(0, 191, 255, 0.12);
  border-color: rgba(0, 191, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.im-related-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}
.im-related-name {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin-bottom: 4px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-related-price {
  font-size: 11px;
  font-weight: bold;
  color: var(--im-bondi-dark);
}

/* ═══════════════════════════════════════════════════
   CART PAGE — FINDER WINDOW
═══════════════════════════════════════════════════ */

/* Cart & checkout Finder windows */
.woocommerce-cart .im-finder-window,
.woocommerce-checkout .im-finder-window {
  position: relative;
  z-index: 5;
  overflow: visible;
}

/* Hide Storefront noise */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header,
.woocommerce-cart .storefront-sorting,
.woocommerce-checkout .storefront-sorting,
.woocommerce-message,
.woocommerce-notices-wrapper,
.woocommerce-cart .entry-content > p:empty,
.woocommerce-checkout .entry-content > p:empty { display: none !important; }

/* Hide all notices on cart & checkout — no need for inline messages */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info { display: none !important; }

/* Hide table headers */
.im-finder-body .shop_table thead { display: none !important; }
/* Checkout: hide cart item rows — the receipt shows them instead */
.woocommerce-checkout .im-finder-body .shop_table tr.cart_item { display: none !important; }

.im-finder-body .shop_table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  border: none;
}
.im-finder-body .shop_table th {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
}
.im-finder-body .shop_table td {
  border: none !important;
  padding: 10px 8px;
  background: transparent;
  vertical-align: middle;
}
.im-finder-body .shop_table img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  border-top: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
  border-bottom: 1px solid #888;
  border-right: 1px solid #888;
}

/* Hide product-subtotal and remove columns — keep it clean */
.im-finder-body .shop_table .product-subtotal,
.im-finder-body .shop_table .product-remove { display: none !important; }

/* Override Storefront alternating row backgrounds & borders */
.im-finder-body table:not(.has-background) tbody td,
.im-finder-body table:not(.has-background) tbody tr:nth-child(2n) td,
.im-finder-body fieldset, .im-finder-body fieldset legend {
  background: transparent !important;
}
.im-finder-body table tr,
.im-finder-body table td,
.im-finder-body table th,
.im-finder-body table tbody tr {
  border: none !important;
}

/* Product name in cart */
.im-finder-body .product-name {
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 12px;
}
.im-finder-body .product-name a {
  color: #333 !important;
  text-decoration: none !important;
}
.im-finder-body .product-name a:hover {
  color: var(--im-bondi) !important;
}

/* Cart price */
.im-finder-body .product-price {
  font-family: 'Monaco', 'Geneva', monospace;
  font-size: 13px;
  color: #333;
  text-align: center;
}
/* Quantity column — push to the right */
.im-finder-body .shop_table td.product-quantity {
  text-align: right;
  padding-right: 16px;
}

/* Quantity — Mac OS style */
.im-finder-body input.qty {
  width: 40px !important;
  height: 28px !important;
  text-align: center !important;
  border: 1px solid #aaa !important;
  border-radius: 4px !important;
  background: #fff !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 12px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08) !important;
  -moz-appearance: textfield !important;
  padding: 0 !important;
}
.im-finder-body input.qty::-webkit-inner-spin-button,
.im-finder-body input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Hide actions row (coupon, update cart) */
.im-finder-body table.cart td.actions { display: none !important; }

.im-finder-body .cart-collaterals {
  margin: 16px 0 0;
  border: none !important;
  padding: 0 !important;
}
.im-finder-body .cart_totals {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  float: none !important;
  width: 100% !important;
}
.im-finder-body .cart_totals h2 { display: none !important; }
.im-finder-body .cart_totals table { border: none !important; width: 100%; }
.im-finder-body .cart_totals td,
.im-finder-body .cart_totals th { border: none !important; }
/* Hide subtotal + tax rows everywhere, but shipping only on cart page */
.im-finder-body tr.tax-rate,
.im-finder-body tr.cart-subtotal { display: none !important; }
.woocommerce-cart .im-finder-body tr.woocommerce-shipping-totals.shipping { display: none !important; }
/* Cart page: total centered and big, no label */
.woocommerce-cart .im-finder-body tr.order-total th { display: none !important; }
.woocommerce-cart .im-finder-body tr.order-total td {
  text-align: center;
  font-size: 28px;
  font-family: 'Monaco', 'Geneva', monospace;
  font-weight: bold;
  color: #333;
  padding: 16px 0 8px !important;
}
/* Fallback: ensure cart total stays centered after AJAX refresh */
.woocommerce-cart .cart_totals tr.order-total td {
  text-align: center !important;
  font-size: 28px !important;
  font-family: 'Monaco', 'Geneva', monospace !important;
  font-weight: bold !important;
  color: #333 !important;
  padding: 16px 0 8px !important;
}
.woocommerce-cart .cart_totals tr.order-total th {
  display: none !important;
}
.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
}
/* Checkout page: order total hidden in table (moved above button) */
.woocommerce-checkout .im-finder-body tr.order-total {
  display: none !important;
}
/* Moved order total — just above Esita tellimus button */
.im-order-total-moved {
  text-align: center;
  font-size: 28px;
  font-family: 'Monaco', 'Geneva', monospace;
  font-weight: bold;
  color: #333;
  padding: 6px 0 10px;
}

/* ── Checkout shipping selector — clean card style ─────────────── */
.woocommerce-checkout .im-finder-body tr.woocommerce-shipping-totals th {
  display: none !important;
}
.woocommerce-checkout .im-finder-body tr.woocommerce-shipping-totals td {
  padding: 8px 0 !important;
}
.woocommerce-checkout .im-finder-body #shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
}
.woocommerce-checkout .im-finder-body #shipping_method li {
  flex: 1;
  max-width: 220px;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout .im-finder-body #shipping_method li label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 12px 16px !important;
  border: 2px solid #ccc !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: border-color 0.15s, background 0.15s !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 12px !important;
  font-weight: bold !important;
  color: #333 !important;
  background: #fafafa !important;
  text-align: center !important;
}
.woocommerce-checkout .im-finder-body #shipping_method li label:hover {
  border-color: #00BFFF !important;
  background: #f0faff !important;
}
.woocommerce-checkout .im-finder-body #shipping_method input.shipping_method:checked + label {
  border-color: #00BFFF !important;
  background: linear-gradient(180deg, #e6f7ff 0%, #d0efff 100%) !important;
  box-shadow: 0 0 0 1px #00BFFF !important;
}
/* Hide radio buttons — the card IS the selector */
.woocommerce-checkout .im-finder-body #shipping_method input.shipping_method {
  display: none !important;
}
/* Hide DPD logo images */
.woocommerce-checkout .im-finder-body .dpd-carrier-icon-image-holder {
  display: none !important;
}
/* DPD automaat on left, kuller on right */
.woocommerce-checkout .im-finder-body #shipping_method li:has(#shipping_method_0_dpd_parcels5) {
  order: -1 !important;
}
/* FREE shipping label in green */
.woocommerce-checkout .im-finder-body #shipping_method .shipping-free-label {
  color: #28a745 !important;
  font-weight: bold !important;
}

/* Hide WooCommerce BlockUI loading overlay on checkout */
.woocommerce-checkout .blockUI.blockOverlay {
  display: none !important;
}
.woocommerce-checkout .blockUI.blockMsg {
  display: none !important;
}

/* ── DPD Pickup Point — hide old dropdown, show map modal ─── */

/* Hide the entire old DPD dropdown row */
.woocommerce-checkout .wc_shipping_dpd_terminals {
  display: none !important;
}

/* ── Selected terminal card ────────────────────────────── */
.im-terminal-card {
  display: none;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 8px 0 0;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
/* Terminal card stays hidden — info now lives inside the receipt */
.im-terminal-card.im-show { display: none; }
.im-terminal-card-name {
  font-size: 13px;
  font-weight: bold;
  color: rgb(67, 69, 75);
  margin: 0 0 2px;
}
.im-terminal-card-addr {
  font-size: 11px;
  color: #888;
  margin: 0 0 6px;
}
.im-terminal-card-change {
  display: inline-block;
  font-size: 11px;
  color: var(--im-bondi, #00BFFF);
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-terminal-card-change:hover { color: #0090c0; }

/* ── Map modal overlay ─────────────────────────────────── */
.im-map-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0);
  justify-content: center;
  align-items: center;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  pointer-events: none;
  transition: background 0.25s ease;
}
.im-map-overlay.im-show {
  background: rgba(0,0,0,0.45);
  pointer-events: auto;
}

/* ── Mac OS window open/close animation ────────────────── */
@keyframes im-window-open {
  0%   { opacity: 0; transform: scale(0.45) translateY(40px); }
  60%  { opacity: 1; transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes im-window-close {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.45) translateY(40px); }
}

/* Cart + Checkout window entrance */
.im-cart-window,
.im-checkout-window {
  animation: im-window-open 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) 0.08s both;
}

/* ── Mac OS window ─────────────────────────────────────── */
.im-map-window {
  width: 90vw;
  max-width: 920px;
  height: 75vh;
  max-height: 620px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  /* Hidden by default */
  opacity: 0;
  transform: scale(0.45) translateY(40px);
  pointer-events: none;
  /* Position for dragging */
  position: relative;
}
.im-map-overlay.im-show .im-map-window {
  animation: im-window-open 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  pointer-events: auto;
}
.im-map-overlay.im-closing .im-map-window {
  animation: im-window-close 0.2s ease-in forwards;
}

/* Title bar — brushed metal, draggable */
.im-map-titlebar {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 45%, #c4c4c4 55%, #d4d4d4 100%);
  border-bottom: 1px solid #999;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  user-select: none;
  cursor: grab;
}
.im-map-titlebar:active { cursor: grabbing; }
.im-map-titlebar-btns {
  display: flex;
  gap: 6px;
}
.im-map-titlebar-btns span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  cursor: pointer;
}
.im-map-btn-close  { background: #ff5f57; border: 1px solid #e0443e; }
.im-map-btn-min    { background: #febc2e; border: 1px solid #dea123; }
.im-map-btn-max    { background: #28c840; border: 1px solid #1aab29; }
.im-map-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

/* Toolbar — search bar */
.im-map-toolbar {
  background: #ebebeb;
  border-bottom: 1px solid #bbb;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.im-map-search {
  flex: 1;
  padding: 5px 10px 5px 28px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  color: rgb(67, 69, 75);
  background: #fff 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='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 8px center no-repeat;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  outline: none;
  box-sizing: border-box;
}
.im-map-search:focus { border-color: #888; }
.im-map-search::placeholder { color: #999; }

/* Body — split layout */
.im-map-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Left: map */
.im-map-container {
  flex: 1;
  min-width: 0;
  position: relative;
}
.im-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

/* Right: terminal list sidebar */
.im-map-sidebar {
  width: 280px;
  background: #fff;
  border-left: 1px solid #ccc;
  overflow-y: auto;
  flex-shrink: 0;
}
.im-map-sidebar::-webkit-scrollbar { width: 5px; }
.im-map-sidebar::-webkit-scrollbar-track { background: #f5f5f5; }
.im-map-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.im-map-sidebar::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* City group header in sidebar */
.im-map-city-hdr {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: bold;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f3f3f3;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Terminal item in sidebar */
.im-map-terminal {
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.im-map-terminal:hover { background: #e8f4fd; }
.im-map-terminal.im-active { background: #d0e8f7; }
.im-map-terminal-name {
  font-size: 12px;
  color: rgb(67, 69, 75);
  font-weight: 500;
}
.im-map-terminal-addr {
  font-size: 10px;
  color: #999;
  margin-top: 1px;
}

/* No results message */
.im-map-no-results {
  padding: 20px 10px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* Leaflet popup styling */
.im-map-popup .leaflet-popup-content-wrapper {
  border-radius: 6px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-map-popup .leaflet-popup-content {
  margin: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}
.im-map-popup-name {
  font-weight: bold;
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}
.im-map-popup-addr {
  color: #666;
  font-size: 11px;
  margin-bottom: 8px;
}
.im-map-popup-btn {
  display: block;
  width: 100%;
  padding: 6px 12px;
  background: linear-gradient(180deg, #6cf 0%, var(--im-bondi, #00BFFF) 50%, #0090c0 100%);
  color: #fff;
  border: 1px solid #0088AA;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
}
.im-map-popup-btn:hover { background: linear-gradient(180deg, #80d8ff 0%, #00BFFF 50%, #0070a0 100%); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 700px) {
  .im-map-window {
    width: 96vw;
    height: 85vh;
    max-height: none;
  }
  .im-map-body {
    flex-direction: column;
  }
  .im-map-container {
    height: 50%;
  }
  .im-map-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ccc;
    height: 50%;
  }
}

/* Checkout button wrapper — centered */
.im-finder-body .wc-proceed-to-checkout {
  text-align: center;
  padding: 0 0 12px;
}
/* Checkout button — Bondi style */
.im-finder-body .checkout-button,
.im-finder-body .wc-proceed-to-checkout a {
  background: linear-gradient(180deg, #6cf 0%, var(--im-bondi) 50%, var(--im-bondi-dark) 100%) !important;
  color: #fff !important;
  border: 1px solid #0088AA !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-align: center !important;
  display: block !important;
  width: 100%;
  max-width: 300px;
  margin: 0 auto !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

/* Prevent white flash during WooCommerce AJAX update */
.woocommerce-cart .blockUI.blockOverlay {
  background: transparent !important;
  opacity: 0 !important;
}
.woocommerce-cart .processing { opacity: 1 !important; }
.woocommerce-cart .cart_totals,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals { transition: none !important; }

/* ═══════════════════════════════════════════════════
   SHIPPING BAR — inside Finder
═══════════════════════════════════════════════════ */
.im-ship-game {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px 8px;
  margin: 14px 0 10px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-ship-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
}
.im-ship-current { color: var(--im-bondi-dark); }
.im-ship-threshold { color: #666; }
.im-ship-track {
  height: 14px;
  background: #ddd;
  border: 1px solid #bbb;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.im-ship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--im-bondi), var(--im-lime));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.im-ship-label {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  text-align: center;
}
.im-ship-label strong { color: var(--im-bondi-dark); }
.im-ship-won .im-ship-game {
  background: #e8f8e8;
  border-color: #6c6;
}
.im-ship-won-text {
  font-size: 13px;
  font-weight: bold;
  color: var(--im-lime);
  text-align: center;
  padding: 4px 0;
}

/* ═══════════════════════════════════════════════════
   UPSELL CARDS — inside Finder, file-icon style
═══════════════════════════════════════════════════ */
.im-upsell-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}
.im-upsell-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 12px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-upsell-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.im-up-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  width: 110px;
  text-align: center;
  position: relative;
  cursor: default;
  transition: all 0.2s;
}
.im-up-card:hover {
  border-color: var(--im-bondi);
  background: #f0f8ff;
}
.im-up-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-bottom: 6px;
}
.im-up-name {
  font-size: 10px;
  color: #333;
  line-height: 1.3;
  font-weight: bold;
  margin-bottom: 2px;
}
.im-up-price {
  font-size: 10px;
  color: var(--im-bondi-dark);
  font-weight: bold;
  margin-bottom: 6px;
}
.im-up-add {
  background: linear-gradient(180deg, #fafafa, #ddd);
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 11px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-up-add:hover {
  background: linear-gradient(180deg, #fff, #eee);
}
.im-up-add.im-up-spin {
  pointer-events: none;
  opacity: 0.5;
}
.im-up-add.im-up-done {
  background: var(--im-lime);
  color: #fff;
  border-color: #5a0;
}

/* Inline variation buttons */
.im-inline-vars {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  justify-content: center;
}
.im-up-card.im-vars-open .im-inline-vars { display: flex; }
.im-up-card.im-vars-open .im-up-add { display: none; }

.im-inline-var {
  background: linear-gradient(180deg, #fafafa, #ddd);
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  animation: imVarPop 0.25s ease both;
}
.im-inline-var:hover {
  background: var(--im-selection);
  color: #fff;
  border-color: var(--im-blueberry);
}
.im-inline-var.im-var-chosen {
  background: var(--im-bondi);
  color: #fff;
}
.im-up-card.im-vars-open .im-inline-var:nth-child(1) { animation-delay: 0s; }
.im-up-card.im-vars-open .im-inline-var:nth-child(2) { animation-delay: 0.05s; }
.im-up-card.im-vars-open .im-inline-var:nth-child(3) { animation-delay: 0.1s; }
.im-up-card.im-vars-open .im-inline-var:nth-child(4) { animation-delay: 0.15s; }
.im-up-card.im-vars-open .im-inline-var:nth-child(5) { animation-delay: 0.2s; }

@keyframes imVarPop {
  0% { opacity: 0; transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════
   CHECKOUT PROGRESS — Mac OS steps
═══════════════════════════════════════════════════ */
.im-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  position: relative;
  z-index: 3;
}
.im-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.im-step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  border: 1px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #888;
}
.im-step-active .im-step-circle {
  background: var(--im-bondi);
  color: #fff;
  border-color: var(--im-bondi-dark);
}
.im-step-done .im-step-circle {
  background: var(--im-lime);
  color: #fff;
  border-color: #5a0;
}
.im-step-label {
  font-size: 10px;
  color: #888;
}
.im-step-active .im-step-label { color: var(--im-bondi-dark); font-weight: bold; }
.im-step-done .im-step-label { color: #5a0; }
a.im-progress-step,
a.im-progress-step:hover,
a.im-progress-step:visited { text-decoration: none !important; }
.im-progress-line {
  width: 40px;
  height: 2px;
  background: #ddd;
  margin: 0 6px;
  margin-bottom: 18px;
}
.im-line-active { background: var(--im-bondi); }

/* ═══════════════════════════════════════════════════
   CART QUANTITY +/- BUTTONS
═══════════════════════════════════════════════════ */
.im-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 4px;
  overflow: hidden;
}
.im-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: linear-gradient(180deg, #fafafa, #e0e0e0);
  color: #333;
  font-size: 14px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}
.im-qty-btn:hover {
  background: linear-gradient(180deg, #fff, #eee);
}
.im-qty-minus { border-right: 1px solid #bbb; }
.im-qty-plus { border-left: 1px solid #bbb; }
.im-qty-wrap input.qty {
  width: 32px !important;
  height: 28px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 12px !important;
  -moz-appearance: textfield !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.im-qty-wrap input.qty::-webkit-inner-spin-button,
.im-qty-wrap input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════
   CART & CHECKOUT — CENTERED SINGLE WINDOW, FITS VIEWPORT
═══════════════════════════════════════════════════ */
.woocommerce-cart .im-finder-window,
.woocommerce-checkout .im-finder-window {
  max-width: 700px;
  margin: 20px auto 20px;
  max-height: calc(100vh - 100px); /* leaves room for top bar + dock */
  display: flex;
  flex-direction: column;
}
.woocommerce-cart .im-finder-window .im-finder-body,
.woocommerce-checkout .im-finder-window .im-finder-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════
   CHECKOUT FORM STYLES
═══════════════════════════════════════════════════ */
.im-finder-body input[type="text"],
.im-finder-body input[type="email"],
.im-finder-body input[type="tel"],
.im-finder-body input[type="number"],
.im-finder-body input[type="search"],
.im-finder-body select,
.im-finder-body textarea {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  width: 100%;
}
.im-finder-body input:focus,
.im-finder-body select:focus,
.im-finder-body textarea:focus {
  border-color: var(--im-bondi);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,191,255,0.25), inset 0 1px 2px rgba(0,0,0,0.08);
}

/* Hide labels — rely on placeholders like Y2K theme */
.woocommerce-checkout .form-row label:not(.checkbox):not(.woocommerce-form__label) {
  display: none !important;
}

/* Center all checkout content */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

/* Hide additional fields (order notes) */
.woocommerce-additional-fields { display: none !important; }

/* Hide coupon notice on checkout */
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.checkout .woocommerce-info { display: none !important; }

/* Hide billing heading and order review heading */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading { display: none !important; }

/* Force postcode + city side-by-side */
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #shipping_postcode_field {
  float: left !important;
  width: 48% !important;
}
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #shipping_city_field {
  float: right !important;
  width: 48% !important;
}

/* Checkout order review table */
.woocommerce-checkout #order_review .shop_table {
  border: none !important;
  border-radius: 4px !important;
  margin-bottom: 10px;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name { display: none; }
.woocommerce-checkout td.product-total { display: none; }
.woocommerce-checkout table td,
.woocommerce-checkout table th { text-align: center; }

/* Checkout price font */
.woocommerce-checkout .woocommerce-Price-amount,
.woocommerce-cart .woocommerce-Price-amount {
  font-family: 'Monaco', 'Geneva', monospace !important;
}

/* Hide terms and conditions */
.woocommerce-terms-and-conditions-wrapper { display: none; }
small.includes_tax { display: none !important; }

/* ── Payment section — Y2K Mac theme ─────────────── */
#payment {
  padding: 10px 0 0 !important;
}
#payment .payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
#payment .payment_methods > li:not(.woocommerce-notice),
#payment .payment_methods > li .payment_box,
#payment .place-order {
  background: none !important;
  border: none !important;
}
#payment .payment_methods > li {
  margin-bottom: 16px !important;
  padding: 0 !important;
  list-style: none !important;
  display: block !important;
}

/* ── Payment method labels — Mac OS tab cards ─────── */
#payment .wc_payment_method > label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  background: linear-gradient(180deg, #f8f8f8 0%, #e0e0e0 100%) !important;
  border: 1px solid #aaa !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 13px !important;
  font-weight: bold !important;
  color: #333 !important;
  text-decoration: none !important;
  width: 100% !important;
}
#payment .wc_payment_method > input[type="radio"] {
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Kill any custom radio pseudo-element on payment labels */
#payment .wc_payment_method > label::before,
#payment .wc_payment_method > label::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}
#payment .wc_payment_method > input[type="radio"]:checked + label {
  background: linear-gradient(180deg, #e6f7ff 0%, #d0efff 100%) !important;
  border-color: var(--im-bondi) !important;
  color: #005580 !important;
}
/* Payment method icons — smaller, inline */
#payment .wc_payment_method label img,
#payment .montonio-payment-method-icon {
  height: 20px !important;
  width: auto !important;
}

/* ── Payment box container ─────────────────────────── */
#payment .payment_box {
  padding: 16px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  margin-top: 8px !important;
  background: #fafafa !important;
}

/* ── Bank items — 4-column icon grid ──────────────── */
.montonio-bank-items.montonio-bank-items--list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  padding: 4px !important;
}
.montonio-bank-item {
  border-radius: 8px !important;
  border: 2px solid #ddd !important;
  padding: 10px 6px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
}
.montonio-bank-item:hover {
  border-color: var(--im-bondi) !important;
  background: #f0faff !important;
}
.montonio-bank-items .montonio-bank-item.active {
  border-color: var(--im-bondi) !important;
  background: linear-gradient(180deg, #e6f7ff 0%, #d0efff 100%) !important;
  box-shadow: 0 0 0 2px rgba(0,191,255,0.25) !important;
}
/* Bank logos — fit nicely in grid cells */
.montonio-bank-item .montonio-bank-item-img {
  max-width: 90px !important;
  max-height: 32px !important;
  object-fit: contain !important;
}

/* ── Card payment (kaardimakse) — card icons ──────── */
#payment .payment_method_wc_montonio_card label img {
  height: 18px !important;
  margin-left: 4px !important;
}

/* ── Place order button — Bondi blue Mac button ───── */
#payment .place-order {
  text-align: center !important;
  padding: 16px 0 60px !important; /* extra bottom padding so button clears dock */
}
#payment .place-order .button {
  background: linear-gradient(180deg, #6cf 0%, var(--im-bondi) 50%, var(--im-bondi-dark) 100%) !important;
  color: #fff !important;
  border: 1px solid #0088AA !important;
  border-radius: 8px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: box-shadow 0.15s, transform 0.1s !important;
}
#payment .place-order .button:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  transform: translateY(-1px);
}
#payment .place-order .button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Select2 — match Mac OS inputs */
.select2-container--default .select2-selection--single {
  border-radius: 4px !important;
  height: 36px !important;
  border: 1px solid #aaa !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333 !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 13px !important;
  line-height: 34px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 4px !important;
  border: 1px solid #aaa !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 13px !important;
}

/* Shipping method radio */
.im-finder-body input[type=radio],
.im-finder-body input[type=checkbox] {
  display: inline-block !important;
  width: auto !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Menu bar ── */
  #im-menubar {
    height: 36px;
    padding: 0 10px;
    font-size: 16px;
  }
  .im-menu-items { gap: 12px; }
  .im-menu-item { font-size: 14px; }

  /* ── Login screen ── */
  .im-login-avatar { width: 96px; height: 96px; }
  .im-login-name { font-size: 16px; }
  .im-login-hint { font-size: 11px; }

  /* ── Shop page — scattered icons, scrollable ── */
  .im-desktop-icons {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .im-icon-img { width: 88px; height: 88px; }
  .im-icon-label { font-size: 12px; max-width: 100px; }
  .im-icon-price { font-size: 10px; }

  /* ── Product page — stacked windows ── */
  .im-multi-windows {
    padding: 8px 6px 40px;
    min-height: auto;
  }
  .im-window-gallery,
  .im-window-info,
  .im-window-related {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  /* ── Finder windows — full width ── */
  .im-finder-window {
    width: calc(100% - 12px) !important;
    max-width: 100% !important;
    margin: 8px auto !important;
  }

  /* ── Cart & checkout ── */
  .woocommerce-cart .im-finder-window,
  .woocommerce-checkout .im-finder-window {
    max-width: 100% !important;
    margin: 8px 6px !important;
  }
  .im-finder-body { padding: 12px 8px; }
  .im-finder-body .shop_table img { width: 40px; height: 40px; }
  .im-finder-body tr.order-total td { font-size: 22px; }

  /* ── Checkout form inputs — 16px prevents iOS zoom ── */
  .im-finder-body input[type="text"],
  .im-finder-body input[type="email"],
  .im-finder-body input[type="tel"],
  .im-finder-body select,
  .im-finder-body textarea {
    font-size: 16px !important;
  }

  /* ── App windows — full width on mobile ── */
  .im-app-window {
    transform: none !important;
    top: 32px !important;
    left: 2px !important;
    right: 2px !important;
    width: calc(100vw - 4px) !important;
    max-width: calc(100vw - 4px) !important;
  }
  .im-itunes-chrome,
  .im-safari-chrome,
  .im-notes-chrome,
  .im-nudes-chrome,
  .im-preview-chrome {
    width: 100% !important;
    max-width: 100% !important;
  }
  .im-safari-chrome {
    height: 70vh !important;
  }
  .im-notes-chrome {
    height: auto !important;
    max-height: 70vh;
  }
  .im-nudes-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 10px;
  }
  .im-nudes-thumb img {
    width: 70px;
    height: 52px;
  }
  .im-nudes-filename { font-size: 8px; }

  /* ── Preview window ── */
  .im-preview-body img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 80px);
  }

  /* ── Upsells ── */
  .im-upsell-grid { flex-wrap: wrap; }

  /* ── Related products grid ── */
  .im-related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Progress bar ── */
  .im-progress-bar { flex-wrap: nowrap; gap: 4px; }
  .im-step-label { font-size: 9px; }

  /* ── Qty buttons in cart ── */
  .im-qty-wrap { transform: scale(0.9); }
}

/* ── Extra small screens ── */
@media (max-width: 400px) {
  .im-icon-img { width: 72px; height: 72px; }
  .im-icon-label { font-size: 11px; max-width: 80px; }
  .im-nudes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══════════════════════════════════════════════════
   STOREFRONT OVERRIDES & CLEANUP
═══════════════════════════════════════════════════ */
.storefront-breadcrumb,
.storefront-sorting,
.site-footer,
.storefront-handheld-footer-bar,
.storefront-product-pagination,
nav.storefront-product-pagination {
  display: none !important;
}

/* Hide default WC empty cart stuff when our template is active */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .return-to-shop { display: none !important; }
.woocommerce-cart .storefront-sorting { display: none !important; }

/* Hide progress bar on empty cart */
.woocommerce-cart .im-empty-active ~ .im-progress-bar { display: none; }

/* Storefront sticky add-to-cart bar */
.storefront-sticky-add-to-cart { display: none !important; }

/* Remove WC default button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: linear-gradient(180deg, #fafafa, #ddd) !important;
  border: 1px solid #aaa !important;
  border-radius: 4px !important;
  color: #333 !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: linear-gradient(180deg, #fff, #eee) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: linear-gradient(180deg, #6cf 0%, var(--im-bondi) 50%, var(--im-bondi-dark) 100%) !important;
  color: #fff !important;
  border-color: #0088AA !important;
}

/* Hide WC result count + ordering on shop */
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* Notification / WC notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #f8f8f8 !important;
  border: 1px solid #ccc !important;
  border-left: 4px solid var(--im-bondi) !important;
  border-radius: 4px !important;
  font-family: 'Geneva', 'Lucida Grande', sans-serif !important;
  font-size: 13px !important;
  color: #333 !important;
  margin: 10px 20px !important;
}
.woocommerce-error {
  border-left-color: var(--im-strawberry) !important;
}

/* ═══════════════════════════════════════════════════
   MAC OS X DOCK
═══════════════════════════════════════════════════ */
#im-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  pointer-events: none;
}
.im-dock-inner {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 14px 4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(200,200,220,0.35) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: auto;
}

/* Dock icon */
.im-dock-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  position: relative;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
.im-dock-icon:focus,
.im-dock-icon:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.im-dock-icon:hover {
  transform: translateY(-8px) scale(1.25);
}
.im-dock-icon:hover .im-dock-label {
  opacity: 1;
  transform: translateY(-4px);
}

/* Icon image */
.im-dock-icon-img {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.im-dock-icon-img img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}
/* Emoji-based dock icons (for apps without logo images) */
.im-dock-icon-img .im-dock-emoji {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Dock label tooltip */
.im-dock-label {
  position: absolute;
  top: -28px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: 'Geneva','Lucida Grande',sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateY(4px);
}
.im-dock-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0,0,0,0.75);
}

/* Bounce dot indicator for active apps */
.im-dock-icon.im-dock-active::after {
  content: '';
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  margin-top: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* ── Cashier receipt on checkout ─────────────────────── */
tr.im-receipt-row > td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.im-receipt {
  max-width: 400px;
  margin: 22px auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #2a2a2a;
  line-height: 1.5;
  position: relative;
}
/* Torn edge top */
.im-receipt-tear-top {
  height: 14px;
  background: linear-gradient(135deg, transparent 33.33%, #fffef5 33.33%, #fffef5 66.67%, transparent 66.67%),
              linear-gradient(225deg, transparent 33.33%, #fffef5 33.33%, #fffef5 66.67%, transparent 66.67%);
  background-size: 16px 14px;
  background-repeat: repeat-x;
}
/* Torn edge bottom */
.im-receipt-tear-bottom {
  height: 14px;
  background: linear-gradient(315deg, transparent 33.33%, #fffef5 33.33%, #fffef5 66.67%, transparent 66.67%),
              linear-gradient(45deg, transparent 33.33%, #fffef5 33.33%, #fffef5 66.67%, transparent 66.67%);
  background-size: 16px 14px;
  background-repeat: repeat-x;
}
.im-receipt-body {
  background: #fffef5;
  padding: 18px 26px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}
/* Header */
.im-receipt-header {
  text-align: center;
  margin-bottom: 4px;
}
.im-receipt-logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: lowercase;
}
.im-receipt-tagline {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
}
/* Dividers */
.im-receipt-divider {
  border-bottom: 1px dashed #bbb;
  margin: 10px 0;
}
.im-receipt-divider-thick {
  border-bottom: 2px dashed #888;
  margin: 10px 0;
}
/* Date/time */
.im-receipt-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
}
/* Items */
.im-receipt-items {
  padding: 2px 0;
}
.im-receipt-item {
  margin-bottom: 6px;
}
.im-receipt-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.im-receipt-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.im-receipt-item-price {
  white-space: nowrap;
  text-align: right;
}
.im-receipt-item-qty {
  font-size: 11px;
  color: #888;
}
/* Subtotal / shipping lines */
.im-receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}
/* Free shipping label on receipt */
.im-receipt-free {
  color: #28a745;
  font-weight: bold;
}
/* Total */
.im-receipt-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 0 2px;
}
.im-receipt-tax {
  text-align: right;
  font-size: 10px;
  color: #888;
  margin-top: 1px;
}
/* Parcel locker info inside receipt */
.im-receipt-terminal {
  padding: 2px 0 0;
  text-align: right;
}
.im-receipt-terminal-name {
  font-size: 11px;
  color: #555;
}
.im-receipt-terminal-addr {
  font-size: 10px;
  color: #999;
}
/* Footer */
.im-receipt-footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   404 PAGE — Classic Mac System Error Dialog
═══════════════════════════════════════════════════ */
.im-404-stage {
  position: relative;
  min-height: calc(100vh - 200px);
  padding: 40px 20px 80px;
  z-index: 3;
  /* Let clicks pass through to desktop icons; window re-enables below */
  pointer-events: none;
}
.im-404-stage .im-finder-window {
  pointer-events: auto;
}

.im-window-404 {
  position: relative;
  width: 460px;
  max-width: 92vw;
  margin: 60px auto 0;
  /* Slight tilt + open animation for a "this just popped up" feel */
  animation: im-404-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    0 4px 10px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.7);
  z-index: 50;
}

@keyframes im-404-pop {
  0%   { opacity: 0; transform: scale(0.6) translateY(-30px) rotate(-2deg); }
  60%  { opacity: 1; transform: scale(1.04) translateY(0)     rotate(0.5deg); }
  100% { opacity: 1; transform: scale(1)    translateY(0)     rotate(0); }
}

.im-404-body {
  padding: 26px 28px 22px !important;
  background: #ECECEC !important;
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 2px) !important;
  font-family: 'Charcoal', 'Chicago', 'Geneva', 'Lucida Grande', sans-serif;
  text-align: center;
  min-height: 0 !important;
}

.im-404-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.im-404-bomb {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25));
  /* Gentle wobble like a lit fuse */
  animation: im-404-wobble 1.6s ease-in-out infinite;
}

@keyframes im-404-wobble {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.im-404-spark {
  transform-origin: 104px 8px;
  animation: im-404-flicker 0.4s steps(2) infinite;
}

@keyframes im-404-flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.im-404-text {
  margin-bottom: 18px;
}

.im-404-code {
  margin: 0 0 6px !important;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

.im-404-title {
  margin: 0 0 10px !important;
  font-size: 22px !important;
  font-weight: bold;
  color: #111;
  letter-spacing: -0.01em;
  font-family: 'Charcoal', 'Chicago', 'Geneva', sans-serif !important;
  line-height: 1.2;
}

.im-404-message {
  margin: 0 auto 14px !important;
  font-size: 13px;
  color: #333;
  line-height: 1.45;
  max-width: 340px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

.im-404-tech {
  margin: 0 !important;
  font-size: 11px;
  color: #777;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}
.im-404-tech-label {
  margin-right: 4px;
  color: #999;
}
.im-404-tech-code {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace !important;
  font-size: 11px;
  color: #444;
  word-break: break-all;
}

.im-404-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 14px;
  flex-wrap: wrap;
}

.im-404-btn {
  display: inline-block;
  padding: 6px 18px;
  font-size: 12px;
  font-family: 'Charcoal', 'Chicago', 'Geneva', sans-serif;
  color: #222;
  background: linear-gradient(180deg, #fcfcfc 0%, #d8d8d8 100%);
  border: 1px solid #888;
  border-radius: 14px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.08s, box-shadow 0.1s;
  min-width: 90px;
  text-align: center;
}
.im-404-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #e6e6e6 100%);
  color: #000;
}
.im-404-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.18);
}

.im-404-btn-primary {
  background: linear-gradient(180deg, #8db8ff 0%, #2c6dd9 100%);
  color: #fff !important;
  border: 1px solid #1e4fa3;
  font-weight: bold;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 1px 3px rgba(0,0,0,0.25),
    0 0 0 2px rgba(43, 109, 217, 0.25);
}
.im-404-btn-primary:hover {
  background: linear-gradient(180deg, #a4c7ff 0%, #3a7be8 100%);
  color: #fff !important;
}

.im-404-restart {
  margin: 0 !important;
  font-size: 10px;
  color: #888;
  font-style: italic;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .im-window-404 {
    width: calc(100% - 20px);
    margin-top: 30px;
  }
  .im-404-body {
    padding: 20px 18px 18px !important;
  }
  .im-404-title {
    font-size: 18px !important;
  }
  .im-404-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .im-404-btn {
    width: 100%;
  }
}
