/*!
 * isbat-woo-single.css — WooCommerce enkeltprodukt (from WPCode 1009433)
 * Skip-link-blokk flyttet til isbat-global.css (a11y-korrekt :focus-variant)
 * Loaded only on is_product()
 */
/* ============================================================
   ISHELLA V2.5 — WooCommerce Single Product + global skip-link
   Scope: body.single-product + global a.skip-link
   ============================================================ */

/* ============================================================
   SINGLE PRODUCT TOKENS + BAKGRUNN
   ============================================================ */
body.single-product {
  --brand-primary: #ff1744;
  --brand-primary-hover: #ff3b61;
  --brand-secondary: #2dd4ff;
  --brand-secondary-soft: #7be5ff;
  --bg-base: #040816;
  --bg-surface: #0d1426;
  --bg-elevated: #151f34;
  --text-primary: #f8fbff;
  --text-secondary: #d7e2ee;
  --text-muted: #aebfd1;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-bg: rgba(13, 20, 38, 0.5);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --isbat-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --isbat-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(255, 23, 68, 0.1), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(45, 212, 255, 0.08), transparent 65%),
    var(--bg-base) !important;
  color: var(--text-primary);
}

body.single-product .inside-article {
  background: transparent;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 48px);
  max-width: 1440px;
  margin: 0 auto;
}

/* --- Breadcrumb mono-tekst --- */
body.single-product .woocommerce-breadcrumb {
  display: block;
  font-family: var(--isbat-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
body.single-product .woocommerce-breadcrumb a {
  color: var(--brand-secondary);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
body.single-product .woocommerce-breadcrumb a:hover {
  color: var(--brand-secondary-soft);
}

/* ============================================================
   PRODUKT-LAYOUT — 2 kolonner
   ============================================================ */
body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

body.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product div.product .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 8px 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
body.single-product .woocommerce-product-gallery__wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.single-product .woocommerce-product-gallery__image img {
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  display: block;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100% !important;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  opacity: 0.7;
  transition: all 220ms var(--ease);
  cursor: pointer;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  opacity: 1;
  border-color: var(--brand-secondary);
  transform: translateY(-2px);
}
body.single-product .woocommerce-product-gallery__trigger {
  background: rgba(4, 8, 22, 0.75) !important;
  color: var(--text-primary) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  top: 16px !important;
  right: 16px !important;
  font-size: 0 !important;
}
body.single-product .woocommerce-product-gallery__trigger::before {
  content: '⛶';
  font-size: 18px;
}

/* ============================================================
   SUMMARY — tittel, pris, beskrivelse, CTA, meta
   ============================================================ */
body.single-product .product_title.entry-title,
body.single-product h1.product_title {
  font-family: var(--isbat-font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-primary) !important;
  margin: 0 0 20px !important;
  background: linear-gradient(135deg, #ffffff 0%, #bcd0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pris */
body.single-product .summary .price,
body.single-product .summary p.price {
  font-family: var(--isbat-font-mono) !important;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 700 !important;
  color: var(--brand-secondary) !important;
  margin: 0 0 20px !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
body.single-product .summary .price .amount,
body.single-product .summary .price .woocommerce-Price-amount {
  color: inherit !important;
  font-family: inherit !important;
  font-weight: 700 !important;
}
body.single-product .summary .price del {
  color: var(--text-muted) !important;
  opacity: 0.5;
  font-size: 0.72em;
  font-weight: 500;
  text-decoration: line-through;
}
body.single-product .summary .price ins {
  background: transparent !important;
  color: var(--brand-primary) !important;
  text-decoration: none !important;
  font-weight: 800;
}
body.single-product .summary .price .woocommerce-Price-currencySymbol {
  opacity: 0.75;
  font-weight: 600;
}
/* "Eks MVA"-tekst */
body.single-product .summary .price small,
body.single-product .summary .price .woocommerce-price-suffix {
  font-family: var(--isbat-font-mono);
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Kort beskrivelse */
body.single-product .summary .woocommerce-product-details__short-description {
  font-family: var(--isbat-font-heading);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}
body.single-product .summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   ADD-TO-CART FORM
   ============================================================ */
body.single-product .summary form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

body.single-product .summary form.cart .quantity {
  display: inline-flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.single-product .summary form.cart .quantity input.qty,
body.single-product .summary form.cart input.qty {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-family: var(--isbat-font-mono) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  width: 60px !important;
  padding: 10px 8px !important;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  box-shadow: none !important;
}
body.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
body.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: auto;
}
body.single-product .summary form.cart .quantity input.qty:focus {
  outline: none !important;
  color: var(--brand-secondary) !important;
}

body.single-product .summary form.cart button.single_add_to_cart_button,
body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary form.cart button[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
  font-family: var(--isbat-font-heading) !important;
  font-weight: 800 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 10px 26px -6px rgba(255, 23, 68, 0.55);
  transition:
    background 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease) !important;
  line-height: 1.3 !important;
  text-shadow: none !important;
  min-height: 0 !important;
  cursor: pointer;
  flex: 1;
  min-width: 200px;
}
body.single-product .summary form.cart button.single_add_to_cart_button:hover,
body.single-product .summary form.cart button[type="submit"]:hover {
  background: var(--brand-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(255, 23, 68, 0.65);
  color: #fff !important;
}
body.single-product .summary form.cart button.single_add_to_cart_button:focus {
  outline: none !important;
  box-shadow:
    0 16px 36px -8px rgba(255, 23, 68, 0.65),
    0 0 0 3px rgba(255, 23, 68, 0.3) !important;
}

/* ============================================================
   META — kategori, tag, sku
   ============================================================ */
body.single-product .summary .product_meta {
  font-family: var(--isbat-font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.single-product .summary .product_meta > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
body.single-product .summary .product_meta .posted_in,
body.single-product .summary .product_meta .tagged_as {
  color: var(--text-muted);
}
body.single-product .summary .product_meta a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  background: rgba(45, 212, 255, 0.08);
  border: 1px solid rgba(45, 212, 255, 0.25);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 200ms var(--ease);
}
body.single-product .summary .product_meta a:hover {
  background: rgba(45, 212, 255, 0.18);
  border-color: rgba(45, 212, 255, 0.5);
  color: var(--brand-secondary-soft);
  transform: translateY(-1px);
}

/* ============================================================
   TABS
   ============================================================ */
body.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--border-subtle);
}
body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  flex-wrap: wrap;
}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
  content: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-flex !important;
  align-items: center;
  padding: 10px 22px !important;
  font-family: var(--isbat-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  color: var(--text-secondary) !important;
  background: var(--glass-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  transition: all 220ms var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1.3 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--text-primary) !important;
  border-color: var(--border-strong) !important;
  transform: translateY(-1px);
}
body.single-product .woocommerce-tabs ul.tabs li.active a {
  background: rgba(45, 212, 255, 0.15) !important;
  border-color: rgba(45, 212, 255, 0.5) !important;
  color: var(--brand-secondary) !important;
  box-shadow: 0 8px 20px -10px rgba(45, 212, 255, 0.5);
}

/* Tab-innhold */
body.single-product .woocommerce-Tabs-panel {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  font-family: var(--isbat-font-heading);
  font-size: 1rem;
  line-height: 1.7;
}
body.single-product .woocommerce-Tabs-panel h1,
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel h4 {
  color: var(--text-primary);
  font-family: var(--isbat-font-heading);
  letter-spacing: -0.01em;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}
body.single-product .woocommerce-Tabs-panel h1:first-child,
body.single-product .woocommerce-Tabs-panel h2:first-child,
body.single-product .woocommerce-Tabs-panel h3:first-child {
  margin-top: 0;
}
body.single-product .woocommerce-Tabs-panel h2 { font-size: 1.5rem; font-weight: 800; }
body.single-product .woocommerce-Tabs-panel h3 { font-size: 1.2rem; font-weight: 700; }
body.single-product .woocommerce-Tabs-panel h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-secondary);
  letter-spacing: 0.02em;
}
body.single-product .woocommerce-Tabs-panel p {
  margin: 0 0 1em;
}
body.single-product .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-Tabs-panel ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
body.single-product .woocommerce-Tabs-panel li {
  margin-bottom: 0.4em;
}
body.single-product .woocommerce-Tabs-panel strong,
body.single-product .woocommerce-Tabs-panel b {
  color: var(--text-primary);
  font-weight: 700;
}
body.single-product .woocommerce-Tabs-panel a {
  color: var(--brand-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(45, 212, 255, 0.3);
  text-underline-offset: 3px;
}
body.single-product .woocommerce-Tabs-panel a:hover {
  color: var(--brand-secondary-soft);
  text-decoration-color: var(--brand-secondary);
}

/* Skjul den visuelle "Beskrivelse"-h2 som vises som duplikat i enkelte kontent */
body.single-product #tab-description > h2:first-child {
  display: none;
}

/* ============================================================
   RELATED + UPSELL SEKSJON-OVERSKRIFTER
   ============================================================ */
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  font-family: var(--isbat-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: clamp(48px, 6vw, 72px) 0 clamp(20px, 3vw, 36px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
body.single-product .related.products > h2::after,
body.single-product .upsells.products > h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  border-radius: 2px;
  margin-top: 12px;
}

/* ============================================================
   NOTICES / cart-confirmation
   ============================================================ */
body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-notice {
  background: var(--glass-bg) !important;
  border: 1px solid var(--border-subtle) !important;
  border-left: 3px solid var(--brand-secondary) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
  font-family: var(--isbat-font-heading);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.single-product .woocommerce-message a.button,
body.single-product .woocommerce-message .button,
body.single-product .woocommerce-info a.button {
  background: var(--brand-secondary) !important;
  color: var(--bg-base) !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

/* ============================================================
   RESPONSIVT
   ============================================================ */
@media (max-width: 900px) {
  body.single-product div.product {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary,
  body.single-product div.product > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.single-product .summary form.cart button.single_add_to_cart_button {
    flex: 1 1 100%;
  }
}


/* ============================================================
   MOBIL FULL-BREDDE FIX — tvinger 100% for alle produkt-wrappere
   ============================================================ */
@media (max-width: 900px) {
  body.single-product #page,
  body.single-product .site.grid-container,
  body.single-product .site-content,
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product #main,
  body.single-product .site-main,
  body.single-product article.product,
  body.single-product .inside-article {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.single-product .inside-article {
    padding: clamp(20px, 5vw, 32px) clamp(12px, 4vw, 20px) !important;
  }
}
