﻿:root {
  --papillon-primary: #8a145b;
  --papillon-primary-700: #6f0f49;
  --papillon-primary-50: #f9eef4;
  --papillon-accent: #0b7285;
  --papillon-bg: #f6f7fb;
  --papillon-surface: #ffffff;
  --papillon-text: #111827;
  --papillon-muted: #6b7280;
  --papillon-border: #e5e7eb;
  --papillon-radius: 14px;
  --papillon-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --papillon-shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  background-color: var(--papillon-bg);
  color: var(--papillon-text);
  font-size: 13px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--papillon-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--papillon-primary);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--papillon-primary-700);
}

/* =========================
   Header Premium 2.0
   ========================= */
#top.papillon-topbar {
  margin: 0;
  min-height: 36px;
  background: #fbfafc;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: none;
  position: relative;
  z-index: 20;
}

#top.papillon-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.papillon-topbar__notice {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.01em;
}

.papillon-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.papillon-topbar__locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.papillon-topbar__locale .btn-link,
.papillon-topbar__locale .dropdown-menu li > button.btn-link {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  text-decoration: none;
}

.papillon-topbar__locale .btn-link:hover,
.papillon-topbar__locale .btn-link:focus {
  color: var(--papillon-primary);
}

.papillon-topbar__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.papillon-topbar__links li {
  position: relative;
  padding: 0;
}

.papillon-topbar__links li + li {
  padding-left: 10px;
}

.papillon-topbar__links li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: rgba(100, 116, 139, 0.28);
  transform: translateY(-50%);
}

.papillon-topbar__links a {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.papillon-topbar__links a:hover,
.papillon-topbar__links a:focus {
  color: var(--papillon-primary);
}

#top #top-links {
  display: none;
}

.papillon-header-shell {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: linear-gradient(180deg, rgba(253, 251, 255, 0.98) 0%, rgba(248, 246, 251, 0.96) 100%);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid rgba(138, 20, 91, 0.1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  overflow: visible;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.03);
}

.papillon-header-shell.is-scrolled {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(138, 20, 91, 0.16);
  background: linear-gradient(180deg, rgba(252, 250, 253, 0.99) 0%, rgba(247, 245, 250, 0.98) 100%);
}

.papillon-header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  position: relative;
  z-index: 60;
  overflow: visible;
}

.papillon-header .container {
  padding-top: 10px;
  padding-bottom: 10px;
  transition: padding 0.25s ease;
}

.papillon-header-shell.is-scrolled .papillon-header .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.papillon-header-shell.is-scrolled .papillon-navbar #menu .nav > li > a {
  min-height: 46px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.papillon-header__row {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
}

.papillon-header__row > [class*='col-'] {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.papillon-header__row > div:nth-child(1) {
  grid-column: 1;
}

.papillon-header__row > div:nth-child(2) {
  grid-column: 2;
}

.papillon-header__row > div:nth-child(3) {
  grid-column: 3;
}

.papillon-header__logo {
  margin: 0;
  padding: 4px 0;
}

.papillon-header__logo img {
  width: auto;
  max-height: 74px;
  object-fit: contain;
  transition: max-height 0.25s ease;
}

.papillon-header-shell.is-scrolled .papillon-header__logo img {
  max-height: 64px;
}

.papillon-header__search {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.papillon-header__search #search {
  margin: 0;
  width: 100%;
  min-width: 300px;
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.papillon-header__search #search .form-control.input-lg {
  height: 54px;
  border-radius: 999px;
  border: 1px solid #cfd7e6;
  background: #ffffff;
  padding: 0 58px 0 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 54px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.papillon-header__search #search .form-control.input-lg::placeholder {
  color: #66758c;
}

.papillon-header__search #search .form-control.input-lg:hover {
  border-color: #bcc8db;
  background: #fffeff;
}

.papillon-header__search #search .form-control.input-lg:focus {
  border-color: rgba(138, 20, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 20, 91, 0.15), 0 6px 18px rgba(15, 23, 42, 0.07);
}

.papillon-header__search #search .input-group-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  left: auto;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.papillon-header__search #search .btn.btn-default.btn-lg {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #eef1f8;
  color: #536278;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: none;
}

.papillon-header__search #search .btn.btn-default.btn-lg:hover,
.papillon-header__search #search .btn.btn-default.btn-lg:focus {
  background: var(--papillon-primary-50);
  color: var(--papillon-primary);
  box-shadow: none;
  transform: none;
}

.papillon-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
  flex-wrap: nowrap;
  position: relative;
  z-index: 80;
  overflow: visible;
}

.papillon-action-dropdown,
.papillon-header__cart,
.papillon-header__cart #cart {
  position: relative;
  z-index: 85;
  overflow: visible;
}

.papillon-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d1daea;
  border-radius: 999px;
  background: #fcfbfe;
  color: #283549;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.papillon-action i {
  font-size: 14px;
}

.papillon-action:hover,
.papillon-action:focus {
  border-color: rgba(138, 20, 91, 0.44);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  box-shadow: 0 7px 16px rgba(138, 20, 91, 0.14);
}

.papillon-action__label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.papillon-action-dropdown .dropdown-menu {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--papillon-border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding-top: 8px;
  padding-bottom: 8px;
  z-index: 1200;
}

.papillon-action-dropdown .dropdown-menu > li > a {
  padding: 8px 16px;
  font-weight: 500;
}

.papillon-header__cart {
  display: inline-flex;
  align-items: center;
}

.papillon-header__cart #cart {
  margin-bottom: 0;
}

.papillon-header__cart #cart.btn-group.btn-block {
  width: auto;
}

.papillon-header__cart #cart > .btn {
  position: relative;
  height: 44px;
  max-width: 180px;
  border-radius: 999px;
  border: 1px solid #d1daea;
  background: #fcfbfe;
  color: #283549;
  padding: 0 36px 0 14px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.papillon-header__cart #cart > .btn:hover,
.papillon-header__cart #cart > .btn:focus {
  border-color: rgba(138, 20, 91, 0.44);
  color: var(--papillon-primary-700);
  box-shadow: 0 7px 16px rgba(138, 20, 91, 0.14);
  transform: scale(1.01);
}

.papillon-header__cart #cart > .btn .fa {
  margin-right: 6px;
}

.papillon-header__cart #cart > .btn::after {
  content: attr(data-papillon-count);
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--papillon-primary);
  color: #ffffff;
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  display: none;
}

.papillon-header__cart #cart > .btn[data-papillon-count]::after {
  display: block;
}

.papillon-header__cart #cart > .btn[data-papillon-count=""]::after {
  display: none;
}

.papillon-header__cart #cart-total {
  display: inline-block;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.papillon-header__cart #cart .dropdown-menu {
  width: 340px;
  max-width: calc(100vw - 24px);
  margin-top: 10px;
  padding: 14px 14px 8px;
  border-radius: 16px;
  border: 1px solid var(--papillon-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 1200;
}

.papillon-header__cart #cart .dropdown-menu table {
  margin-bottom: 10px;
}

.papillon-header__cart #cart .dropdown-menu .btn-primary {
  border-radius: 10px;
}

.papillon-navbar {
  position: relative;
  z-index: 40;
  border-top: 1px solid rgba(138, 20, 91, 0.08);
  overflow: visible;
}

.papillon-navbar #menu {
  margin-top: 0;
  margin-bottom: 0;
  min-height: 50px;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 246, 251, 0.82) 100%);
  box-shadow: none;
  position: relative;
  z-index: 40;
  overflow: visible;
}

.papillon-navbar #menu .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--papillon-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  margin-top: 2px;
  z-index: 1060;
}

.papillon-navbar #menu .dropdown-inner a {
  font-size: 13px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.papillon-navbar #menu .see-all {
  background: #ffffff;
  color: var(--papillon-primary);
  border-top: 1px solid var(--papillon-border);
  font-weight: 600;
}

.papillon-navbar #menu .see-all:hover,
.papillon-navbar #menu .see-all:focus {
  background: var(--papillon-primary-50);
  color: var(--papillon-primary-700);
}

@media (min-width: 768px) {
  .papillon-navbar #menu .nav {
    float: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin: 0;
  }

  .papillon-navbar #menu .nav > li {
    float: none;
  }

  .papillon-navbar #menu .nav > li > a {
    position: relative;
    min-height: 50px;
    padding: 15px 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #222f42;
    text-shadow: none;
    background: transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
  }

  .papillon-navbar #menu .nav > li > a::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 9px;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--papillon-primary), var(--papillon-primary-700));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }

  .papillon-navbar #menu .nav > li > a:hover,
  .papillon-navbar #menu .nav > li.open > a,
  .papillon-navbar #menu .nav > li.active > a {
    color: var(--papillon-primary-700);
    background: rgba(138, 20, 91, 0.05);
  }

  .papillon-navbar #menu .nav > li > a:hover::after,
  .papillon-navbar #menu .nav > li.open > a::after,
  .papillon-navbar #menu .nav > li.active > a::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1199px) {
  .papillon-header__search #search {
    min-width: 240px;
    max-width: 560px;
  }

  .papillon-action {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .papillon-action__label {
    display: none;
  }

  .papillon-header__cart #cart > .btn {
    max-width: 160px;
    padding-right: 32px;
  }

  .papillon-header__cart #cart-total {
    max-width: 112px;
  }
}

@media (max-width: 991px) {
  .papillon-header-shell {
    position: relative;
    top: auto;
    backdrop-filter: none;
    background: linear-gradient(180deg, #fcfafe 0%, #f7f5fa 100%);
    border-bottom: 1px solid rgba(138, 20, 91, 0.12);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
  }

  .papillon-header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .papillon-header__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'logo actions'
      'search search';
    column-gap: 12px;
    row-gap: 10px;
  }

  .papillon-header__row > div:nth-child(1) {
    grid-area: logo;
  }

  .papillon-header__row > div:nth-child(2) {
    grid-area: search;
  }

  .papillon-header__row > div:nth-child(3) {
    grid-area: actions;
  }

  .papillon-header__logo img,
  .papillon-header-shell.is-scrolled .papillon-header__logo img {
    max-height: 62px;
  }

  .papillon-header__actions {
    gap: 8px;
  }

  .papillon-header__search #search {
    min-width: 0;
    max-width: none;
  }

  .papillon-header__search #search .form-control.input-lg {
    height: 50px;
    line-height: 50px;
  }

  .papillon-header__cart #cart > .btn {
    max-width: 132px;
    padding-right: 28px;
  }

  .papillon-header__cart #cart-total {
    max-width: 88px;
  }

  .papillon-navbar #menu {
    min-height: 46px;
    border-top: 1px solid rgba(138, 20, 91, 0.09);
    background: #faf8fc;
  }
}

@media (max-width: 767px) {
  #top.papillon-topbar {
    display: none;
  }

  .papillon-header .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .papillon-header__row {
    column-gap: 10px;
    row-gap: 5px;
  }

  .papillon-header__logo {
    padding-top: 2px;
    padding-bottom: 0;
  }

  .papillon-header__logo img {
    max-height: 46px;
  }

  .papillon-header__actions {
    gap: 6px;
    min-width: 0;
  }

  .papillon-action {
    width: 44px;
    height: 44px;
    border-color: #cfd7e6;
    background: #fbf8fd;
    color: #1f2937;
  }

  .papillon-header__cart #cart.btn-group.btn-block {
    width: auto;
  }

  .papillon-header__cart #cart > .btn {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    border-color: #cfd7e6;
    background: #fbf8fd;
    color: #1f2937;
  }

  .papillon-header__cart #cart > .btn .fa {
    margin-right: 0;
  }

  .papillon-header__cart #cart-total {
    font-size: 0;
    max-width: none;
    line-height: 0;
  }

  .papillon-header__cart #cart-total .fa {
    font-size: 15px;
    line-height: 1;
  }

  .papillon-header__cart #cart > .btn::after {
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    line-height: 15px;
    font-size: 9px;
  }

  .papillon-header__search #search .form-control.input-lg {
    height: 44px;
    line-height: 44px;
    font-size: 13px;
    padding-left: 14px;
    padding-right: 48px;
    border-color: #c3cede;
    color: #1f2430;
    background: #ffffff;
  }

  .papillon-header__search #search .input-group-btn {
    right: 6px;
    width: 34px;
    height: 34px;
  }

  .papillon-header__search #search .btn.btn-default.btn-lg {
    width: 34px;
    height: 34px;
    background: #eef1f8;
    color: #475569;
  }

  .papillon-navbar #menu {
    min-height: 44px;
    border-radius: 0;
    border-top: 1px solid rgba(138, 20, 91, 0.1);
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
    background: #f8f7fb;
  }

  .papillon-navbar #menu .navbar-header {
    display: block;
    min-height: 44px;
    padding: 0;
  }

  .papillon-navbar #menu #category {
    display: none !important;
  }

  .papillon-navbar #menu .btn-navbar {
    border-radius: 10px;
    margin: 0 10px 0 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0 11px;
    border-color: #c8d2e2;
    background: #ffffff;
    color: #1f2430;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: right;
  }

  .papillon-navbar #menu .navbar-toggle {
    margin: 0 10px 0 0;
    float: right;
  }

  .papillon-navbar #menu .btn-navbar .icon-bar {
    background-color: #334155;
  }

  .papillon-navbar #menu .btn-navbar .fa {
    color: #1f2430;
    font-size: 17px;
    line-height: 1;
  }

  .papillon-navbar #menu .navbar-collapse {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: none;
    background: #f8f7fb;
    opacity: 1;
  }

  .papillon-navbar #menu .nav > li > a {
    min-height: 44px;
    padding: 10px 16px;
    color: #1f2430;
    font-weight: 600;
    text-shadow: none;
    opacity: 1;
    background: transparent;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
  }

  .papillon-navbar #menu .nav > li:first-child > a {
    border-top: 0;
  }

  .papillon-navbar #menu .nav > li > a:hover,
  .papillon-navbar #menu .nav > li.open > a,
  .papillon-navbar #menu .nav > li.active > a {
    color: var(--papillon-primary-700);
    background: rgba(138, 20, 91, 0.08);
  }

  .papillon-navbar #menu div.dropdown-menu {
    padding-bottom: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    opacity: 1;
  }

  .papillon-navbar #menu .dropdown-inner a,
  .papillon-navbar #menu .see-all {
    padding-left: 18px;
    padding-right: 18px;
    color: #1f2430;
    font-weight: 500;
    text-shadow: none;
    opacity: 1;
  }

  .papillon-header__cart #cart .dropdown-menu {
    right: -8px;
  }
}

/* =========================
   Home Slideshow (Premium)
   Scope: #common-home .slideshow.swiper-viewport
   ========================= */
#common-home .slideshow.swiper-viewport {
  position: relative;
  margin: 14px 0 24px;
  border: 1px solid rgba(138, 20, 91, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #f9f7fb 0%, #f4f6fb 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  aspect-ratio: 16 / 6.4;
  min-height: 320px;
  max-height: 520px;
}

@supports not (aspect-ratio: 1 / 1) {
  #common-home .slideshow.swiper-viewport {
    height: clamp(280px, 36vw, 460px);
  }
}

#common-home .slideshow.swiper-viewport .swiper-container,
#common-home .slideshow.swiper-viewport .swiper-wrapper,
#common-home .slideshow.swiper-viewport .swiper-slide {
  height: 100%;
}

#common-home .slideshow.swiper-viewport .swiper-container,
#common-home .slideshow.swiper-viewport .swiper-wrapper {
  touch-action: pan-y;
}

#common-home .slideshow.swiper-viewport .swiper-slide {
  background: radial-gradient(circle at 22% 16%, rgba(138, 20, 91, 0.08) 0%, rgba(138, 20, 91, 0) 58%), #f7f8fc;
}

#common-home .slideshow.swiper-viewport .swiper-slide > a,
#common-home .slideshow.swiper-viewport .swiper-slide > img {
  display: block;
  width: 100%;
  height: 100%;
}

#common-home .slideshow.swiper-viewport .swiper-slide img {
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.2vw, 16px);
  object-fit: contain;
  object-position: center center;
}

#common-home .slideshow.swiper-viewport .swiper-pagination {
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 4;
  text-align: center;
}

#common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-bullet,
#common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-switch {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(31, 36, 48, 0.38);
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, width 0.2s ease;
}

#common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-bullet-active,
#common-home .slideshow.swiper-viewport .swiper-pagination .swiper-active-switch {
  width: 18px;
  background: var(--papillon-primary);
  border-color: rgba(138, 20, 91, 0.4);
}

#common-home .slideshow.swiper-viewport .swiper-pager {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  pointer-events: none;
  z-index: 5;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.9);
  background-image: none !important;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 5;
  pointer-events: auto;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev {
  left: 12px;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next {
  right: 12px;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev::before,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next::before {
  content: none !important;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev::after,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next::after {
  position: static;
  top: auto;
  left: auto;
  display: block;
  font-family: FontAwesome;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev::after {
  content: "\f104";
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next::after {
  content: "\f105";
}

#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev:hover,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev:focus,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next:hover,
#common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next:focus {
  border-color: rgba(138, 20, 91, 0.36);
  background: #ffffff;
  color: var(--papillon-primary);
  transform: translateY(-50%) scale(1.03);
}

@media (max-width: 991px) {
  #common-home .slideshow.swiper-viewport {
    margin: 10px 0 20px;
    border-radius: 16px;
    aspect-ratio: 16 / 7.4;
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  #common-home .slideshow.swiper-viewport {
    margin: 8px 0 16px;
    border-radius: 14px;
    aspect-ratio: 16 / 8.9;
    min-height: 190px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  }

  #common-home .slideshow.swiper-viewport .swiper-slide img {
    padding: 8px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pagination {
    bottom: 8px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-bullet,
  #common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-switch {
    width: 7px;
    height: 7px;
    margin: 0 3px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pagination .swiper-pagination-bullet-active,
  #common-home .slideshow.swiper-viewport .swiper-pagination .swiper-active-switch {
    width: 15px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev,
  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next {
    width: 34px;
    height: 34px;
    border-radius: 999px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev::after,
  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next::after {
    font-size: 13px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-prev {
    left: 8px;
  }

  #common-home .slideshow.swiper-viewport .swiper-pager .swiper-button-next {
    right: 8px;
  }
}

.btn {
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: none;
  text-shadow: none;
  font-weight: 600;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: var(--papillon-shadow-sm);
}

.btn-primary,
.btn-inverse {
  background: var(--papillon-primary);
  border-color: var(--papillon-primary);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled],
.btn-inverse:hover,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
  background: var(--papillon-primary-700);
  border-color: var(--papillon-primary-700);
}

.btn-default {
  background: var(--papillon-surface);
  border-color: var(--papillon-border);
  color: var(--papillon-text);
}

.btn-default:hover,
.btn-default:focus {
  border-color: var(--papillon-primary);
  color: var(--papillon-primary);
}

.btn-link {
  color: var(--papillon-primary);
}

.form-control,
select.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="datetime"].form-control,
input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="month"].form-control,
input[type="time"].form-control,
input[type="week"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="url"].form-control,
input[type="search"].form-control,
input[type="tel"].form-control,
input[type="color"].form-control {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--papillon-border);
  background: var(--papillon-surface);
  color: var(--papillon-text);
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--papillon-primary);
  box-shadow: 0 0 0 3px rgba(138, 20, 91, 0.16);
}

.input-group .input-group-addon {
  border: 1px solid var(--papillon-border);
  background: var(--papillon-surface);
}

#search .btn-lg {
  text-shadow: none;
}

#cart > .btn {
  background: var(--papillon-primary);
  border-color: var(--papillon-primary);
  border-radius: 12px;
}

#cart.open > .btn {
  background: var(--papillon-surface);
  border-color: var(--papillon-border);
  color: var(--papillon-text);
}

#cart .dropdown-menu {
  background: var(--papillon-surface);
  border: 1px solid var(--papillon-border);
  border-radius: 12px;
  box-shadow: var(--papillon-shadow-md);
}

/* Product Card Premium: modern layer while preserving OpenCart default markup */
.product-layout {
  margin-bottom: 24px;
}

.product-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--papillon-surface);
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(138, 20, 91, 0.05) 0%, rgba(138, 20, 91, 0) 38%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 20, 91, 0.24);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
}

.product-thumb:hover::after {
  opacity: 1;
}

.product-grid .product-thumb {
  height: 100%;
}

/* Product media: cleaner framing with consistent ratio */
.product-thumb .image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 222px;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
  border-bottom: 1px solid #edf1f6;
  overflow: hidden;
}

.product-thumb .image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.product-thumb .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.product-thumb:hover .image img {
  transform: scale(1.035);
}

@media (min-width: 767px) {
  /* Preserve default list behavior while modernizing visual density */
  .product-list .product-thumb {
    min-height: 240px;
  }

  .product-list .product-thumb .image {
    float: left;
    width: 240px;
    height: 240px;
    border-right: 1px solid #edf1f6;
    border-bottom: none;
  }

  .product-list .product-thumb > div:last-child {
    margin-left: 240px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
  }

  .product-list .product-thumb .caption {
    margin-left: 0;
    min-height: 0;
    padding: 18px 18px 12px;
  }

  .product-list .product-thumb .button-group {
    margin: 0 18px 16px;
    border-top: none;
    background: transparent;
    padding: 0;
  }
}

/* Content hierarchy */
.product-thumb .caption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px 12px;
  min-height: 170px;
}

.product-grid .product-thumb .caption {
  flex: 1;
}

.product-thumb h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 2.8em;
  font-weight: 600;
}

.product-thumb h4 a {
  color: var(--papillon-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb .caption > p:not(.price) {
  margin: 0;
  color: var(--papillon-muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}

.product-grid .product-thumb .caption > p:not(.price) {
  -webkit-line-clamp: 2;
}

.product-list .product-thumb .caption > p:not(.price) {
  -webkit-line-clamp: 3;
}

.product-thumb .price {
  margin: 2px 0 0;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  color: var(--papillon-primary-700);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.product-grid .product-thumb .price {
  margin-top: auto;
}

.product-list .product-thumb .price {
  margin-top: 6px;
  min-height: 0;
  font-size: 22px;
}

.product-thumb .price-new {
  color: var(--papillon-primary-700);
  font-weight: 700;
}

.product-thumb .price-old {
  color: var(--papillon-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}

.product-thumb .price-tax {
  width: 100%;
  margin-top: 2px;
  color: var(--papillon-muted);
  font-size: 11px;
  font-weight: 500;
}

.product-thumb .rating {
  margin: 0;
}

/* CTA strip: primary action + lightweight utility actions */
.product-thumb .button-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #edf1f6;
  background: #f9fafe;
}

.product-thumb .button-group button {
  float: none;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--papillon-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--papillon-muted);
  line-height: 1;
  font-weight: 600;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb .button-group button:first-child,
.product-thumb .button-group button[onclick*="cart.add"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  white-space: nowrap;
  border-color: var(--papillon-primary);
  background: var(--papillon-primary);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(138, 20, 91, 0.22);
}

.product-thumb .button-group button + button,
.product-thumb .button-group button[onclick*="wishlist.add"],
.product-thumb .button-group button[onclick*="compare.add"] {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  padding: 0;
  line-height: 1;
}

.product-thumb .button-group button[onclick*="wishlist.add"] span,
.product-thumb .button-group button[onclick*="compare.add"] span {
  display: none !important;
}

/* Small actions mimic header chip style without competing with primary CTA */
.product-thumb .button-group button[onclick*="wishlist.add"],
.product-thumb .button-group button[onclick*="compare.add"] {
  border: 1px solid #d1daea;
  background: #fcfbfe;
  color: #283549;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.product-thumb .button-group button .fa {
  margin-right: 0;
}

.product-thumb .button-group button:hover,
.product-thumb .button-group button:focus {
  background: var(--papillon-primary-50);
  color: var(--papillon-primary);
  border-color: rgba(138, 20, 91, 0.25);
  text-decoration: none;
}

.product-thumb .button-group button:first-child:hover,
.product-thumb .button-group button:first-child:focus {
  background: var(--papillon-primary-700);
  border-color: var(--papillon-primary-700);
  color: #ffffff;
}

.product-thumb .button-group button[onclick*="wishlist.add"]:hover,
.product-thumb .button-group button[onclick*="wishlist.add"]:focus,
.product-thumb .button-group button[onclick*="compare.add"]:hover,
.product-thumb .button-group button[onclick*="compare.add"]:focus {
  border-color: rgba(138, 20, 91, 0.44);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  box-shadow: 0 7px 16px rgba(138, 20, 91, 0.14);
}

.product-thumb .button-group button[onclick*="wishlist.add"].active,
.product-thumb .button-group button[onclick*="wishlist.add"].is-active,
.product-thumb .button-group button[onclick*="wishlist.add"][aria-pressed='true'] {
  background: var(--papillon-primary-50);
  color: var(--papillon-primary-700);
  border-color: rgba(138, 20, 91, 0.28);
}

.product-thumb .button-group button:active {
  transform: translateY(1px);
}

.product-thumb .button-group button[onclick*="wishlist.add"]:focus-visible,
.product-thumb .button-group button[onclick*="compare.add"]:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.28);
  outline-offset: 2px;
}

/* Focus visibility for accessibility */
.product-thumb .image a:focus-visible,
.product-thumb h4 a:focus-visible,
.product-thumb .button-group button:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.38);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .product-layout {
    margin-bottom: 20px;
  }

  .product-thumb .image {
    height: 188px;
  }

  .product-thumb .caption {
    min-height: 156px;
    padding: 13px 14px 11px;
  }

  .product-thumb .price {
    min-height: 48px;
    font-size: 18px;
  }

  .product-thumb .button-group {
    gap: 7px;
    padding: 9px;
  }

  .product-thumb .button-group button {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .product-layout {
    margin-bottom: 16px;
  }

  .product-thumb:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.05);
  }

  .product-thumb:hover::after {
    opacity: 0;
  }

  .product-thumb .image {
    height: 166px;
  }

  .product-thumb .caption {
    min-height: 0;
    gap: 7px;
    padding: 12px 12px 10px;
  }

  .product-thumb h4 {
    font-size: 13.5px;
  }

  .product-thumb .price {
    min-height: 42px;
    font-size: 17px;
  }

  .product-thumb .button-group {
    gap: 6px;
    padding: 8px;
  }

  .product-thumb .button-group button {
    min-height: 44px;
    font-size: 12px;
  }

  .product-thumb .button-group button:first-child span.hidden-xs.hidden-sm.hidden-md {
    display: inline-block !important;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
  }

  .product-thumb .button-group button + button {
    max-width: 44px;
  }
}

/* Home Featured: editorial heading + Swiper card gallery */
#common-home .papillon-featured--gallery-enabled > h3 {
  position: relative;
  margin: 8px 0 18px;
  padding-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--papillon-text);
}

#common-home .papillon-featured--gallery-enabled > h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--papillon-primary) 0%, rgba(138, 20, 91, 0.4) 100%);
}

#common-home .papillon-featured--gallery-enabled .product-thumb .image {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #fdfbff 0%, #f6f7fb 100%);
  overflow: hidden;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper,
#common-home .papillon-featured--gallery-enabled .papillon-featured-card__gallery,
#common-home .papillon-featured--gallery-enabled .papillon-featured-card__slide {
  width: 100%;
  height: 100%;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-card__gallery {
  display: flex;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-card__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-card__slide > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-card__slide img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pagination {
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pagination-bullet,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pagination-switch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.25);
  opacity: 1;
  margin: 0;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pagination-bullet-active,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-active-switch {
  background: var(--papillon-primary);
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pager {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.9);
  background-image: none !important;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev {
  left: 8px;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next {
  right: 8px;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next::before,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev::before {
  content: none !important;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next::after,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev::after {
  position: static;
  display: block;
  font-family: FontAwesome;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev::after {
  content: "\f104";
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next::after {
  content: "\f105";
}

#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next:hover,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next:focus,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev:hover,
#common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev:focus {
  border-color: rgba(138, 20, 91, 0.34);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  transform: scale(1.03);
}

@media (max-width: 767px) {
  #common-home .papillon-featured--gallery-enabled > h3 {
    margin: 4px 0 12px;
    font-size: 22px;
  }

  #common-home .papillon-featured--gallery-enabled .product-thumb .image {
    aspect-ratio: 1 / 1.15;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #ffffff;
  }

  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  #common-home .papillon-featured--gallery-enabled .product-thumb .caption {
    margin-top: 0;
    padding-top: 10px;
    border-top: 0;
  }

  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next,
  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-next::after,
  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-button-prev::after {
    font-size: 12px;
  }

  #common-home .papillon-featured--gallery-enabled .papillon-featured-swiper-viewport .swiper-pagination {
    bottom: 5px;
    padding: 3px 6px;
  }
}

/* PDP: premium layout with minimal structural assumptions */
#product-product #content > .row {
  margin-top: 4px;
  margin-bottom: 14px;
}

#product-product #content > .row > div:last-child {
  background: var(--papillon-surface);
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  box-shadow: var(--papillon-shadow-sm);
  padding: 16px;
}

#product-product #content > .row > div:last-child h1 {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

#product-product #content > .row > div:last-child > .btn-group {
  display: inline-flex;
  gap: 6px;
}

#product-product #content > .row > div:last-child > .btn-group .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#product-product #content > .row > div:last-child > .list-unstyled {
  margin-bottom: 12px;
}

#product-product #content > .row > div:last-child > .list-unstyled li {
  padding: 4px 0;
  color: var(--papillon-muted);
  font-size: 13px;
}

#product-product #content > .row > div:last-child > .list-unstyled li a {
  font-weight: 600;
}

#product-product #content > .row > div:last-child h2 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--papillon-primary-700);
  font-weight: 800;
}

#product-product #content > .row > div:last-child #product {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: #fafbff;
}

#product-product #content > .row > div:last-child #product .form-group {
  margin-bottom: 14px;
}

#product-product #content > .row > div:last-child #input-quantity {
  max-width: 96px;
}

#product-product #content > .row > div:last-child #button-cart {
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

#product-product #content > .row > div:last-child #button-cart[disabled],
#product-product #content > .row > div:last-child #button-cart.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#product-product #content > .row > div:last-child .rating {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--papillon-border);
}

/* PDP gallery and thumbs */
#product-product .thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  list-style: none;
}

#product-product .thumbnails > li {
  margin: 0;
}

#product-product .thumbnails > li:first-child {
  grid-column: 1 / -1;
}

#product-product .thumbnails .thumbnail {
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
  margin-bottom: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#product-product .thumbnails .thumbnail:hover,
#product-product .thumbnails .thumbnail:focus {
  border-color: rgba(138, 20, 91, 0.35);
  box-shadow: var(--papillon-shadow-md);
}

#product-product .thumbnails > li:first-child .thumbnail {
  min-height: 460px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-product .thumbnails > li:first-child .thumbnail img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
}

#product-product .thumbnails .image-additional {
  float: none;
  margin-left: 0;
  max-width: none;
}

#product-product .thumbnails .image-additional .thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 8px;
}

#product-product .thumbnails .image-additional .thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#product-product .thumbnails .image-additional .thumbnail.is-active,
#product-product .thumbnails .image-additional .thumbnail[aria-current='true'] {
  border-color: rgba(138, 20, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 20, 91, 0.14);
}

/* PDP tabs */
#product-product .nav-tabs {
  margin-bottom: 10px;
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#product-product .nav-tabs > li {
  float: none;
  margin-bottom: 0;
}

#product-product .nav-tabs > li > a {
  margin-right: 0;
  border: 1px solid var(--papillon-border);
  border-radius: 999px;
  background: var(--papillon-surface);
  color: var(--papillon-muted);
  padding: 8px 14px;
  line-height: 1.3;
}

#product-product .nav-tabs > li.active > a,
#product-product .nav-tabs > li.active > a:hover,
#product-product .nav-tabs > li.active > a:focus {
  border-color: var(--papillon-primary);
  background: var(--papillon-primary-50);
  color: var(--papillon-primary-700);
}

#product-product .tab-content {
  padding: 16px;
  padding-bottom: 20px;
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
}

/* Lightbox polish for default magnificPopup gallery */
.mfp-bg {
  background: rgba(15, 23, 42, 0.88);
  opacity: 1 !important;
}

.mfp-wrap .mfp-content {
  max-width: min(92vw, 1180px);
}

.mfp-image-holder .mfp-figure:after {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: none;
  background: transparent;
}

.mfp-image-holder .mfp-content img.mfp-img {
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: #ffffff;
  padding: 8px;
}

.mfp-arrow,
.mfp-close {
  opacity: 1;
  color: #ffffff !important;
}

.mfp-arrow {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
  background: rgba(138, 20, 91, 0.9);
  transform: scale(1.04);
}

.mfp-arrow:before,
.mfp-arrow:after {
  margin-top: 0;
  top: 14px;
}

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  right: 14px;
  top: 14px;
  font-size: 28px;
  transition: background-color 0.2s ease;
}

.mfp-close:hover,
.mfp-close:focus {
  background: rgba(138, 20, 91, 0.9);
}

/* Product tags chips */
#product-product #content > p:has(a[href*='route=product/search&tag=']) {
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.9;
  color: var(--papillon-muted);
}

#product-product #content > p a[href*='route=product/search&tag='] {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--papillon-border);
  border-radius: 999px;
  background: #f9fafd;
  color: var(--papillon-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.2s ease;
}

#product-product #content > p a[href*='route=product/search&tag=']:hover,
#product-product #content > p a[href*='route=product/search&tag=']:focus {
  border-color: rgba(138, 20, 91, 0.35);
  background: var(--papillon-primary-50);
  color: var(--papillon-primary-700);
}

/* Category/search sidebar + toolbar polish */
#column-left .list-group,
#column-right .list-group {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--papillon-shadow-sm);
}

#column-left .list-group a,
#column-right .list-group a {
  border: 1px solid var(--papillon-border);
  border-bottom: none;
  color: var(--papillon-muted);
  background: var(--papillon-surface);
  padding: 11px 14px;
}

#column-left .list-group a:last-child,
#column-right .list-group a:last-child {
  border-bottom: 1px solid var(--papillon-border);
}

#column-left .list-group a:hover,
#column-right .list-group a:hover {
  background: #f9fafd;
  color: var(--papillon-text);
}

#column-left .list-group a.active,
#column-left .list-group a.active:hover,
#column-right .list-group a.active,
#column-right .list-group a.active:hover {
  background: var(--papillon-primary-50);
  color: var(--papillon-primary-700);
  border-color: rgba(138, 20, 91, 0.35);
  font-weight: 700;
}

:is(#product-category, #product-search) #content .btn-group.btn-group-sm .btn,
#product-search #content .btn-group.btn-group-sm .btn {
  min-width: 36px;
  min-height: 34px;
  border-radius: 10px;
}

:is(#product-category, #product-search) #content .input-group.input-group-sm,
#product-search #content .input-group.input-group-sm {
  border: 1px solid var(--papillon-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--papillon-surface);
}

:is(#product-category, #product-search) #content .input-group.input-group-sm .input-group-addon,
#product-search #content .input-group.input-group-sm .input-group-addon {
  border: none;
  background: #f8f9fc;
  color: var(--papillon-muted);
  font-weight: 600;
}

:is(#product-category, #product-search) #content .input-group.input-group-sm .form-control,
#product-search #content .input-group.input-group-sm .form-control {
  border: none;
  min-height: 34px;
  box-shadow: none;
}

:is(#product-category, #product-search) #content .form-group,
#product-search #content .form-group {
  margin-bottom: 12px;
}

:is(#product-category, #product-search) .breadcrumb,
#product-search .breadcrumb,
#product-product .breadcrumb {
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  #product-product #content > .row {
    display: flex;
    flex-direction: column;
  }

  #product-product #content > .row > div:last-child {
    margin-top: 12px;
    padding: 14px;
  }

  #product-product #content > .row > div:last-child h1 {
    font-size: 22px;
    margin-top: 8px;
  }

  #product-product #content > .row > div:last-child h2 {
    font-size: 25px;
  }

  #product-product #content > .row > div:last-child #product {
    padding: 12px;
  }

  #product-product .thumbnails {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #product-product .thumbnails > li:first-child {
    display: block;
    width: 100%;
    white-space: normal;
    margin-bottom: 8px;
  }

  #product-product .thumbnails > li:first-child .thumbnail {
    min-height: 320px;
    padding: 10px;
  }

  #product-product .thumbnails > li:first-child .thumbnail img {
    max-height: 360px;
  }

  #product-product .thumbnails .image-additional {
    display: inline-block;
    width: 86px;
    margin-right: 8px;
    vertical-align: top;
    white-space: normal;
    scroll-snap-align: start;
  }

  #product-product .tab-content {
    padding: 14px 12px;
  }

  #product-product .thumbnails .image-additional .thumbnail {
    height: 84px;
  }

  #product-product .thumbnails.papillon-thumbs-scrollable::-webkit-scrollbar {
    height: 6px;
  }

  #product-product .thumbnails.papillon-thumbs-scrollable::-webkit-scrollbar-thumb {
    background: #d6d9e2;
    border-radius: 999px;
  }

  #product-product .papillon-thumb-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -2px 0 10px;
  }

  #product-product .papillon-thumb-nav[hidden] {
    display: none !important;
  }

  #product-product .papillon-thumb-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--papillon-border);
    border-radius: 50%;
    background: var(--papillon-surface);
    color: var(--papillon-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  #product-product .papillon-thumb-nav-btn:hover,
  #product-product .papillon-thumb-nav-btn:focus {
    border-color: rgba(138, 20, 91, 0.35);
    background: var(--papillon-primary-50);
    color: var(--papillon-primary-700);
  }

  #product-product #content > p a[href*='route=product/search&tag='] {
    padding: 6px 11px;
    font-size: 12px;
  }

  :is(#product-category, #product-search) #content .row > [class*='col-'],
  #product-search #content .row > [class*='col-'] {
    margin-bottom: 8px;
  }

  .mfp-arrow {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .mfp-close {
    width: 40px;
    height: 40px;
    line-height: 40px;
    right: 8px;
    top: 8px;
  }
}

@media (max-width: 767px) {
  @supports (display: contents) {
    #product-product #content > .row > div:first-child {
      display: contents;
    }

    #product-product .thumbnails {
      order: 1;
    }

    #product-product #content > .row > div:last-child {
      order: 2;
    }

    #product-product .nav-tabs {
      order: 3;
      margin-top: 2px;
    }

    #product-product .tab-content {
      order: 4;
    }
  }
}

/* PDP phase 3 overrides: inline gallery + desktop zoom + full-width tabs */
#product-product .thumbnails > li:first-child .thumbnail {
  min-height: clamp(520px, 62vh, 760px);
  padding: 18px;
}

#product-product .thumbnails > li:first-child .thumbnail img {
  width: 100%;
  max-width: 920px;
  max-height: min(72vh, 760px);
  margin-left: auto;
  margin-right: auto;
}

#product-product .papillon-pdp-main-link {
  position: relative;
  cursor: zoom-in;
}

#product-product .papillon-main-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#product-product .papillon-main-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.5);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.2s ease;
}

#product-product .papillon-main-arrow:hover,
#product-product .papillon-main-arrow:focus {
  border-color: rgba(138, 20, 91, 0.45);
  background: rgba(138, 20, 91, 0.9);
  color: #ffffff;
}

#product-product .papillon-pdp-main-link:hover .papillon-main-nav,
#product-product .papillon-pdp-main-link:focus-within .papillon-main-nav {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  #product-product .papillon-pdp-main-link.is-zooming {
    cursor: crosshair;
  }

  #product-product .papillon-pdp-zoom {
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 220%;
    transition: opacity 0.15s ease;
  }

  #product-product .papillon-pdp-main-link.is-zooming .papillon-pdp-zoom {
    opacity: 1;
  }
}

@supports (display: contents) {
  @media (min-width: 992px) {
    #product-product #content > .row {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      margin-left: -10px;
      margin-right: -10px;
    }

    #product-product #content > .row > div:first-child,
    #product-product #content > .row > div:last-child {
      padding-left: 10px;
      padding-right: 10px;
    }

    #product-product #content > .row > div:first-child {
      display: contents;
    }

    #product-product .thumbnails {
      order: 1;
      flex: 1 1 0;
      max-width: calc(100% - 360px);
      margin-bottom: 16px;
    }

    #product-product #content > .row > div:last-child {
      order: 2;
      flex: 0 0 360px;
      max-width: 360px;
      margin-left: auto;
    }

    #product-product .nav-tabs {
      order: 3;
      flex: 0 0 100%;
      max-width: 100%;
      margin-top: 8px;
    }

    #product-product .tab-content {
      order: 4;
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
}

/* PDP layout safety reset: keep Bootstrap columns predictable */
#product-product #content > .row {
  display: block !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
}

#product-product #content > .row > div:first-child {
  display: block !important;
}

#product-product #content > .row > [class*='col-'] {
  order: initial !important;
  flex: initial !important;
  max-width: none !important;
  min-height: 0 !important;
  align-self: auto !important;
  margin-left: 0 !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

@media (max-width: 767px) {
  #product-product #content > .row > [class*='col-'] {
    float: none !important;
    width: 100% !important;
  }
}

#product-product #content > p:last-of-type {
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.9;
}

@media (max-width: 767px) {
  #product-product .thumbnails > li:first-child .thumbnail {
    min-height: 340px;
    padding: 10px;
  }

  #product-product .thumbnails > li:first-child .thumbnail img {
    max-height: 360px;
  }

  #product-product .papillon-main-nav {
    display: none;
  }
}

/* PDP desktop polish: gallery/purchase breathing room + equal-height feel */
@supports (display: contents) {
  @media (min-width: 992px) {
    #product-product #content > .row {
      align-items: stretch;
      column-gap: 22px;
      row-gap: 14px;
      margin-left: 0;
      margin-right: 0;
    }

    #product-product #content > .row > div:first-child,
    #product-product #content > .row > div:last-child {
      padding-left: 0;
      padding-right: 0;
    }

    #product-product .thumbnails {
      flex: 1 1 0;
      max-width: calc(100% - 384px - 24px);
      min-height: 100%;
      margin-bottom: 0;
      grid-template-rows: minmax(520px, 1fr) auto;
      align-content: stretch;
      align-self: stretch;
    }

    #product-product #content > .row > div:last-child {
      flex: 0 0 396px;
      max-width: 396px;
      margin-left: 0;
      display: flex;
      flex-direction: column;
      align-self: stretch;
      min-height: 100%;
      padding: 20px;
      justify-content: flex-start;
    }

    #product-product #content > .row > div:last-child > .btn-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 14px;
      line-height: 1;
      width: max-content;
      max-width: 100%;
      position: relative;
      z-index: 1;
    }

    #product-product #content > .row > div:last-child > .btn-group > .btn + .btn {
      margin-left: 0;
    }

    #product-product #content > .row > div:last-child h1 {
      margin: 0 0 12px;
      line-height: 1.24;
      font-size: clamp(24px, 2vw, 30px);
      word-break: break-word;
      hyphens: auto;
      clear: both;
    }

    #product-product #content > .row > div:last-child > .list-unstyled {
      margin-bottom: 12px;
    }

    #product-product #content > .row > div:last-child > .list-unstyled:first-of-type li {
      padding: 4px 0;
      line-height: 1.45;
    }

    #product-product #content > .row > div:last-child > .list-unstyled + .list-unstyled {
      margin-top: 2px;
      margin-bottom: 14px;
      padding-top: 10px;
      border-top: 1px solid var(--papillon-border);
    }

    #product-product #content > .row > div:last-child > .list-unstyled + .list-unstyled h2 {
      margin: 4px 0 8px;
      line-height: 1.15;
      font-size: clamp(28px, 2.3vw, 34px);
      letter-spacing: -0.01em;
    }

    #product-product #content > .row > div:last-child #product {
      display: block;
      flex: 0 0 auto;
      margin-top: 10px;
    }

    #product-product #content > .row > div:last-child #product > .form-group:last-child {
      margin-top: 0;
      padding-top: 0;
    }
  }
}

.breadcrumb {
  background: var(--papillon-surface);
  border: 1px solid var(--papillon-border);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--papillon-shadow-sm);
}

.breadcrumb > li {
  text-shadow: none;
  padding: 0 10px;
}

.breadcrumb > li + li:before {
  content: '/';
  color: var(--papillon-muted);
  padding: 0 8px 0 0;
}

.breadcrumb > li:after {
  display: none;
}

/* =========================
   Footer Papillon
   ========================= */
footer.papillon-footer {
  margin-top: 56px;
  border-top: 0;
  color: #f5f5f5;
  background: linear-gradient(145deg, #2a0f2a 0%, #4f1238 52%, #6f0f49 100%);
  position: relative;
  overflow: hidden;
}

footer.papillon-footer::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

footer.papillon-footer a {
  color: rgba(245, 245, 245, 0.9);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

footer.papillon-footer a:hover,
footer.papillon-footer a:focus {
  color: var(--papillon-primary);
  opacity: 1;
}

.papillon-footer__prehead {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.papillon-footer__prehead-inner {
  min-height: 102px;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.papillon-footer__prehead-copy h4 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.papillon-footer__prehead-copy p {
  margin: 10px 0 0;
  color: rgba(245, 245, 245, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.papillon-footer__newsletter-form {
  min-width: 360px;
  max-width: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.papillon-footer__newsletter-form input[type='email'] {
  flex: 1 1 auto;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.papillon-footer__newsletter-form input[type='email']::placeholder {
  color: rgba(245, 245, 245, 0.7);
}

.papillon-footer__newsletter-form input[type='email']:focus {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.papillon-footer__newsletter-form button {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--papillon-primary) 0%, var(--papillon-primary-700) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.papillon-footer__newsletter-form button:hover,
.papillon-footer__newsletter-form button:focus {
  background: linear-gradient(180deg, var(--papillon-primary-700) 0%, #5e0e3f 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.papillon-footer__main {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 6, 16, 0.16) 0%, rgba(16, 6, 16, 0.34) 100%);
  padding: 38px 0 20px;
}

.papillon-footer__grid > [class*='col-'] {
  margin-bottom: 22px;
}

.papillon-footer__brand {
  max-width: 270px;
}

.papillon-footer__wordmark {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.papillon-footer__tagline {
  margin: 14px 0 20px;
  color: rgba(245, 245, 245, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.papillon-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.papillon-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.papillon-footer__social a:hover,
.papillon-footer__social a:focus {
  transform: translateY(-1px) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.44);
  color: #ffffff;
}

.papillon-footer__title {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.papillon-footer__links {
  margin: 0;
}

.papillon-footer__links li + li {
  margin-top: 9px;
}

.papillon-footer__links a {
  position: relative;
  display: inline-flex;
  color: rgba(245, 245, 245, 0.88);
  font-size: 14px;
  opacity: 0.85;
  padding-bottom: 1px;
}

.papillon-footer__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--papillon-primary);
  transition: width 0.3s ease;
}

.papillon-footer__links a:hover,
.papillon-footer__links a:focus {
  color: var(--papillon-primary);
  opacity: 1;
}

.papillon-footer__links a:hover::after,
.papillon-footer__links a:focus::after {
  width: 100%;
}

.papillon-footer__trust {
  position: relative;
  z-index: 1;
  background: rgba(11, 5, 11, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.papillon-footer__trust-grid {
  min-height: 62px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px 18px;
}

.papillon-footer__trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(245, 245, 245, 0.84);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.papillon-footer__trust-item i {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.papillon-footer__subfooter {
  position: relative;
  z-index: 1;
  background: rgba(8, 4, 9, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.papillon-footer__subfooter-inner {
  min-height: 66px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 18px;
}

.papillon-footer__copyright,
.papillon-footer__signature {
  margin: 0;
  color: rgba(245, 245, 245, 0.78);
  font-size: 12px;
}

.papillon-footer__copyright {
  justify-self: start;
}

.papillon-footer__signature {
  justify-self: center;
}

.papillon-footer__powered,
.papillon-footer__powered a {
  color: #ffffff;
  font-weight: 600;
}

.papillon-footer__powered br {
  display: none;
}

.papillon-footer__payments {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.papillon-footer__payments span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
  .papillon-footer__prehead-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .papillon-footer__newsletter-form {
    min-width: 0;
    max-width: none;
  }

  .papillon-footer__main {
    padding-top: 38px;
    padding-bottom: 16px;
  }

  .papillon-footer__brand {
    max-width: none;
  }

  .papillon-footer__trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .papillon-footer__subfooter-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .papillon-footer__copyright,
  .papillon-footer__signature,
  .papillon-footer__payments {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .papillon-footer__prehead-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  .papillon-footer__prehead-copy h4 {
    font-size: 18px;
  }

  .papillon-footer__prehead-copy p {
    font-size: 13px;
  }

  .papillon-footer__newsletter-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .papillon-footer__newsletter-form button {
    width: 100%;
  }

  .papillon-footer__main {
    padding-top: 36px;
    padding-bottom: 15px;
  }

  .papillon-footer__title {
    margin-bottom: 10px;
  }

  .papillon-footer__links li + li {
    margin-top: 8px;
  }

  .papillon-footer__social {
    justify-content: center;
  }

  .papillon-footer__trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.papillon-drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1040;
}

.papillon-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 90vw;
  height: 100vh;
  background: var(--papillon-surface);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1041;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .papillon-drawer {
    width: 400px;
    max-width: 400px;
  }
}

.papillon-drawer-overlay.papillon-drawer--open {
  opacity: 1;
  visibility: visible;
}

.papillon-drawer.papillon-drawer--open {
  transform: translateX(0);
}

body.papillon-drawer-lock {
  overflow: hidden;
}

.papillon-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--papillon-border);
}

.papillon-drawer__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.papillon-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--papillon-border);
  border-radius: 50%;
  background: var(--papillon-surface);
  color: var(--papillon-muted);
  transition: all 0.2s ease;
}

.papillon-drawer__close:hover,
.papillon-drawer__close:focus {
  border-color: var(--papillon-primary);
  color: var(--papillon-primary);
  background: var(--papillon-primary-50);
}

.papillon-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.papillon-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.papillon-drawer-menu > li + li {
  margin-top: 12px;
}

.papillon-drawer-menu .table {
  margin-bottom: 12px;
}

.papillon-drawer-menu li > div {
  min-width: 0;
  padding: 0;
}

.papillon-drawer-menu .text-right a strong {
  color: var(--papillon-primary);
}

.papillon-drawer-menu p.text-center {
  margin: 18px 0;
  color: var(--papillon-muted);
}

/* =========================
   Checkout Modern (scoped) - DO NOT TOUCH Mercado Pago
   Scope: #checkout-checkout
   ========================= */
#checkout-checkout #content {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

#checkout-checkout #content > h1 {
  margin: 0 0 18px;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.18;
}

#checkout-checkout #accordion {
  counter-reset: checkout-step;
  margin: 0 0 26px;
}

#checkout-checkout #accordion .panel {
  margin-bottom: 14px;
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
}

#checkout-checkout #accordion .panel-heading {
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  padding: 0;
}

#checkout-checkout #accordion .panel-title {
  counter-increment: checkout-step;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 72px;
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--papillon-text);
}

#checkout-checkout #accordion .panel-title::before {
  content: counter(checkout-step);
  position: absolute;
  top: 50%;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(138, 20, 91, 0.32);
  background: var(--papillon-primary-50);
  color: var(--papillon-primary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

#checkout-checkout #accordion .panel-title > a {
  width: 100%;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#checkout-checkout #accordion .panel-title > a .fa {
  margin-left: auto;
  color: var(--papillon-muted);
  font-size: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

#checkout-checkout #accordion .panel-title > a[aria-expanded='true'] {
  color: var(--papillon-primary);
}

#checkout-checkout #accordion .panel-title > a[aria-expanded='true'] .fa {
  color: var(--papillon-primary);
  transform: rotate(180deg);
}

#checkout-checkout #accordion .panel-title > a[aria-expanded='false'] {
  color: #334155;
}

#checkout-checkout #accordion .panel-collapse.in {
  border-top: 1px solid rgba(138, 20, 91, 0.2);
}

#checkout-checkout #accordion .panel-collapse.in .panel-body {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9fc 100%);
}

/* Optional visual states if classes are added by external UI scripts. */
#checkout-checkout #accordion .panel.is-active {
  border-color: rgba(138, 20, 91, 0.36);
  box-shadow: 0 10px 24px rgba(138, 20, 91, 0.12);
}

#checkout-checkout #accordion .panel.is-active .panel-heading {
  border-left: 4px solid var(--papillon-primary);
}

#checkout-checkout #accordion .panel.is-complete:not(.is-active) {
  border-color: rgba(138, 20, 91, 0.22);
  box-shadow: var(--papillon-shadow-sm);
}

#checkout-checkout #accordion .panel.is-complete .panel-title::before {
  content: "\f00c";
  font-family: FontAwesome;
  background: var(--papillon-primary);
  color: #ffffff;
  border-color: var(--papillon-primary);
}

#checkout-checkout #accordion .panel.is-complete:not(.is-active) .panel-title {
  color: #334155;
}

#checkout-checkout #accordion .panel.is-future .panel-title::before {
  background: #ffffff;
}

#checkout-checkout #accordion .panel.is-future {
  border-color: var(--papillon-border);
  box-shadow: var(--papillon-shadow-sm);
}

#checkout-checkout #accordion .panel.is-future .panel-title {
  color: var(--papillon-muted);
}

#checkout-checkout #accordion .panel-body {
  padding: 16px;
}

#checkout-checkout #accordion .panel.is-complete:not(.is-active) .panel-title {
  min-height: 54px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Form/UI rules on native steps only.
   Explicit exclusion: #collapse-checkout-confirm (payment provider area). */
#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body fieldset {
  margin: 0 0 16px;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body legend {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--papillon-border);
  color: var(--papillon-text);
  font-size: 17px;
  font-weight: 700;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .form-group {
  margin-bottom: 14px;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .control-label {
  color: var(--papillon-text);
  font-weight: 600;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .required .control-label::after {
  content: ' *';
  color: #dc2626;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .form-control {
  border: 1px solid var(--papillon-border);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
  box-shadow: none;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .form-control:focus {
  border-color: rgba(138, 20, 91, 0.48);
  box-shadow: 0 0 0 3px rgba(138, 20, 91, 0.16);
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .input-group .btn {
  border-radius: 0 12px 12px 0;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .radio,
#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .checkbox {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--papillon-border);
  border-radius: 12px;
  background: #ffffff;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .radio label,
#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .checkbox label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: var(--papillon-text);
  font-weight: 500;
  line-height: 1.4;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .radio input[type='radio'],
#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .checkbox input[type='checkbox'] {
  margin-top: 2px;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .buttons {
  margin-top: 18px;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .buttons .pull-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

/* Native checkout action buttons only (no payment provider buttons). */
#checkout-checkout #button-account,
#checkout-checkout #button-login,
#checkout-checkout #button-register,
#checkout-checkout #button-payment-address,
#checkout-checkout #button-shipping-address,
#checkout-checkout #button-guest,
#checkout-checkout #button-guest-shipping,
#checkout-checkout #button-shipping-method,
#checkout-checkout #button-payment-method,
#checkout-checkout #button-confirm {
  border-radius: 12px;
  border-color: var(--papillon-primary);
  background: var(--papillon-primary);
  color: #ffffff;
  min-height: 44px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 16px rgba(138, 20, 91, 0.24);
}

#checkout-checkout #button-account:hover,
#checkout-checkout #button-account:focus,
#checkout-checkout #button-login:hover,
#checkout-checkout #button-login:focus,
#checkout-checkout #button-register:hover,
#checkout-checkout #button-register:focus,
#checkout-checkout #button-payment-address:hover,
#checkout-checkout #button-payment-address:focus,
#checkout-checkout #button-shipping-address:hover,
#checkout-checkout #button-shipping-address:focus,
#checkout-checkout #button-guest:hover,
#checkout-checkout #button-guest:focus,
#checkout-checkout #button-guest-shipping:hover,
#checkout-checkout #button-guest-shipping:focus,
#checkout-checkout #button-shipping-method:hover,
#checkout-checkout #button-shipping-method:focus,
#checkout-checkout #button-payment-method:hover,
#checkout-checkout #button-payment-method:focus,
#checkout-checkout #button-confirm:hover,
#checkout-checkout #button-confirm:focus {
  border-color: var(--papillon-primary-700);
  background: var(--papillon-primary-700);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(111, 15, 73, 0.3);
}

#checkout-checkout #button-account[disabled],
#checkout-checkout #button-login[disabled],
#checkout-checkout #button-register[disabled],
#checkout-checkout #button-payment-address[disabled],
#checkout-checkout #button-shipping-address[disabled],
#checkout-checkout #button-guest[disabled],
#checkout-checkout #button-guest-shipping[disabled],
#checkout-checkout #button-shipping-method[disabled],
#checkout-checkout #button-payment-method[disabled],
#checkout-checkout #button-confirm[disabled] {
  opacity: 0.82;
  cursor: progress;
  transform: none;
}

#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .btn-default,
#checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .btn:not(.btn-primary) {
  border-radius: 12px;
}

/* Summary table from native confirm.twig only.
   Explicitly excludes payment provider wrappers/classes. */
#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive:not([id*='mercado']):not([class*='mercado']):not([id*='mp-']):not([class*='mp-']) {
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--papillon-shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table {
  margin-bottom: 0;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > thead > tr > td,
#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > thead > tr > th {
  background: #f3f4f8;
  color: var(--papillon-text);
  font-weight: 700;
  border-bottom: 1px solid var(--papillon-border);
  padding: 12px 14px;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tbody > tr > td,
#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tfoot > tr > td {
  border-color: var(--papillon-border);
  padding: 12px 14px;
  vertical-align: middle;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tbody > tr:nth-child(even) > td {
  background: #fafbff;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tfoot > tr > td {
  background: #fcfcff;
  font-weight: 600;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tfoot > tr:last-child > td {
  color: var(--papillon-primary-700);
  font-size: 16px;
  font-weight: 700;
}

#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table td.text-right,
#checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table th.text-right {
  white-space: nowrap;
}

@media (max-width: 991px) {
  #checkout-checkout #accordion .panel-title {
    padding-right: 14px;
    padding-left: 64px;
  }

  #checkout-checkout #accordion .panel-title::before {
    left: 14px;
  }

}

@media (max-width: 767px) {
  #checkout-checkout #content > h1 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  #checkout-checkout #accordion .panel {
    border-radius: 14px;
    margin-bottom: 12px;
  }

  #checkout-checkout #accordion .panel-title {
    min-height: 58px;
    padding: 12px 12px 12px 56px;
    font-size: 14px;
  }

  #checkout-checkout #accordion .panel-title::before {
    left: 12px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  #checkout-checkout #accordion .panel-body {
    padding: 14px;
  }

  #checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .form-horizontal .control-label {
    text-align: left;
    margin-bottom: 6px;
    padding-top: 0;
  }

  #checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .form-horizontal .form-group > [class*='col-sm-'] {
    float: none;
    width: 100%;
  }

  #checkout-checkout #accordion .panel-collapse[id^='collapse-']:not(#collapse-checkout-confirm) .panel-body .buttons .pull-right {
    float: none !important;
    width: 100%;
    text-align: left;
  }

  #checkout-checkout #button-account,
  #checkout-checkout #button-login,
  #checkout-checkout #button-register,
  #checkout-checkout #button-payment-address,
  #checkout-checkout #button-shipping-address,
  #checkout-checkout #button-guest,
  #checkout-checkout #button-guest-shipping,
  #checkout-checkout #button-shipping-method,
  #checkout-checkout #button-payment-method,
  #checkout-checkout #button-confirm {
    width: 100%;
    margin-top: 10px;
  }

  #checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > thead > tr > td,
  #checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > thead > tr > th,
  #checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tbody > tr > td,
  #checkout-checkout #collapse-checkout-confirm .panel-body > .table-responsive > .table > tfoot > tr > td {
    padding: 10px 10px;
    font-size: 12px;
  }
}

/* =========================
   PDP Swiper Gallery (scoped)
   ========================= */
#product-product .papillon-pdp-gallery {
  position: relative;
  margin: 0 0 12px;
  padding: 12px !important;
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfbff 0%, #f6f7fb 100%);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 380px;
}

#product-product .papillon-pdp-swiper,
#product-product .papillon-pdp-swiper .swiper-wrapper,
#product-product .papillon-pdp-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

#product-product .papillon-pdp-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-product .papillon-pdp-swiper__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

#product-product .papillon-pdp-swiper__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#product-product .papillon-pdp-gallery .swiper-pagination {
  bottom: 10px !important;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

#product-product .papillon-pdp-gallery .swiper-pagination-bullet,
#product-product .papillon-pdp-gallery .swiper-pagination-switch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.25);
  opacity: 1;
  margin: 0;
}

#product-product .papillon-pdp-gallery .swiper-pagination-bullet-active,
#product-product .papillon-pdp-gallery .swiper-active-switch {
  background: var(--papillon-primary);
}

#product-product .papillon-pdp-gallery .swiper-pager {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#product-product .papillon-pdp-gallery .swiper-button-next,
#product-product .papillon-pdp-gallery .swiper-button-prev {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.9);
  background-image: none !important;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#product-product .papillon-pdp-gallery .swiper-button-prev {
  left: 8px;
}

#product-product .papillon-pdp-gallery .swiper-button-next {
  right: 8px;
}

#product-product .papillon-pdp-gallery .swiper-button-next::before,
#product-product .papillon-pdp-gallery .swiper-button-prev::before {
  content: none !important;
}

#product-product .papillon-pdp-gallery .swiper-button-next::after,
#product-product .papillon-pdp-gallery .swiper-button-prev::after {
  position: static;
  display: block;
  font-family: FontAwesome;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}

#product-product .papillon-pdp-gallery .swiper-button-prev::after {
  content: "\f104";
}

#product-product .papillon-pdp-gallery .swiper-button-next::after {
  content: "\f105";
}

#product-product .papillon-pdp-gallery .swiper-button-next:hover,
#product-product .papillon-pdp-gallery .swiper-button-next:focus,
#product-product .papillon-pdp-gallery .swiper-button-prev:hover,
#product-product .papillon-pdp-gallery .swiper-button-prev:focus {
  border-color: rgba(138, 20, 91, 0.34);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  transform: scale(1.03);
}

#product-product .papillon-pdp-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 10px 0 18px !important;
  list-style: none;
  padding: 0 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}

#product-product .papillon-pdp-thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#product-product .papillon-pdp-thumbs > li,
#product-product .papillon-pdp-thumbs .image-additional {
  margin: 0;
  float: none;
  flex: 0 0 92px;
  width: 92px;
  margin-left: 0;
  max-width: none;
  scroll-snap-align: center;
  overflow: visible;
}

#product-product .papillon-pdp-thumbs .thumbnail {
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  padding: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

#product-product .papillon-pdp-thumbs .thumbnail:hover,
#product-product .papillon-pdp-thumbs .thumbnail:focus {
  border-color: rgba(138, 20, 91, 0.35);
  box-shadow: var(--papillon-shadow-md);
}

#product-product .papillon-pdp-thumbs .thumbnail img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
  transform-origin: center center;
}

#product-product .papillon-pdp-thumbs .thumbnail.is-active,
#product-product .papillon-pdp-thumbs .thumbnail[aria-current='true'] {
  border-color: rgba(138, 20, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 20, 91, 0.14);
}

#product-product .papillon-pdp-thumbs .thumbnail.is-active img,
#product-product .papillon-pdp-thumbs .thumbnail[aria-current='true'] img {
  transform: scale(1.08);
}

@media (min-width: 768px) {
  #product-product .papillon-pdp-gallery {
    aspect-ratio: 4 / 3;
    min-height: 520px;
  }
}

@media (max-width: 767px) {
  #product-product .papillon-pdp-gallery {
    aspect-ratio: 1 / 1.1;
    margin-bottom: 10px;
    min-height: 380px;
    padding: 10px !important;
  }

  #product-product .papillon-pdp-gallery .swiper-button-next,
  #product-product .papillon-pdp-gallery .swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  #product-product .papillon-pdp-gallery .swiper-button-next::after,
  #product-product .papillon-pdp-gallery .swiper-button-prev::after {
    font-size: 12px;
  }

  #product-product .papillon-pdp-thumbs {
    margin-bottom: 12px;
    padding: 0 2px 4px;
    gap: 8px;
  }

  #product-product .papillon-pdp-thumbs > li,
  #product-product .papillon-pdp-thumbs .image-additional {
    flex: 0 0 86px;
    width: 86px;
    scroll-snap-align: start;
  }

  #product-product .papillon-pdp-thumbs .thumbnail {
    height: 84px;
  }
}

@supports (display: contents) {
  @media (min-width: 992px) {
    #product-product .papillon-pdp-gallery {
      order: 1;
      flex: 1 1 0;
      width: 100%;
      max-width: 100%;
      margin-bottom: 12px;
      align-self: stretch;
    }

    #product-product .papillon-pdp-thumbs {
      order: 2;
      flex: 1 1 0;
      width: 100%;
      max-width: 100%;
      margin-bottom: 0;
      align-self: start;
    }

    #product-product #content > .row > div:last-child {
      order: 3;
    }

    #product-product .nav-tabs {
      order: 4;
      flex: 0 0 100%;
      max-width: 100%;
      margin-top: 8px;
    }

    #product-product .tab-content {
      order: 5;
      flex: 0 0 100%;
      max-width: 100%;
    }
  }

  @media (max-width: 767px) {
    #product-product .papillon-pdp-gallery {
      order: 1;
    }

    #product-product .papillon-pdp-thumbs {
      order: 2;
    }

    #product-product #content > .row > div:last-child {
      order: 3;
    }

    #product-product .nav-tabs {
      order: 4;
      margin-top: 2px;
    }

    #product-product .tab-content {
      order: 5;
    }
  }
}

/* Final guard: preserve native Bootstrap flow on PDP */
#product-product #content > .row {
  display: block !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
}

#product-product #content > .row > div:first-child {
  display: block !important;
}

#product-product #content > .row > [class*='col-'] {
  order: 0 !important;
  flex: none !important;
  max-width: none !important;
  min-height: 0 !important;
  align-self: auto !important;
  margin-left: 0 !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

@media (max-width: 767px) {
  #product-product #content > .row > [class*='col-'] {
    float: none !important;
    width: 100% !important;
  }
}

/* PDP Swiper - MOBILE/TABLET override final (guarantees priority) */
@media (max-width: 991px) {
  #product-product .papillon-pdp-gallery {
    /* make the frame area effectively larger on mobile/tablet */
    padding: 10px !important;
    aspect-ratio: 1 / 1.08 !important;
    min-height: 420px !important;
  }

  #product-product .papillon-pdp-gallery .papillon-pdp-swiper,
  #product-product .papillon-pdp-gallery .swiper-container,
  #product-product .papillon-pdp-gallery .swiper-wrapper,
  #product-product .papillon-pdp-gallery .swiper-slide {
    height: 100% !important;
  }

  #product-product .papillon-pdp-gallery .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  /* cancel inherited max-width/max-height that can shrink the image */
  #product-product .papillon-pdp-gallery img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  /* reduce potential gap before thumbs */
  #product-product .papillon-pdp-thumbs {
    margin-top: 10px !important;
  }
}

/* =========================
   PDP Premium Pack (scoped)
   ========================= */
#product-product .papillon-pdp-gallery {
  aspect-ratio: 4 / 3;
  min-height: clamp(380px, 45vh, 620px);
  padding: clamp(8px, 1.1vw, 12px) !important;
}

#product-product .papillon-pdp-gallery .papillon-pdp-swiper,
#product-product .papillon-pdp-gallery .swiper-container,
#product-product .papillon-pdp-gallery .swiper-wrapper,
#product-product .papillon-pdp-gallery .swiper-slide {
  height: 100%;
}

#product-product .papillon-pdp-gallery .papillon-pdp-swiper {
  touch-action: pan-y;
}

#product-product .papillon-pdp-gallery .swiper-pagination {
  bottom: 10px !important;
}

#product-product .papillon-pdp-gallery .swiper-button-next,
#product-product .papillon-pdp-gallery .swiper-button-prev {
  width: 32px;
  height: 32px;
  margin-top: -16px;
}

#product-product .papillon-pdp-gallery .swiper-button-next::after,
#product-product .papillon-pdp-gallery .swiper-button-prev::after {
  font-size: 14px;
}

/* PDP Premium Pack: thumbs as one horizontal premium rail */
#product-product .papillon-pdp-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: clamp(10px, 1.2vw, 12px);
  overflow-x: auto;
  overflow-y: hidden;
  margin: 10px 0 14px !important;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
}

#product-product .papillon-pdp-thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#product-product .papillon-pdp-thumbs > li,
#product-product .papillon-pdp-thumbs .image-additional {
  flex: 0 0 clamp(64px, 14vw, 88px);
  width: clamp(64px, 14vw, 88px);
  max-width: none !important;
  scroll-snap-align: center;
  overflow: visible;
  margin: 0;
}

#product-product .papillon-pdp-thumbs .thumbnail {
  width: 100%;
  height: clamp(64px, 14vw, 88px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#product-product .papillon-pdp-thumbs .thumbnail img {
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: center center;
}

#product-product .papillon-pdp-thumbs .thumbnail.is-active img,
#product-product .papillon-pdp-thumbs .thumbnail[aria-current='true'] img {
  transform: scale(1.08);
}

#product-product .papillon-pdp-thumbs .thumbnail:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.44);
  outline-offset: 2px;
}

/* Buy box + actions polish */
#product-product #content > .row > div:last-child {
  padding: clamp(14px, 2vw, 20px);
}

#product-product #content > .row > div:last-child > .btn-group {
  gap: 8px;
}

#product-product #content > .row > div:last-child > .btn-group .btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1daea;
  background: #fcfbfe;
  color: #283549;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#product-product #content > .row > div:last-child > .btn-group .btn:hover,
#product-product #content > .row > div:last-child > .btn-group .btn:focus {
  border-color: rgba(138, 20, 91, 0.44);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  box-shadow: 0 7px 16px rgba(138, 20, 91, 0.14);
}

#product-product #content > .row > div:last-child > .btn-group .btn:focus-visible,
#product-product #content > .row > div:last-child #button-cart:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.44);
  outline-offset: 2px;
}

#product-product #content > .row > div:last-child #button-cart {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#product-product #content > .row > div:last-child #button-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(138, 20, 91, 0.2);
}

/* Trust row under CTA */
#product-product .papillon-pdp-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--papillon-border);
}

#product-product .papillon-pdp-trust span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--papillon-muted);
  text-align: center;
}

#product-product .papillon-pdp-trust i {
  color: var(--papillon-primary-700);
}

/* Tabs with premium underline treatment */
#product-product .nav-tabs {
  gap: 0;
  border-bottom: 1px solid var(--papillon-border);
  margin-bottom: 12px;
}

#product-product .nav-tabs > li > a {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #4b5563;
  font-weight: 600;
  padding: 10px 12px;
  position: relative;
}

#product-product .nav-tabs > li > a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--papillon-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

#product-product .nav-tabs > li > a:hover,
#product-product .nav-tabs > li > a:focus {
  color: var(--papillon-primary-700);
}

#product-product .nav-tabs > li.active > a,
#product-product .nav-tabs > li.active > a:hover,
#product-product .nav-tabs > li.active > a:focus {
  border: none;
  background: transparent;
  color: var(--papillon-primary-700);
}

#product-product .nav-tabs > li.active > a::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  #product-product .papillon-pdp-gallery .papillon-pdp-swiper .swiper-wrapper {
    cursor: grab;
  }

  #product-product .papillon-pdp-gallery.is-dragging .papillon-pdp-swiper .swiper-wrapper {
    cursor: grabbing;
  }
}

@media (max-width: 991px) {
  #product-product .papillon-pdp-gallery {
    aspect-ratio: 1 / 1.15 !important;
    min-height: clamp(300px, 56vh, 460px) !important;
  }

  #product-product .papillon-pdp-thumbs > li,
  #product-product .papillon-pdp-thumbs .image-additional {
    flex: 0 0 clamp(60px, 20vw, 80px);
    width: clamp(60px, 20vw, 80px);
  }

  #product-product .papillon-pdp-thumbs .thumbnail {
    height: clamp(60px, 20vw, 80px);
  }

  #product-product .papillon-pdp-gallery .swiper-button-next,
  #product-product .papillon-pdp-gallery .swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  #product-product .papillon-pdp-gallery .swiper-button-next::after,
  #product-product .papillon-pdp-gallery .swiper-button-prev::after {
    font-size: 12px;
  }

  #product-product .papillon-pdp-trust {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* PDP Premium Pack v2: sticky CTA + mobile accordion */
#product-product .tab-content .tab-pane {
  display: none;
}

#product-product .tab-content .tab-pane.active {
  display: block;
}

#product-product .papillon-pdp-accordion-toggle {
  display: none;
}

#product-product .papillon-pdp-accordion-content {
  overflow: visible;
}

#product-product .papillon-pdp-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  #product-product {
    padding-bottom: 94px;
  }

  #product-product .papillon-pdp-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  #product-product .papillon-pdp-sticky-cta.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  #product-product .papillon-pdp-sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #product-product .papillon-pdp-sticky-price {
    flex: 0 0 auto;
    min-width: 110px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--papillon-primary-700);
  }

  #product-product .papillon-pdp-sticky-buy {
    flex: 1 1 auto;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--papillon-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  #product-product .papillon-pdp-sticky-buy:focus-visible {
    outline: 2px solid rgba(138, 20, 91, 0.46);
    outline-offset: 2px;
  }

  #product-product .papillon-pdp-sticky-buy.is-loading,
  #product-product .papillon-pdp-sticky-buy:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }

  #product-product .nav-tabs {
    display: none;
  }

  #product-product .tab-content {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  #product-product .papillon-pdp-accordion-item {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  }

  #product-product .papillon-pdp-accordion-item:last-child {
    border-bottom: 0;
  }

  #product-product .papillon-pdp-accordion-toggle {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    padding: 16px;
    position: relative;
  }

  #product-product .papillon-pdp-accordion-toggle::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--papillon-primary-700);
    font-size: 18px;
    line-height: 1;
  }

  #product-product .papillon-pdp-accordion-item.is-open .papillon-pdp-accordion-toggle::after {
    content: '\2212';
  }

  #product-product .papillon-pdp-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease;
  }

  #product-product .papillon-pdp-accordion-item.is-open .papillon-pdp-accordion-content {
    max-height: 1400px;
    padding-bottom: 16px;
  }

  #product-product .papillon-pdp-accordion-content .tab-pane {
    display: block;
  }
}

/* =========================
   Category Premium Pack (scoped)
   ========================= */
:is(#product-category, #product-search) .papillon-category-toolbar {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
}

:is(#product-category, #product-search) .papillon-category-toolbar .form-group {
  margin-bottom: 0;
}

:is(#product-category, #product-search) .papillon-category-toolbar .btn-group-sm > .btn {
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border-color: #d1daea;
  background: #fcfbfe;
  color: #334155;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:is(#product-category, #product-search) .papillon-category-toolbar .btn-group-sm > .btn:hover,
:is(#product-category, #product-search) .papillon-category-toolbar .btn-group-sm > .btn:focus,
:is(#product-category, #product-search) .papillon-category-toolbar .btn-group-sm > .btn.active {
  border-color: rgba(138, 20, 91, 0.45);
  color: var(--papillon-primary-700);
  background: #fff4fb;
  box-shadow: 0 6px 12px rgba(138, 20, 91, 0.12);
}

:is(#product-category, #product-search) .papillon-category-toolbar .input-group.input-group-sm {
  border: 1px solid var(--papillon-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

:is(#product-category, #product-search) .papillon-category-toolbar .input-group.input-group-sm .input-group-addon {
  border: 0;
  background: #f8f9fc;
  color: #4b5563;
  font-weight: 600;
}

:is(#product-category, #product-search) .papillon-category-toolbar .input-group.input-group-sm .form-control {
  border: 0;
  min-height: 34px;
  box-shadow: none;
}

:is(#product-category, #product-search) .papillon-category-toolbar #compare-total {
  padding-left: 4px;
  font-weight: 600;
}

:is(#product-category, #product-search) .papillon-category-products .product-layout {
  margin-bottom: 16px;
}

:is(#product-category, #product-search) .papillon-cat-card {
  position: relative;
  isolation: isolate;
  height: 100%;
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

:is(#product-category, #product-search) .papillon-cat-card::after {
  z-index: 0;
}

:is(#product-category, #product-search) .papillon-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 20, 91, 0.26);
  box-shadow: var(--papillon-shadow-md);
}

:is(#product-category, #product-search) .papillon-cat-card__image {
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfbff 0%, #f7f8fc 100%);
}

:is(#product-category, #product-search) .papillon-cat-card__gallery {
  position: relative;
  isolation: isolate;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  overflow: hidden;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-container,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-wrapper,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-slide {
  width: 100%;
  height: 100%;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-container {
  position: relative;
  z-index: 1;
  direction: ltr !important;
  touch-action: pan-y;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-slide {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#product-category, #product-search) .papillon-cat-card__image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

:is(#product-category, #product-search) .papillon-cat-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 7px;
  width: auto;
  display: inline-flex !important;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 12;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pagination-bullet,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pagination-switch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.26);
  opacity: 1;
  margin: 0;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pagination-bullet-active,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-active-switch {
  background: var(--papillon-primary);
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pagination.swiper-pagination-hidden {
  opacity: 1 !important;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-pager {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 13;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  background-image: none !important;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev {
  left: 8px;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next {
  right: 8px;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next::before,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev::before {
  content: none !important;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next::after,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev::after {
  position: static;
  font-family: FontAwesome;
  font-size: 12px;
  line-height: 1;
  transform: none;
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev::after {
  content: "\f104";
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next::after {
  content: "\f105";
}

:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next:hover,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next:focus,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev:hover,
:is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev:focus {
  border-color: rgba(138, 20, 91, 0.38);
  background: #fff4fb;
  color: var(--papillon-primary-700);
  transform: scale(1.03);
}

:is(#product-category, #product-search) .papillon-cat-card > div:last-child {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

:is(#product-category, #product-search) .papillon-cat-card .caption {
  padding: 14px 14px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:is(#product-category, #product-search) .papillon-cat-card .caption h4 {
  margin: 0;
  min-height: 44px;
}

:is(#product-category, #product-search) .papillon-cat-card .caption h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

:is(#product-category, #product-search) .papillon-cat-card .caption > p {
  margin-bottom: 0;
}

:is(#product-category, #product-search) .papillon-cat-card .caption > p:not(.price) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  color: var(--papillon-muted);
}

:is(#product-category, #product-search) .papillon-cat-card .caption .price {
  margin-top: auto;
}

:is(#product-category, #product-search) .papillon-cat-card .button-group {
  margin-top: auto;
}

:is(#product-category, #product-search) .product-list .papillon-cat-card {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
}

:is(#product-category, #product-search) .product-list .papillon-cat-card__gallery {
  height: 100%;
  min-height: 240px;
}

:is(#product-category, #product-search) .product-grid .papillon-cat-card {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  :is(#product-category, #product-search) #column-left {
    padding-right: 18px;
  }

  :is(#product-category, #product-search) #column-left .list-group {
    position: sticky;
    top: 92px;
    margin-bottom: 18px;
    border: 1px solid var(--papillon-border);
    border-radius: 14px;
    background: var(--papillon-surface);
    box-shadow: var(--papillon-shadow-sm);
    overflow: hidden;
  }

  :is(#product-category, #product-search) #column-left .list-group-item {
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    padding: 11px 14px;
    color: #334155;
    font-weight: 500;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  :is(#product-category, #product-search) #column-left .list-group-item:last-child {
    border-bottom: 0;
  }

  :is(#product-category, #product-search) #column-left .list-group-item:hover,
  :is(#product-category, #product-search) #column-left .list-group-item:focus {
    color: var(--papillon-primary-700);
    background: #fff4fb;
    padding-left: 16px;
  }

  :is(#product-category, #product-search) #column-left .list-group-item.active {
    color: var(--papillon-primary-700);
    background: linear-gradient(90deg, rgba(138, 20, 91, 0.14), rgba(138, 20, 91, 0.04));
    box-shadow: inset 3px 0 0 rgba(138, 20, 91, 0.8);
    font-weight: 600;
  }
}

@media (max-width: 991px) {
  :is(#product-category, #product-search) #column-left {
    display: none !important;
  }

  :is(#product-category, #product-search) #content {
    float: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  :is(#product-category, #product-search) .papillon-category-toolbar {
    padding: 10px;
  }

  :is(#product-category, #product-search) .papillon-category-toolbar > [class*='col-'] {
    margin-bottom: 8px;
  }

  :is(#product-category, #product-search) .product-list .papillon-cat-card,
  :is(#product-category, #product-search) .product-grid .papillon-cat-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  :is(#product-category, #product-search) .papillon-cat-card__gallery {
    min-height: 220px;
    aspect-ratio: 1 / 1.15;
  }
}

@media (max-width: 767px) {
  :is(#product-category, #product-search) .papillon-category-toolbar {
    margin-bottom: 12px;
  }

  :is(#product-category, #product-search) .papillon-category-toolbar .btn-group.btn-group-sm {
    width: 100%;
    display: flex;
  }

  :is(#product-category, #product-search) .papillon-category-toolbar .btn-group.btn-group-sm .btn {
    flex: 1 1 0;
  }

  :is(#product-category, #product-search) .papillon-cat-card .caption {
    padding: 12px;
  }

  :is(#product-category, #product-search) .papillon-cat-card .caption h4 {
    min-height: 40px;
  }

  :is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-next,
  :is(#product-category, #product-search) .papillon-cat-card__gallery .swiper-button-prev {
    width: 28px;
    height: 28px;
    margin-top: -14px;
  }
}

/* =========================
   ACCOUNT Premium Pack (scoped)
   ========================= */
#account-wishlist .breadcrumb,
#account-order .breadcrumb,
#account-download .breadcrumb {
  margin-bottom: 14px;
}

#account-wishlist #content,
#account-order #content,
#account-download #content {
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  padding: 18px 20px 20px;
}

#account-wishlist #content > h1,
#account-wishlist #content > h2,
#account-order #content > h1,
#account-order #content > h2,
#account-download #content > h1,
#account-download #content > h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--papillon-text);
}

#account-wishlist #content .alert,
#account-order #content .alert,
#account-download #content .alert {
  border-radius: 12px;
}

#account-wishlist #column-right,
#account-order #column-right,
#account-download #column-right {
  padding-left: 18px;
}

#account-wishlist #column-right .list-group,
#account-order #column-right .list-group,
#account-download #column-right .list-group {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
  border: 1px solid var(--papillon-border);
  border-radius: 16px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: hidden;
}

#account-wishlist #column-right .list-group .list-group-item,
#account-order #column-right .list-group .list-group-item,
#account-download #column-right .list-group .list-group-item {
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  min-height: 44px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  color: #334155;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease, box-shadow 0.2s ease;
}

#account-wishlist #column-right .list-group .list-group-item:last-child,
#account-order #column-right .list-group .list-group-item:last-child,
#account-download #column-right .list-group .list-group-item:last-child {
  border-bottom: 0;
}

#account-wishlist #column-right .list-group .list-group-item:hover,
#account-wishlist #column-right .list-group .list-group-item:focus,
#account-order #column-right .list-group .list-group-item:hover,
#account-order #column-right .list-group .list-group-item:focus,
#account-download #column-right .list-group .list-group-item:hover,
#account-download #column-right .list-group .list-group-item:focus {
  color: var(--papillon-primary-700);
  background: #fff4fb;
  padding-left: 16px;
}

#account-wishlist #column-right .list-group a[href*='route=account/wishlist'],
#account-order #column-right .list-group a[href*='route=account/order'],
#account-download #column-right .list-group a[href*='route=account/download'] {
  color: var(--papillon-primary-700);
  background: linear-gradient(90deg, rgba(138, 20, 91, 0.14), rgba(138, 20, 91, 0.04));
  box-shadow: inset 3px 0 0 rgba(138, 20, 91, 0.8);
  font-weight: 600;
}

#account-wishlist .table-responsive,
#account-order .table-responsive,
#account-download .table-responsive {
  border: 1px solid var(--papillon-border);
  border-radius: 14px;
  background: var(--papillon-surface);
  box-shadow: var(--papillon-shadow-sm);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#account-wishlist .table-responsive::-webkit-scrollbar,
#account-order .table-responsive::-webkit-scrollbar,
#account-download .table-responsive::-webkit-scrollbar {
  height: 8px;
}

#account-wishlist .table-responsive .table,
#account-order .table-responsive .table,
#account-download .table-responsive .table {
  margin-bottom: 0;
  border: 0;
}

#account-wishlist .table-responsive .table > thead > tr > td,
#account-wishlist .table-responsive .table > thead > tr > th,
#account-order .table-responsive .table > thead > tr > td,
#account-order .table-responsive .table > thead > tr > th,
#account-download .table-responsive .table > thead > tr > td,
#account-download .table-responsive .table > thead > tr > th {
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  border-top: 0;
  background: #f8f9fc;
  color: #334155;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  vertical-align: middle;
}

#account-wishlist .table-responsive .table > tbody > tr > td,
#account-order .table-responsive .table > tbody > tr > td,
#account-download .table-responsive .table > tbody > tr > td {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding: 13px 14px;
  vertical-align: middle;
}

#account-wishlist .table-responsive .table > tbody > tr:nth-child(even) > td,
#account-order .table-responsive .table > tbody > tr:nth-child(even) > td,
#account-download .table-responsive .table > tbody > tr:nth-child(even) > td {
  background: rgba(248, 250, 252, 0.75);
}

#account-wishlist .table-responsive img {
  max-width: 72px;
  max-height: 72px;
  border-radius: 10px;
}

#account-wishlist .table-responsive .btn,
#account-order .table-responsive .btn,
#account-download .table-responsive .btn {
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#account-wishlist .table-responsive .btn:hover,
#account-wishlist .table-responsive .btn:focus,
#account-order .table-responsive .btn:hover,
#account-order .table-responsive .btn:focus,
#account-download .table-responsive .btn:hover,
#account-download .table-responsive .btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

#account-wishlist .buttons .btn-primary,
#account-order .buttons .btn-primary,
#account-download .buttons .btn-primary {
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#account-wishlist a:focus-visible,
#account-order a:focus-visible,
#account-download a:focus-visible,
#account-wishlist button:focus-visible,
#account-order button:focus-visible,
#account-download button:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.35);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  #account-wishlist #content,
  #account-order #content,
  #account-download #content {
    padding: 16px;
  }

  #account-wishlist #column-right,
  #account-order #column-right,
  #account-download #column-right {
    padding-left: 15px;
    margin-top: 14px;
  }

  #account-wishlist #column-right .list-group,
  #account-order #column-right .list-group,
  #account-download #column-right .list-group {
    position: static;
  }
}

@media (max-width: 767px) {
  #account-wishlist #content,
  #account-order #content,
  #account-download #content {
    border-radius: 14px;
    padding: 14px;
  }

  #account-wishlist .table-responsive .table > thead > tr > td,
  #account-wishlist .table-responsive .table > thead > tr > th,
  #account-order .table-responsive .table > thead > tr > td,
  #account-order .table-responsive .table > thead > tr > th,
  #account-download .table-responsive .table > thead > tr > td,
  #account-download .table-responsive .table > thead > tr > th,
  #account-wishlist .table-responsive .table > tbody > tr > td,
  #account-order .table-responsive .table > tbody > tr > td,
  #account-download .table-responsive .table > tbody > tr > td {
    white-space: nowrap;
  }
}

/* Checkout: digital download refund acknowledgment */
#checkout-checkout #collapse-payment-method .papillon-digital-refund-ack {
  margin: 12px 0 6px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 20, 91, 0.2);
  border-radius: 12px;
  background: rgba(138, 20, 91, 0.04);
}

#checkout-checkout #collapse-payment-method .papillon-digital-refund-ack label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

#checkout-checkout #collapse-payment-method .papillon-digital-refund-ack input[type='checkbox'] {
  margin-top: 2px;
  flex: 0 0 auto;
}

#checkout-checkout #collapse-payment-method .papillon-digital-refund-ack input[type='checkbox']:focus-visible {
  outline: 2px solid rgba(138, 20, 91, 0.35);
  outline-offset: 2px;
}

