/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* =========================================================================
   Makerique Boutique — Quick View (lite).
   Card button (.mr-quickview-btn, over the image) + modal (#mr-quickview).
   Uses the --mr-* tokens only.
   ========================================================================= */

/* Card button — appears on hover over the product image (touch: always shown). */
.product-thumb .image { position: relative; }
.mr-quickview-btn {
  position: absolute;
  left: 50%;
  bottom: .8rem;
  transform: translate(-50%, .6rem);
  z-index: 3;
  border: 0;
  border-radius: var(--mr-radius-pill, 999px);
  padding: .5rem 1.1rem;
  font-family: var(--mr-font-button, inherit);
  font-size: .82rem;
  font-weight: 600;
  background: var(--mr-surface, #fff);
  color: var(--mr-heading, #211e1a);
  box-shadow: var(--mr-shadow, 0 4px 18px rgba(0,0,0,.12));
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--mr-transition, .22s), transform var(--mr-transition, .22s), background var(--mr-transition, .22s), color var(--mr-transition, .22s);
}
.product-thumb:hover .mr-quickview-btn,
.product-thumb:focus-within .mr-quickview-btn { opacity: 1; transform: translate(-50%, 0); }
.mr-quickview-btn:hover { background: var(--mr-primary, #b4694e); color: #fff; }
/* Touch devices have no hover — keep it visible + tappable. */
@media (hover: none) {
  .mr-quickview-btn { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal */
.mr-quickview .modal-content { position: relative; border: 0; border-radius: var(--mr-radius, 14px); overflow: hidden; }
.mr-quickview .mr-quickview-x { position: absolute; top: .75rem; right: .75rem; z-index: 5; }
.mr-quickview-body { padding: 1.5rem; }
.mr-quickview-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--mr-radius, 14px); }
.mr-quickview-name { font-family: var(--mr-font-heading, inherit); margin-bottom: .5rem; }
.mr-quickview-price { font-size: 1.4rem; font-weight: 600; color: var(--mr-primary, #b4694e); margin-bottom: .75rem; }
.mr-quickview-old { color: var(--mr-muted, #8a8078); font-weight: 400; font-size: 1rem; text-decoration: line-through; }
.mr-quickview-desc { color: var(--mr-text, #2b2723); margin-bottom: 1.25rem; }
.mr-quickview-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.mr-quickview-msg { margin-top: .75rem; font-size: .9rem; }
.mr-quickview-loading { padding: 3rem; text-align: center; font-size: 2rem; color: var(--mr-muted, #8a8078); }

/* Longer add-to-cart labels wrap instead of overflowing the modal. */
.mr-quickview-add { white-space: normal; line-height: 1.25; min-width: 0; max-width: 100%; }

/* Phones: compact body, full-width 44px action buttons with an 8px gap. */
@media (max-width: 767.98px) {
  .mr-quickview-body { padding: 1rem; }
  .mr-quickview-actions { gap: 8px; }
  .mr-quickview-actions .btn { flex: 1 1 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
