/* ==========================================================================
   NUNDÌA – Custom styles & additions on top of nundia.min.css.
   ========================================================================== */

:root {
  --nd-gold: #b9913a;
}

[hidden] {
  display: none !important;
}

/* Header ------------------------------------------------------------------ */

/* Single-row streamlined header: slim, elegant height per client specifications */
:root {
  --nd-row: 64px;
  --nd-pad-y: 4px;
  --nd-top: 0px;
}

@media (min-width: 640px) {
  :root {
    --nd-row: 76px;
    --nd-pad-y: 5px;
  }
}

@media (min-width: 1024px) {
  :root {
    --nd-row: 96px;
    --nd-pad-y: 6px;
    --nd-top: 0px;
  }
}

.nd-header {
  padding-top: var(--nd-pad-y);
  padding-bottom: var(--nd-pad-y);
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nd-header-row {
  height: var(--nd-row);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}

@media (min-width: 1024px) {
  .nd-header-row {
    height: 110px;
  }
}

/* Scrolled Header State */
.nd-header.is-scrolled {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.nd-header.is-scrolled .nd-header-row {
  height: 58px !important;
}

.nd-header.is-scrolled .nd-logo img {
  height: 52px !important;
  max-height: 52px !important;
  filter: brightness(130%);
}

.nd-header.is-scrolled .nd-mobile-menu {
  top: 58px !important;
}

@media (min-width: 640px) {
  .nd-header.is-scrolled .nd-header-row {
    height: 70px !important;
  }

  .nd-header.is-scrolled .nd-logo img {
    height: 62px !important;
    max-height: 62px !important;
  }

  .nd-header.is-scrolled .nd-mobile-menu {
    top: 70px !important;
  }
}

@media (min-width: 1024px) {
  .nd-header.is-scrolled .nd-header-row {
    height: 86px !important;
  }

  .nd-header.is-scrolled .nd-logo img {
    height: 82px !important;
    max-height: 82px !important;
  }
}

.admin-bar .nd-header.is-scrolled .nd-mobile-menu {
  top: calc(54px + 32px) !important;
}

@media (max-width: 782px) {
  .admin-bar .nd-header.is-scrolled .nd-mobile-menu {
    top: calc(54px + 46px) !important;
  }
}

.nd-header-spacer {
  height: calc(var(--nd-row) + var(--nd-pad-y) * 2);
}

/* Mobile Menu Panel */
.nd-mobile-menu {
  position: fixed;
  top: calc(var(--nd-row) + var(--nd-pad-y) * 2);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: #ffffff;
  color: #1a1a1a;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

.nd-header.is-menu-open .nd-mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .nd-mobile-menu {
    display: none !important;
  }
}

/* Header logo: prominent lockup with responsive height & width */
.nd-logo {
  position: relative;
  display: grid !important;
  grid-template-areas: "logo";
  align-items: center;
  height: 100%;
}

.nd-logo img {
  grid-area: logo;
  display: block;
  width: auto;
  height: 58px;
  max-height: 58px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height, max-height, opacity;
}

@media (min-width: 640px) {
  .nd-logo img {
    height: 72px;
    max-height: 72px;
  }
}

@media (min-width: 1024px) {
  .nd-logo img {
    height: 130px;
    max-height: 130px;
  }
}

.nd-logo .nd-logo-light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: brightness(130%);
  /* filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .85)) drop-shadow(0 0 2px rgba(0, 0, 0, .7)); */
}

.nd-header.text-white .nd-logo .nd-logo-light {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}





/* Header state when mobile menu is open */
.nd-header.is-menu-open {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border-bottom: 1px solid #e5e5e5;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nd-header.is-menu-open .nd-logo .nd-logo-light {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nd-header.is-menu-open .nd-logo .nd-logo-dark {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nd-header.is-menu-open .nd-icon-open {
  display: none !important;
}

.nd-header.is-menu-open .nd-icon-close {
  display: block !important;
}

/* Single line horizontal nav: no scrollbars, smooth touch scroll on narrow viewports */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.nd-nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nd-actions {
  margin-left: auto;
}

.nd-cart-link {
  width: 2.5rem;
  height: 2.5rem;
}

.nd-cart-link svg {
  width: 20px;
  height: 20px;
}

.nd-cart-link .js-cart-count {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

.js-menu-toggle svg {
  width: 27px;
  height: 27px;
}

/* Responsive visibility for Header Navigation */
@media (min-width: 1024px) {
  .nd-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.25rem !important;
    height: 130px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nd-logo {
    display: grid !important;
    grid-template-areas: "logo";
    align-items: center !important;
    flex-shrink: 0 !important;
    justify-self: auto !important;
    margin-left: 0;
  }

  .nd-nav {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nd-nav a {
    font-size: 16px !important;
    letter-spacing: 0.05em !important;
  }

  .nd-cart-link {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nd-header .nd-lang-btn {
    font-size: 14px;
    gap: 0.35rem;
  }

  .nd-header .nd-flag {
    width: 18px;
    height: 18px;
  }

  .nd-header .nd-lang-chevron {
    width: 12px;
    height: 12px;
  }

  @media (min-width: 1280px) {
    .nd-header-row {
      gap: 1.75rem !important;
    }

    .nd-nav {
      gap: 1.15rem !important;
      margin: 0 auto !important;
    }

    .nd-header .nd-flag {
      width: 20px;
      height: 20px;
    }
  }

  @media (min-width: 1440px) {
    .nd-header-row {
      gap: 2.25rem !important;
    }

    .nd-nav {
      gap: 1.45rem !important;
      margin: 0 auto !important;
    }
  }

  .nd-actions {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    gap: 0.75rem !important;
    justify-self: auto !important;
  }

  @media (min-width: 1280px) {
    .nd-actions {
      gap: 1rem !important;
    }
  }

  .nd-lang-header {
    display: flex !important;
  }

  .js-menu-toggle {
    display: none !important;
  }

  .nd-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nd-nav {
    display: none !important;
  }

  .nd-lang-header {
    display: none !important;
  }

  .js-menu-toggle {
    display: inline-flex !important;
  }
}

/* Footer: reduced height & line spacing, high-definition official logo on crimson */

.nd-footer-logo img {
  display: block;
  width: 140px;
  max-height: none;
  height: auto;
  filter: brightness(130%);
  image-rendering: -webkit-optimize-contrast;
}

@media (min-width: 640px) {
  .nd-footer-logo img {
    width: 175px;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .nd-footer-inner {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .nd-footer-logo img {
    width: 215px;
    max-height: none;
  }

  .nd-footer-top {
    align-items: center !important;
  }

  .nd-footer-links {
    align-self: center !important;
  }
}

/* Mobile menu open state.
   backdrop-filter would make the fixed panel relative to the header (zero height), so drop it while open. */
.nd-header.is-menu-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #fff;
}

.nd-header.is-menu-open .nd-mobile-menu {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.nd-header.is-menu-open .nd-icon-open {
  display: none;
}

.nd-header.is-menu-open .nd-icon-close {
  display: inline;
}

/* Language dropdown --------------------------------------------------------- */
.nd-lang-btn {
  min-height: 28px;
  font-size: 11px;
}

.nd-lang-chevron {
  transition: transform .25s ease;
}

.nd-lang.is-open .nd-lang-chevron {
  transform: rotate(180deg);
}

.nd-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 12px 30px rgba(26, 26, 26, .12);
}

.nd-mobile-menu .nd-lang-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0; /* switcher sits at the right edge of the menu; left:0 pushed the list off-screen */
}

.nd-lang-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1rem;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}

.nd-lang-item:hover,
.nd-lang-item:focus-visible {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  outline: none;
}

.nd-lang-item[aria-selected="true"] {
  color: hsl(var(--primary));
}

/* Google Translate: hide its UI, keep the page in place */
.skiptranslate iframe,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
}

body {
  top: 0 !important;
  transition: opacity 0.25s ease;
}

/* Language switch: page fades in once Google has translated it (see main.js section 11) */
html.nd-tr-wait body {
  opacity: 0;
  transition: none;
}

font[style],
.goog-text-highlight,
.VIpgJd-yAWNEb-OQAvnd {
  background: none !important;
  box-shadow: none !important;
}

/* FAQ accordion --------------------------------------------------------- */
.nd-faq.is-open .nd-faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.nd-faq-icon {
  transition: transform .3s ease;
}

.nd-faq.is-open .nd-faq-icon {
  transform: rotate(45deg);
}

/* Product gallery thumbnails (only when a product has a gallery) */
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Rich text from the editor (articles, legal pages) – same type scale as the reference */
.nd-article p {
  font-size: 17px;
  line-height: 1.9;
  color: hsl(var(--foreground) / .85);
}

.nd-article h2,
.nd-article h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.nd-article a,
.nd-legal a,
.nd-prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nd-legal>p {
  margin-top: 1.25rem;
  font-size: 15.5px;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
}

.nd-legal>p:first-child {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 17px;
  color: hsl(var(--foreground) / .85);
}

.nd-legal h2,
.nd-legal h3 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

.nd-legal ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 15.5px;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
}

.nd-prose p {
  margin-top: 1rem;
  font-size: 16px;
  line-height: 1.85;
  color: hsl(var(--foreground) / .85);
}

/* Add-to-cart button feedback */
.js-add-to-cart.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* WP admin bar offset for the fixed header */
.admin-bar .nd-header {
  top: 32px;
}

.admin-bar .nd-mobile-menu {
  top: calc(var(--nd-row) + var(--nd-pad-y) * 2 + 32px);
}

@media (max-width: 782px) {
  .admin-bar .nd-header {
    top: 46px;
  }

  .admin-bar .nd-mobile-menu {
    top: calc(var(--nd-row) + var(--nd-pad-y) * 2 + 46px);
  }
}

/* Hero: slow, smooth, gradual photo transition and stable in-place text grid */
.nd-hero-slide {
  transition: opacity 3.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity;
}

.nd-hero-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: end;
  width: 100%;
  max-width: 42rem;
}

.nd-hero-text {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: opacity 1.8s ease-in-out;
}

/* ==========================================================================
   Product Cards & Bestsellers Carousel (Luxury Sicilian Style)
   ========================================================================== */

.nd-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nd-product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

/* On crimson backgrounds (Home bestsellers) */
.bg-primary .nd-product-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bg-primary .nd-product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.nd-product-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #FAF8F5;
  overflow: hidden;
}

@media (min-width: 640px) {
  .nd-product-media {
    aspect-ratio: 4 / 4.2;
  }
}

.nd-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nd-product-card:hover .nd-product-media img {
  transform: scale(1.06);
}

.nd-product-badge-soldout {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(26, 26, 26, 0.85);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nd-product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.35rem 1.35rem;
  background-color: #ffffff;
}

@media (min-width: 640px) {
  .nd-product-body {
    padding: 1.35rem 1.5rem 1.45rem;
  }
}

.nd-product-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9913a;
  margin-bottom: 0.35rem;
}

.nd-product-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-product-card:hover .nd-product-title {
  color: hsl(var(--primary));
}

.nd-product-weight {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #6b645b;
  background-color: #f7f5f0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 2.5px 8px;
  letter-spacing: 0.015em;
  line-height: 1.35;
}

.nd-product-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #666666;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-product-footer {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #f2efea;
}

.nd-product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.nd-product-price-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888888;
}

.nd-product-price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--primary));
  letter-spacing: -0.01em;
}

.nd-product-tax-note {
  font-size: 10px;
  line-height: 1.35;
  color: #777777;
  text-align: right;
  margin-top: -0.45rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.nd-product-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  background-color: hsl(var(--primary));
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(139, 24, 24, 0.24);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nd-product-btn:hover {
  background-color: #721515;
  box-shadow: 0 6px 18px rgba(139, 24, 24, 0.38);
  transform: translateY(-1px);
}

.nd-product-btn:active {
  transform: scale(0.98);
}

.nd-product-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Carousel floating side navigation arrows */
.nd-carousel-side-btn {
  display: none;
}

@media (min-width: 640px) {
  .nd-carousel-side-btn {
    display: flex;
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    z-index: 25;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: hsl(var(--primary));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nd-carousel-side-btn:hover {
    background: #ffffff;
    color: #721515;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  }

  .nd-carousel-side-btn:active {
    transform: translateY(-50%) scale(0.96);
  }

  .nd-carousel-side-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nd-carousel-side-prev {
    left: -16px;
  }

  .nd-carousel-side-next {
    right: -16px;
  }
}

@media (min-width: 1280px) {
  .nd-carousel-side-btn {
    width: 48px;
    height: 48px;
  }

  .nd-carousel-side-prev {
    left: -22px;
  }

  .nd-carousel-side-next {
    right: -22px;
  }
}

/* ==========================================================================
   Responsive Carousel Grid:
   - Mobile (< 640px): 1 card per view (gap: 20px)
   - Tablet (640px - 1023px): 2 cards per view (gap: 20px)
   - Desktop (>= 1024px): 4 cards per view (gap: 20px)
   ========================================================================== */

.nd-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  gap: 20px;
}

@media (min-width: 640px) {
  .nd-carousel-track {
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .nd-carousel-track {
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .nd-carousel-track {
    gap: 20px;
  }
}

.nd-carousel-item {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .nd-carousel-item {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1024px) {
  .nd-carousel-item {
    flex: 0 0 calc((100% - (20px * 3)) / 4);
    max-width: calc((100% - (20px * 3)) / 4);
    width: calc((100% - (20px * 3)) / 4);
  }
}

@media (min-width: 1280px) {
  .nd-carousel-item {
    flex: 0 0 calc((100% - (20px * 3)) / 4);
    max-width: calc((100% - (20px * 3)) / 4);
    width: calc((100% - (20px * 3)) / 4);
  }
}

/* Mobile & Tablet card optimizations for 2-column layout */
@media (max-width: 639px) {
  .nd-product-card {
    border-radius: 14px;
  }

  .nd-product-body {
    padding: 0.85rem 0.75rem 0.95rem;
  }

  .nd-product-category {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    margin-bottom: 0.25rem;
  }

  .nd-product-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .nd-product-weight {
    font-size: 10px;
    padding: 2px 6px;
    margin-top: 0.25rem;
  }

  .nd-product-desc {
    font-size: 11.5px;
    line-height: 1.45;
    margin-top: 0.2rem;
  }

  .nd-product-footer {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
  }

  .nd-product-price-row {
    margin-bottom: 0.6rem;
  }

  .nd-product-price-label {
    font-size: 9px;
  }

  .nd-product-price-value {
    font-size: 1.05rem;
  }

  .nd-product-btn {
    padding: 0.6rem 0.4rem;
    font-size: 9.5px;
    letter-spacing: 0.05em;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    gap: 0.3rem;
  }

  .nd-product-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .nd-product-badge-soldout {
    top: 8px;
    right: 8px;
    font-size: 8.5px;
    padding: 3px 8px;
  }
}

/* Chi siamo layout helpers */
.item-center {
  align-items: center;
}

.justfy-spacebetwin {
  justify-content: space-between;
  gap: 2.5rem;
}

@media (max-width: 640px) {
  .flex.justfy-spacebetwin {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* News Carousel styles ("NOTIZIE" page order & mouse-wheel scroll) */
.nd-news-carousel .nd-carousel-item {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .nd-news-carousel .nd-carousel-item {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    max-width: calc((100% - 20px) / 2) !important;
    width: calc((100% - 20px) / 2) !important;
  }
}

@media (min-width: 1024px) {
  .nd-news-carousel .nd-carousel-item {
    flex: 0 0 calc((100% - (20px * 3)) / 4) !important;
    max-width: calc((100% - (20px * 3)) / 4) !important;
    width: calc((100% - (20px * 3)) / 4) !important;
  }
}

@media (min-width: 1280px) {
  .nd-news-carousel .nd-carousel-item {
    flex: 0 0 calc((100% - (20px * 3)) / 4) !important;
    max-width: calc((100% - (20px * 3)) / 4) !important;
    width: calc((100% - (20px * 3)) / 4) !important;
  }
}

.nd-news-carousel .nd-carousel-side-btn {
  top: 45%;
}

.nd-news-track {
  cursor: grab;
}

.nd-news-track:active {
  cursor: grabbing;
}

/* ==========================================================================
   Swiper JS Integration Styles
   ========================================================================== */
.hero-swiper .swiper-slide {
  pointer-events: none;
}

.hero-swiper .swiper-slide-active {
  pointer-events: auto;
}

.bestsellers-swiper .swiper-slide,
.news-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.bestsellers-swiper .swiper-slide>.nd-product-card,
.news-swiper .swiper-slide>a {
  height: 100%;
  width: 100%;
}

.swiper-pagination-bullet-active {
  background: hsl(var(--primary)) !important;
}

/* ==========================================================================
   Categories Grid (Desktop 4, Tablet 2, Mobile 2)
   ========================================================================== */
.nd-categories-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 1.25rem;
  row-gap: 2rem;
}

@media (min-width: 640px) {
  .nd-categories-grid {
    column-gap: 1.75rem;
    row-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .nd-categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   Product Format Buttons & Information Tabs
   ========================================================================== */
.js-format-btn {
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  user-select: none;
}

.js-tab-btn {
  cursor: pointer;
  user-select: none;
}
/* Mobile menu open: hide the cookie banner so it doesn't cover the menu's language switcher (it comes back when the menu closes) */
body:has(.nd-header.is-menu-open) .nd-cookie {
  display: none !important;
}
