/* =========================================================================
   assets/custom/shop.css — Storefront extras (loaded BEFORE shop-ui.css)

   Prefer --ds-* tokens when adding rules. shop-ui.css wins on conflicts.
   See docs/CSS_AUDIT_REPORT.md
   ========================================================================= */

/* ==========================================================================
   Shop flash messages (moved from assets/custom/custom.css — admin-only load)
   ========================================================================== */

.shop-flash-messages {
  margin: 16px auto 0;
  max-width: 1170px;
  padding: 0 15px;
}

.shop-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.shop-flash--success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.shop-flash--warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.shop-flash--error {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.shop-flash--info {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.shop-flash__icon {
  flex: 0 0 auto;
  font-size: 18px;
  margin-top: 1px;
}

.shop-flash__body {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-flash__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  opacity: 0.65;
  cursor: pointer;
  padding: 0;
}

.shop-flash__close:hover,
.shop-flash__close:focus {
  opacity: 1;
}

/* ==========================================================================
   Shop product cards v2 (homepage + listing grid)
   ========================================================================== */

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 24px;
}
/* Listing page uses .shop-listing-layout — never treat it as a product card grid */
.shop-listing-layout.shop-products-grid,
.shop-autima-list .shop-listing-layout {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}
@media (min-width: 768px) {
  .shop-products-grid:not(.shop-listing-layout) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 992px) {
  .shop-products-grid:not(.shop-listing-layout) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.shop-products-grid__item {
  min-width: 0;
}

/* Card */
.shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
.shop-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Image — uniform square media; full product visible (no crop or stretch) */
.shop-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border-bottom: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-card__img-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #fafafa;
  cursor: pointer;
}
.shop-card__img-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  box-sizing: border-box;
  padding: 12px;
  background: transparent;
  transition: transform 0.25s ease;
}
.shop-card__img-link:hover img,
.shop-card__img-link:focus img,
.shop-card__img-link.is-reveal img,
.shop-card:focus-within .shop-card__img-link img {
  object-fit: contain;
  transform: scale(1.03);
  background: transparent;
}
.shop-card__img-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(
    to bottom,
    transparent 70%,
    rgba(0, 0, 0, 0.04) 100%
  );
}
.shop-card__img-link:hover::after,
.shop-card__img-link.is-reveal::after {
  opacity: 1;
}

/* Tags */
.shop-card__tags {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  pointer-events: none;
  z-index: 2;
}
.shop-card__tag--sale {
  margin-left: auto;
  background: #e33237;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-card .shop-stock-badge {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 4px;
}
.shop-stock-in {
  background: #fff;
  color: #2e7d32;
  border: 1px solid #81c784;
}
.shop-stock-low {
  background: #fff;
  color: #e65100;
  border: 1px solid #ffb74d;
}
.shop-stock-out {
  background: #fff;
  color: #c62828;
  border: 1px solid #e57373;
}

/* Body */
.shop-card__body {
  flex: 1 1 auto;
  padding: 14px 14px 10px;
}
.shop-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.shop-card__title a {
  color: #1a1a1a;
  text-decoration: none;
}
.shop-card__title a:hover {
  color: #000;
  text-decoration: none;
}
.shop-card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}
.shop-card__meta a {
  color: #666;
}
.shop-card__meta a:hover {
  color: #222;
}
.shop-card__meta-sep {
  margin: 0 4px;
  color: #ccc;
}
.shop-card__excerpt {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #888;
}
#results .shop-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.shop-card__footer {
  padding: 12px 14px 14px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.shop-card__price {
  margin-bottom: 10px;
  line-height: 1.3;
}
.shop-card__price-old {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}
.shop-card__price-current {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}
.shop-card__qty {
  margin-bottom: 8px;
}
.shop-card__btns .btn-theme {
  font-weight: 600;
}

/* Listing grid (#results) */
#results.grid {
  display: block;
  width: 100%;
}
#results .product-container.grid-item {
  width: 50%;
  padding: 0 8px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  #results .product-container.grid-item {
    width: 33.333%;
  }
}
@media (min-width: 992px) {
  #results .product-container.grid-item {
    width: 25%;
  }
}
#results .product-container .shop-card {
  margin: 0;
}

/* Hide legacy product chrome inside new cards */
.shop-card .badge.badge-right,
.shop-card .image_overlay,
.shop-card .stats-container,
.shop-card .priceblock,
.shop-card > .product-top,
.shop-card > .product-bottom {
  display: none !important;
}

/* Page headings */
.page-contents h1.margin-top-no {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-contents h2.h3-styled {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Mobile quick-action bar — hidden on desktop (do not use display:flex outside media query) */
.shop-mobile-bar {
  display: none !important;
}
.shop-whatsapp-float {
  display: none !important;
}

/* Homepage category shortcuts */
.shop-category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
.shop-category-chip {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.shop-category-chip:hover,
.shop-category-chip:focus {
  color: #fff;
  background: #337ab7;
  border-color: #337ab7;
  text-decoration: none;
}
.shop-home-cta {
  margin: 20px 0 8px;
}
.shop-home-trust .featurs-item {
  margin-bottom: 14px;
}

/* Desktop WhatsApp floating button */
@media (min-width: 768px) {
  .shop-whatsapp-float {
    display: block !important;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1035;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .shop-whatsapp-float:hover,
  .shop-whatsapp-float:focus {
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    text-decoration: none;
  }
  .shop-home-trust .featurs-item {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .shop-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
  }
  .shop-mobile-bar > .shop-mobile-bar-item {
    flex: 1 1 33.333%;
    width: 33.333%;
    max-width: 33.333%;
    min-width: 0;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 50px;
    padding: 8px 6px;
    color: #444;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    border-right: 1px solid #eee;
  }
  .shop-mobile-bar > .shop-mobile-bar-item:last-child {
    border-right: none;
  }
  .shop-mobile-bar-item:hover,
  .shop-mobile-bar-item:focus {
    color: #222;
    text-decoration: none;
    background: #f7f7f7;
  }
  .shop-mobile-bar-item i {
    flex-shrink: 0;
    font-size: 18px;
    margin: 0;
    line-height: 1;
  }
  .shop-mobile-bar-item > span:not(.shop-mobile-cart-count) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shop-mobile-wa,
  .shop-mobile-wa:hover,
  .shop-mobile-wa:focus {
    color: #25d366;
  }
  .shop-mobile-cart-count:not(:empty) {
    position: static;
    flex-shrink: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 2px;
    border-radius: 8px;
    background: #d9534f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  body.has-shop-mobile-bar {
    padding-bottom: 52px;
  }
  body.has-shop-mobile-bar .back-to-top {
    bottom: 64px;
  }
  body.has-shop-mobile-bar .cookie-warning {
    bottom: 56px;
    left: 8px;
    right: 8px;
    max-width: none;
  }
}

.breadcrumb-container {
  margin-bottom: 0;
}
.breadcrumb-container .breadcrumb {
  margin-bottom: 0;
}

/* ==========================================================================
   Hero slider (responsive)
   ========================================================================== */
.shop-hero-img {
  width: 100%;
  max-width: 1140px;
  height: 375px;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}
.slider-container .carousel-inner > .item {
  text-align: center;
  background: #222;
}
.slider-container .carousel-caption {
  left: 10%;
  right: 10%;
  padding-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Mobile-friendly shop (homepage + global shop)
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
}
body.shop-site {
  overflow-x: hidden;
}

@media (max-width: 767px) {
  /* Header */
  .top-header {
    padding: 6px 0;
  }
  .top-header .container > .row > .col-xs-12 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .top-header .nav.pull-right {
    float: none !important;
    text-align: right;
    margin: 0 0 0 auto;
  }
  .top-header .nav.pull-right > li {
    float: none;
    display: inline-block;
    margin: 2px 0 2px 8px;
  }
  .top-header .nav > li > a,
  .top-header .btn.dropdown-toggle {
    padding: 8px 10px;
    font-size: 13px;
  }
  .main-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .main-header .padding-y-md {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .main-header .margin-top-lg {
    margin-top: 0 !important;
  }
  .main-header .logo {
    text-align: center;
    margin-bottom: 10px;
  }
  .main-header .logo img {
    max-height: 52px;
    width: auto;
    margin: 0 auto;
  }
  .main-header .col-sm-8.col-md-9 {
    width: 100%;
  }
  .main-header .search-box {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
  }
  .main-header .search-box .form-control {
    min-height: 44px;
    font-size: 16px;
  }
  .main-header .btn-search {
    min-height: 44px;
    min-width: 44px;
  }
  .navbar-default .navbar-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 4px 8px;
  }
  .navbar-default .navbar-toggle {
    margin: 8px 10px;
    padding: 10px 12px;
    border-radius: 6px;
  }
  .navbar-default .btn-cart-xs {
    margin: 8px 12px 8px auto;
    min-height: 44px;
    min-width: 48px;
    padding: 10px 14px;
    font-size: 16px;
  }
  .navbar-default .navbar-nav > li > a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .navbar-default .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    box-shadow: none;
  }
  .dropdown-menu-login {
    width: calc(100vw - 24px);
    max-width: 360px;
    right: 12px !important;
    left: auto !important;
  }

  /* Hero */
  .shop-hero-img {
    height: 42vw;
    min-height: 160px;
    max-height: 240px;
    max-width: 100% !important;
  }
  .slider-container .carousel-control {
    width: 14%;
  }
  .slider-container .carousel-control .fa {
    font-size: 22px;
  }
  .slider-container .carousel-caption {
    font-size: 13px;
    padding-bottom: 12px;
  }
  .slider-container .carousel-indicators {
    bottom: 4px;
  }

  /* Homepage content */
  .shop-homepage .page-contents {
    padding-top: 12px;
  }
  .shop-homepage .page-contents .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .shop-homepage .page-contents h1.margin-top-no {
    font-size: 20px;
    line-height: 1.25;
  }
  .shop-homepage .page-contents h2.h3-styled {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .shop-products-grid {
    gap: 10px;
    margin-bottom: 16px;
  }
  .shop-card__img-link img {
    padding: 10px;
  }
  .shop-card__body {
    padding: 10px 10px 8px;
  }
  .shop-card__title {
    font-size: 13px;
    line-height: 1.3;
  }
  .shop-card__meta {
    font-size: 11px;
  }
  .shop-card__footer {
    padding: 10px;
  }
  .shop-card__price-current {
    font-size: 15px;
  }
  .shop-card__qty .form-control,
  .shop-card__qty .input-group-addon {
    min-height: 40px;
  }
  .shop-card__btns .btn {
    padding: 10px 6px;
    font-size: 12px;
  }
  .shop-card:hover {
    transform: none;
  }

  /* Trust badges */
  .featurs {
    padding-top: 20px !important;
    padding-bottom: 12px !important;
  }
  .shop-featurs-row > [class*="col-"] {
    margin-bottom: 14px;
  }
  .shop-featurs-row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  .featurs-item {
    padding: 12px 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }
  .featurs .text-deliv {
    font-size: 14px;
    line-height: 1.35;
    margin: 8px 0 0;
  }

  /* Footer */
  .footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer .title-footer {
    margin-top: 8px;
  }
  .footer p .margin-left-xl,
  .footer p .margin-left-md {
    margin-left: 0 !important;
  }
  .footer p .fa-phone,
  .footer p .fa-envelope {
    display: inline-block;
    min-width: 18px;
  }
  .footer p .fa-envelope {
    margin-top: 8px;
  }
  .footer .list-inline > li {
    display: block;
    margin: 0 0 8px;
  }
  .footer img.img-responsive {
    max-width: 100%;
    height: auto;
  }
  .footer-bottom .copyright {
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
  }
  .cookie-warning {
    left: 8px;
    right: 8px;
    max-width: none;
  }
  .cookie-warning .alert {
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .shop-hero-img {
    height: 280px;
  }
}

/* Touch devices: keep full product visible on tap */
@media (hover: none) and (pointer: coarse) {
  .shop-card__img-link.is-reveal img {
    object-fit: contain;
    transform: scale(1.03);
    background: transparent;
  }
}

/* Persistent page flash messages (Phase 1) */
.shop-flash-messages {
  margin: 16px auto 0;
  max-width: 1170px;
  padding: 0 15px;
}

.shop-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--ds-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.shop-flash--success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.shop-flash--warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}
.shop-flash--error {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}
.shop-flash--info {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.shop-flash__icon {
  flex: 0 0 auto;
  font-size: 18px;
  margin-top: 1px;
}
.shop-flash__body {
  flex: 1 1 auto;
  min-width: 0;
}
.shop-flash__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  opacity: 0.65;
  cursor: pointer;
  padding: 0;
}

/* Phase 2 — transactional shop pages (cart, checkout, orders, PDP) */
body.shop-site .shop-transaction .shop-page-card,
body.shop-site .shop-order-page .shop-page-card {
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background: #fff;
}

body.shop-site .shop-page-card > .panel-heading,
body.shop-site .shop-page-card__head {
  background: var(--ds-ink-50, #f8fafc);
  border-bottom: 1px solid var(--ds-ink-200, #e2e8f0);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-ink-900, #0f172a);
}

body.shop-site .shop-page-card__actions a {
  font-size: 13px;
  font-weight: 500;
  margin-left: 12px;
}

body.shop-site .shop-page-card > .panel-body,
body.shop-site .shop-page-card__body {
  padding: 18px;
}

body.shop-site .shop-page-card > .panel-footer,
body.shop-site .shop-page-card__foot {
  background: var(--ds-ink-50, #f8fafc);
  border-top: 1px solid var(--ds-ink-200, #e2e8f0);
  padding: 12px 18px;
}

body.shop-site .shop-transaction #cart-table thead th {
  background: var(--ds-ink-50, #f8fafc);
  border-bottom: 1px solid var(--ds-ink-200, #e2e8f0);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ds-ink-500, #64748b);
}

body.shop-site .shop-transaction .cart-totals tr.active td {
  background: var(--ds-ink-50, #f8fafc);
  font-size: 15px;
}

body.shop-site .shop-transaction .cart-empty-msg {
  padding: 48px 24px;
  text-align: center;
  color: var(--ds-ink-500, #64748b);
}

body.shop-site .shop-checkout-section__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ds-ink-900, #0f172a);
}

body.shop-site .shop-checkout-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

body.shop-site .shop-checkout-payment label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  margin: 0 !important;
  width: auto !important;
}

body.shop-site .shop-checkout-payment label:has(input:checked) {
  border-color: var(--ds-yellow, #ffd54c);
  background: rgba(255, 213, 76, 0.18);
}

body.shop-site .shop-checkout-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-ink-600, #475569);
  margin: 12px 0 16px;
}

body.shop-site .shop-checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
}

body.shop-site .shop-checkout-terms input[type="checkbox"] {
  margin-top: 3px;
}

body.shop-site .shop-pdp-price {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: var(--ds-ink-50, #f8fafc);
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 12px;
}

body.shop-site .shop-pdp-price__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-ink-500, #64748b);
  margin-bottom: 4px;
}

body.shop-site .shop-pdp-price__current {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ds-brand, #2563eb);
}

body.shop-site .shop-pdp-price__was {
  display: block;
  font-size: 16px;
  color: var(--ds-ink-400, #94a3b8);
  text-decoration: line-through;
  margin-bottom: 2px;
}

body.shop-site .shop-pdp-price__promo-dates {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ds-ink-500, #64748b);
}

body.shop-site .shop-order-page {
  padding-top: 0;
}

body.shop-site .shop-order-page .shop-page-card {
  margin-top: 24px;
}

body.shop-site .shop-order-page .well {
  border-radius: 10px;
  border-color: var(--ds-ink-200, #e2e8f0);
  box-shadow: none;
}

body.shop-site .shop-order-page .shop-payment-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 12px;
  background: var(--ds-ink-50, #f8fafc);
}

body.shop-site .shop-orders-grid .link-address {
  display: block;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

body.shop-site .shop-orders-grid .link-address:hover,
body.shop-site .shop-orders-grid .link-address:focus {
  border-color: var(--ds-brand, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

body.shop-site .shop-orders-empty {
  padding: 32px;
  text-align: center;
  color: var(--ds-ink-500, #64748b);
}

/* Phase 4 — mobile product filters drawer */
body.shop-site .shop-filter-toggle {
  display: none;
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--ds-ink-200, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: var(--ds-ink-900, #0f172a);
}

body.shop-site .shop-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1040;
}

body.shop-site .shop-filter-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 991px) {
  body.shop-site .shop-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  body.shop-site .shop-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    z-index: 1050;
    background: #fff;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  body.shop-site .shop-filter-panel.is-open {
    transform: translateX(0);
  }

  body.shop-site.shop-filter-open {
    overflow: hidden;
  }
}

body.shop-site .shop-checkout-no-address .btn {
  margin-top: 8px;
  margin-right: 6px;
}

@media (prefers-reduced-motion: reduce) {
  body.shop-site *,
  body.shop-site *::before,
  body.shop-site *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   latest modification
   ========================================================================== */

body.shop-site.shop-autima-shell .shop-featured-rail__now,
body.shop-site.shop-autima-shell .shop-featured-rail__price .mvrprduct-lr-1,
body.shop-site.shop-autima-shell .shop-featured-rail__price .text-price-lr {
  display: flex;
}

body.shop-site.shop-autima-shell .shop-featured-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 9px;
  padding: 10px;
  /* border-bottom: 1px solid var(--ds-border); */
}

body.shop-site.shop-autima-shell .shop-pdp-thumbs > li.active {
  border-color: #333 !important;
  /* box-shadow: 0 0 0 1px var(--ds-yellow); */
}
