/*
 * NonSoloDisney child theme custom styles.
 * Scope: visual layer only, built on top of Classic parent assets.
 */

:root {
  --nsd-red: #d71920;
  --nsd-red-dark: #b81017;
  --nsd-blue: #009fe3;
  --nsd-blue-dark: #007db4;
  --nsd-yellow: #ffc400;
  --nsd-green: #25d366;
  --nsd-ink: #1f2a44;
  --nsd-muted: #60708a;
  --nsd-border: #e8edf5;
  --nsd-bg: #f7fbff;
  --nsd-white: #ffffff;
  --nsd-radius: 8px;
  --nsd-shadow: 0 8px 22px rgba(31, 42, 68, 0.08);
  --nsd-shadow-hover: 0 12px 28px rgba(31, 42, 68, 0.13);
}

html {
  background: var(--nsd-bg);
}

body {
  color: var(--nsd-ink);
  background:
    linear-gradient(180deg, rgba(0, 159, 227, 0.07) 0, rgba(247, 251, 255, 0) 260px),
    var(--nsd-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--nsd-blue-dark);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a:hover,
a:focus {
  color: var(--nsd-red);
  text-decoration: none;
}

#wrapper {
  background: transparent;
  padding-top: 1.25rem;
}

.container {
  max-width: 1200px;
}

.card,
.card-block,
.page-content,
.modal-content,
.popover,
.dropdown-menu {
  border-color: var(--nsd-border);
  border-radius: var(--nsd-radius);
}

.btn,
button,
input,
select,
textarea {
  border-radius: var(--nsd-radius);
}

.btn {
  font-weight: 700;
  text-transform: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
  background: var(--nsd-red);
  border-color: var(--nsd-red);
  color: var(--nsd-white);
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--nsd-red-dark);
  border-color: var(--nsd-red-dark);
}

.btn-secondary,
.btn-tertiary,
.btn-outline,
.js-search-toggler {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  color: var(--nsd-ink);
}

.btn-secondary:hover,
.btn-tertiary:hover,
.btn-outline:hover,
.js-search-toggler:hover {
  border-color: var(--nsd-blue);
  color: var(--nsd-blue-dark);
  box-shadow: 0 6px 16px rgba(0, 159, 227, 0.12);
}

.form-control,
.input-group,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  border-color: var(--nsd-border);
  color: var(--nsd-ink);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--nsd-blue);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.14);
  outline: 0;
}

.label,
.badge,
.product-flag,
.discount,
.discount-product {
  border-radius: 6px;
  font-weight: 800;
}

.price,
.current-price,
.product-price,
.product-price-and-shipping .price {
  color: var(--nsd-red);
  font-weight: 800;
}

.regular-price,
.product-discount .regular-price {
  color: #8a95a8;
}

/* Header */
#header {
  background: var(--nsd-white);
  color: var(--nsd-ink);
  border-bottom: 1px solid var(--nsd-border);
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
}

#header .header-banner {
  background: var(--nsd-blue);
  color: var(--nsd-white);
  font-weight: 700;
}

#header .header-nav {
  background: var(--nsd-white);
  border-bottom: 1px solid var(--nsd-border);
  color: var(--nsd-muted);
  min-height: 42px;
}

#header .header-nav a {
  color: var(--nsd-ink);
  font-weight: 600;
}

#header .header-nav a:hover {
  color: var(--nsd-red);
}

#header .header-top {
  background: var(--nsd-white);
  padding: 1rem 0 0.8rem;
}

#header .header-top > .container {
  position: relative;
}

#header .header-top > .container::before {
  content: "";
  display: block;
  height: 4px;
  margin: -1rem 0 1rem;
  background: linear-gradient(90deg, var(--nsd-red) 0%, var(--nsd-red) 33%, var(--nsd-yellow) 33%, var(--nsd-yellow) 66%, var(--nsd-blue) 66%, var(--nsd-blue) 100%);
  border-radius: 0 0 var(--nsd-radius) var(--nsd-radius);
}

#_desktop_logo img,
#_mobile_logo img,
#header .logo {
  max-height: 78px;
  width: auto;
}

#header .header-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#search_widget,
.search-widget {
  float: none;
  flex: 1 1 420px;
  max-width: 560px;
  min-width: 240px;
  order: 1;
}

#search_widget form,
.search-widget form {
  border: 2px solid rgba(0, 159, 227, 0.22);
  border-radius: var(--nsd-radius);
  background: var(--nsd-white);
  box-shadow: 0 6px 16px rgba(0, 159, 227, 0.1);
  overflow: hidden;
}

#search_widget form input,
.search-widget form input {
  min-height: 46px;
  border: 0;
  color: var(--nsd-ink);
  font-size: 0.98rem;
}

#search_widget form input::placeholder,
.search-widget form input::placeholder {
  color: #7b8ba3;
}

#search_widget form button,
.search-widget form button {
  color: var(--nsd-white);
  background: var(--nsd-blue);
  border: 0;
  min-width: 48px;
}

#search_widget form button:hover,
.search-widget form button:hover {
  background: var(--nsd-blue-dark);
}

#_desktop_cart,
#_desktop_user_info {
  flex: 0 0 auto;
}

#_desktop_user_info {
  order: 2;
}

#_desktop_cart {
  order: 3;
}

.blockcart,
.user-info {
  border-radius: var(--nsd-radius);
}

.blockcart.cart-preview {
  background: #fff7d6;
  border: 1px solid rgba(255, 196, 0, 0.5);
  color: var(--nsd-ink);
}

.blockcart.cart-preview.active {
  background: var(--nsd-red);
  color: var(--nsd-white);
}

.blockcart .header,
.user-info a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.75rem;
  font-weight: 800;
}

.blockcart a,
.blockcart a:hover,
.blockcart.active a,
.blockcart.active a:hover {
  color: inherit;
}

.cart-products-count {
  font-weight: 900;
}

.user-info a {
  color: var(--nsd-ink);
  background: #eef9ff;
  border: 1px solid rgba(0, 159, 227, 0.22);
  border-radius: var(--nsd-radius);
}

.user-info a:hover {
  color: var(--nsd-blue-dark);
  border-color: var(--nsd-blue);
}

#_desktop_top_menu {
  align-items: center;
  background: var(--nsd-white);
  border-top: 1px solid var(--nsd-border);
  display: flex;
  flex: 0 0 100%;
  margin-top: 0.75rem;
  order: 20;
  padding-top: 0.75rem;
}

#_desktop_top_menu::before {
  align-items: center;
  background: var(--nsd-red);
  border-radius: var(--nsd-radius);
  color: var(--nsd-white);
  content: "Sfoglia categorie";
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  margin-right: 0.75rem;
  min-height: 42px;
  padding: 0 0.95rem;
}

#_desktop_top_menu::after {
  background: linear-gradient(90deg, var(--nsd-yellow), var(--nsd-blue));
  border-radius: 999px;
  content: "";
  flex: 0 0 64px;
  height: 4px;
  margin-left: auto;
}

#_desktop_top_menu .top-menu {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
}

.top-menu a[data-depth="0"] {
  color: var(--nsd-ink);
  font-weight: 800;
  padding: 0.65rem 0.8rem;
  border-radius: var(--nsd-radius);
  white-space: nowrap;
}

.top-menu a[data-depth="0"]:hover,
.top-menu .current a[data-depth="0"] {
  color: var(--nsd-red);
  background: #fff3f4;
}

.top-menu .sub-menu {
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
}

/* Breadcrumb and page headings */
.breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
  padding: 0;
}

.breadcrumb ol {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
}

.breadcrumb li::after {
  color: var(--nsd-blue);
}

.breadcrumb a,
.breadcrumb span {
  color: var(--nsd-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
  color: var(--nsd-ink);
  font-weight: 800;
}

.page-header h1,
.block-category .h1,
#js-product-list-header .h1,
body#product h1.h1 {
  color: var(--nsd-ink);
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

/* Homepage and category listing */
#index #wrapper,
#category #wrapper,
#search #wrapper,
#prices-drop #wrapper,
#new-products #wrapper,
#best-sales #wrapper {
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.14), rgba(255, 196, 0, 0) 180px),
    transparent;
}

.featured-products,
.product-accessories,
.products-section-title,
.block-category {
  margin-bottom: 1.5rem;
}

.featured-products .products-section-title,
.product-accessories .h5,
.products-section-title {
  color: var(--nsd-ink);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: left;
}

.featured-products .products-section-title::after,
.product-accessories .h5::after,
.products-section-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--nsd-red) 0%, var(--nsd-yellow) 50%, var(--nsd-blue) 100%);
  border-radius: 4px;
}

.block-category {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-left: 6px solid var(--nsd-blue);
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
  overflow: hidden;
}

.block-category .block-category-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#category-description,
.block-category #category-description {
  color: var(--nsd-muted);
  font-size: 0.98rem;
}

.block-category .category-cover img {
  border-radius: var(--nsd-radius);
  object-fit: cover;
}

.products-selection {
  align-items: center;
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.06);
  margin: 0 0 1rem;
  padding: 0.75rem;
}

.products-selection .total-products p,
.products-selection .sort-by,
.products-selection label,
.products-selection .showing {
  color: var(--nsd-muted);
  font-weight: 700;
  margin-bottom: 0;
}

.products-selection select {
  border-color: var(--nsd-border);
  color: var(--nsd-ink);
}

#js-product-list .products {
  align-items: stretch;
}

#js-product-list .products > .product,
.featured-products .products > .product,
.product-accessories .products > .product {
  margin-bottom: 1.5rem;
}

/* Product cards */
.product-miniature {
  height: 100%;
}

.product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.07);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-miniature .thumbnail-container:hover,
.product-miniature .thumbnail-container:focus-within {
  border-color: rgba(0, 159, 227, 0.42);
  box-shadow: var(--nsd-shadow-hover);
  transform: translateY(-3px);
}

.product-miniature .thumbnail-top {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 159, 227, 0.08), rgba(255, 196, 0, 0.12)),
    var(--nsd-white);
}

.product-miniature .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1rem;
}

.product-miniature .product-thumbnail img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.04);
}

.product-miniature .product-description {
  position: static;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  width: auto;
  height: auto;
  min-height: 128px;
  padding: 0.85rem 0.9rem 1rem;
  background: var(--nsd-white);
}

.product-miniature .product-title {
  min-height: 2.9em;
  margin: 0 0 0.65rem;
  text-align: left;
}

.product-miniature .product-title a {
  color: var(--nsd-ink);
  display: -webkit-box;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-miniature .product-title a:hover {
  color: var(--nsd-red);
}

.product-miniature .product-price-and-shipping {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: auto;
  text-align: left;
}

.product-miniature .price {
  color: var(--nsd-red);
  font-size: 1.2rem;
  font-weight: 900;
}

.product-miniature .regular-price {
  font-size: 0.88rem;
}

.product-miniature .highlighted-informations {
  position: static;
  width: 100%;
  height: auto;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--nsd-border);
  box-shadow: none;
  padding: 0.65rem 0.75rem;
}

.product-miniature .quick-view {
  color: var(--nsd-blue-dark);
  font-weight: 800;
}

.product-flags {
  left: 0.55rem;
  top: 0.55rem;
}

.product-flags li.product-flag {
  background: var(--nsd-red);
  box-shadow: 0 5px 12px rgba(215, 25, 32, 0.2);
  color: var(--nsd-white);
  font-size: 0.75rem;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  padding: 0.32rem 0.48rem;
}

.product-flags li.product-flag.new {
  background: var(--nsd-blue);
}

.product-flags li.product-flag.discount,
.discount-percentage,
.discount-amount,
.discount-product {
  background: var(--nsd-yellow);
  color: var(--nsd-ink);
}

/* Facets and sidebar */
#left-column .block,
#search_filters,
#search_filters_brands,
#search_filters_suppliers {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.06);
  padding: 1rem;
}

#search_filters .h6,
#search_filters .facet-title {
  color: var(--nsd-ink);
  font-size: 0.95rem;
  font-weight: 900;
}

#search_filters .facet {
  border-top: 1px solid var(--nsd-border);
  padding: 0.85rem 0;
}

#search_filters .facet:first-of-type {
  border-top: 0;
}

#search_filters .facet-label {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

#search_filters .search-link {
  color: var(--nsd-muted);
  font-weight: 700;
}

#search_filters .facet-label.active .search-link,
#search_filters .search-link:hover {
  color: var(--nsd-red);
}

.custom-checkbox input[type="checkbox"] + span,
.custom-radio input[type="radio"] + span {
  border-color: var(--nsd-border);
}

.custom-checkbox input[type="checkbox"]:checked + span,
.custom-radio input[type="radio"]:checked + span {
  background-color: var(--nsd-blue);
  border-color: var(--nsd-blue);
}

/* Product page */
body#product #wrapper {
  background:
    linear-gradient(180deg, rgba(0, 159, 227, 0.09), rgba(247, 251, 255, 0) 230px),
    var(--nsd-bg);
}

body#product #main {
  background: transparent;
}

body#product .product-container {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
  margin: 0 0 1.5rem;
  padding: 1.25rem;
}

body#product .page-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body#product h1.h1 {
  font-size: 2.15rem;
  margin-top: 0.25rem;
}

body#product .product-description {
  color: var(--nsd-muted);
  font-size: 1rem;
}

.images-container .product-cover {
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.08);
  overflow: hidden;
}

.images-container .product-cover img {
  background: var(--nsd-white);
  object-fit: contain;
}

.product-images > li.thumb-container .thumb {
  border: 2px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  opacity: 1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover {
  border-color: var(--nsd-blue);
  box-shadow: 0 5px 12px rgba(0, 159, 227, 0.14);
}

.product-prices {
  background: #fff7f7;
  border: 1px solid rgba(215, 25, 32, 0.14);
  border-left: 6px solid var(--nsd-red);
  border-radius: var(--nsd-radius);
  margin: 1rem 0;
  padding: 0.9rem 1rem;
}

.product-prices .current-price {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-prices .current-price-value {
  color: var(--nsd-red);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.product-prices .tax-shipping-delivery-label,
.product-prices .product-unit-price,
.product-without-taxes {
  color: var(--nsd-muted);
  font-size: 0.9rem;
}

.product-actions {
  background: #fbfdff;
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  margin-top: 1rem;
  padding: 1rem;
}

.product-variants > .product-variants-item {
  margin-bottom: 1rem;
}

.product-variants .control-label,
.product-add-to-cart .control-label {
  color: var(--nsd-ink);
  font-weight: 900;
}

.product-quantity {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-quantity .qty {
  margin-right: 0;
}

.product-quantity #quantity_wanted {
  border: 2px solid var(--nsd-border);
  color: var(--nsd-ink);
  font-size: 1.1rem;
  font-weight: 800;
  min-height: 52px;
  text-align: center;
}

.product-quantity .add {
  flex: 1 1 230px;
}

.product-quantity .add .add-to-cart {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  font-size: 1rem;
}

#product-availability {
  display: block;
  font-weight: 800;
  margin-top: 0.75rem;
}

#product-availability .product-available {
  color: var(--nsd-green);
}

#product-availability .product-last-items {
  color: var(--nsd-yellow);
}

#product-availability .product-unavailable {
  color: var(--nsd-red);
}

.tabs {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.06);
  margin-top: 1.5rem;
  padding: 1rem;
}

.tabs .nav-tabs {
  border-bottom: 1px solid var(--nsd-border);
}

.tabs .nav-tabs .nav-link {
  color: var(--nsd-muted);
  font-weight: 900;
}

.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
  border-color: transparent transparent var(--nsd-red);
  color: var(--nsd-red);
}

/* Product trust box inserted by the child template override */
.nsd-product-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.nsd-trust-item {
  align-items: center;
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  color: var(--nsd-ink);
  display: flex;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.nsd-trust-item .material-icons {
  align-items: center;
  background: #eef9ff;
  border-radius: var(--nsd-radius);
  color: var(--nsd-blue);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nsd-trust-whatsapp .material-icons {
  background: #ebfff3;
  color: var(--nsd-green);
}

.nsd-trust-shipping .material-icons {
  background: #eef9ff;
  color: var(--nsd-blue);
}

.nsd-trust-payment .material-icons {
  background: #fff7d6;
  color: #b38200;
}

.nsd-trust-gifts .material-icons {
  background: #fff3f4;
  color: var(--nsd-red);
}

/* Footer */
#footer {
  background: transparent;
}

.footer-container {
  background:
    linear-gradient(180deg, #263451, var(--nsd-ink)),
    var(--nsd-ink);
  border-top: 5px solid var(--nsd-yellow);
  color: var(--nsd-white);
  margin-top: 2rem;
  padding-top: 2rem;
}

.footer-container .container {
  position: relative;
}

.footer-container .h3,
.footer-container .h4,
.footer-container .h6,
.footer-container .title,
.footer-container .myaccount-title,
.footer-container .block-contact-title {
  color: var(--nsd-white);
  font-weight: 900;
}

.footer-container p,
.footer-container li,
.footer-container .block-contact {
  color: rgba(255, 255, 255, 0.78);
}

.footer-container a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.footer-container a:hover,
.footer-container a:focus {
  color: var(--nsd-yellow);
}

.footer-container .links .collapse,
.footer-container .block-contact,
.footer-container #block_myaccount_infos {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nsd-radius);
  padding: 1rem;
}

.footer-container .block-contact {
  border-left: 4px solid var(--nsd-green);
}

.footer-container .text-sm-center {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.footer-container .text-sm-center a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

/* Cart and checkout surfaces keep the same flow with clearer cards */
#cart .cart-grid-body,
#cart .cart-grid-right .card,
#checkout .card,
#checkout .checkout-step {
  border-color: var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.06);
}

#cart .cart-summary-line .value,
#cart .cart-total .value {
  color: var(--nsd-red);
  font-weight: 900;
}

/* Responsive */
@media (max-width: 991px) {
  #header .header-nav {
    box-shadow: 0 4px 12px rgba(31, 42, 68, 0.08);
  }

  #header .header-nav .mobile {
    align-items: center;
    display: flex;
    min-height: 62px;
  }

  #menu-icon {
    color: var(--nsd-blue);
    font-weight: 900;
    padding: 0.55rem 0.65rem;
  }

  #_mobile_logo {
    flex: 1 1 auto;
    text-align: center;
  }

  #_mobile_logo img {
    max-height: 54px;
  }

  #_mobile_cart,
  #_mobile_user_info {
    margin-left: 0.35rem;
  }

  #mobile_top_menu_wrapper {
    background: var(--nsd-white);
    border-top: 1px solid var(--nsd-border);
    box-shadow: var(--nsd-shadow);
    padding: 0.75rem;
  }

  #mobile_top_menu_wrapper .top-menu a {
    color: var(--nsd-ink);
    font-weight: 800;
  }

  #header .header-top {
    padding: 0.8rem 0;
  }

  #header .header-top-right {
    display: block;
  }

  #search_widget,
  .search-widget {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .products-selection {
    padding: 0.65rem;
  }

  body#product .product-container {
    padding: 0.85rem;
  }

  body#product h1.h1,
  .page-header h1,
  .block-category .h1 {
    font-size: 1.65rem;
  }
}

@media (max-width: 767px) {
  #wrapper {
    padding-top: 0.85rem;
  }

  .block-category .block-category-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-miniature .product-description {
    min-height: 116px;
  }

  .product-miniature .product-title a {
    font-size: 0.94rem;
  }

  .product-prices .current-price-value {
    font-size: 1.7rem;
  }

  .product-quantity {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-quantity .add {
    flex-basis: auto;
  }

  .nsd-product-trust {
    grid-template-columns: 1fr;
  }

  .tabs {
    padding: 0.75rem;
  }

  .footer-container {
    padding-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .product-quantity {
    grid-template-columns: 1fr;
  }

  .product-quantity #quantity_wanted,
  .product-quantity .add .add-to-cart {
    width: 100%;
  }

  .breadcrumb ol {
    display: flex;
  }
}

/* Navigation priority layer */
#header .header-top-right > #_desktop_top_menu {
  display: none;
}

.nsd-primary-nav {
  background: var(--nsd-white);
  border-top: 1px solid var(--nsd-border);
  border-bottom: 1px solid var(--nsd-border);
}

.nsd-primary-nav-inner {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 54px;
}

.nsd-primary-nav-label {
  align-items: center;
  align-self: stretch;
  background: var(--nsd-red);
  color: var(--nsd-white);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  font-weight: 900;
  padding: 0 1rem;
}

.nsd-primary-nav-label .material-icons {
  color: var(--nsd-yellow);
}

.nsd-primary-nav nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 0.25rem;
  overflow-x: auto;
}

.nsd-primary-nav nav a {
  border-radius: var(--nsd-radius);
  color: var(--nsd-ink);
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 0.58rem 0.7rem;
  white-space: nowrap;
}

.nsd-primary-nav nav a:hover {
  background: #fff7d6;
  color: var(--nsd-red);
}

.nsd-primary-nav nav a.nsd-polystyrene-link {
  background: #eef9ff;
  border: 1px solid rgba(0, 159, 227, 0.28);
  color: var(--nsd-blue-dark);
}

.nsd-primary-nav nav a.nsd-polystyrene-link:hover {
  background: var(--nsd-ink);
  border-color: var(--nsd-ink);
  color: var(--nsd-white);
}

@media (max-width: 767px) {
  .nsd-primary-nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.55rem 0;
  }

  .nsd-primary-nav-label {
    align-self: flex-start;
    border-radius: var(--nsd-radius);
    min-height: 38px;
  }

  .nsd-primary-nav nav {
    padding-top: 0.5rem;
  }

  .nsd-primary-nav nav a {
    font-size: 0.86rem;
  }
}

/* Layout v2: toy store inspired structure */
:root {
  --nsd-bg: #f5fbff;
  --nsd-border: #e4ecf7;
  --nsd-soft-blue: #eaf8ff;
  --nsd-soft-red: #fff1f2;
  --nsd-soft-yellow: #fff8d9;
  --nsd-soft-green: #eafff3;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 159, 227, 0.1) 0, rgba(245, 251, 255, 0) 320px),
    var(--nsd-bg);
}

#wrapper {
  padding-top: 1.1rem;
}

body#index #wrapper {
  padding-top: 0;
}

#header {
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(31, 42, 68, 0.09);
}

#header .header-top > .container::before {
  display: none;
}

#header .header-banner {
  background: var(--nsd-blue);
}

#header .header-banner:empty {
  display: none;
}

.nsd-promo-bar {
  background: var(--nsd-ink);
  color: var(--nsd-white);
  font-size: 0.86rem;
  font-weight: 800;
}

.nsd-promo-bar .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  gap: 1rem;
}

.nsd-promo-bar span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.nsd-promo-bar .material-icons {
  color: var(--nsd-yellow);
  font-size: 1.05rem;
}

#header .header-nav {
  background: var(--nsd-white);
  border-bottom: 1px solid var(--nsd-border);
  min-height: 36px;
}

#header .header-nav .right-nav {
  text-align: right;
}

#header .header-top {
  padding: 1rem 0;
}

.nsd-header-main {
  align-items: center;
  display: flex;
}

#_desktop_logo h1 {
  margin: 0;
}

#_desktop_logo img,
#header .logo {
  max-height: 86px;
}

#header .header-top-right {
  flex-wrap: nowrap;
  gap: 0.85rem;
}

#header .header-top-right > #_desktop_top_menu {
  display: none;
}

#search_widget,
.search-widget {
  max-width: none;
}

#search_widget form,
.search-widget form {
  border: 2px solid var(--nsd-blue);
  box-shadow: 0 8px 20px rgba(0, 159, 227, 0.12);
}

#search_widget form input,
.search-widget form input {
  min-height: 50px;
  padding-left: 1rem;
}

#search_widget form button,
.search-widget form button {
  background: var(--nsd-yellow);
  color: var(--nsd-ink);
  min-width: 58px;
}

#search_widget form button:hover,
.search-widget form button:hover {
  background: var(--nsd-red);
  color: var(--nsd-white);
}

.user-info a,
.blockcart .header {
  min-height: 50px;
}

.user-info a {
  background: var(--nsd-soft-blue);
  border-color: rgba(0, 159, 227, 0.28);
}

.blockcart.cart-preview {
  background: var(--nsd-soft-red);
  border: 2px solid rgba(215, 25, 32, 0.22);
}

.blockcart.cart-preview.active,
.blockcart.cart-preview:hover {
  background: var(--nsd-red);
  border-color: var(--nsd-red);
  color: var(--nsd-white);
}

.page-home .featured-products .products-section-title,
.page-home .products-section-title,
.page-home .product-accessories .h5 {
  color: var(--nsd-ink);
  font-size: 1.55rem;
  font-weight: 900;
  margin: 0 0 1rem;
  text-align: left;
}

.page-home .featured-products .products-section-title::after,
.page-home .products-section-title::after,
.page-home .product-accessories .h5::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--nsd-red) 0%, var(--nsd-yellow) 50%, var(--nsd-blue) 100%);
  border-radius: 6px;
}

.page-home .ps_imageslider,
.page-home #carousel,
.page-home .carousel,
.page-home .ps_banner,
.page-home .custom-text {
  border-radius: var(--nsd-radius);
  overflow: hidden;
  box-shadow: var(--nsd-shadow);
}

.page-home .custom-text {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  padding: 1.25rem;
}

/* Product card v2 */
.product-miniature .thumbnail-container {
  min-height: 100%;
  border: 1px solid var(--nsd-border);
}

.product-miniature .product-thumbnail {
  aspect-ratio: 4 / 3;
  padding: 0.85rem;
}

.product-miniature .product-description {
  min-height: 176px;
  padding: 0.75rem 0.85rem 0.85rem;
}

.nsd-product-brand {
  color: var(--nsd-blue-dark);
  font-size: 0.73rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  min-height: 1em;
  text-transform: uppercase;
}

.product-miniature .product-title {
  min-height: 2.75em;
}

.product-miniature .product-title a {
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
}

.product-miniature .product-price-and-shipping {
  min-height: 32px;
}

.product-miniature .price {
  font-size: 1.18rem;
}

.nsd-product-actions {
  margin-top: 0.75rem;
}

.nsd-product-cta {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
}

.nsd-product-cta .material-icons {
  font-size: 1.05rem;
}

.product-miniature .highlighted-informations {
  min-height: 38px;
  padding: 0.45rem 0.65rem;
}

.product-miniature .quick-view {
  font-size: 0.82rem;
}

.product-flags li.product-flag {
  font-size: 0.68rem;
  padding: 0.26rem 0.4rem;
}

/* Footer v2 */
.nsd-footer-service {
  background: transparent;
  margin-top: 2rem;
}

.nsd-footer-service-grid {
  background: var(--nsd-white);
  border: 1px solid var(--nsd-border);
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.nsd-footer-service-grid div {
  align-items: center;
  border-right: 1px solid var(--nsd-border);
  color: var(--nsd-ink);
  display: flex;
  gap: 0.65rem;
  min-height: 70px;
  padding: 0.85rem 1rem;
  font-weight: 900;
}

.nsd-footer-service-grid div:last-child {
  border-right: 0;
}

.nsd-footer-service-grid .material-icons {
  align-items: center;
  background: #eef9ff;
  border-radius: var(--nsd-radius);
  color: var(--nsd-blue);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nsd-footer-service-grid div:first-child .material-icons {
  background: #eafff3;
  color: var(--nsd-green);
}

.footer-container {
  background: var(--nsd-ink);
  border-top: 6px solid var(--nsd-blue);
  margin-top: -1.2rem;
  padding-top: 3.2rem;
}

.footer-container::before {
  content: "";
  display: block;
  height: 5px;
  max-width: 1200px;
  margin: -2rem auto 1.3rem;
  background: linear-gradient(90deg, var(--nsd-red) 0%, var(--nsd-yellow) 50%, var(--nsd-blue) 100%);
  border-radius: var(--nsd-radius);
}

@media (max-width: 991px) {
  .nsd-promo-bar .container {
    justify-content: center;
    overflow-x: auto;
  }

  #header .header-top {
    padding: 0.8rem 0;
  }

  #header .header-top-right {
    display: block;
  }

  #search_widget form,
  .search-widget form {
    margin-top: 0;
  }

  .nsd-footer-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nsd-promo-bar {
    font-size: 0.78rem;
  }

  .nsd-promo-bar .container {
    min-height: 34px;
  }

  #header .header-nav .mobile {
    min-height: 58px;
  }

  .nsd-footer-service-grid {
    grid-template-columns: 1fr;
  }

  .nsd-footer-service-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--nsd-border);
  }

  .nsd-footer-service-grid div:last-child {
    border-bottom: 0;
  }

  .product-miniature .product-description {
    min-height: 166px;
  }
}
