.farelli-theme {
  color: #102a43;
  background: #fff;
}
.farelli-theme .page-header {
  border: 0;
  margin: 0;
  box-shadow: 0 1px 0 rgba(16, 42, 67, 0.08);
}
.farelli-theme .header.content {
  max-width: 1280px;
  min-height: 88px;
  display: flex;
  align-items: center;
}
.farelli-theme .logo {
  margin: 0 42px 0 0;
  max-width: 220px;
}
.farelli-theme .logo img {
  max-height: 52px;
}
.farelli-theme .nav-sections {
  background: #fff;
  border: 0;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.04);
}
.farelli-theme .navigation {
  max-width: 1280px;
  background: transparent;
  font-weight: 600;
}
.farelli-theme .navigation .level0 > .level-top {
  color: #102a43;
  padding: 18px 15px;
}
.farelli-theme .navigation .level0.active > .level-top,
.farelli-theme .navigation .level0.has-active > .level-top,
.farelli-theme .navigation .level0:hover > .level-top {
  color: #168b65;
}
.farelli-theme .page-main {
  max-width: 1280px;
  padding-left: 20px;
  padding-right: 20px;
}
.farelli-theme .page-title-wrapper .page-title {
  font-weight: 700;
  color: #071b2f;
}
.farelli-theme .columns .column.main {
  padding-bottom: 0;
}
.farelli-theme .product-item {
  margin-bottom: 28px;
}
.farelli-theme .products-grid .product-item-info {
  border: 1px solid #e5edf3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.farelli-theme .products-grid .product-item-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 42, 67, 0.12);
}
.farelli-theme .products-grid .product-item-photo {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f8fb;
}
.farelli-theme .product-item-name > a {
  color: #102a43;
  font-weight: 700;
}
.farelli-theme .price {
  color: #168b65;
  font-size: 20px;
  font-weight: 800;
}
.farelli-theme .old-price .price {
  color: #8ca0ae;
  font-size: 14px;
  font-weight: 500;
}
.farelli-theme .action.primary {
  border: 0;
  border-radius: 8px;
  background: #102a43;
  padding: 13px 20px;
  font-weight: 700;
}
.farelli-theme .action.primary:hover,
.farelli-theme .action.primary:focus {
  background: #168b65;
}
.farelli-theme .footer.content {
  max-width: 1280px;
  border-top: 1px solid #dce7ed;
  padding-top: 36px;
}
.farelli-theme .copyright {
  background: #071b2f;
  color: #cbd9e2;
}
.farelli-home {
  margin: 0 -20px 70px;
  overflow: hidden;
}
.farelli-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 70px 42px;
  color: #fff;
  background: radial-gradient(circle at 86% 16%, rgba(114, 241, 184, 0.26), transparent 28%), radial-gradient(circle at 60% 80%, rgba(75, 140, 255, 0.38), transparent 34%), linear-gradient(120deg, #06182a 0%, #102f4b 100%);
}
.farelli-eyebrow {
  margin: 0 0 12px;
  color: #168b65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.farelli-hero .farelli-eyebrow {
  color: #72f1b8;
}
.farelli-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 70px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.farelli-hero__lead {
  max-width: 570px;
  margin: 24px 0 30px;
  color: #d3e0e8;
  font-size: 18px;
  line-height: 1.6;
}
.farelli-hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.farelli-hero .action.primary {
  background: #72f1b8;
  color: #071b2f;
}
.farelli-link {
  color: #168b65;
  font-weight: 800;
  text-decoration: none;
}
.farelli-hero .farelli-link {
  color: #fff;
}
.farelli-link span {
  margin-left: 6px;
  font-size: 18px;
}
.farelli-hero__stats {
  display: flex;
  gap: 34px;
  padding: 0;
  margin: 52px 0 0;
  list-style: none;
}
.farelli-hero__stats li {
  display: grid;
  gap: 4px;
}
.farelli-hero__stats strong {
  color: #72f1b8;
  font-size: 22px;
}
.farelli-hero__stats span {
  color: #b7cbd7;
  font-size: 12px;
}
.farelli-hero__visual {
  position: relative;
  min-height: 405px;
}
.farelli-device {
  position: absolute;
  z-index: 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.farelli-device--phone {
  width: 200px;
  height: 370px;
  left: 24%;
  top: 5%;
  border: 9px solid #202d39;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 26%, #72f1b8, transparent 20%), linear-gradient(145deg, #4b8cff, #5d34b9 48%, #071b2f);
  transform: rotate(-12deg);
}
.farelli-device--phone:after {
  content: '';
  position: absolute;
  width: 72px;
  height: 12px;
  left: calc(50% - 36px);
  top: 9px;
  border-radius: 9px;
  background: #202d39;
}
.farelli-device--watch {
  width: 140px;
  height: 164px;
  right: 8%;
  top: 25%;
  border: 18px solid #72f1b8;
  border-top-width: 74px;
  border-bottom-width: 74px;
  border-radius: 42px;
  background: radial-gradient(circle, #ff8f69 0 14%, #071b2f 15%);
  transform: rotate(15deg);
}
.farelli-device--buds {
  width: 170px;
  height: 110px;
  right: 9%;
  bottom: 4%;
  border-radius: 54px;
  background: linear-gradient(145deg, #e7f5f3, #9ed5cd);
  transform: rotate(-10deg);
}
.farelli-device--buds:before,
.farelli-device--buds:after {
  content: '';
  position: absolute;
  top: 26px;
  width: 38px;
  height: 52px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 -8px 0 #d7e6e5;
}
.farelli-device--buds:before {
  left: 38px;
}
.farelli-device--buds:after {
  right: 38px;
}
.farelli-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.farelli-orb--one {
  width: 150px;
  height: 150px;
  top: 0;
  right: 26%;
  background: rgba(75, 140, 255, 0.7);
}
.farelli-orb--two {
  width: 95px;
  height: 95px;
  bottom: 0;
  left: 8%;
  background: rgba(255, 123, 84, 0.8);
}
.farelli-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 20px 0;
}
.farelli-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.farelli-section h2 {
  margin: 0;
  color: #071b2f;
  font-size: 34px;
  letter-spacing: -0.03em;
}
.farelli-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.farelli-category-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.farelli-category-card:hover {
  transform: translateY(-4px);
  color: #fff;
}
.farelli-category-card--0 {
  background: linear-gradient(145deg, #165d7e, #102a43);
}
.farelli-category-card--1 {
  background: linear-gradient(145deg, #6146b7, #1b2458);
}
.farelli-category-card--2 {
  background: linear-gradient(145deg, #168b65, #0b3d32);
}
.farelli-category-card--3 {
  background: linear-gradient(145deg, #d85b4a, #772b50);
}
.farelli-category-card--4 {
  background: linear-gradient(145deg, #325fb2, #19305e);
}
.farelli-category-card--5 {
  background: linear-gradient(145deg, #805538, #3b2934);
}
.farelli-category-card:after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  top: -24px;
  right: -20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.06), 0 0 0 48px rgba(255, 255, 255, 0.04);
}
.farelli-category-card__number {
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
}
.farelli-category-card__title {
  position: relative;
  z-index: 1;
  max-width: 150px;
  font-size: 19px;
  font-weight: 800;
}
.farelli-category-card__arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  font-size: 24px;
}
.farelli-deals {
  padding-top: 96px;
}
.farelli-deals__note {
  color: #6b7e8c;
  font-size: 13px;
}
.farelli-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.farelli-product-card {
  overflow: hidden;
  border: 1px solid #e4edf2;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.farelli-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 42, 67, 0.12);
}
.farelli-product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f2f6f8;
}
.farelli-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}
.farelli-product-card:hover img {
  transform: scale(1.05);
}
.farelli-product-card__badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #fff;
  background: #f35c43;
  font-size: 12px;
  font-weight: 800;
}
.farelli-product-card__body {
  padding: 16px;
}
.farelli-product-card__name {
  display: block;
  min-height: 42px;
  color: #102a43;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.farelli-product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 13px 0;
}
.farelli-product-card__prices strong {
  color: #168b65;
  font-size: 20px;
}
.farelli-product-card__prices s {
  color: #8ca0ae;
  font-size: 13px;
}
.farelli-product-card__more {
  color: #102a43;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.farelli-product-card__more span {
  color: #168b65;
  font-size: 17px;
}
.farelli-promo {
  max-width: 1160px;
  margin: 88px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 54px 64px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(135deg, #168b65, #0b5644 50%, #102a43);
}
.farelli-promo h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.05;
}
.farelli-promo p {
  max-width: 520px;
  color: #d5f5e9;
}
.farelli-promo__code {
  min-width: 245px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.65);
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}
.farelli-promo__code span,
.farelli-promo__code small {
  display: block;
  color: #ccecdf;
  font-size: 11px;
  letter-spacing: 0.11em;
}
.farelli-promo__code strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 29px;
  letter-spacing: 0.07em;
}
.farelli-journal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}
.farelli-journal-card {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: #102a43;
}
.farelli-journal-card:hover {
  color: #fff;
}
.farelli-journal-card span {
  margin-bottom: auto;
  color: #a5c7d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.farelli-journal-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.17;
}
.farelli-journal-card b {
  font-size: 13px;
}
.farelli-journal-card--wide {
  background: linear-gradient(130deg, #073a4b, #0e816e);
}
.farelli-journal-card--blue {
  background: linear-gradient(150deg, #3457a6, #1b2b61);
}
.farelli-journal-card--light {
  color: #102a43;
  background: #e8f0f5;
}
.farelli-journal-card--light span {
  color: #56839b;
}
.farelli-journal-card--light:hover {
  color: #102a43;
}
@media (max-width: 900px) {
  .farelli-hero {
    grid-template-columns: 1fr;
    padding: 56px 28px;
  }
  .farelli-hero__visual {
    display: none;
  }
  .farelli-category-grid,
  .farelli-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .farelli-journal-grid {
    grid-template-columns: 1fr;
  }
  .farelli-promo {
    margin-left: 20px;
    margin-right: 20px;
    padding: 38px;
    flex-direction: column;
    align-items: flex-start;
  }
  .farelli-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 560px) {
  .farelli-home {
    margin-left: -15px;
    margin-right: -15px;
  }
  .farelli-hero {
    min-height: auto;
  }
  .farelli-hero h1 {
    font-size: 42px;
  }
  .farelli-hero__stats {
    gap: 16px;
    flex-wrap: wrap;
  }
  .farelli-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .farelli-category-grid,
  .farelli-product-grid {
    grid-template-columns: 1fr;
  }
  .farelli-promo h2 {
    font-size: 34px;
  }
  .farelli-promo__code {
    width: 100%;
    box-sizing: border-box;
  }
  .farelli-theme .header.content {
    padding: 16px;
  }
  .farelli-theme .logo {
    max-width: 175px;
    margin-right: auto;
  }
}
.farelli-article {
  max-width: 920px;
  margin: 56px auto 84px;
}
.farelli-article h1 {
  max-width: 820px;
  color: #071b2f;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.farelli-article__lead {
  max-width: 700px;
  color: #486173;
  font-size: 20px;
  line-height: 1.6;
}
.farelli-article__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 42px 0;
}
.farelli-article__grid section {
  padding: 26px;
  border: 1px solid #dfe9ef;
  border-radius: 16px;
  background: #f8fbfc;
}
.farelli-article__grid h2 {
  margin-top: 0;
  color: #071b2f;
  font-size: 23px;
}
.farelli-article__grid p {
  margin-bottom: 0;
  color: #4a6272;
  line-height: 1.55;
}
.farelli-article__note {
  padding: 26px 28px;
  border-left: 5px solid #168b65;
  border-radius: 0 14px 14px 0;
  background: #e9faf2;
  color: #164d3c;
  font-size: 17px;
  line-height: 1.55;
}
@media (max-width: 560px) {
  .farelli-article {
    margin-top: 34px;
  }
  .farelli-article h1 {
    font-size: 36px;
  }
  .farelli-article__grid {
    grid-template-columns: 1fr;
  }
  .farelli-article__lead {
    font-size: 17px;
  }
}
.cms-home .page-title-wrapper {
  display: none;
}
.page-header .logo {
  display: block;
  width: 205px;
  height: 52px;
  margin: 0 30px 0 0;
  background: url('../images/farelli-logo.svg') left center / contain no-repeat;
}
.page-header .logo img {
  opacity: 0;
  width: 205px;
  height: 52px;
}
.catalog-category-view .category-image {
  max-height: 250px;
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef4f7;
}
.catalog-category-view .category-image img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Storefront polish: consistent product imagery, calmer hierarchy and usable
   spacing across Magento's Luma product, category and checkout layouts. */
.farelli-theme {
  background: #f7fafc;
  color: #142b43;
}
.farelli-theme .page-wrapper {
  background: #f7fafc;
}
.farelli-theme .page-main,
.farelli-theme .columns {
  background: #fff;
}
.farelli-theme .page-main {
  max-width: 1240px;
  margin: 28px auto 64px;
  padding: 28px 36px 48px;
  border: 1px solid #e4ebf1;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(17, 42, 67, .05);
}
.farelli-theme.cms-index-index .page-main {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.farelli-theme .breadcrumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 36px 0;
}
.farelli-theme .product.media {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #e6edf2;
  border-radius: 16px;
  background: #fff;
}
.farelli-theme .fotorama__stage {
  background: #fff;
}
.farelli-theme .fotorama__stage__frame .fotorama__img {
  object-fit: contain !important;
  mix-blend-mode: normal;
}
.farelli-theme .fotorama__thumb-border {
  border-color: #169b73;
}
.farelli-theme .product-info-main {
  padding: 16px 0 0 34px;
}
.farelli-theme .product-info-main .page-title-wrapper .page-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.farelli-theme .product-info-main .product-info-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid #e6edf2;
  border-bottom: 1px solid #e6edf2;
}
.farelli-theme .product-info-main .price-box .price {
  font-size: 33px;
  line-height: 1;
}
.farelli-theme .product-info-main .stock {
  color: #147854;
  font-weight: 800;
}
.farelli-theme .box-tocart {
  margin: 26px 0 20px;
  padding: 22px;
  border-radius: 14px;
  background: #f1f7f5;
}
.farelli-theme .box-tocart .action.tocart {
  min-width: 240px;
  background: #102f4b;
}
.farelli-theme .box-tocart .action.tocart:hover {
  background: #169b73;
}
.farelli-theme .product.attribute.overview {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid #169b73;
  border-radius: 0 10px 10px 0;
  background: #f5faf8;
  color: #486073;
  line-height: 1.55;
}
.farelli-theme .product.info.detailed {
  margin-top: 44px;
  padding: 10px 28px 28px;
  border: 1px solid #e3ebf0;
  border-radius: 16px;
  background: #fff;
}
.farelli-theme .product.data.items > .item.title > .switch {
  height: 52px;
  padding: 0 18px;
  color: #5f7281;
  font-weight: 800;
}
.farelli-theme .product.data.items > .item.title.active > .switch {
  color: #102f4b;
  border-color: #169b73;
}
.farelli-theme .farelli-product-details {
  max-width: 820px;
  padding: 18px 4px 4px;
  color: #41596c;
  font-size: 16px;
  line-height: 1.65;
}
.farelli-theme .farelli-product-details h2,
.farelli-theme .farelli-product-details h3 {
  color: #102f4b;
}
.farelli-theme .farelli-product-details h2 { font-size: 27px; margin: 0 0 14px; }
.farelli-theme .farelli-product-details h3 { font-size: 18px; margin: 28px 0 8px; }
.farelli-theme .farelli-product-details ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  padding: 18px 20px;
  list-style: none;
  border-radius: 12px;
  background: #f4f8fb;
}
.farelli-theme .farelli-product-details li::before {
  content: '✓';
  margin-right: 8px;
  color: #169b73;
  font-weight: 800;
}
.farelli-theme .products-grid .product-item-info {
  height: 100%;
  padding: 0;
  border-radius: 14px;
}
.farelli-theme .products-grid .product-item-details {
  padding: 14px 16px 18px;
}
.farelli-theme .products-grid .product-image-container,
.farelli-theme .products-grid .product-image-wrapper {
  display: block;
  width: 100% !important;
}
.farelli-theme .products-grid .product-image-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
  background: #fff;
}
.farelli-theme .cart-container,
.farelli-theme .cart-summary {
  border: 1px solid #e3ebf0;
  border-radius: 14px;
  background: #fff;
}
.farelli-theme .cart-summary {
  padding: 22px;
}
.farelli-theme .cart.table-wrapper .product-item-photo {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
@media (min-width: 769px) {
  .farelli-theme .nav-sections { overflow: hidden; }
  .farelli-theme .navigation {
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .farelli-theme .navigation::-webkit-scrollbar { display: none; }
  .farelli-theme .navigation > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding: 0 22px;
  }
  .farelli-theme .navigation .level0 { flex: 0 0 auto; }
  .farelli-theme .navigation .level0 > .level-top { white-space: nowrap; }
}
@media (max-width: 768px) {
  .farelli-theme .page-main { margin: 0; padding: 22px 16px 36px; border: 0; border-radius: 0; }
  .farelli-theme .breadcrumbs { padding: 16px; }
  .farelli-theme .product-info-main { padding-left: 0; }
  .farelli-theme .product.media { min-height: 320px; }
  .farelli-theme .box-tocart .action.tocart { width: 100%; min-width: 0; }
  .farelli-theme .farelli-product-details ul { grid-template-columns: 1fr; }
}
