/* Vel Sports — button-only overrides (green #84c440 stays via SCSS tokens) */

:root {
  --vel-btn: #0d27f8;
  --vel-btn-hover: #84c440;
}

/* Buttons: blue */
.aq-btn-black:not(.border-btn):not(.blur-bg),
.aq-btn-black.btn-red-bg,
.aq-btn-white,
.aq-btn-subscribe,
.aq-product-details-add-to-cart-btn,
.aq-product-details-buy-now-btn,
.aq-card-modal-style-4-get-btn {
  background-color: var(--vel-btn) !important;
  border-color: var(--vel-btn) !important;
  color: var(--aq-common-white) !important;
}

.aq-btn-black.border-btn {
  background-color: transparent !important;
  border-color: var(--vel-btn) !important;
  color: var(--aq-common-black) !important;
}

.aq-btn-black.blur-bg {
  background-color: var(--vel-btn) !important;
  border-color: var(--vel-btn) !important;
  color: var(--aq-common-white) !important;
  backdrop-filter: none;
}

/* Button hovers: green */
.aq-btn-black:not(.border-btn):hover,
.aq-btn-black.btn-red-bg:hover,
.aq-btn-white:hover,
.aq-btn-subscribe:hover,
.aq-product-details-add-to-cart-btn:hover,
.aq-product-details-buy-now-btn:hover,
.aq-card-modal-style-4-get-btn:hover,
.aq-btn-black.blur-bg:hover {
  background-color: var(--vel-btn-hover) !important;
  border-color: var(--vel-btn-hover) !important;
  color: var(--aq-common-white) !important;
}

.aq-btn-black.border-btn:hover {
  background-color: var(--vel-btn-hover) !important;
  border-color: var(--vel-btn-hover) !important;
  color: var(--aq-common-white) !important;
}

/* Product card actions must sit above the image link overlay */
.aq-product-main .aq-product-thumb .aq-product-action {
  z-index: 5;
  pointer-events: auto;
}

.aq-product-main .aq-product-thumb > a {
  position: relative;
  z-index: 1;
  display: block;
}

.aq-product-main .aq-product-thumb .aq-img-hover {
  pointer-events: none;
}

.aq-quickview-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Preloader: flex-center only — kill theme absolute + inset-inline-start quirks */
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  z-index: 999999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Permanent dismiss — survives remounts / jQuery fadeOut races on mobile */
html.preloader-done #loading,
#loading[data-dismissed="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

#loading-center,
#loading-center-absolute {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  inset-block-start: auto !important;
  inset-block-end: auto !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  transform: none !important;
  margin: 0 !important;
}

#loading .aq-preloader-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Kinetic wordmark loader: logo + diagonal shine sweep + indeterminate bar */
.aq-logo-loader {
  --loader-size: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  line-height: normal;
}

.aq-logo-loader-mark {
  position: relative;
  display: block;
  height: var(--loader-size);
}

.aq-logo-loader-mark img {
  display: block;
  height: 100%;
  width: auto;
}

/* Shine band clipped to the logo letters via the logo itself as a mask */
.aq-logo-loader-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: url("../img/logo/logo.png");
  mask-image: url("../img/logo/logo.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.aq-logo-loader-shine::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-18deg);
  animation: aq-logo-shine 1.7s ease-in-out infinite;
}

@keyframes aq-logo-shine {
  to {
    transform: translateX(370%) skewX(-18deg);
  }
}

.aq-logo-loader-bar {
  position: relative;
  align-self: stretch;
  height: 3px;
  border-radius: 999px;
  background: rgba(13, 39, 248, 0.12);
  overflow: hidden;
}

.aq-logo-loader-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vel-btn), var(--vel-btn-hover));
  animation: aq-logo-loader-bar 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes aq-logo-loader-bar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (max-width: 767px) {
  .aq-logo-loader {
    --loader-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-logo-loader-shine::before,
  .aq-logo-loader-bar::before {
    animation: none;
  }

  .aq-logo-loader-bar::before {
    width: 100%;
  }
}

.aq-product-color ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.aq-product-color-large ul {
  gap: 8px;
}

.aq-product-main .aq-product-thumb > a {
  display: block;
  height: 100%;
}

.aq-product-main .aq-product-thumb .aq-product-img,
.aq-product-main .aq-product-thumb .aq-img-hover {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.aq-product-color .aq-product-color-item {
  cursor: pointer;
}

[data-variant-selectors="true"] .aq-product-details-size-list button.is-active {
  color: var(--aq-common-white);
  background-color: var(--aq-common-black);
}

[data-variant-selectors="true"] .aq-product-details-size-list button:focus {
  outline: none;
}

[data-variant-selectors="true"] .aq-product-details-size-list button:not(.is-active):focus,
[data-variant-selectors="true"] .aq-product-details-size-list button:not(.is-active):hover {
  color: var(--aq-common-black);
  background-color: transparent;
}

[data-variant-selectors="true"] .aq-product-details-size-list button.is-active:hover {
  color: var(--aq-common-white);
  background-color: var(--aq-common-black);
}

[data-managed-gallery="true"] .product-slider-nav.product-detail-gallery-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

@media only screen and (min-width: 992px) and (max-width: 1199px),
  only screen and (min-width: 768px) and (max-width: 991px),
  (max-width: 767px) {
  [data-managed-gallery="true"] .product-slider-nav.product-detail-gallery-nav {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

[data-managed-gallery="true"] .product-detail-gallery-nav .product-slider-nav-img {
  flex: 0 0 auto;
}

@media only screen and (min-width: 1200px) {
  [data-managed-gallery="true"] .product-slider-nav.product-detail-gallery-nav {
    max-height: 780px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 20, 20, 0.25) transparent;
  }
}

@media only screen and (max-width: 1199px) {
  [data-managed-gallery="true"] .product-slider-nav.product-detail-gallery-nav,
  [data-managed-gallery="true"] .product-slider-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  [data-managed-gallery="true"] .product-detail-gallery-nav .product-slider-nav-img {
    scroll-snap-align: start;
  }
}

.product-slider-nav-img.is-active {
  border-color: var(--aq-common-black);
}

.product-detail-gallery-prev,
.product-detail-gallery-next {
  opacity: 0;
  visibility: hidden;
}

.product-slider-main-wrap:hover .product-detail-gallery-prev,
.product-slider-main-wrap:hover .product-detail-gallery-next {
  opacity: 1;
  visibility: visible;
}

/* Header: taller bar + larger logo slightly left of center on mobile / tablet (no translateX) */
@media (max-width: 1199px) {
  .aq-header-area {
    min-height: 50px;
    padding: 9px 0;
  }

  .aq-header-area > .container > .row {
    position: relative;
  }

  .aq-header-area .aq-header-logo {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
    z-index: 2;
    /* reserve room: hamburger on the left, 4 icons on the right (tablet) */
    padding: 0 170px 0 55px;
    text-align: center;
    pointer-events: none;
  }

  .aq-header-area .aq-header-logo a {
    pointer-events: auto;
    display: inline-block;
    max-width: 100%;
  }

  .aq-header-area .aq-header-logo img {
    width: auto !important;
    height: auto !important;
    max-height: 48px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  /* phones only show search + cart on the right */
  .aq-header-area .aq-header-logo {
    padding: 0 95px 0 55px;
  }
}

/* Offcanvas: pin header/footer to panel width (not full viewport) */
.aq-offcanvas-wrap .aq-offcanvas-top,
.aq-offcanvas-wrap .aq-offcanvas-bottom {
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  width: 380px !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.aq-offcanvas-wrap .aq-offcanvas-top {
  top: 0 !important;
}

.aq-offcanvas-wrap .aq-offcanvas-bottom {
  bottom: 0 !important;
}

.aq-offcanvas-top .aq-offcanvas-close {
  flex: 0 0 auto;
}

.aq-offcanvas-top .aq-offcanvas-logo {
  flex: 1 1 auto;
  min-width: 0;
}

.aq-offcanvas-top .aq-offcanvas-logo a {
  display: inline-flex;
  align-items: center;
}

.aq-offcanvas-top .aq-offcanvas-logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 220px;
}

@media (max-width: 767px) {
  .aq-offcanvas-wrap {
    width: 100%;
    max-width: 100%;
  }

  .aq-offcanvas-wrap .aq-offcanvas-top,
  .aq-offcanvas-wrap .aq-offcanvas-bottom {
    width: 100% !important;
  }

  .aq-offcanvas-wrap .aq-offcanvas-top {
    padding: 14px 18px;
  }

  .aq-offcanvas-top .aq-offcanvas-logo img {
    height: 48px;
    max-width: 240px;
  }
}

/* Desktop nav: keep items on one line */
@media (min-width: 1200px) {
  .aq-header-menu > nav > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }

  .aq-header-menu > nav > ul > li {
    margin: 0 10px;
    flex-shrink: 0;
  }
}

@media (min-width: 1400px) {
  .aq-header-menu > nav > ul > li {
    margin: 0 14px;
  }
}

@media (min-width: 1600px) {
  .aq-header-menu > nav > ul > li {
    margin: 0 18px;
  }
}

.aq-header-right-options > ul > li > a,
.aq-header-right-options > ul > li > button,
.aq-product-title a,
.aq-product-details-title,
.aq-section-title,
.aq-product-title {
  color: var(--aq-common-black);
}

.aq-section-title.aq-text-white {
  color: var(--aq-common-white);
}

/* Product detail gallery — theme locks .product-slider-for-img at 580px; clip on mobile */
@media (max-width: 1199px) {
  .aq-zoom-result {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    inset-inline-start: 0 !important;
  }

  [data-managed-gallery="true"].product-details-slider-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }

  [data-managed-gallery="true"] .product-slider-main-wrap,
  [data-managed-gallery="true"] .product-slider-main,
  [data-managed-gallery="true"] .product-slider-for-img {
    width: 100% !important;
    max-width: 100%;
  }

  [data-managed-gallery="true"] .product-slider-for-img {
    height: auto;
  }

  [data-managed-gallery="true"] .product-slider-for-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }

  [data-managed-gallery="true"] .product-slider-nav.product-detail-gallery-nav {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .aq-product-details-wrap.ml-30 {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
  }
}

@media (max-width: 767px) {
  .aq-product-details-thumbnails-style .container {
    overflow-x: hidden;
  }

  .aq-product-details-thumbnails-style .row {
    margin-left: 0;
    margin-right: 0;
  }

  .aq-product-details-thumbnails-style .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }

  [data-managed-gallery="true"] .product-slider-nav-img {
    width: 64px;
    height: 96px;
  }

  /* Product details: qty + CTAs full width */
  .aq-product-details-wrap .aq-product-details-action-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .aq-product-details-wrap .aq-product-details-quantity,
  .aq-product-details-wrap .aq-product-quantity {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
    margin-inline-end: 0 !important;
  }

  .aq-product-details-wrap .aq-cart-input[type="text"] {
    width: 100%;
  }

  .aq-product-details-wrap .aq-product-details-add-to-cart {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .aq-product-details-wrap .aq-product-details-add-to-cart-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .aq-product-details-wrap .aq-btn-black.btn-square {
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

/* Layout switcher icons (inline SVG substitutes for missing grid-icon PNGs) */
.aq-layout-switcher-icon svg {
  opacity: 0.4;
  transition: opacity 0.3s ease;
  display: block;
}

.aq-layout-switcher-item.active .aq-layout-switcher-icon svg {
  opacity: 1;
}

.aq-layout-switcher-item {
  background: none;
  border: none;
  padding: 0;
}

#aq-listLayout.is-visible {
  display: block;
}

button.aq-product-filter-btn {
  background-color: transparent;
}

/* Text/link hovers: keep original color (no #0d27f8 via --aq-common-red/--aq-common-paste) */
.aq-btn-link:hover {
  color: var(--aq-common-black);
}
.product-view-details-btn:hover {
  color: var(--aq-common-black);
}
.nice-select .list .option:hover {
  color: var(--aq-common-black);
}
.aq-wishlist-popup-remove:hover,
.aq-cartmini-remove:hover {
  color: inherit;
}

/* Cart mini close: keep circular flex control when FA would override display */
button.aq-cartmini-close-icon {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

button.aq-cartmini-close-icon svg {
  display: block;
  flex-shrink: 0;
}

/* Cart drawer: theme sets 380px on mobile — wider than many phones, clips left padding */
@media (max-width: 767px) {
  .aq-cartmini-area {
    width: 100%;
    max-width: 100%;
    inset-inline-end: 0;
    inset-inline-start: 0;
  }

  .aq-cartmini-header {
    padding: 20px 16px 0;
  }

  .aq-cartmini-body,
  .aq-cartmini-footer {
    padding: 20px 16px;
  }

  .aq-cartmini-product-thumbnail {
    margin-inline-end: 14px;
  }

  .aq-cartmini-close-icon {
    inset-inline-end: 12px;
  }
}

/* Address cards — layout + button reset (Edit/Delete are <button>s) */
.aq-dashboard-addrs-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.aq-dashboard-addrs-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.aq-dashboard-addrs-wrap {
  gap: 16px 24px;
  align-items: flex-start;
}

.aq-dashboard-addrs-body {
  flex: 1 1 auto;
  min-width: 0;
}

.aq-dashboard-addrs-actions {
  flex-shrink: 0;
  flex-wrap: wrap;
}

button.aq-dashboard-addrs-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1.2;
  font: inherit;
}

.aq-dashboard-addrs-info-item {
  align-items: flex-start;
  min-width: 0;
}

.aq-dashboard-addrs-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.aq-dashboard-addrs-info-item span,
.aq-dashboard-addrs-info-item p {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.aq-dashboard-addrs-promo {
  width: 100%;
  box-sizing: border-box;
}

.aq-dashboard-addrs-promo-content {
  flex: 1 1 auto;
  min-width: 0;
}

.aq-dashboard-addrs-card .aq-form-control,
.aq-dashboard-addrs-card .aq-login-input-box,
.aq-dashboard-addrs-card select.aq-form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.aq-dashboard-addrs-card .row {
  margin-left: -8px;
  margin-right: -8px;
}

.aq-dashboard-addrs-card .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 767px) {
  .aq-dashboard-addrs-wrapper {
    padding: 16px;
  }

  .aq-dashboard-addrs-card {
    padding: 18px 16px;
  }

  .aq-dashboard-addrs-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .aq-dashboard-addrs-actions {
    width: 100%;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(20, 20, 20, 0.06);
  }

  .aq-dashboard-addrs-promo {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 14px;
  }

  .aq-dashboard-addrs-btn-add {
    width: 100%;
    justify-content: center;
  }

  .aq-dashboard-addrs-name {
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
  }
}
.aq-wishlist-popup-title:hover,
.aq-search-cat a:hover,
.aq-header-right-options > ul > li button:hover,
.aq-header-right-options > ul > li a:hover,
.aq-blog-inner-item-link a:hover,
.aq-megamenu-img-item:hover .aq-megamenu-img-title,
.aq-footer-contact-item a.fs-bold:hover,
.aq-product-title a:hover,
.aq-product-details-action-sm-btn:hover,
.aqf-summer-slider-arrow button:hover,
.aqf-deals-slider-arrow button:hover,
.med-header-menu-list .menu-shop-content .aq-product-title a:hover,
.med-categories-wrap .aqf-categories-item:hover span,
.med-deals-slider-style.grc-product-style .aq-product-title a:hover,
.aq-card-modal-style-social li a:hover,
.aq-cart-title a:hover,
.aq-contact-info-wrap a:hover,
.aq-store-office-text:hover,
.aq-store-office-link:hover,
.aqf-categories-item:hover span,
.aqf-collection-title:hover,
.postbox-details-navigation-wrap:hover .postbox-details-navigation-content h2,
.postbox-details-navigation-wrap:hover .postbox-details-navigation-btn {
  color: var(--aq-common-black);
}
.rc-post-title a:hover,
.aq-blog-title a:hover {
  color: inherit;
}
.aq-sidebar-widget-category ul li a:hover {
  color: rgba(20, 20, 20, 0.84);
}
.aq-footer-contact-item a:hover,
.aq-footer-widget-menu ul li:hover a,
.med-footer-style .aq-footer-widget-menu ul li:hover a,
.med-footer-style .aq-footer-contact-item a:hover {
  color: var(--aq-common-black-light);
}
.product-details-policy-info li a:hover,
.aq-vendor-contact-info ul li:hover a {
  color: #393a3c;
}
.aq-vendor-contact-info ul li:hover span {
  color: var(--aq-common-black);
}
.med-header-menu-list .mega-menu-list ul li a:hover {
  color: #55585b;
}
.aq-product-sidebar-widget-categories ul > li a:hover {
  color: rgba(20, 20, 20, 0.8);
}

/* Mockup-style customization studio */
.vel-customize-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.vel-mock-studio {
  --mock-bg: #f4f0ea;
  --mock-panel: #fffdf9;
  --mock-ink: #1c1a17;
  --mock-line: #d9d2c8;
  --mock-accent: #8b1e1e;
  min-height: 70vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(180deg, #f7f3ed 0%, #ebe4db 100%);
  padding: 20px 16px 48px;
  color: var(--mock-ink);
  box-sizing: border-box;
}

.vel-mock-studio__header {
  max-width: 1100px;
  margin: 0 auto 14px;
}

.vel-mock-studio__header a {
  color: inherit;
  opacity: 0.7;
  font-size: 14px;
}

.vel-mock-studio__body {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.vel-mock-stage {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--mock-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vel-mock-stage__top {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vel-mock-views {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--mock-line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.vel-mock-views button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.vel-mock-views button.is-active {
  background: var(--mock-ink);
  color: #fff;
}

.vel-mock-garment-colors {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vel-mock-garment-colors button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
}

.vel-mock-garment-colors button.is-active {
  box-shadow: 0 0 0 2px var(--mock-ink);
}

.vel-mock-stage .vel-design-mockup {
  background: transparent;
  border: none;
}

.vel-mock-canvas-scaler {
  width: min(520px, 100%);
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 520 / 620;
  position: relative;
}

.vel-mock-canvas-scaler .vel-design-mockup {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.vel-mock-canvas-scaler .vel-design-mockup__base,
.vel-mock-canvas-scaler .vel-design-mockup__layer {
  width: 100%;
  height: 100%;
}

.vel-mock-canvas-scaler .vel-design-mockup__layer .canvas-container,
.vel-mock-canvas-scaler .vel-design-mockup__layer canvas {
  width: 100% !important;
  height: 100% !important;
}

.vel-mock-stage__hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.65;
  text-align: center;
  max-width: 100%;
  padding-inline: 4px;
}

.vel-mock-panel {
  background: var(--mock-panel);
  border: 1px solid var(--mock-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.vel-mock-panel__step {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  font-weight: 600;
}

.vel-mock-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.vel-mock-tabs button {
  border: 1px solid var(--mock-line);
  background: #fff;
  padding: 8px 4px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.2;
}

.vel-mock-tabs button.is-active {
  background: var(--mock-ink);
  color: #fff;
  border-color: var(--mock-ink);
}

.vel-mock-tool {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vel-mock-tool__help,
.vel-mock-tool__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.7;
}

.vel-mock-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vel-mock-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--mock-line);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.vel-mock-action:hover {
  border-color: var(--mock-ink);
}

.vel-mock-action__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1ece5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.vel-mock-shape-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.vel-mock-shape-grid button {
  border: 1px solid var(--mock-line);
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.vel-mock-shape-grid button:hover {
  border-color: var(--mock-ink);
}

.vel-mock-editor {
  border-top: 1px solid var(--mock-line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vel-mock-editor__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.vel-mock-editor__field input[type="text"],
.vel-mock-editor__field input[type="number"],
.vel-mock-editor__field select,
.vel-mock-editor__field textarea {
  border: 1px solid var(--mock-line);
  padding: 9px 10px;
  background: #fff;
}

.vel-mock-editor__field textarea {
  min-height: 72px;
  resize: vertical;
  font: inherit;
}

.vel-mock-editor__field input[type="range"] {
  width: 100%;
}

.vel-mock-editor__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vel-mock-editor__colors button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
}

.vel-mock-editor__colors button.is-active {
  box-shadow: 0 0 0 2px var(--mock-ink);
}

.vel-mock-color-pick {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--mock-line);
  cursor: pointer;
  display: inline-flex;
}

.vel-mock-color-pick input {
  border: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  transform: translate(-6px, -6px);
  cursor: pointer;
}

.vel-mock-edit-bar,
.vel-mock-toggles,
.vel-mock-effect-grid,
.vel-mock-art-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vel-mock-edit-bar button,
.vel-mock-toggles button,
.vel-mock-effect-grid button,
.vel-mock-art-cats button,
.vel-mock-mini {
  border: 1px solid var(--mock-line);
  background: #fff;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.vel-mock-edit-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vel-mock-toggles button.is-active,
.vel-mock-effect-grid button.is-active,
.vel-mock-art-cats button.is-active {
  background: var(--mock-ink);
  color: #fff;
  border-color: var(--mock-ink);
}

.vel-mock-section-label {
  margin: 4px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.65;
}

.vel-mock-art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.vel-mock-art-grid button {
  border: 1px solid var(--mock-line);
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.vel-mock-art-grid button:hover {
  border-color: var(--mock-ink);
}

.vel-mock-art-grid img {
  width: 100%;
  height: 36px;
  object-fit: contain;
}

.vel-mock-remove {
  border: 1px solid #c62828;
  color: #c62828;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.vel-mock-order {
  border-top: 1px solid var(--mock-line);
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--mock-panel);
  box-shadow: 0 -8px 12px -8px rgba(28, 26, 23, 0.12);
}

.vel-mock-order__name {
  margin: 0;
  font-weight: 600;
}

.vel-mock-order__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.vel-mock-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vel-mock-sizes button {
  border: 1px solid var(--mock-line);
  background: #fff;
  min-width: 40px;
  padding: 7px 10px;
  cursor: pointer;
}

.vel-mock-sizes button.is-active {
  background: var(--mock-ink);
  color: #fff;
  border-color: var(--mock-ink);
}

.vel-mock-order__error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.vel-mock-cart {
  border: 0;
  background: var(--mock-ink);
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
}

.vel-mock-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .vel-mock-studio__body {
    grid-template-columns: 1fr;
  }

  .vel-mock-panel {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .vel-mock-studio {
    padding: 12px 12px 88px;
  }

  .vel-mock-studio__body {
    gap: 12px;
  }

  .vel-mock-stage {
    padding: 12px;
  }

  .vel-mock-stage__top {
    flex-wrap: wrap;
    justify-content: center;
  }

  .vel-mock-panel {
    padding: 12px;
  }

  .vel-mock-tabs button {
    font-size: 10px;
    padding: 8px 2px;
  }

  .vel-mock-editor__field input[type="text"],
  .vel-mock-editor__field input[type="number"],
  .vel-mock-editor__field select,
  .vel-mock-editor__field textarea {
    max-width: 100%;
  }
}

.vel-design-studio {
  --vel-design-border: #ddd;
  --vel-design-bg: #f6f5f3;
  --vel-design-panel: #ffffff;
  background:
    linear-gradient(180deg, #faf8f5 0%, #f0eeea 100%);
  min-height: 70vh;
  padding: 24px 16px 48px;
}

.vel-design-studio__top {
  max-width: 1280px;
  margin: 0 auto 20px;
}

.vel-design-studio__back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.vel-design-studio__title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin: 0 0 4px;
}

.vel-design-studio__price {
  margin: 0;
  font-weight: 600;
}

.vel-design-studio__hint {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.72;
  max-width: 42rem;
}

.vel-design-studio__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.vel-design-toolbar,
.vel-design-product-panel {
  background: var(--vel-design-panel);
  border: 1px solid var(--vel-design-border);
  padding: 14px;
}

.vel-design-toolbar__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.vel-design-toolbar__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.vel-design-toolbar button,
.vel-design-text-panel__toggles button {
  border: 1px solid var(--vel-design-border);
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.vel-design-toolbar button.is-active,
.vel-design-text-panel__toggles button.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.vel-design-toolbar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vel-design-studio__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vel-design-canvas-wrap {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: auto;
}

.vel-design-mockup {
  position: relative;
  margin: 0 auto;
  background: #ebe8e3;
  border: 1px solid var(--vel-design-border);
  overflow: hidden;
  user-select: none;
}

.vel-design-mockup__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.vel-design-mockup__layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.vel-design-mockup__layer .canvas-container,
.vel-design-mockup__layer canvas {
  width: 100% !important;
  height: 100% !important;
}

.vel-design-mockup__print-zone {
  position: absolute;
  z-index: 3;
  border: 1.5px dashed rgba(20, 20, 20, 0.55);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  box-sizing: border-box;
}

.vel-design-mockup__print-zone.is-editable {
  pointer-events: none;
  touch-action: none;
  border-color: rgba(13, 39, 248, 0.65);
  background: rgba(13, 39, 248, 0.04);
}

.vel-design-mockup__print-zone span,
.vel-design-mockup__print-zone-move {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  color: #333;
  border: 0;
  cursor: move;
  pointer-events: auto;
  touch-action: none;
}

.vel-design-mockup__print-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #0d27f8;
  border: 2px solid #fff;
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: none;
  z-index: 4;
}

.vel-design-mockup__print-handle.is-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.vel-design-mockup__print-handle.is-n { left: 50%; top: -6px; margin-left: -6px; cursor: ns-resize; }
.vel-design-mockup__print-handle.is-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.vel-design-mockup__print-handle.is-e { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.vel-design-mockup__print-handle.is-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.vel-design-mockup__print-handle.is-s { left: 50%; bottom: -6px; margin-left: -6px; cursor: ns-resize; }
.vel-design-mockup__print-handle.is-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.vel-design-mockup__print-handle.is-w { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }


.vel-design-canvas-wrap canvas {
  max-width: 100%;
  height: auto !important;
}

.vel-design-side-panel {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--vel-design-border);
  padding: 14px;
}

.vel-design-side-panel h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.vel-design-side-panel__sub {
  margin: 12px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.vel-design-side-panel__hint {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.7;
  margin: 0 0 12px;
}

.vel-design-side-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
}

.vel-design-side-panel input,
.vel-design-side-panel select {
  border: 1px solid var(--vel-design-border);
  padding: 7px 8px;
}

.vel-design-side-panel__primary {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 9px 10px;
  cursor: pointer;
}

.vel-design-effect-grid,
.vel-design-art-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.vel-design-effect-grid button,
.vel-design-art-cats button {
  border: 1px solid var(--vel-design-border);
  background: #fff;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.vel-design-effect-grid button.is-active,
.vel-design-art-cats button.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.vel-design-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.vel-design-art-tile {
  border: 1px solid var(--vel-design-border);
  background: #fafafa;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.vel-design-art-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.vel-design-art-tile span {
  font-size: 11px;
}

.vel-design-studio__views {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.vel-design-text-panel {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--vel-design-border);
  padding: 12px 14px;
}

.vel-design-text-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.vel-design-text-panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.vel-design-text-panel input[type="number"] {
  width: 80px;
  border: 1px solid var(--vel-design-border);
  padding: 4px 6px;
}

.vel-design-text-panel__toggles {
  display: flex;
  gap: 8px;
}

.vel-design-product-panel__eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.vel-design-product-panel h3 {
  font-size: 1.1rem;
  margin: 4px 0 8px;
}

.vel-design-product-panel__price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.vel-design-product-panel__qty {
  margin: 16px 0;
}

.vel-design-product-panel__qty label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.vel-design-product-panel__qty input {
  width: 100%;
  border: 1px solid var(--vel-design-border);
  padding: 8px 10px;
}

.vel-design-product-panel__error {
  color: #b42318;
  font-size: 13px;
  margin-bottom: 12px;
}

.vel-design-product-panel__hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.7;
}

@media (max-width: 991px) {
  .vel-design-studio__layout {
    grid-template-columns: 1fr;
  }

  .vel-design-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vel-design-toolbar__group {
    margin-bottom: 0;
  }
}

/* Designer hub: 2-up mobile grid + CTA below price (no overlap) */
.designer-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 28px;
}

.designer-hub-card__cta {
  margin-top: 12px;
  text-align: center;
}

.designer-hub-open-btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .designer-hub-card {
    margin-bottom: 32px;
  }

  .designer-hub-card__cta {
    margin-top: 12px;
  }

  .designer-hub-open-btn {
    display: inline-block;
    padding: 12px 18px;
    font-size: 12px;
  }
}

/*
 * Pre-Swiper layout: theme .swiper-slide defaults to width:100%, so product /
 * category carousels look full-bleed until JS inits. Cap widths as a fallback.
 */
.aq-product-active:not(.swiper-initialized) .swiper-wrapper,
.aq-shopgram-active:not(.swiper-initialized) .swiper-wrapper,
.aqf-arrivals-product-active:not(.swiper-initialized) .swiper-wrapper,
.aqf-category-2-active:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

.aq-product-active:not(.swiper-initialized) .swiper-slide {
  width: 25%;
  max-width: 25%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding-inline: 12px;
}

.aq-shopgram-active:not(.swiper-initialized) .swiper-slide,
.aqf-arrivals-product-active:not(.swiper-initialized) .swiper-slide {
  width: 20%;
  max-width: 20%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.aqf-category-2-active:not(.swiper-initialized) .swiper-slide {
  width: 33.333%;
  max-width: 33.333%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding-inline: 8px;
}

@media (max-width: 1199px) {
  .aq-product-active:not(.swiper-initialized) .swiper-slide {
    width: 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 991px) {
  .aq-product-active:not(.swiper-initialized) .swiper-slide,
  .aqf-category-2-active:not(.swiper-initialized) .swiper-slide {
    width: 50%;
    max-width: 50%;
  }

  .aq-shopgram-active:not(.swiper-initialized) .swiper-slide,
  .aqf-arrivals-product-active:not(.swiper-initialized) .swiper-slide {
    width: 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 575px) {
  .aq-product-active:not(.swiper-initialized) .swiper-slide,
  .aq-shopgram-active:not(.swiper-initialized) .swiper-slide,
  .aqf-arrivals-product-active:not(.swiper-initialized) .swiper-slide,
  .aqf-category-2-active:not(.swiper-initialized) .swiper-slide {
    width: 80%;
    max-width: 80%;
  }
}

/* Auth modals must sit above theme body-overlay (z-index 99999978) */
.aq-login-modal-style .modal {
  z-index: 1000000001;
}

.aq-login-modal-style .modal .modal-dialog {
  width: 100%;
  max-width: min(480px, calc(100% - 24px));
  margin-top: 16px;
  margin-bottom: 16px;
}

.aq-login-modal-style .modal .modal-content {
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.aq-login-modal-style .modal .aq-login-wrapper {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .aq-login-modal-style .modal .aq-login-wrapper {
    padding: 28px 20px 24px;
  }

  .aq-login-modal-style .modal .modal-dialog {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .aq-login-modal-style .modal .modal-content,
  .aq-login-modal-style .modal .aq-login-wrapper {
    max-height: calc(100dvh - 24px);
  }
}

body .modal-backdrop {
  z-index: 1000000000;
}
