/* ===== Palmonas-inspired restyle overrides ===== */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/playfair-display-latin-400-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/playfair-display@5.2.5/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/playfair-display-latin-500-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/playfair-display@5.2.5/latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/playfair-display-latin-600-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/playfair-display@5.2.5/latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-400-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@5.2.5/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-500-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@5.2.5/latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-600-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@5.2.5/latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-700-normal.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/fontsource/fonts/dm-sans@5.2.5/latin-700-normal.woff2") format("woff2");
}

:root {
  --font-family: "DM Sans", system-ui, sans-serif;
  --pm-display: "Playfair Display", "DM Sans", system-ui, sans-serif;
  --pm-sans: "DM Sans", system-ui, sans-serif;
  --pm-ink: #1a1a1a;
  --pm-muted: #6b6b6b;
  --pm-line: #e8e8e8;
  --pm-soft: #f7f7f7;
  --pm-white: #ffffff;
  --border-radius-small: 0;
  --primary-border: 1px solid var(--pm-line);
}

html,
body {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  background: var(--pm-white) !important;
  color: var(--pm-ink) !important;
  letter-spacing: 0.01em;
}

/* Soften brutalist borders globally on homepage */
.brdr-black,
#shopByCategory > div > div,
#shopByBrands > div > div,
.latest-arrivals-block-shimmer,
.hw-trending-shimmer,
.new-collection-wrapper,
.testimonials-block .brdr-black,
.hw-blog-section .brdr-black {
  border: none !important;
  background: transparent !important;
}

#home-new-arrivals-section .brdr-black,
#trending-arrivals-section .brdr-black,
.latest-arrivals-block,
.home-page-category-product-list {
  border: none !important;
}

.latest-arrivals-block-shimmer,
.hw-trending-shimmer,
.latest-arrivals-block,
.home-page-category-product-list.row {
  border: none !important;
  gap: 16px 0;
}

/* Header — compact, normal shop height */
#dkn-desktop-header.header-section,
.header-section {
  border-bottom: 1px solid var(--pm-line) !important;
  box-shadow: none !important;
  background: #fff !important;
}

#dkn-desktop-header .header-main .sc-container,
#dkn-mobile-header .header-main .sc-container {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.header-logo img#logo {
  max-height: 32px !important;
  height: 32px !important;
  width: auto !important;
}

.header-logo h6 {
  font-size: 16px !important;
  line-height: 22px !important;
}

.header-logo a > div:empty {
  display: none !important;
}

.dkn-header-menu-item-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.header-section .dkn-header-menu-item.dkn-header-menu-item-active .dkn-header-menu-item-label,
.header-section .dkn-header-menu-item:hover .dkn-header-menu-item-label {
  border-bottom-color: var(--pm-ink) !important;
  font-weight: 600 !important;
}

/* Hero — wrap the photo, hide the unused mobile copy on desktop */
@media (min-width: 992px) {
  .pm-hero--mobile {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.pm-hero {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100%;
  background: #fff;
  height: auto !important;
  max-height: none !important;
}

.pm-hero .top-banner-section,
.pm-hero .splide,
.pm-hero .splide__track,
.pm-hero .splide__list,
.pm-hero .splide__slide,
.pm-hero a,
.pm-hero .image-wrapper {
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  line-height: 0 !important;
}

.pm-hero .splide {
  position: relative !important;
}

.pm-hero .image-wrapper {
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
  border: none !important;
  background: #fff;
}

.pm-hero img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(100dvh - 92px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  left: auto !important;
  top: auto !important;
  position: static !important;
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 991px) {
  .pm-hero:not(.pm-hero--mobile) {
    display: none !important;
  }

  /* Portrait/square mobile banners — don't force desktop landscape ratio */
  .pm-hero.pm-hero--mobile .image-wrapper {
    aspect-ratio: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .pm-hero.pm-hero--mobile .image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

#hero-splide-banners .splide__pagination,
#hero-splide-image-mobile .splide__pagination {
  transform: none !important;
  right: auto !important;
  top: auto !important;
  left: 0 !important;
  bottom: 16px !important;
  width: 100% !important;
  justify-content: center !important;
}

/* Promo marquee under hero */
.pm-promo-strip {
  background: #111;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.pm-promo-strip__track {
  display: inline-block;
  padding-left: 100%;
  animation: pm-marquee 28s linear infinite;
}

@keyframes pm-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.pm-promo-strip span {
  margin: 0 28px;
  font-size: 12px;
  line-height: 1;
  color: #fff !important;
}

/* Section titles */
.new-arrivals-wrapper {
  border: none !important;
  padding: 40px 0 20px !important;
  align-items: baseline;
}

.new-arrivals-title,
.shop-by-category-heading,
.blog-posts-title,
.testimonials-label,
.pm-section-title,
.pm-reason h2,
.pm-faq h2,
.pm-voices h2 {
  font-family: "Playfair Display", "DM Sans", system-ui, sans-serif !important;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem) !important;
  line-height: 1.15 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--pm-ink) !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.viewall-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid var(--pm-ink);
  padding: 10px 18px !important;
  color: var(--pm-ink) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.viewall-text:hover {
  background: var(--pm-ink);
  color: #fff !important;
}

/* Circular category row (Palmonas Demifine style) */
.pm-category-section {
  padding: 16px 16px 24px !important;
  text-align: center;
}

.pm-category-section .pm-section-title {
  margin-bottom: 28px;
  display: block;
  text-align: center;
  width: 100%;
}

.pm-category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 48px;
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.pm-category-item {
  width: 160px;
  text-align: center;
}

.pm-category-item a {
  text-decoration: none;
  color: var(--pm-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pm-category-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pm-soft);
  border: 1px solid var(--pm-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pm-category-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-category-item a:hover .pm-category-avatar {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pm-category-name {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.pm-category-item--all {
  display: none !important;
}

/* Hide old bordered category carousels when circular row is present */
body.pm-restyle #shopByCategory,
body.pm-restyle #shopByBrands {
  display: none !important;
}

/* Product cards — one even frame, no leftover grid lines */
body.pm-restyle .home-page-category-product-list,
body.pm-restyle .latest-arrivals-block,
body.pm-restyle .hw-home-page-product-card-container,
body.pm-restyle .hw-home-page-product-card-container:nth-child(n),
body.pm-restyle .hw-home-page-product-card-container:nth-child(odd),
body.pm-restyle .hw-home-page-product-card-container:nth-child(even),
body.pm-restyle .hw-home-page-product-card-container:nth-last-child(n),
body.pm-restyle .home-page-category-product-list .cards_item,
body.pm-restyle .home-page-category-product-list .card,
body.pm-restyle .home-page-category-product-list .card_image,
body.pm-restyle .home-page-category-product-list .image-wrapper {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  box-shadow: none !important;
  outline: none !important;
}

body.pm-restyle .home-page-category-product-list .dkn-product-card-only-image-wrapper {
  border: 1px solid #1a1a1a !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #fafafa;
  height: auto !important;
}

body.pm-restyle .home-page-category-product-list .dkn-product-card-only-image-wrapper .image-wrapper {
  border: none !important;
  height: 100% !important;
  width: 100% !important;
}

body.pm-restyle .home-page-category-product-list .image-wrapper img,
body.pm-restyle .home-page-category-product-list .dkn-product-card-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#home-new-arrivals-section .sc-container,
.sc-container {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

@media (min-width: 992px) {
  .sc-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .new-arrivals-title,
  .pm-section-title,
  .pm-reason h2,
  .pm-faq h2,
  .pm-voices h2,
  .blog-posts-title {
    font-size: clamp(1.75rem, 2.6vw, 2.35rem) !important;
  }

  .pm-category-avatar {
    width: 200px;
    height: 200px;
  }

  .pm-category-item {
    width: 210px;
  }
}

/* Palmonas Top Styles */
.pm-top-styles {
  padding: 8px 16px 48px !important;
  text-align: center;
}

.pm-top-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 32px;
}

.pm-top-filters button {
  background: #fff;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 0;
  font-weight: 500;
  font-family: inherit;
}

.pm-top-filters button.is-active {
  background: #1a1a1a;
  color: #fff;
}

.pm-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.pm-top-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.pm-top-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-top-ribbon {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  background: #8a1f32;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 18px 7px 10px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}

.pm-top-like {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pm-top-like svg {
  width: 16px;
  height: 16px;
}

.pm-top-like.is-on svg path {
  fill: #8a1f32;
  stroke: #8a1f32;
}

.pm-top-bag,
a.pm-top-bag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border: none;
  background: #fff;
  color: #6b6b6b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.pm-top-card__name {
  margin: 12px 0 4px;
  font-family: "Playfair Display", "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.pm-top-card__price {
  margin: 0;
  font-size: 13px;
  color: #1a1a1a;
}

.pm-top-viewall {
  display: inline-block;
  margin: 32px auto 0;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid #1a1a1a;
  padding: 10px 22px !important;
  color: #1a1a1a !important;
  background: #fff;
}

.pm-top-viewall:hover {
  background: #1a1a1a;
  color: #fff !important;
}

.pm-top-card__was {
  margin-left: 8px;
  color: #888;
  font-weight: 400;
}

@media (max-width: 991px) {
  .pm-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pm-top-card__name {
    font-size: 14px;
  }
}

/* Ghost CTAs */
.btn-primary,
.new-collection-shop-now,
.hw-add-to-bag-button-wrapper .add-to-bag-button-wrapper button,
.add-to-bag-button-wrapper button {
  border-radius: 0 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px !important;
}

.btn-secondary {
  background: #fff !important;
  border: 1px solid #1a1a1a !important;
  color: #1a1a1a !important;
}

.buy-now-button-wrapper .btn-secondary,
.dkn-buy-now-button .btn-secondary {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.new-collection-shop-now {
  background: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

.new-collection-wrapper {
  border: none !important;
  padding: 0 !important;
  margin: 32px 0 !important;
}

.new-collection-title {
  font-family: "Playfair Display", "DM Sans", system-ui, sans-serif !important;
  font-size: 36px !important;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Testimonials & blogs */
.testimonials-block,
.hw-blog-section {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.testimonials-label {
  writing-mode: horizontal-tb !important;
  transform: none !important;
  padding: 24px !important;
}

.blog-card {
  border: none !important;
}

.blog-card .heading {
  font-family: "Playfair Display", "DM Sans", system-ui, sans-serif !important;
  font-size: 22px !important;
}

/* Footer quieter */
.hw-footer {
  background: #fafafa !important;
  border-top: 1px solid var(--pm-line) !important;
}

.hw-footer .links-section-heading,
.hw-footer .new-letter-section-heading,
.footer-brand-name {
  font-family: "Playfair Display", "DM Sans", system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

.footer-paymentmode {
  border-top: 1px solid var(--pm-line) !important;
}

/* Mobile nav */
.mob-navbar {
  border-top: 1px solid var(--pm-line) !important;
}

/* Product listing borders */
[style*="border: 1px solid #1A181E"],
[style*="border:1px solid #1A181E"] {
  border-color: transparent !important;
}

/* Shop-by-category legacy (if circular section not used) */
#shopByCategory .shop-by-category-heading {
  display: none;
}

#shopByCategory .splide__slide a,
#shopByCategory .splide__slide a > div > div {
  border: none !important;
  height: auto !important;
}

#shopByCategory .splide__slide img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover !important;
  max-width: 140px;
  margin: 0 auto;
}

#shopByCategory .splide__slide a {
  height: auto !important;
  padding: 16px 8px !important;
}

#shopByCategory > div > div {
  background: transparent !important;
  flex-direction: column !important;
}

.shop-by-category-title {
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500 !important;
}

/* Collection filters */
.pm-native-price,
.advance-filter__block:has(input[name="price_ranges"]):not(.pm-facet) {
  display: none !important;
}

.pm-filter-host {
  display: block;
  width: 100%;
  flex: 0 0 auto;
}

.pm-filter-host .pm-facet.advance-filter__block,
.pm-filter-host .pm-facet.advance-filter__block:first-of-type,
.pm-facet.advance-filter__block:first-of-type {
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.pm-filter-host .filter-checkbox-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 992px) {
  body.pm-has-filters .main-container__no-filter .advance-filter__action-wrapper {
    display: flex !important;
  }
}

body.pm-has-filters .main-container__no-filter .filter-btn {
  display: flex !important;
  align-items: center;
}

.pm-facet .advance-filter__filter-title {
  margin-bottom: 10px;
}

.pm-facet-count {
  color: var(--black-50, #888);
  font-weight: 400;
  font-size: 12px;
}

.pm-filter-tags {
  gap: 0;
}

.pm-filter-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--black-50, #888);
  font-size: 14px;
}

body.pm-filters-on pagination,
body.pm-filters-on .advance-filter__pagination-wrapper {
  display: none !important;
}
