/**
 * Aptotema Base Styles, Reset, Typography & UI Elements
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol, li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-base);
  line-height: 1.6;
  color: var(--apt-color-text-body);
  background-color: var(--apt-color-bg);
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

#page,
.apt-site-wrapper {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.apt-font-serif {
  font-family: var(--apt-font-serif);
  font-weight: 400;
  color: var(--apt-color-text);
  line-height: 1.2;
  letter-spacing: var(--apt-tracking-tight);
}

h1 { font-size: clamp(2rem, 4vw, var(--apt-text-4xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--apt-text-3xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--apt-text-2xl)); }
h4 { font-size: var(--apt-text-xl); }
h5 { font-size: var(--apt-text-lg); }
h6 { font-size: var(--apt-text-base); font-family: var(--apt-font-sans); letter-spacing: var(--apt-tracking-wider); text-transform: uppercase; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--apt-color-link, inherit);
  text-decoration: none;
  transition: opacity var(--apt-ease-fast), color var(--apt-ease-fast);
}

a:hover {
  color: var(--apt-color-link-hover, var(--apt-color-text-muted));
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Skeleton Shimmer Loading System (Luxury Editorial High Performance)
   ========================================================================== */
@keyframes aptShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.apt-skeleton-loading,
.apt-image-skeleton,
.apt-product-card__media-wrap:not(.is-loaded),
.apt-gallery-item:not(.is-loaded),
.apt-cart-item__media:not(.is-loaded),
.apt-collection-card__media:not(.is-loaded),
.apt-editorial-split__media:not(.is-loaded),
.apt-editorial-banner__image:not(.is-loaded),
.apt-category-card__image-wrap:not(.is-loaded),
.apt-article-card__media:not(.is-loaded),
.apt-post-card__media:not(.is-loaded),
.apt-lightbox-thumb:not(.is-loaded) {
  background-color: var(--apt-color-skeleton-base, #EFEFEF) !important;
  background-image: var(--apt-skeleton-gradient, linear-gradient(90deg, #EFEFEF 0%, #F8F8F8 50%, #EFEFEF 100%)) !important;
  background-size: 200% 100% !important;
  animation: aptShimmer 1.8s infinite ease-in-out !important;
}

/* Smooth Image Loading Fade-in Transition */
.apt-product-card__image,
.apt-gallery-item img,
.apt-gallery-item .apt-gallery-img,
.apt-cart-item__media img,
.apt-collection-card__media img,
.apt-editorial-split__media img,
.apt-editorial-banner__image img,
.apt-category-card__image-wrap img,
.apt-article-card__media img,
.apt-post-card__media img,
.apt-lightbox-thumb img {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s var(--apt-ease-editorial);
}

/* When loaded or fallback */
.apt-product-card__image.is-loaded,
.apt-product-card__image[data-loaded="true"],
.apt-gallery-item.is-loaded img,
.apt-gallery-item.is-loaded .apt-gallery-img,
.apt-cart-item__media.is-loaded img,
.apt-cart-item__media img.is-loaded,
.apt-collection-card__media.is-loaded img,
.apt-editorial-split__media.is-loaded img,
.apt-editorial-banner__image.is-loaded img,
.apt-category-card__image-wrap.is-loaded img,
.apt-article-card__media.is-loaded img,
.apt-post-card__media.is-loaded img,
.apt-lightbox-thumb.is-loaded img,
.apt-placeholder-img,
img.apt-placeholder-img,
img.is-loaded {
  opacity: 1;
}

/* Deactivate shimmer when image is loaded to conserve GPU/CPU */
.apt-product-card__media-wrap.is-loaded,
.apt-gallery-item.is-loaded,
.apt-cart-item__media.is-loaded,
.apt-collection-card__media.is-loaded,
.apt-editorial-split__media.is-loaded,
.apt-editorial-banner__image.is-loaded,
.apt-category-card__image-wrap.is-loaded,
.apt-article-card__media.is-loaded,
.apt-post-card__media.is-loaded,
.apt-lightbox-thumb.is-loaded {
  animation: none !important;
  background-image: none !important;
  background-color: var(--apt-color-bg-secondary, #FAFAFA) !important;
}

/* Skeleton Card Components for Catalog AJAX Loading / Live Search */
.apt-product-skeleton-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  position: relative !important;
}

.apt-product-skeleton-card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--apt-color-skeleton-base, #EFEFEF);
  background-image: var(--apt-skeleton-gradient, linear-gradient(90deg, #EFEFEF 0%, #F8F8F8 50%, #EFEFEF 100%));
  background-size: 200% 100%;
  animation: aptShimmer 1.8s infinite ease-in-out;
  margin-bottom: 12px;
}

.apt-product-skeleton-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.apt-product-skeleton-card__line {
  background-color: var(--apt-color-skeleton-base, #EFEFEF);
  background-image: var(--apt-skeleton-gradient, linear-gradient(90deg, #EFEFEF 0%, #F8F8F8 50%, #EFEFEF 100%));
  background-size: 200% 100%;
  animation: aptShimmer 1.8s infinite ease-in-out;
  border-radius: 2px;
}

.apt-product-skeleton-card__line--title {
  width: 80%;
  height: 13px;
}

.apt-product-skeleton-card__line--subtitle {
  width: 50%;
  height: 10px;
}

.apt-product-skeleton-card__line--price {
  width: 35%;
  height: 12px;
  margin-top: 4px;
}

/* Layout Containers */
.apt-container {
  width: 100%;
  max-width: var(--apt-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--apt-gutter);
  padding-right: var(--apt-gutter);
}

.apt-container--narrow {
  max-width: var(--apt-container-narrow);
}

.apt-container--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Luxury Editorial Buttons */
.apt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 28px;
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xs);
  font-weight: 500;
  letter-spacing: var(--apt-tracking-widest);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--apt-ease-fast);
  user-select: none;
  min-height: 48px;
}

.apt-btn--primary {
  background-color: var(--apt-color-btn-primary-bg, var(--apt-color-text));
  color: var(--apt-color-btn-primary-text, #FFFFFF);
  border-color: var(--apt-color-btn-primary-bg, var(--apt-color-text));
}

.apt-btn--primary:hover {
  background-color: var(--apt-color-btn-primary-hover-bg, #222222);
  color: var(--apt-color-btn-primary-hover-text, #FFFFFF);
  border-color: var(--apt-color-btn-primary-hover-bg, #222222);
  opacity: 1;
}

.apt-btn--outline {
  background-color: var(--apt-color-btn-secondary-bg, transparent);
  color: var(--apt-color-btn-secondary-text, var(--apt-color-text));
  border-color: var(--apt-color-btn-secondary-border, var(--apt-color-text));
}

.apt-btn--outline:hover {
  background-color: var(--apt-color-btn-secondary-hover-bg, var(--apt-color-text));
  color: var(--apt-color-btn-secondary-hover-text, #FFFFFF);
  border-color: var(--apt-color-btn-secondary-hover-border, var(--apt-color-text));
  opacity: 1;
}

.apt-btn--underline {
  padding: 4px 0;
  min-height: auto;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.apt-btn--underline:hover {
  opacity: 0.6;
}

.apt-btn--full {
  width: 100%;
}

.apt-btn:disabled,
.apt-btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Badges */
.apt-badge {
  display: inline-block;
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xxs);
  font-weight: 600;
  letter-spacing: var(--apt-tracking-wider);
  text-transform: uppercase;
  padding: 4px 8px;
  background-color: var(--apt-color-bg);
  color: var(--apt-color-text);
  border: 1px solid var(--apt-color-border);
}

.apt-badge--sale {
  background-color: var(--apt-color-sale);
  color: #FFF;
  border-color: var(--apt-color-sale);
}

.apt-badge--soldout {
  background-color: var(--apt-color-bg-alt);
  color: var(--apt-color-text-muted);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-sm);
  color: var(--apt-color-text);
  background-color: var(--apt-color-bg);
  border: 1px solid var(--apt-color-border);
  border-radius: 0;
  outline: none;
  transition: border-color var(--apt-ease-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--apt-color-border-dark);
}

/* Backdrop Overlay */
.apt-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--apt-color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--apt-ease-smooth), visibility var(--apt-ease-smooth);
  z-index: var(--apt-z-overlay, 400);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

/* Section Headers (Editorial Luxury) */
.apt-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.apt-section-header__title {
  font-family: var(--apt-font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: var(--apt-tracking-wide);
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--apt-color-text);
  line-height: 1.2;
}

.apt-section-header__subtitle {
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xs);
  color: var(--apt-color-text-muted);
  letter-spacing: var(--apt-tracking-wide);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Helper Utilities */
.apt-aspect-editorial {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.apt-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Luxury Editorial Footer (Anine Bing Aesthetic)
   ========================================================================== */
.apt-footer {
  background-color: var(--apt-color-bg-secondary);
  color: var(--apt-color-text-body);
  border-top: 1px solid var(--apt-color-border);
  font-family: var(--apt-footer-font-family, var(--apt-font-sans));
  font-size: var(--apt-footer-font-size, var(--apt-text-xs));
}

.apt-footer ul,
.apt-footer ol,
.apt-footer li,
.apt-footer-links,
.apt-footer-links li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 1. Newsletter Section */
.apt-footer-newsletter {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--apt-color-border);
  text-align: center;
}

.apt-newsletter-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.apt-newsletter-title {
  font-family: var(--apt-font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: var(--apt-tracking-wide);
  color: var(--apt-color-text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.apt-newsletter-subtitle {
  font-size: var(--apt-text-xs);
  color: var(--apt-color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: var(--apt-tracking-wide);
}

.apt-newsletter-form__inner {
  display: flex;
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.apt-newsletter-input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 16px;
  font-family: var(--apt-font-sans);
  font-size: var(--apt-text-xxs);
  letter-spacing: var(--apt-tracking-wider);
  text-transform: uppercase;
  background-color: #FFFFFF;
  border: 1px solid var(--apt-color-border);
  color: var(--apt-color-text);
  border-radius: 0;
  outline: none;
  transition: border-color var(--apt-ease-fast);
}

.apt-newsletter-input:focus {
  border-color: var(--apt-color-text);
}

.apt-newsletter-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  background: transparent;
  border: none;
  color: var(--apt-color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--apt-ease-fast);
}

.apt-newsletter-submit:hover {
  transform: translateX(3px);
}

.apt-newsletter-disclaimer {
  font-size: 11px;
  color: var(--apt-color-text-subtle);
  margin-top: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 2. Main Footer Links Grid */
.apt-footer-main {
  padding: 60px 0 40px;
}

.apt-footer-top-brand {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--apt-color-footer-border, var(--apt-color-border-subtle));
}

.apt-footer-top-brand .apt-footer-brand-wrap {
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
}

.apt-footer-col--brand {
  display: flex;
  flex-direction: column;
}

.apt-footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apt-footer-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--apt-ease-fast);
}

.apt-footer-logo:hover {
  opacity: 0.8;
}

.apt-footer-logo-img {
  display: block;
  height: auto;
  max-width: 100%;
  width: auto;
}

.apt-footer-logo-text {
  font-family: var(--apt-font-serif);
  font-size: 1.25rem;
  letter-spacing: var(--apt-tracking-wide);
  color: var(--apt-color-footer-title, var(--apt-color-text));
  text-transform: uppercase;
  font-weight: 500;
}

.apt-footer-brand-bio {
  font-size: 12px;
  line-height: 1.7;
  color: var(--apt-color-footer-text, var(--apt-color-footer-link, var(--apt-color-text-muted)));
  margin: 0;
  letter-spacing: 0.02em;
}

.apt-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.25fr;
  gap: 48px;
  align-items: flex-start;
}

.apt-footer-grid--5_cols_brand,
.apt-footer-grid--has-brand,
.apt-footer-grid:has(.apt-footer-col--brand) {
  grid-template-columns: 1.35fr repeat(3, 1fr) 1.15fr;
}

.apt-footer-grid--3_cols_brand {
  grid-template-columns: 1.35fr repeat(2, 1fr) 1.15fr;
}

@media (max-width: 1100px) {
  .apt-footer-grid--5_cols_brand,
  .apt-footer-grid--3_cols_brand,
  .apt-footer-grid--has-brand,
  .apt-footer-grid:has(.apt-footer-col--brand),
  .apt-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .apt-footer-grid--5_cols_brand,
  .apt-footer-grid--3_cols_brand,
  .apt-footer-grid--has-brand,
  .apt-footer-grid:has(.apt-footer-col--brand),
  .apt-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.apt-footer-col__title {
  font-family: var(--apt-footer-font-family, var(--apt-font-sans));
  font-size: var(--apt-footer-title-font-size, var(--apt-text-xxs));
  font-weight: 600;
  letter-spacing: var(--apt-tracking-widest);
  text-transform: uppercase;
  color: var(--apt-color-footer-title, var(--apt-color-text));
  margin-bottom: 20px;
}

.apt-footer-links {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

.apt-footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.apt-footer-links a {
  font-size: var(--apt-footer-font-size, var(--apt-text-xs));
  color: var(--apt-color-footer-link, var(--apt-color-text-muted));
  text-decoration: none;
  letter-spacing: var(--apt-tracking-wide);
  transition: color var(--apt-ease-fast);
  display: inline-block;
}

.apt-footer-links a:hover {
  color: var(--apt-color-footer-link-hover, var(--apt-color-text));
  text-decoration: underline;
}

.apt-footer-custom-content {
  font-size: var(--apt-footer-font-size, var(--apt-text-xs));
  line-height: 1.7;
  color: var(--apt-color-footer-text, var(--apt-color-text-body));
}

.apt-footer-custom-content p {
  margin: 0 0 10px;
}

.apt-footer-custom-content p:last-child {
  margin-bottom: 0;
}

.apt-footer-custom-content a {
  color: var(--apt-color-footer-link, var(--apt-color-text));
  text-decoration: underline;
  transition: color var(--apt-ease-fast);
}

.apt-footer-custom-content a:hover {
  color: var(--apt-color-footer-link-hover, var(--apt-color-text));
}

.apt-footer-widget-area {
  font-size: var(--apt-footer-font-size, var(--apt-text-xs));
  color: var(--apt-color-footer-text, var(--apt-color-text-body));
}

.apt-footer-widget-area ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apt-footer-widget-area li {
  list-style: none !important;
  margin: 0 !important;
}

.apt-footer-widget-area a {
  color: var(--apt-color-footer-link, var(--apt-color-text-muted));
  text-decoration: none;
  transition: color var(--apt-ease-fast);
}

.apt-footer-widget-area a:hover {
  color: var(--apt-color-footer-link-hover, var(--apt-color-text));
  text-decoration: underline;
}

.apt-country-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--apt-footer-font-size, var(--apt-text-xxs));
  font-weight: 500;
  letter-spacing: var(--apt-tracking-wider);
  text-transform: uppercase;
  color: var(--apt-color-text);
  padding: 8px 14px;
  border: 1px solid var(--apt-color-border);
  background-color: #FFFFFF;
  cursor: pointer;
  transition: border-color var(--apt-ease-fast);
  margin-bottom: 12px;
  text-decoration: none;
}

.apt-country-selector:hover {
  border-color: var(--apt-color-text);
}

.apt-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.apt-social-link {
  font-size: var(--apt-footer-font-size, var(--apt-text-xxs));
  font-weight: 500;
  letter-spacing: var(--apt-tracking-wider);
  color: var(--apt-color-footer-social, var(--apt-color-text-muted));
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color var(--apt-ease-fast);
}

.apt-social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--apt-ease-fast);
}

.apt-social-link:hover {
  color: var(--apt-color-footer-social-hover, var(--apt-color-text));
}

.apt-social-link:hover::after {
  width: 100%;
}

/* 3. Bottom Copyright Bar */
.apt-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--apt-color-footer-border, var(--apt-color-border-subtle));
}

.apt-footer-bottom__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.apt-footer-bottom__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.apt-copyright {
  font-size: var(--apt-footer-bottom-font-size, var(--apt-text-xxs));
  letter-spacing: var(--apt-tracking-wider);
  color: var(--apt-color-footer-copyright, var(--apt-color-text-subtle));
  text-transform: uppercase;
  margin: 0;
}

.apt-footer-bottom-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: wrap;
}

.apt-footer-bottom-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.apt-footer-bottom-menu a {
  font-size: var(--apt-footer-bottom-font-size, 11px);
  letter-spacing: var(--apt-tracking-wider);
  color: var(--apt-color-footer-copyright, var(--apt-color-text-subtle));
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--apt-ease-fast);
}

.apt-footer-bottom-menu a:hover {
  color: var(--apt-color-footer-link-hover, var(--apt-color-text));
  text-decoration: underline;
}

/* Kraken discrete agency logo */
.apt-footer-kraken {
  display: inline-flex;
  align-items: center;
}

.kraken {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.68;
  transition: opacity var(--apt-ease-fast), transform var(--apt-ease-fast);
  line-height: 1;
}

.kraken:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.kraken img {
  display: block;
  height: 18px;
  max-height: 20px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
}

.apt-payment-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.apt-payment-badges span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  background-color: #FFFFFF;
  border: 1px solid var(--apt-color-border);
  color: var(--apt-color-text-muted);
  border-radius: 2px;
}

.apt-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--apt-color-footer-border, var(--apt-color-border));
  padding: 6px 12px;
  font-family: var(--apt-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apt-color-footer-link, var(--apt-color-text-muted));
  cursor: pointer;
  transition: all var(--apt-ease-fast);
}

.apt-back-to-top:hover {
  border-color: var(--apt-color-text);
  color: var(--apt-color-text);
  transform: translateY(-2px);
}

.apt-newsletter-shortcode-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================================
   Universal Product Grid & Cards (Anine Bing 1:1 Layout)
   ========================================================================== */
.apt-catalog-container,
.apt-luxury-shop-wrapper,
.woocommerce.archive .apt-content-area,
.woocommerce.archive #primary {
  width: 100%;
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .apt-catalog-container,
  .apt-luxury-shop-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .apt-catalog-container,
  .apt-luxury-shop-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.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: 40px 16px !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 {
  display: none !important;
  content: none !important;
}

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

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

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

@media (max-width: 1024px) {
  .apt-products-grid:not(.grid-cols-2),
  ul.products:not(.columns-2),
  .woocommerce ul.products:not(.columns-2) {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 14px !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,
  .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 {
    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: 12px;
  width: 100%;
}

.apt-product-card__image,
li.product img:not(.apt-site-logo-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Luxury Editorial Toast Notification System
   ========================================================================== */
.apt-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 480px;
}

.apt-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background-color: #111111;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  font-family: var(--apt-font-sans);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.apt-toast.is-leaving {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}

.apt-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.apt-toast--error .apt-toast__icon {
  color: #E57373;
}

.apt-toast--success .apt-toast__icon {
  color: #81C784;
}

.apt-toast__message {
  flex: 1;
  font-weight: 400;
}

.apt-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.apt-toast__close:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Universal WordPress Pagination (.navigation.pagination, .nav-links, .page-numbers)
   ========================================================================== */
.navigation.pagination,
.posts-navigation,
.post-navigation,
.apt-pagination {
  margin: 50px auto 70px auto;
  text-align: center;
  width: 100%;
}

.navigation.pagination .nav-links,
ul.page-numbers,
.apt-pagination ul {
  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;
}

.navigation.pagination .nav-links > *,
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;
}

.navigation.pagination .page-numbers,
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, 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;
}

.navigation.pagination .page-numbers.current,
ul.page-numbers li span.current {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
  font-weight: 500 !important;
  cursor: default !important;
}

.navigation.pagination a.page-numbers:hover,
ul.page-numbers li a:hover {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-color: #000000 !important;
}

.navigation.pagination .page-numbers.dots,
ul.page-numbers li span.dots {
  border: none !important;
  background: transparent !important;
  color: #8E8E8E !important;
  letter-spacing: 0.15em !important;
  cursor: default !important;
}

/* ==========================================================================
   Luxury Editorial WhatsApp Floating Widget
   ========================================================================== */
.apt-whatsapp-float {
  position: fixed;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-whatsapp-float--bottom-right {
  bottom: 24px;
  right: 24px;
  flex-direction: row;
}

.apt-whatsapp-float--bottom-left {
  bottom: 24px;
  left: 24px;
  flex-direction: row-reverse;
}

.apt-whatsapp-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--apt-whatsapp-bg, #000000);
  color: var(--apt-whatsapp-color, #FFFFFF);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.apt-whatsapp-float__btn:hover,
.apt-whatsapp-float__btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
  background-color: var(--apt-whatsapp-hover-bg, #222222);
  color: var(--apt-whatsapp-color, #FFFFFF);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.apt-whatsapp-float__btn:active {
  transform: translateY(0) scale(0.97);
}

.apt-whatsapp-float__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-whatsapp-float__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  display: block;
}

.apt-whatsapp-float__btn:hover .apt-whatsapp-float__icon {
  transform: scale(1.06);
}

/* Tooltip / Pill Badge */
.apt-whatsapp-float__tooltip {
  background-color: #000000;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--apt-font-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apt-whatsapp-float--bottom-right .apt-whatsapp-float__tooltip {
  transform: translateX(10px);
}

.apt-whatsapp-float--bottom-left .apt-whatsapp-float__tooltip {
  transform: translateX(-10px);
}

.apt-whatsapp-float:hover .apt-whatsapp-float__tooltip,
.apt-whatsapp-float__btn:focus-visible ~ .apt-whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}


