/*
 * Small additions on top of the original theme stylesheet (odoo-frontend.css).
 * These replace behaviour that Odoo's own JavaScript used to provide.
 */

/* Fixed header (header.ts) — values taken from the original computed styles */
header#top { z-index: 1030; transition: transform 0.2s; }

/* Odoo's JS reveals the language dropdown & carousels; keep them usable without it */
.o_cart_notification_container, [name="o_cart_notification_container"] { z-index: 1055; }
[name="o_cart_notification_container"] .toast { pointer-events: auto; }

/* Product configurator dialog: Odoo renders it with a dimmed .modal background */
.o_dialog .modal { background-color: rgba(0, 0, 0, 0.5); }

/* Product image viewer (product.ts) */
.o_bfs_viewer {
  position: fixed; inset: 0; z-index: 1060;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
.o_bfs_viewer img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 0.5rem; }
.o_bfs_viewer_close { position: absolute; top: 1.25rem; right: 1.25rem; opacity: 1; }
.o_bfs_viewer_nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(255, 255, 255, 0.15); color: #fff;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.25rem;
}
.o_bfs_viewer_nav:hover { background: rgba(255, 255, 255, 0.3); }
.o_bfs_viewer_prev { left: 1.25rem; }
.o_bfs_viewer_next { right: 1.25rem; }
