/**
 * Aptotema WooCommerce Styles
 * Editorial Luxury Product Cards, Filter Bar, Single Product Stack & Checkout (Anine Bing 1:1)
 */

/* ==========================================================================
   0. CATALOG CONTAINER (Full Width Edge-to-Edge Editorial Grid)
   ========================================================================== */
.apt-catalog-container,
.apt-luxury-shop-wrapper,
.woocommerce.archive .apt-content-area,
.woocommerce.archive #primary {
  width: 100%;
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .apt-catalog-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .apt-catalog-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ==========================================================================
   1. PRODUCT CARD & GRID (4:5 Ratio, 4-Cols Full Width & 10px Minimal Gap)
   ========================================================================== */
.apt-products-grid,
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products,
.wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 60px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.apt-products-grid::before,
.apt-products-grid::after,
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 1440px) {
  .apt-products-grid,
  ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    gap: 16px 10px !important;
  }
}

.apt-products-grid.grid-cols-2,
ul.products.columns-2,
.woocommerce ul.products.columns-2,
.woocommerce-page ul.products.columns-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px 10px !important;
}

.apt-products-grid.grid-cols-3,
ul.products.columns-3,
.woocommerce ul.products.columns-3,
.woocommerce-page ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px 10px !important;
}

@media (max-width: 1024px) {
  .apt-products-grid:not(.grid-cols-2),
  ul.products:not(.columns-2),
  .woocommerce ul.products:not(.columns-2),
  .woocommerce-page ul.products:not(.columns-2) {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 10px !important;
  }
}

@media (max-width: 768px) {
  .apt-products-grid,
  .apt-products-grid.grid-cols-mobile-2,
  .apt-products-grid:not(.grid-cols-mobile-1),
  ul.products,
  ul.products.grid-cols-mobile-2,
  ul.products:not(.grid-cols-mobile-1),
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .wc-block-grid__products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 10px !important;
    margin-bottom: 40px !important;
  }

  .apt-products-grid.grid-cols-mobile-1,
  ul.products.grid-cols-mobile-1,
  .woocommerce ul.products.grid-cols-mobile-1,
  .woocommerce-page ul.products.grid-cols-mobile-1 {
    grid-template-columns: 1fr !important;
    gap: 28px 0 !important;
    margin-bottom: 50px !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.apt-product-card,
li.product,
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
  list-style: none !important;
  background: transparent !important;
}

.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
ul.products li.product.first,
ul.products li.product.last {
  clear: none !important;
  margin-right: 0 !important;
}

.apt-product-card__media-wrap,
li.product .apt-product-card__media-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--apt-color-bg-secondary);
  overflow: hidden;
  margin-bottom: 8px;
  width: 100%;
}

.apt-product-card__image-link,
li.product .apt-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.apt-product-card__image,
li.product img:not(.apt-site-logo-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s var(--apt-ease-editorial);
}

.apt-product-card__image--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.apt-product-card:hover .apt-product-card__image--secondary,
li.product:hover .apt-product-card__image--secondary {
  opacity: 1;
}

.apt-product-card:hover .apt-product-card__image--primary:not(:only-child),
li.product:hover .apt-product-card__image--primary:not(:only-child) {
  opacity: 0;
}

/* Badges positioned on card (Top Left) */
.apt-product-card__badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apt-product-card__badge-wrap .apt-badge {
  font-family: var(--apt-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Floating Wishlist Button on Card (Top Right - Anine Bing Style) */
.apt-card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: transparent;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.apt-card-wishlist-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}

.apt-card-wishlist-btn.is-active svg {
  fill: #000000;
}

/* Quick Add Overlay on Hover (Anine Bing Signature: Sizes row + solid black ADD TO CART button) */
.apt-product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 4;
  box-sizing: border-box;
}

.apt-product-card:hover .apt-product-card__quick-add {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.apt-card-sizes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.apt-card-size-pill {
  background: transparent;
  border: none;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #111111;
  padding: 3px 5px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.apt-card-size-pill:hover:not(:disabled),
.apt-card-size-pill.is-selected {
  font-weight: 700;
  color: #000000;
}

.apt-card-size-pill.is-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 3px;
  right: 3px;
  height: 1px;
  background-color: #000000;
}

/* Diagonal slash across out of stock sizes */
.apt-card-size-pill.is-out-of-stock {
  color: #BDBDBD;
  cursor: not-allowed;
  position: relative;
}

.apt-card-size-pill.is-out-of-stock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 1px;
  background-color: #9E9E9E;
  transform: rotate(-35deg);
}

.apt-card-atc-btn {
  width: 100%;
  height: 38px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.apt-card-atc-btn:hover {
  background-color: #222222;
}

.apt-card-atc-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Product Card Details (Below Media Wrap) */
.apt-product-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.apt-product-card__title,
li.product .woocommerce-loop-product__title,
li.product h2.woocommerce-loop-product__title {
  font-family: var(--apt-font-sans);
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.apt-product-card__title a,
li.product .woocommerce-LoopProduct-link,
li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.apt-product-card__title a:hover,
li.product .woocommerce-loop-product__title a:hover {
  color: #666666;
}

.apt-product-card__subtitle {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #707070;
  margin: 0;
}

.apt-product-card__price,
li.product .price {
  font-family: var(--apt-font-sans);
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--apt-color-price-regular, #000000) !important;
  margin-top: 2px !important;
  display: block !important;
}

.apt-price-sale,
li.product .price ins {
  color: var(--apt-color-price-sale, var(--apt-color-sale)) !important;
  font-weight: 500;
  text-decoration: none;
}

.apt-price-regular {
  color: var(--apt-color-price-regular, #000000);
}

del.apt-price-regular,
li.product .price del {
  color: var(--apt-color-price-del, #9E9E9E) !important;
  margin-left: 6px;
  font-weight: 400;
  display: inline-block;
}

/* Color Swatches indicator dots on card */
.apt-product-card__swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.apt-color-swatch-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.apt-color-swatch-dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 2px #000000, inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* ==========================================================================
   2. CATALOG / ARCHIVE FILTER BAR (Anine Bing Sticky Filter & Switcher)
   ========================================================================== */
.apt-catalog-header {
  padding: 40px 0 20px;
  text-align: left;
}

.apt-catalog-breadcrumb,
.woocommerce-breadcrumb.apt-catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--apt-font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apt-color-text-muted, #707070);
  line-height: 1.4;
}

.apt-catalog-breadcrumb a,
.woocommerce-breadcrumb.apt-catalog-breadcrumb a,
.apt-breadcrumb-link {
  color: #707070;
  text-decoration: none;
  transition: color 0.2s ease;
}

.apt-catalog-breadcrumb a:hover,
.woocommerce-breadcrumb.apt-catalog-breadcrumb a:hover,
.apt-breadcrumb-link:hover {
  color: #000000;
}

.apt-catalog-breadcrumb .apt-breadcrumb-sep,
.woocommerce-breadcrumb.apt-catalog-breadcrumb .apt-breadcrumb-sep {
  margin: 0 4px;
  opacity: 0.4;
  font-size: 10px;
}

.apt-catalog-breadcrumb .apt-breadcrumb-current,
.woocommerce-breadcrumb.apt-catalog-breadcrumb .apt-breadcrumb-current {
  color: #111111;
  font-weight: 500;
}

.apt-catalog-header__title {
  font-family: var(--apt-font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.apt-catalog-header__count {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 400;
  color: #707070;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.apt-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--apt-color-border);
  border-bottom: 1px solid var(--apt-color-border);
  margin-bottom: 32px;
  position: relative;
  background-color: var(--apt-color-bg, #FFFFFF);
  width: 100%;
}


.apt-filter-bar__left,
.apt-filter-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile / Drawer Toggle Button */
.apt-filter-drawer-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--apt-color-border);
  padding: 7px 12px;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apt-filter-drawer-toggle:hover {
  border-color: #000000;
}

.apt-filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

/* Custom Luxury Dropdowns */
.apt-filter-dropdowns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.apt-custom-dropdown {
  position: relative;
  display: inline-block;
}

.apt-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid var(--apt-color-border);
  padding: 7px 12px;
  font-size: 11px;
  font-family: var(--apt-font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.apt-dropdown-btn:hover,
.apt-custom-dropdown.is-open .apt-dropdown-btn {
  border-color: #000000;
}

.apt-dropdown-arrow {
  color: #707070;
  transition: transform 0.2s ease, color 0.2s ease;
}

.apt-custom-dropdown.is-open .apt-dropdown-arrow {
  transform: rotate(180deg);
  color: #000000;
}

/* Dropdown Floating Panels */
.apt-custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  background-color: #FFFFFF;
  border: 1px solid #E5E5E5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.apt-custom-dropdown.is-open .apt-custom-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sort Menu Panel */
.apt-sort-panel {
  right: 0;
  left: auto;
  min-width: 230px;
}

.apt-sort-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apt-sort-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555555;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.apt-sort-item:hover {
  background-color: #F8F8F8;
  color: #000000;
}

.apt-sort-item.is-active {
  font-weight: 600;
  color: #000000;
  background-color: #FAFAFA;
}

.apt-check-icon {
  color: #000000;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.is-active .apt-check-icon {
  opacity: 1;
}

/* Category & Color Filter Lists */
.apt-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.apt-filter-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #444444;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.apt-filter-list-item:hover {
  background-color: #F8F8F8;
  color: #000000;
}

.apt-filter-list-item.is-active {
  font-weight: 600;
  color: #000000;
  background-color: #FAFAFA;
}

.apt-filter-item-count {
  font-size: 10px;
  color: #888888;
  margin-left: auto;
  margin-right: 8px;
}

.apt-filter-color-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apt-filter-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apt-filter-checkbox-item:hover .apt-filter-color-swatch {
  transform: scale(1.15);
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.apt-filter-checkbox-item input:checked ~ .apt-filter-color-item .apt-filter-color-swatch {
  transform: scale(1.1);
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 3px #000000, inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* Sizes Grid in Dropdown */
.apt-custom-dropdown-panel--sizes {
  min-width: 250px;
  padding: 14px;
}

.apt-filter-sizes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.apt-filter-size-box {
  border: 1px solid var(--apt-color-border);
  background-color: #FFFFFF;
  padding: 8px 4px;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #111111;
}

.apt-filter-size-box:hover {
  border-color: #000000;
}

.apt-filter-size-box.is-active {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* View Switcher */
.apt-view-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.apt-view-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #B0B0B0;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.apt-view-btn.is-active,
.apt-view-btn:hover {
  color: #000000;
}

.apt-view-btn--mobile {
  display: none;
}

.apt-view-btn--desktop {
  display: inline-flex;
}

/* Active Filter Tags */
.apt-active-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.apt-active-filters__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.apt-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #FAFAFA;
  border: 1px solid var(--apt-color-border);
  font-family: var(--apt-font-sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111111;
}

.apt-filter-tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.apt-filter-tag__remove:hover {
  color: #000000;
}

.apt-clear-all-btn {
  background: none;
  border: none;
  font-family: var(--apt-font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #707070;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px;
  transition: color 0.15s ease;
}

.apt-clear-all-btn:hover {
  color: #000000;
}

/* Slide-out Filter Drawer */
.apt-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  max-width: 85vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-filter-drawer.is-open {
  transform: translateX(0);
}

.apt-filter-drawer__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.apt-filter-drawer__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.apt-filter-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--apt-color-border);
}

.apt-filter-drawer__title {
  font-family: var(--apt-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  color: #111111;
}

.apt-filter-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #111111;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}

.apt-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.apt-drawer-section {
  margin-bottom: 28px;
}

.apt-drawer-section__title {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #111111;
}

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

.apt-drawer-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--apt-font-sans);
  font-size: 12px;
  color: #333333;
  cursor: pointer;
  transition: color 0.15s ease;
}

.apt-drawer-list-item:hover {
  color: #000000;
}

.apt-drawer-checkbox {
  width: 15px;
  height: 15px;
  border: 1px solid #B5B5B5;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.apt-drawer-list-item.is-selected .apt-drawer-checkbox {
  background-color: #000000;
  border-color: #000000;
  position: relative;
}

.apt-drawer-list-item.is-selected .apt-drawer-checkbox::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.apt-drawer-item-count {
  font-size: 10px;
  color: #888888;
  margin-left: auto;
}

.apt-filter-drawer__footer {
  padding: 18px 24px;
  border-top: 1px solid var(--apt-color-border);
  display: flex;
  gap: 12px;
  background-color: #FFFFFF;
}

.apt-drawer-clear-btn {
  flex: 1;
  padding: 12px;
  background-color: #FFFFFF;
  border: 1px solid #111111;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.apt-drawer-clear-btn:hover {
  background-color: #F5F5F5;
}

.apt-drawer-apply-btn {
  flex: 1;
  padding: 12px;
  background-color: #111111;
  color: #FFFFFF;
  border: 1px solid #111111;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s;
}

.apt-drawer-apply-btn:hover {
  background-color: #333333;
}


/* ==========================================================================
   3. SINGLE PRODUCT PAGE (Full Width Editorial Stack & Sticky Purchase)
   ========================================================================== */
.apt-single-product-container {
  width: 100%;
  max-width: 100%;
  padding-left: 36px;
  padding-right: 36px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .apt-single-product-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 1024px) {
  .apt-single-product-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .apt-single-product-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.apt-single-product {
  padding: 16px 0 80px;
  width: 100%;
}

.apt-single-product__layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: flex-start;
  width: 100%;
}

/* Left Column: Vertical Image Stack */
/* Breadcrumb */
.apt-pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #757575;
  margin-bottom: 24px;
}

.apt-pdp-breadcrumb a {
  color: #757575;
  text-decoration: none;
  transition: color 0.15s ease;
}

.apt-pdp-breadcrumb a:hover {
  color: #000000;
}

.apt-breadcrumb-sep {
  font-size: 10px;
  color: #9E9E9E;
}

.apt-breadcrumb-current {
  color: #111111;
  font-weight: 500;
}

/* Left Column: Vertical Image Gallery + Floating Wishlist Heart */
.apt-product-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apt-gallery-wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: transparent;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.apt-gallery-wishlist-btn:hover {
  transform: scale(1.1);
}

.apt-gallery-wishlist-btn.is-active svg {
  fill: #000000;
}

.apt-gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--apt-color-bg-secondary);
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
}

.apt-gallery-item img,
.apt-gallery-item .apt-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform-origin 0.05s ease-out;
  pointer-events: none;
}

.apt-gallery-item.is-zooming img,
.apt-gallery-item.is-zooming .apt-gallery-img {
  transition: transform 0.12s ease-out, transform-origin 0.05s linear;
}

/* Subtle zoom hint badge on hover */
.apt-gallery-item__zoom-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.apt-gallery-item:hover .apt-gallery-item__zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Right Column: Sticky Purchase Column */
.apt-product-summary {
  position: sticky;
  top: calc(var(--apt-header-height) + 20px);
  display: flex;
  flex-direction: column;
  padding-left: 20px;
}

.apt-product-summary__header {
  padding-bottom: 4px;
}

.apt-single-title {
  font-family: var(--apt-font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 8px;
}

.apt-single-color-label {
  font-family: var(--apt-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #666666;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

/* Color Swatches (Luxury Editorial Swatches with Tooltips & Dual-Ring High Contrast) */
.apt-pdp-color-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.apt-pdp-swatch-circle {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 2px;
  background: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.apt-pdp-swatch-circle span.apt-pdp-swatch-color,
.apt-pdp-swatch-circle span:not(.apt-pdp-swatch-tooltip) {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.apt-pdp-swatch-circle:hover {
  transform: scale(1.18);
  border-color: #111111;
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 2.5px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.14);
  z-index: 5;
}

.apt-pdp-swatch-circle.is-selected {
  transform: scale(1.1);
  border-color: #111111;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px #111111, 0 3px 10px rgba(0, 0, 0, 0.16);
  z-index: 4;
}

/* Swatch Floating Tooltip */
.apt-pdp-swatch-tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #111111;
  color: #FFFFFF;
  font-family: var(--apt-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.apt-pdp-swatch-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #111111 transparent transparent transparent;
}

.apt-pdp-swatch-circle:hover .apt-pdp-swatch-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Product Price */
.apt-single-price {
  font-family: var(--apt-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--apt-color-price-regular, #000000);
  margin-bottom: 16px;
}

/* PDP Size Row */
.apt-pdp-sizes-wrap {
  margin-bottom: 16px;
}

.apt-pdp-sizes-list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.apt-pdp-size-btn {
  background: transparent;
  border: none;
  font-family: var(--apt-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  padding: 4px 6px;
  position: relative;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.apt-pdp-size-btn:hover:not(:disabled),
.apt-pdp-size-btn.is-selected {
  font-weight: 700;
  color: #000000;
}

.apt-pdp-size-btn.is-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 1px;
  background-color: #000000;
}

.apt-pdp-size-btn.is-out-of-stock {
  color: #BDBDBD;
  cursor: not-allowed;
  position: relative;
}

.apt-pdp-size-btn.is-out-of-stock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #BDBDBD;
  transform: rotate(-35deg);
}

.apt-pdp-fit-guide-link {
  margin-top: 4px;
}

.apt-pdp-fit-guide-link a {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  color: #555555;
  text-decoration: underline;
  letter-spacing: 0.02em;
}

.apt-pdp-fit-guide-link a:hover {
  color: #000000;
}

/* ADD TO CART Button on PDP (Anine Bing Solid Black Style) */
.apt-single-buy-box {
  margin-top: 12px;
}

.apt-add-to-bag-btn {
  width: 100%;
  height: 48px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.apt-add-to-bag-btn:hover {
  background-color: #222222;
}

.apt-add-to-bag-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Shipping Note */
.apt-pdp-shipping-note {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  color: #666666;
  margin: 16px 0 20px;
  line-height: 1.4;
}

/* PDP Minimalist Accordions (Butter-Smooth CSS Grid Animation + Vector Icon) */
.apt-pdp-accordions {
  border-top: 1px solid var(--apt-color-border);
  margin-top: 10px;
}

.apt-pdp-accordion-item {
  border-bottom: 1px solid var(--apt-color-border);
}

.apt-pdp-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  background: transparent;
  border: none;
  font-family: var(--apt-font-sans);
  cursor: pointer;
  text-align: left;
  user-select: none;
}

/* Pure CSS Animated Vector Icon (+ smoothly rotates & morphs to -) */
.apt-pdp-accordion-icon {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apt-pdp-accordion-icon::before,
.apt-pdp-accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #000000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Horizontal bar stays static */
.apt-pdp-accordion-icon::before {
  width: 11px;
  height: 1.2px;
  left: 0.5px;
  top: 5.4px;
}

/* Vertical bar rotates and fades on open -> turns '+' seamlessly into '-' */
.apt-pdp-accordion-icon::after {
  width: 1.2px;
  height: 11px;
  left: 5.4px;
  top: 0.5px;
  transform: rotate(0deg);
}

.apt-pdp-accordion-item.is-open .apt-pdp-accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.apt-pdp-accordion-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
}

/* Butter-Smooth CSS Grid Accordion Content */
.apt-pdp-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-pdp-accordion-item.is-open .apt-pdp-accordion-content {
  grid-template-rows: 1fr;
}

.apt-pdp-accordion-content__inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  font-size: 12px;
  line-height: 1.7;
  color: #555555;
  padding-left: 24px;
  padding-bottom: 0;
}

.apt-pdp-accordion-item.is-open .apt-pdp-accordion-content__inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 20px;
}

/* Related Products / Complete the Look Section Spacing & Editorial Polish */
.apt-related-products {
  margin-top: 100px;
  padding-top: 70px;
  border-top: 1px solid var(--apt-color-border);
  width: 100%;
}

.apt-related-products .apt-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.apt-related-products .apt-section-header__title {
  font-family: var(--apt-font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 8px;
}

.apt-related-products .apt-section-header__subtitle {
  font-family: var(--apt-font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #707070;
  margin: 0;
}

/* ==========================================================================
   LUXURY FULLSCREEN LIGHTBOX MODAL (Editorial PDP Zoom & Gallery)
   ========================================================================== */
.apt-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--apt-z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  user-select: none;
}

.apt-lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.apt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.apt-lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 24px 32px;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .apt-lightbox-container {
    padding: 16px;
  }
}

/* Lightbox Header */
.apt-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
}

.apt-lightbox-counter {
  font-family: var(--apt-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  min-width: 80px;
}

.apt-lightbox-counter .apt-lightbox-current {
  color: #FFFFFF;
  font-weight: 600;
}

.apt-lightbox-title {
  font-family: var(--apt-font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

@media (max-width: 600px) {
  .apt-lightbox-title {
    display: none;
  }
}

.apt-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  justify-content: flex-end;
}

.apt-lightbox-zoom-toggle,
.apt-lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  opacity: 0.85;
}

.apt-lightbox-zoom-toggle:hover,
.apt-lightbox-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.apt-lightbox-close:hover {
  transform: scale(1.08) rotate(90deg);
}

/* Lightbox Stage */
.apt-lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0;
  width: 100%;
}

.apt-lightbox-media-wrap {
  position: relative;
  max-width: min(88vw, 920px);
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.apt-lightbox-media-wrap.is-zoomed {
  cursor: zoom-out;
}

@media (max-width: 768px) {
  .apt-lightbox-media-wrap {
    max-width: 95vw;
  }
}

.apt-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  transform-origin: 50% 50%;
  user-select: none;
}

.apt-lightbox-media-wrap.is-zoomed .apt-lightbox-img {
  transition: transform 0.1s ease-out, transform-origin 0.05s linear;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.apt-lightbox-img.is-animating {
  opacity: 0;
  transform: scale(0.97);
}

/* Spinner loader */
.apt-lightbox-spinner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: apt-spin 0.8s linear infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.apt-lightbox-media-wrap.is-loading .apt-lightbox-spinner {
  opacity: 1;
  visibility: visible;
}

.apt-lightbox-media-wrap.is-loading .apt-lightbox-img {
  opacity: 0.4;
}

@keyframes apt-spin {
  to { transform: rotate(360deg); }
}

/* Prev / Next Navigation Controls */
.apt-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  opacity: 0.85;
}

.apt-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.apt-lightbox-nav--prev {
  left: 20px;
}

.apt-lightbox-nav--next {
  right: 20px;
}

@media (max-width: 768px) {
  .apt-lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .apt-lightbox-nav--prev {
    left: 8px;
  }
  .apt-lightbox-nav--next {
    right: 8px;
  }
}

/* Lightbox Footer Thumbnails */
.apt-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
}

.apt-lightbox-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 8px;
}

.apt-lightbox-thumb {
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.apt-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apt-lightbox-thumb:hover {
  opacity: 0.85;
}

.apt-lightbox-thumb.is-active {
  opacity: 1;
  border-color: #FFFFFF;
  transform: scale(1.06);
}

/* Size Guide Modal */
.apt-modal {
  position: fixed;
  inset: 0;
  z-index: var(--apt-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--apt-ease-smooth);
}

.apt-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.apt-modal__dialog {
  background-color: var(--apt-color-bg);
  width: 100%;
  max-width: 650px;
  padding: 40px;
  position: relative;
  box-shadow: var(--apt-shadow-drawer);
  max-height: 90vh;
  overflow-y: auto;
}

.apt-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--apt-color-text);
}

.apt-modal__title {
  font-family: var(--apt-font-serif);
  font-size: var(--apt-text-2xl);
  margin-bottom: 20px;
}

.apt-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--apt-text-xs);
  text-align: left;
  margin-top: 15px;
}

.apt-size-table th,
.apt-size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--apt-color-border);
}

.apt-size-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--apt-tracking-wider);
}

/* ==========================================================================
   4. CHECKOUT (Luxury 2-Column Shopify Plus Style)
   ========================================================================== */
.apt-checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 40px 0 80px;
}

.apt-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apt-checkout-section-title {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-sm);
  font-weight: 600;
  letter-spacing: var(--apt-tracking-wider);
  text-transform: uppercase;
  border-bottom: 1px solid var(--apt-color-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.apt-checkout-order-review {
  background-color: var(--apt-color-bg-secondary);
  border: 1px solid var(--apt-color-border);
  padding: 32px;
  position: sticky;
  top: calc(var(--apt-header-height) + 20px);
}

.apt-checkout-review-title {
  font-family: var(--apt-font-serif);
  font-size: var(--apt-text-xl);
  margin-bottom: 24px;
}

.apt-review-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--apt-color-border);
}

.apt-review-item__thumb {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.apt-review-item__title {
  font-size: var(--apt-text-xs);
  font-weight: 500;
}

.apt-review-totals {
  margin-top: 24px;
  border-top: 1px solid var(--apt-color-border);
  padding-top: 16px;
}

.apt-review-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--apt-text-xs);
  margin-bottom: 10px;
}

.apt-review-row--total {
  font-size: var(--apt-text-base);
  font-weight: 600;
  border-top: 1px solid var(--apt-color-border);
  padding-top: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   Editorial WooCommerce Notices (Errors, Success Messages & Info)
   ========================================================================== */
.woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  list-style: none !important;
  margin: 0 0 20px 0 !important;
  padding: 16px 20px !important;
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xs);
  line-height: 1.5;
  letter-spacing: 0.02em;
  background-color: var(--apt-color-bg-secondary);
  border: 1px solid var(--apt-color-border);
  color: var(--apt-color-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.woocommerce-error {
  border-left: 3px solid #111111;
}

.woocommerce-message {
  border-left: 3px solid #111111;
}

.woocommerce-info {
  border-left: 3px solid var(--apt-color-muted);
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-error a.button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.wc-forward,
.woocommerce-message a.wc-forward,
.woocommerce-info a.wc-forward {
  display: inline-block;
  margin-left: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--apt-color-text);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  float: none !important;
}

.woocommerce-error a.wc-forward:hover,
.woocommerce-message a.wc-forward:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Editorial Luxury Catalog Pagination (Anine Bing Signature)
   ========================================================================== */
.apt-pagination-wrap,
.apt-catalog-container .woocommerce-pagination,
.woocommerce-pagination,
.apt-pagination {
  width: 100%;
  margin: 50px auto 80px auto;
  padding: 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  clear: both;
}

.apt-pagination-wrap ul.page-numbers,
.woocommerce-pagination ul.page-numbers,
.apt-pagination ul.page-numbers,
ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: none !important;
}

.apt-pagination-wrap ul.page-numbers::before,
.apt-pagination-wrap ul.page-numbers::after,
.woocommerce-pagination ul.page-numbers::before,
.woocommerce-pagination ul.page-numbers::after,
ul.page-numbers::before,
ul.page-numbers::after {
  content: none !important;
  display: none !important;
}

.apt-pagination-wrap ul.page-numbers > li,
.woocommerce-pagination ul.page-numbers > li,
.apt-pagination ul.page-numbers > li,
ul.page-numbers > li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: none !important;
}

.apt-pagination-wrap .page-numbers:not(ul),
.woocommerce-pagination .page-numbers:not(ul),
.apt-pagination .page-numbers:not(ul),
ul.page-numbers li a,
ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  font-family: var(--apt-font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  color: var(--apt-color-text, #000000) !important;
  text-decoration: none !important;
  background-color: transparent !important;
  border: 1px solid var(--apt-color-border, #E8E8E6) !important;
  border-radius: 0px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

/* Current / Active Page Item */
.apt-pagination-wrap .page-numbers.current,
.woocommerce-pagination .page-numbers.current,
.apt-pagination .page-numbers.current,
ul.page-numbers li span.current,
ul.page-numbers li .page-numbers.current {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  font-weight: 500 !important;
  cursor: default !important;
  pointer-events: none;
}

/* Hover state on page links */
.apt-pagination-wrap a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover,
.apt-pagination a.page-numbers:hover,
ul.page-numbers li a:hover {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
}

.apt-pagination-wrap a.page-numbers:hover svg,
.woocommerce-pagination a.page-numbers:hover svg,
.apt-pagination a.page-numbers:hover svg,
ul.page-numbers li a:hover svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Next / Prev Navigation Buttons */
.apt-pagination-wrap .page-numbers.prev,
.apt-pagination-wrap .page-numbers.next,
.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next,
.apt-pagination .page-numbers.prev,
.apt-pagination .page-numbers.next {
  min-width: 44px !important;
  padding: 0 14px !important;
}

.apt-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-pagination__arrow svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.apt-pagination-wrap a.prev:hover .apt-pagination__arrow,
.woocommerce-pagination a.prev:hover .apt-pagination__arrow,
.apt-pagination a.prev:hover .apt-pagination__arrow {
  transform: translateX(-3px);
}

.apt-pagination-wrap a.next:hover .apt-pagination__arrow,
.woocommerce-pagination a.next:hover .apt-pagination__arrow,
.apt-pagination a.next:hover .apt-pagination__arrow {
  transform: translateX(3px);
}

/* Dots / Ellipsis */
.apt-pagination-wrap .page-numbers.dots,
.woocommerce-pagination .page-numbers.dots,
.apt-pagination .page-numbers.dots,
ul.page-numbers li span.dots {
  min-width: 24px !important;
  height: 40px !important;
  border: none !important;
  background: transparent !important;
  color: #8E8E8E !important;
  letter-spacing: 0.15em !important;
  font-size: 14px !important;
  padding: 0 !important;
  cursor: default !important;
}

@media (max-width: 640px) {
  .apt-pagination-wrap,
  .woocommerce-pagination,
  .apt-pagination {
    margin: 40px auto 60px auto;
  }

  .apt-pagination-wrap ul.page-numbers,
  .woocommerce-pagination ul.page-numbers,
  .apt-pagination ul.page-numbers {
    gap: 6px !important;
  }

  .apt-pagination-wrap .page-numbers:not(ul),
  .woocommerce-pagination .page-numbers:not(ul),
  .apt-pagination .page-numbers:not(ul),
  ul.page-numbers li a,
  ul.page-numbers li span {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
  }

  .apt-pagination-wrap .page-numbers.prev,
  .apt-pagination-wrap .page-numbers.next,
  .woocommerce-pagination .page-numbers.prev,
  .woocommerce-pagination .page-numbers.next {
    min-width: 38px !important;
    padding: 0 10px !important;
  }
}

