/**
 * 2007-2026 PrestaShop.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 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/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    Addons Marketplace Partner
 * @copyright 2026 Addons Marketplace Partner
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
.mrdev-acm-featured {
  position: relative;
}

.mrdev-acm-badge,
.mrdev-acm-featured-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.mrdev-acm-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 5px 10px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.mrdev-acm-featured-block,
.mrdev-acm-featured-block *,
.mrdev-acm-featured-block *::before,
.mrdev-acm-featured-block *::after {
  box-sizing: border-box;
}

.mrdev-acm-featured-block {
  clear: both;
  width: 100%;
  margin: 24px 0 28px;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
}

.mrdev-acm-featured-headbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mrdev-acm-featured-heading h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.mrdev-acm-featured-heading p {
  margin: 6px 0 0;
  color: #6b7280;
}

.mrdev-acm-featured-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.mrdev-acm-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.mrdev-acm-carousel-btn:hover {
  background: #f8fafc;
}

.mrdev-acm-carousel-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.mrdev-acm-no-carousel .mrdev-acm-featured-controls {
  display: none;
}

.mrdev-acm-featured-viewport {
  overflow: hidden;
  width: 100%;
}

.mrdev-acm-featured-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mrdev-acm-featured-grid::-webkit-scrollbar {
  display: none;
}

.mrdev-acm-featured-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mrdev-acm-featured-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
  transform: translateY(-2px);
}

.mrdev-acm-featured-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mrdev-acm-featured-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.mrdev-acm-featured-image img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.mrdev-acm-featured-content h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  max-height: 48.6px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  word-break: break-word;
}

.mrdev-acm-featured-price {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 1199px) {
  .mrdev-acm-featured-card {
    flex-basis: calc((100% - 32px) / 3);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px) {
  .mrdev-acm-featured-headbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mrdev-acm-featured-controls {
    justify-content: flex-end;
  }

  .mrdev-acm-featured-card {
    flex-basis: calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 480px) {
  .mrdev-acm-featured-card {
    flex-basis: 82%;
    min-width: 82%;
    max-width: 82%;
  }
}
