/* ============================================================
   Uni4my Next.js — template fidelity overrides
   Loaded AFTER style.css + custom.css
   ============================================================ */

/* Legacy mobile nav from older builds — always hidden */
.ul-mobile-nav,
.ul-mobile-menu-toggle {
  display: none !important;
}

@media (min-width: 992px) {
  .ul-header-nav-wrapper {
    display: block !important;
  }
}

/* --- Global scroll: match original template, allow vertical scroll --- */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-primary);
  margin: auto;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* --- Closed sidebar must not expand document scroll width --- */
.ul-sidebar:not(.active) {
  visibility: hidden;
  pointer-events: none;
}

/* --- ShadCN / Tailwind reset inside legacy template shells --- */
.ul-header-search-form [data-slot="input"],
.ul-nwsltr-subs-form [data-slot="input"] {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  padding: 0 clamp(15px, 1.58vw, 30px);
  box-shadow: none;
}

.ul-header-search-form [data-slot="select-trigger"],
.ul-header-search-form button[data-slot="button"],
.ul-nwsltr-subs-form button[data-slot="button"] {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.ul-header-search-form .dropdown-wrapper [data-slot="select-trigger"] {
  min-width: 0;
  width: auto;
  border: none;
  background: transparent;
  padding: 0 clamp(12px, 1.05vw, 20px);
  font-size: clamp(13px, 0.84vw, 16px);
  font-weight: 500;
  color: var(--black);
}

/* Native category select in header search (replaces SlimSelect) */
.ul-header-search-form .dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.15);
}

.ul-header-search-form .dropdown-wrapper select {
  height: 100%;
  min-width: clamp(130px, 11vw, 170px);
  border: none;
  background: transparent;
  color: var(--black);
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(13px, 0.84vw, 16px);
  line-height: 1.2;
  padding-block: 0;
  padding-inline: clamp(20px, 1.58vw, 30px) clamp(34px, 2.63vw, 46px);
  appearance: none;
  cursor: pointer;
  outline: none;
  text-align: start;
}

.ul-header-search-form .dropdown-wrapper::after {
  content: "";
  position: absolute;
  inset-inline-end: clamp(14px, 1.05vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  border-inline: 5px solid transparent;
  border-top: 6px solid var(--black);
  pointer-events: none;
}

.ul-header-search-form-right input {
  text-align: start;
}

@media screen and (max-width: 479px) {
  .ul-header-search-form .dropdown-wrapper {
    border-inline-start: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    width: 100%;
  }

  .ul-header-search-form .dropdown-wrapper select {
    width: 100%;
  }
}

/* NavigationMenu mega menu: disable shadcn popover positioning */
.ul-header-nav .has-mega-menu [data-slot="navigation-menu"] {
  position: static;
  max-width: none;
  flex: none;
}

.ul-header-nav .has-mega-menu [data-slot="navigation-menu-list"] {
  display: contents;
}

.ul-header-nav .has-mega-menu [data-slot="navigation-menu-item"] {
  position: static;
}

.ul-header-nav .has-mega-menu [data-slot="navigation-menu-trigger"] {
  all: unset;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  display: inline-block;
}

.ul-header-nav .has-mega-menu [data-slot="navigation-menu-content"] {
  position: absolute;
  inset: auto;
  top: 100%;
  left: 0;
  transform: none;
  width: max-content;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ul-header-nav .has-mega-menu:hover [data-slot="navigation-menu-content"],
.ul-header-nav .has-mega-menu:focus-within [data-slot="navigation-menu-content"] {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Category icons: enforce template circle size over Next/Image defaults */
.ul-category-img img {
  width: clamp(39px, 3.1vw, 59px);
  height: auto;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: 999px;
}

/* Hero: full-width slider */
.ul-banner-section .ul-banner-slide-img img {
  width: 100%;
  aspect-ratio: 1125/620;
  object-fit: cover;
  object-position: center 20%;
  height: auto;
  border-radius: 0;
}

@media screen and (max-width: 479px) {
  .ul-banner-section .ul-banner-slide-img img {
    aspect-ratio: 400/459;
    border-radius: 0;
  }
}

/* Product card images */
.ul-product-img img,
.ul-product-horizontal-img img {
  width: 100%;
  max-width: 100%;
}

/* Badge inside legacy product heading */
.ul-product-heading [data-slot="badge"],
.ul-ad-categories [data-slot="badge"] {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: inherit;
  font: inherit;
  color: inherit;
}

.ul-blog-img img {
  max-width: 100%;
  height: auto;
}

/* Hero: preserve template cover sizing */
.ul-banner-slide-img img {
  width: 100%;
  aspect-ratio: 1125/620;
  object-fit: cover;
  object-position: center 20%;
  height: auto;
}

@media screen and (max-width: 479px) {
  .ul-banner-slide-img img {
    aspect-ratio: 400/459;
  }
}

.ul-banner-img-slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Uniform showcase: portrait PNG cutouts */
.ul-uniform-coverflow-slide-img img {
  object-fit: contain;
  object-position: center bottom;
}

/* Promo cards — light layout (replaces solid sub-banners) */
.ul-promo-cards .ul-inner-container {
  margin-inline: auto;
}

.ul-ad-content,
.ul-ad .ul-section-title,
.ul-ad-descr,
.ul-ad-categories .category,
.ul-ad-features .feature {
  color: var(--white);
}

.ul-ad-sub-title {
  color: var(--ul-primary);
}

.ul-ad-img img {
  max-width: 100%;
  height: auto;
}
.ul-blog [data-slot="card"],
.ul-blog [data-slot="card-content"],
.ul-blog [data-slot="card-header"],
.ul-blog [data-slot="card-title"],
.ul-blog [data-slot="card-description"] {
  all: unset;
  display: block;
}

.ul-blog [data-slot="card-content"] {
  display: block;
}

/* Header marquee must clip */
.ul-header-top-slider {
  overflow: hidden;
  width: 100%;
}

/* Sticky header on scroll */
.ul-header.is-sticky .ul-header-bottom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.ul-header.is-sticky .ul-header-top {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Header layout: logo left | nav center | search right */
.ul-header-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  direction: ltr;
}

.ul-header-logo {
  justify-self: start;
}

.ul-header-nav-wrapper {
  justify-self: center;
  width: 100%;
  max-width: max-content;
  margin-inline: auto;
}

.ul-header-nav-wrapper .ul-header-nav {
  direction: rtl;
  justify-content: center;
}

.ul-header-search-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.79vw, 12px);
}

.ul-header-search-area .ul-header-search-form-wrapper {
  position: static;
  opacity: 1;
  pointer-events: auto;
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
}

@media screen and (min-width: 1400px) {
  .ul-header-search-area .ul-header-search-form-wrapper {
    width: clamp(280px, 24vw, 420px);
  }

  .ul-header-search-area .ul-header-search-form {
    max-width: none;
    width: 100%;
  }
}

@media screen and (max-width: 1399px) {
  .ul-header-search-area .ul-header-search-form-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    width: auto;
  }

  .ul-header-search-area .ul-header-search-form-wrapper.active {
    opacity: 1;
    pointer-events: all;
  }

  .ul-header-search-area .ul-header-search-form-wrapper .ul-header-search-form {
    background-color: var(--white);
    max-width: 80%;
    width: 100%;
  }
}

@media screen and (max-width: 991px) {
  .ul-header-layout {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .ul-header-nav-wrapper {
    display: none !important;
  }

  .ul-header-search-area {
    justify-self: end;
    align-self: center;
  }

  .ul-header-mobile-search-opener {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    line-height: 0;
    vertical-align: middle;
  }
}

/* Gallery slider clip */
.ul-gallery {
  overflow: hidden;
  max-width: 100%;
}

.ul-gallery .swiper {
  overflow: hidden;
}

/* Flash deal swiper overflow */
.ul-flash-deal__swiper.swiper.overflow-visible,
.ul-flash-sale-slider.swiper.overflow-visible,
.ul-banner-img-slider.swiper.overflow-visible {
  overflow: hidden;
}

/* Sidebar product slider nav stays clickable above slides */
.ul-sidebar-products-wrapper {
  position: relative;
}

.ul-sidebar-products-slider-nav {
  z-index: 2;
}

.ul-most-sell-filter-navs button.mixitup-control-active {
  background-color: var(--ul-primary);
}

/* Most selling: animated filter sorting */
.ul-most-selling-products .ul-filter-products-wrapper .mix.col {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ul-most-selling-products .ul-filter-products-wrapper.is-filter-exiting .mix.col {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}

.ul-most-selling-products .ul-filter-products-wrapper.is-filter-entering .mix.col {
  animation: ul-most-sell-filter-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--filter-index, 0) * 45ms);
}

@keyframes ul-most-sell-filter-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ul-most-selling-products .ul-filter-products-wrapper .mix.col {
    transition: none;
    animation: none !important;
  }
}
.ul-header-actions svg,
.ul-header-sidebar-opener svg,
.ul-header-mobile-search-opener svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Uniform showcase — full-width coverflow carousel */
.ul-uniform-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: clamp(12px, 2vh, 28px) 0 clamp(8px, 1.5vh, 20px);
  overflow: hidden;
}

.ul-uniform-showcase__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  flex-shrink: 0;
  padding-inline: 16px;
  margin-bottom: clamp(8px, 1.8vh, 20px);
}

.ul-uniform-showcase__header .ul-section-sub-title {
  margin-bottom: 0;
  letter-spacing: 0.18em;
}

.ul-uniform-showcase__header .ul-section-title {
  margin: 0;
  font-size: clamp(22px, 2.4vh + 0.6vw, 36px);
  line-height: 1.25;
  max-width: 18ch;
}

.ul-uniform-showcase-slider-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.ul-uniform-coverflow {
  width: 100%;
  overflow: hidden;
  padding-bottom: 0;
}

.ul-uniform-coverflow .swiper-wrapper {
  align-items: flex-end;
}

.ul-uniform-coverflow .swiper-slide {
  width: clamp(200px, 26vw, 340px);
  height: clamp(280px, 62vh, 520px);
  --slide-opacity: 0.1;
  --slide-scale: 0.52;
  z-index: 1;
}

.ul-uniform-coverflow .swiper-slide-active {
  z-index: 3;
}

.ul-uniform-coverflow-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform-origin: center bottom;
  opacity: var(--slide-opacity);
  transform: scale(var(--slide-scale));
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ul-uniform-coverflow.is-dragging .ul-uniform-coverflow-slide {
  transition: none;
}

.ul-uniform-coverflow-slide-img {
  position: relative;
  width: 100%;
  height: calc(100% - clamp(48px, 5.5vh, 64px));
}

.ul-uniform-coverflow-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.ul-uniform-coverflow-slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 8px 12px 0;
  background: transparent;
  text-align: center;
}

.ul-uniform-coverflow-slide-caption .category {
  display: block;
  font-size: clamp(11px, 0.74vw, 13px);
  color: var(--ul-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ul-uniform-coverflow-slide-caption .title {
  margin: 0;
  font-size: clamp(14px, 1vh + 0.4vw, 18px);
  font-weight: 600;
  color: var(--black);
}

.ul-uniform-coverflow-nav {
  position: absolute;
  inset-inline: clamp(12px, 2.1vw, 40px);
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.ul-uniform-coverflow-nav button {
  pointer-events: all;
  width: clamp(40px, 3vw, 52px);
  height: clamp(40px, 3vw, 52px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.ul-uniform-coverflow-nav button:hover {
  background: var(--ul-primary);
  color: var(--white);
  border-color: var(--ul-primary);
}

.ul-uniform-coverflow-pagination {
  position: relative;
  margin-top: clamp(6px, 1vh, 12px);
  text-align: center;
  flex-shrink: 0;
}

.ul-uniform-coverflow-pagination .swiper-pagination-bullet {
  background: var(--ul-primary);
  opacity: 0.25;
}

.ul-uniform-coverflow-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .ul-uniform-showcase {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding: 20px 0 12px !important;
    overflow: visible !important;
  }

  .ul-uniform-showcase__header {
    margin-bottom: 6px !important;
    padding: 8px 16px 4px !important;
  }

  .ul-uniform-showcase-slider-wrap {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
  }

  .ul-uniform-coverflow {
    height: auto !important;
  }

  .ul-uniform-coverflow .swiper-wrapper {
    align-items: flex-start !important;
  }

  .ul-uniform-coverflow-nav {
    display: none;
  }

  .ul-uniform-coverflow .swiper-slide {
    width: clamp(200px, 70vw, 280px) !important;
    height: clamp(280px, 72vw, 360px) !important;
  }

  .ul-uniform-coverflow-pagination {
    margin-top: 8px;
  }
}

@media screen and (max-height: 700px) and (min-width: 768px) {
  .ul-uniform-coverflow .swiper-slide {
    height: clamp(240px, 55vh, 400px);
  }

  .ul-uniform-showcase__header .ul-section-title {
    font-size: clamp(18px, 3.2vh, 28px);
  }
}

/* --- Inner pages: shop sidebar + pagination button resets --- */
.ul-shop-category-filter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(13px, 0.84vw, 16px);
}

.ul-shop-category-filter__header .ul-products-sidebar-widget-title {
  margin-bottom: 0;
}

.ul-shop-category-filter__clear {
  border: none;
  background: transparent;
  padding: 0;
  font-size: clamp(11px, 0.74vw, 13px);
  font-weight: 600;
  color: var(--ul-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ul-shop-category-filter__clear:hover {
  color: var(--ul-secondary);
}

.ul-shop-category-filter__list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.63vw, 10px);
}

.ul-shop-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(239, 40, 83, 0.12);
  border-radius: 12px;
  background: var(--white);
  padding: clamp(11px, 0.84vw, 14px) clamp(14px, 1.05vw, 18px);
  text-align: inherit;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.ul-shop-category-item:hover:not(.is-disabled) {
  border-color: rgba(239, 40, 83, 0.35);
  box-shadow: 0 8px 20px rgba(239, 40, 83, 0.08);
  transform: translateY(-1px);
}

.ul-shop-category-item.is-active {
  border-color: transparent;
  background: var(--ul-gradient);
  box-shadow: 0 10px 24px rgba(239, 40, 83, 0.18);
}

.ul-shop-category-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.65);
}

.ul-shop-category-item__label {
  font-size: clamp(13px, 0.84vw, 15px);
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

.ul-shop-category-item.is-active .ul-shop-category-item__label {
  color: var(--white);
}

.ul-shop-category-item__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(28px, 2.1vw, 34px);
  height: clamp(24px, 1.68vw, 28px);
  padding: 0 clamp(8px, 0.63vw, 10px);
  border-radius: 999px;
  background: rgba(239, 40, 83, 0.08);
  color: var(--ul-primary);
  font-size: clamp(11px, 0.74vw, 13px);
  font-weight: 700;
  flex-shrink: 0;
}

.ul-shop-category-item.is-active .ul-shop-category-item__count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.ul-pagination button {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ul-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ul-about-cover-img img,
.ul-about-img img,
.ul-product-details-img-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.ul-product-details-img.ul-product-gallery {
  overflow: visible;
}

.ul-product-gallery__main {
  border-radius: clamp(15px, 1.58vw, 30px);
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 690 / 582;
  max-height: min(72vh, 640px);
}

.ul-product-gallery__main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.ul-product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 0.74vw, 12px);
  margin-top: clamp(12px, 1.05vw, 20px);
}

.ul-product-gallery__thumbs--under-content {
  margin-top: clamp(24px, 2.1vw, 36px);
  width: 100%;
}

.ul-product-gallery__thumb {
  flex: 0 0 auto;
  width: clamp(64px, 5.25vw, 84px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: clamp(8px, 0.63vw, 12px);
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ul-product-gallery__thumb:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.ul-product-gallery__thumb.is-active {
  border-color: var(--ul-primary);
}

.ul-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ul-product-gallery__colors {
  flex-wrap: wrap;
}

.ul-product-gallery__colors .color-btn {
  width: clamp(22px, 1.58vw, 28px);
  height: clamp(22px, 1.58vw, 28px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: outline-color 0.2s ease, transform 0.2s ease;
}

.ul-product-gallery__colors .color-btn:hover {
  transform: scale(1.08);
}

.ul-product-gallery__colors .color-btn.active {
  outline: 2px solid var(--ul-primary);
  outline-offset: 3px;
}

.ul-product-details-colors.ul-product-details-option {
  margin-top: clamp(16px, 1.26vw, 24px);
  margin-bottom: 0;
}

/* Product details — top-aligned content, larger type */
.ul-product-details-top__row {
  align-items: flex-start !important;
}

.ul-product-details-txt {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding-top: 0;
}

.ul-product-details-price {
  font-size: clamp(22px, 1.6vw, 28px);
  margin-bottom: clamp(10px, 0.84vw, 16px);
}

.ul-product-details-title {
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.35;
  margin-bottom: clamp(14px, 1.05vw, 20px);
}

.ul-product-details-descr {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
}

.ul-product-details-descr p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.75em;
}

.ul-product-details-descr p:last-child {
  margin-bottom: 0;
}

.ul-product-details-actions {
  margin-top: clamp(20px, 1.84vw, 32px);
  margin-bottom: 0;
  justify-content: flex-start;
}

.ul-product-details-long-descr-wrapper {
  margin-top: clamp(36px, 3.15vw, 56px);
}

.ul-product-details-inner-title {
  font-size: clamp(26px, 1.84vw, 32px);
}

.ul-product-details-long-descr,
.ul-product-details-long-descr p {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
}

.ul-product-details-long-descr p {
  margin-bottom: 0.75em;
}

.ul-product-details-long-descr p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .ul-product-details-top__row > .col:last-child {
    padding-top: 0;
  }

  .ul-product-details-top__row > .col:first-child {
    align-self: stretch;
  }

  .ul-product-details-top .ul-product-gallery__main {
    position: sticky;
    top: clamp(96px, 8vw, 120px);
    z-index: 2;
  }
}

.ul-header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ul-header-cart-badge {
  position: absolute;
  top: -6px;
  inset-inline-start: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ul-secondary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ul-product-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  background: var(--ul-gradient);
  color: var(--white);
  font-weight: 600;
  padding: clamp(12px, 0.95vw, 16px) clamp(22px, 1.68vw, 28px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ul-product-add-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(239, 40, 83, 0.22);
}

.ul-cart-product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
}

.ul-cart-product-variant {
  font-size: clamp(11px, 0.74vw, 13px);
  color: #676666;
}

.ul-cart-empty .ul-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ul-gradient);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
}

.ul-cart-simple .ul-cart-header > *:first-child,
.ul-cart-simple .ul-cart-product {
  width: 55%;
}

.ul-cart-simple .ul-cart-header > *:nth-child(2) {
  width: 25%;
}

.ul-cart-simple .ul-cart-header > *:last-child,
.ul-cart-simple .ul-cart-item-remove {
  width: 10%;
  text-align: end;
}

.ul-cart-simple .ul-cart-item-price {
  width: 25%;
}

.ul-related-products {
  margin-top: clamp(40px, 4.2vw, 80px);
  padding-top: clamp(30px, 3.15vw, 60px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ul-related-products .ul-section-heading {
  margin-bottom: clamp(24px, 2.1vw, 40px);
}

.ul-contact-gallery {
  margin-bottom: clamp(24px, 2.1vw, 40px);
}

.ul-contact-gallery-item {
  overflow: hidden;
  border-radius: clamp(14px, 1.26vw, 22px);
  height: 100%;
  min-height: clamp(220px, 28vw, 360px);
}

.ul-contact-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact info cards — modern grid */
.ul-contact-infos--modern {
  margin: clamp(28px, 3.15vw, 56px) clamp(15px, 2.5vw, 48px);
  padding: 0;
}

.ul-contact-infos--modern .ul-inner-page-container {
  margin: 0;
  width: 100%;
  max-width: none;
}

.ul-contact-infos--modern .ul-contact-infos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.26vw, 20px);
  width: 100%;
}

.ul-contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(239, 40, 83, 0.1);
  border-radius: clamp(18px, 1.37vw, 24px);
  padding: clamp(24px, 2.1vw, 32px) clamp(18px, 1.58vw, 24px);
  box-shadow: 0 12px 32px rgba(239, 40, 83, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  height: 100%;
}

.ul-contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(239, 40, 83, 0.12);
  border-color: rgba(239, 40, 83, 0.22);
}

.ul-contact-info-card__icon {
  width: clamp(64px, 4.73vw, 76px);
  height: clamp(64px, 4.73vw, 76px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ul-gradient);
  color: var(--white);
  font-size: clamp(28px, 2.1vw, 34px);
  margin-bottom: clamp(16px, 1.26vw, 20px);
  box-shadow: 0 10px 24px rgba(239, 40, 83, 0.22);
}

.ul-contact-info-card__icon i,
.ul-contact-info-card__icon svg {
  display: block;
}

.ul-contact-info-card__svg {
  width: clamp(28px, 2.1vw, 34px);
  height: clamp(28px, 2.1vw, 34px);
  stroke-width: 2;
}

.ul-contact-info-card__title {
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 700;
  margin-bottom: clamp(14px, 1.05vw, 18px);
  letter-spacing: -0.02em;
}

.ul-contact-info-card__body {
  width: 100%;
}

.ul-contact-info-card__links {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.79vw, 12px);
}

.ul-contact-info-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.53vw, 8px);
  width: 100%;
  padding: clamp(12px, 0.95vw, 16px) clamp(12px, 0.95vw, 14px);
  border-radius: 12px;
  background: #fff7f9;
  border: 1px solid rgba(239, 40, 83, 0.12);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 0.84vw, 15px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: center;
}

.ul-contact-info-card__link:hover {
  background: var(--white);
  border-color: var(--ul-primary);
  color: var(--ul-primary);
}

.ul-contact-info-card__link-label {
  direction: ltr;
  unicode-bidi: plaintext;
  display: block;
  width: 100%;
  line-height: 1.4;
  word-break: break-word;
}

.ul-contact-info-card__link-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: clamp(11px, 0.74vw, 12px);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(239, 40, 83, 0.1);
  color: var(--ul-primary);
}

.ul-contact-info-card.is-email .ul-contact-info-card__link-label {
  font-size: clamp(12px, 0.79vw, 14px);
}

.ul-contact-info-card.is-phone .ul-contact-info-card__link:hover .ul-contact-info-card__link-tag {
  background: rgba(239, 40, 83, 0.16);
}

.ul-contact-info-card__hours {
  margin: 0;
  padding: clamp(14px, 1.05vw, 18px);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 100%);
  border: 1px dashed rgba(239, 40, 83, 0.22);
  color: #444;
  font-size: clamp(13px, 0.84vw, 15px);
  line-height: 1.8;
  font-weight: 500;
}

.ul-contact-info-card.is-hours .ul-contact-info-card__icon {
  background: linear-gradient(135deg, #ff8a00 0%, var(--ul-primary) 100%);
}

@media screen and (max-width: 991px) {
  .ul-contact-infos--modern .ul-contact-infos__grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin-inline: 0;
  }
}

.ul-contact-form-container__subtitle {
  margin-bottom: clamp(18px, 1.58vw, 28px);
  color: #676666;
}

/* Contact form — modern card layout */
.ul-contact-form-section.ul-contact-from-section {
  margin-top: 0;
  padding: clamp(24px, 3.15vw, 60px) 0 clamp(48px, 4.2vw, 80px);
}

.ul-contact-form-card {
  max-width: 920px;
  margin-inline: auto;
  background: var(--white);
  border-radius: clamp(20px, 1.58vw, 28px);
  padding: clamp(28px, 3.15vw, 48px);
  box-shadow: 0 18px 48px rgba(239, 40, 83, 0.08);
  border: 1px solid rgba(239, 40, 83, 0.1);
  position: relative;
  overflow: hidden;
}

.ul-contact-form-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--ul-gradient);
}

.ul-contact-form-card__header {
  text-align: center;
  margin-bottom: clamp(24px, 2.1vw, 36px);
}

.ul-contact-form-card__title {
  font-size: clamp(24px, 2.1vw, 36px);
  font-weight: 700;
  margin: clamp(8px, 0.63vw, 12px) 0;
  letter-spacing: -0.03em;
}

.ul-contact-form-card__subtitle {
  margin: 0;
  color: #676666;
  font-size: clamp(14px, 0.89vw, 17px);
  line-height: 1.7;
}

.ul-contact-form--modern .ul-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.26vw, 22px);
}

.ul-contact-field {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.63vw, 10px);
}

.ul-contact-field--full {
  grid-column: 1 / -1;
}

.ul-contact-field__label {
  font-size: clamp(13px, 0.84vw, 15px);
  font-weight: 600;
  color: var(--black);
}

.ul-contact-field__control {
  position: relative;
  display: block;
}

.ul-contact-field__control input,
.ul-contact-field__control textarea {
  width: 100%;
  border: 1px solid rgba(239, 40, 83, 0.18);
  border-radius: 14px;
  background: #fffafb;
  color: var(--black);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.ul-contact-field__control input {
  height: clamp(50px, 3.15vw, 58px);
  padding: 0 clamp(14px, 1.05vw, 18px);
  padding-inline-end: clamp(44px, 3.15vw, 52px);
}

.ul-contact-field__control textarea {
  min-height: clamp(140px, 12vw, 180px);
  padding: clamp(14px, 1.05vw, 18px);
  padding-inline-end: clamp(44px, 3.15vw, 52px);
  resize: vertical;
}

.ul-contact-field__control input::placeholder,
.ul-contact-field__control textarea::placeholder {
  color: #9a9a9a;
}

.ul-contact-field__control input:focus,
.ul-contact-field__control textarea:focus {
  outline: none;
  border-color: var(--ul-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(239, 40, 83, 0.1);
}

.ul-contact-field__icon {
  position: absolute;
  inset-inline-end: clamp(14px, 1.05vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ul-primary);
  font-size: clamp(16px, 1.05vw, 18px);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ul-contact-field__svg {
  width: clamp(16px, 1.05vw, 18px);
  height: clamp(16px, 1.05vw, 18px);
  stroke-width: 2;
}

.ul-form-field__svg {
  width: clamp(16px, 1.05vw, 18px);
  height: clamp(16px, 1.05vw, 18px);
  stroke-width: 2;
  color: var(--ul-primary);
}

.ul-contact-field__control textarea + .ul-contact-field__icon {
  top: clamp(18px, 1.26vw, 22px);
  transform: none;
}

.ul-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(20px, 1.58vw, 28px);
  border: none;
  border-radius: 999px;
  background: var(--ul-gradient);
  color: var(--white);
  font-weight: 600;
  font-size: clamp(14px, 0.89vw, 16px);
  height: clamp(50px, 3.15vw, 58px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ul-contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 40, 83, 0.28);
  background: var(--ul-gradient);
  color: var(--white);
}

.ul-contact-form__submit .icon {
  display: inline-flex;
  font-size: 1.1em;
}

.ul-contact-form-success-card {
  text-align: center;
  padding: clamp(28px, 2.63vw, 40px);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 100%);
  border: 1px solid rgba(239, 40, 83, 0.14);
}

.ul-contact-form-success-card__icon {
  width: clamp(56px, 4.2vw, 68px);
  height: clamp(56px, 4.2vw, 68px);
  margin: 0 auto clamp(14px, 1.05vw, 18px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ul-gradient);
  color: var(--white);
  font-size: clamp(22px, 1.58vw, 28px);
}

.ul-contact-form-success-card h4 {
  font-size: clamp(20px, 1.37vw, 26px);
  font-weight: 700;
  margin-bottom: clamp(8px, 0.63vw, 12px);
}

.ul-contact-form-success-card p {
  color: #676666;
  line-height: 1.7;
}

@media screen and (max-width: 767px) {
  .ul-contact-form--modern .ul-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .ul-contact-field--full {
    grid-column: auto;
  }
}

.ul-contact-form-success {
  font-size: clamp(15px, 0.95vw, 18px);
  color: var(--ul-primary);
  font-weight: 600;
}

.ul-design-request-intro {
  max-width: 760px;
  margin: 0 auto clamp(28px, 2.63vw, 50px);
  text-align: center;
}

.ul-design-request-title {
  font-size: clamp(22px, 1.58vw, 30px);
  font-weight: 700;
  margin-bottom: clamp(10px, 0.84vw, 16px);
}

.ul-design-request-descr {
  margin-bottom: 0;
  color: #676666;
  line-height: 1.8;
}

.ul-design-request-form-section {
  max-width: 920px;
  margin-inline: auto;
  padding-bottom: clamp(48px, 4.2vw, 80px);
}

.ul-design-request-form .ul-contact-form__grid {
  margin-bottom: clamp(20px, 1.58vw, 28px);
}

.ul-design-select {
  width: 100%;
  height: clamp(50px, 3.15vw, 58px);
  border: 1px solid rgba(239, 40, 83, 0.18);
  border-radius: 14px;
  background: #fffafb;
  padding: 0 clamp(14px, 1.05vw, 18px);
  padding-inline-end: clamp(44px, 3.15vw, 52px);
  font: inherit;
  color: var(--black);
  appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.ul-design-select:focus {
  outline: none;
  border-color: var(--ul-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(239, 40, 83, 0.1);
}

.ul-design-select:invalid {
  color: #9a9a9a;
}

/* Categories pages */
.ul-categories-page {
  padding-bottom: clamp(48px, 4.2vw, 80px);
}

.ul-categories-page--main {
  margin-inline: clamp(15px, 2.5vw, 48px);
}

.ul-categories-page__intro {
  max-width: 720px;
  margin: 0 auto clamp(28px, 2.63vw, 44px);
  text-align: center;
  color: #676666;
  line-height: 1.8;
}

.ul-categories-page__grid {
  --bs-gutter-y: clamp(16px, 1.58vw, 24px);
}

.ul-categories-page__grid--featured {
  --bs-gutter-x: clamp(18px, 1.58vw, 28px);
  --bs-gutter-y: clamp(20px, 1.84vw, 32px);
}

/* Featured category cards — large image layout */
.ul-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: clamp(18px, 1.37vw, 24px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(239, 40, 83, 0.12);
  box-shadow: 0 14px 36px rgba(239, 40, 83, 0.07);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ul-category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 40, 83, 0.24);
  box-shadow: 0 22px 48px rgba(239, 40, 83, 0.14);
}

.ul-category-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff7f9;
}

.ul-category-card__img {
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.ul-category-card:hover .ul-category-card__img {
  transform: scale(1.06);
}

.ul-category-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 0.79vw, 14px);
  padding: clamp(12px, 0.95vw, 16px) clamp(14px, 1.05vw, 18px);
  background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
}

.ul-category-card__label {
  display: block;
  font-size: clamp(15px, 0.95vw, 18px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.ul-category-card__meta {
  display: block;
  margin-top: clamp(3px, 0.32vw, 5px);
  font-size: clamp(12px, 0.74vw, 13px);
  font-weight: 500;
  color: #888;
}

.ul-category-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(36px, 2.63vw, 42px);
  height: clamp(36px, 2.63vw, 42px);
  border-radius: 50%;
  background: rgba(239, 40, 83, 0.1);
  color: var(--ul-primary);
  font-size: clamp(12px, 0.84vw, 14px);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ul-category-card:hover .ul-category-card__btn {
  background: var(--ul-gradient);
  color: var(--white);
  transform: translateX(-4px);
}

.ul-category-card__btn i {
  padding-top: 2px;
}

.ul-category-card__txt {
  flex: 1;
  min-width: 0;
}

.ul-category-meta {
  display: block;
  margin-top: 6px;
  font-size: clamp(12px, 0.79vw, 14px);
  font-weight: 500;
  color: #888;
}

.ul-categories-page__empty {
  text-align: center;
  padding: clamp(40px, 4.2vw, 64px) clamp(20px, 2.1vw, 32px);
  border-radius: 18px;
  background: #fff7f9;
  border: 1px dashed rgba(239, 40, 83, 0.22);
  color: #555;
  line-height: 1.8;
}

.ul-categories-page__empty a {
  color: var(--ul-primary);
  font-weight: 600;
  text-decoration: none;
}

.ul-categories-page__empty a:hover {
  text-decoration: underline;
}

.ul-header-megamenu .single-col-title {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ul-header-megamenu .single-col-title:hover {
  color: var(--ul-primary);
}
