/*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
*
* @author    FMM Modules
* @copyright Copyright 2025 © FMM Modules
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

.popup-products-wrapper {
  padding: 10px;
}

.popup-view-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1d1d1d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.popup-product-card {
  width: 180px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.popup-product-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.popup-product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
}

.product-title {
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.product-price {
  font-size: 13px;
  color: #24b9d7;
}

/* Modal */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.popup-modal-content {
  background-color: #fff;
  margin: 8% auto;
  padding: 25px 20px;
  border-radius: 10px;
  width: 320px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.popup-modal-content img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 6px;
}

.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.popup-modal-title a {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.popup-modal-title a:hover {
  text-decoration: underline;
}

.popup-price-text {
  font-size: 16px;
  color: #24b9d7;
  margin: 12px 0;
}

.popup-add-btn {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}