/* ============================================================
   Marketplace Valdemar — Shopee-like Theme
   ============================================================ */

:root {
  --vm-orange:       #EE4D2D;
  --vm-orange-dark:  #D73211;
  --vm-orange-light: #FFF4F2;
  --vm-green:        #26AA99;
  --vm-yellow:       #F6A623;
  --vm-red:          #D0011B;
  --vm-text:         #333333;
  --vm-muted:        #888888;
  --vm-border:       #E8E8E8;
  --vm-bg:           #F5F5F5;
  --vm-white:        #FFFFFF;
  --vm-radius:       4px;
  --vm-radius-lg:    8px;
  --vm-shadow:       0 1px 4px rgba(0,0,0,.1);
  --vm-shadow-hover: 0 4px 16px rgba(0,0,0,.16);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
body.shopee-theme { background: var(--vm-bg); color: var(--vm-text); font-family: "Roboto Condensed", system-ui, sans-serif; margin: 0; }

.vm-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.vm-header { background: var(--vm-orange); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.vm-header__top { padding: 10px 0; }
.vm-header__inner { display: flex; align-items: center; gap: 16px; }

/* Logo */
.vm-logo { text-decoration: none; flex-shrink: 0; }
.vm-logo__text {
  color: var(--vm-white); font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; display: block;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.vm-logo--footer .vm-logo__text { color: var(--vm-orange); }

/* Search bar */
.vm-search-wrap { flex: 1; max-width: 700px; }
.vm-search-wrap .catalog-search { margin: 0 !important; }
.vm-search-wrap input[type=search],
.vm-search-wrap .form-control {
  border: none !important; border-radius: var(--vm-radius) 0 0 var(--vm-radius) !important;
  padding: 10px 16px !important; font-size: 14px !important;
  background: #fff !important; box-shadow: none !important; height: 40px !important;
}
.vm-search-wrap button[type=submit],
.vm-search-wrap .btn-primary {
  background: #FB7D46 !important; border-color: #FB7D46 !important;
  border-radius: 0 var(--vm-radius) var(--vm-radius) 0 !important;
  height: 40px !important; padding: 0 18px !important; color: #fff !important;
}
.vm-search-wrap button[type=submit]:hover { background: var(--vm-orange-dark) !important; }

/* Header actions */
.vm-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.vm-icon { width: 22px; height: 22px; }

/* Account */
.vm-account { color: #fff; }
.vm-account__link { color: #fff !important; text-decoration: none !important; font-size: 13px; background: none; border: none; cursor: pointer; padding: 0; }
.vm-account__link:hover { color: var(--vm-orange-light) !important; }
.vm-account__sep { color: rgba(255,255,255,.6); margin: 0 4px; }

/* Mini cart */
.vm-header .basket-small a { color: #fff !important; }
.vm-header .basket-small .count {
  background: var(--vm-white); color: var(--vm-orange);
  border-radius: 50%; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  position: absolute; top: -6px; right: -8px; padding: 0 4px;
}

/* Category nav */
.vm-header__nav { background: rgba(0,0,0,.1); padding: 3px 0; }
.vm-header__nav .navbar-nav { flex-direction: row; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.vm-header__nav .nav-item .nav-link { color: rgba(255,255,255,.9) !important; font-size: 13px; padding: 4px 12px !important; white-space: nowrap; }
.vm-header__nav .nav-item .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.12); border-radius: var(--vm-radius); }

/* ── Page content ── */
.vm-main { padding: 16px 0 32px; }

/* ── HERO BANNER ── */
.vm-hero { margin-bottom: 0; }
.vm-hero__slide--main {
  background: linear-gradient(130deg, #c0392b 0%, var(--vm-orange) 45%, #FF7043 75%, #FFB74D 100%);
  padding: 52px 16px; text-align: center; position: relative; overflow: hidden;
}
.vm-hero__slide--main::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.vm-hero__content { max-width: 600px; margin: 0 auto; position: relative; }
.vm-hero__tag { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: 11px; padding: 3px 12px; border-radius: 20px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.vm-hero__title { color: #fff; font-size: 44px; font-weight: 800; margin: 0 0 10px; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.vm-hero__sub { color: rgba(255,255,255,.88); font-size: 16px; margin-bottom: 26px; }
.vm-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.vm-btn { display: inline-block; padding: 12px 28px; border-radius: var(--vm-radius); font-weight: 700; font-size: 14px; text-decoration: none !important; transition: all .15s; cursor: pointer; }
.vm-btn--white { background: #fff; color: var(--vm-orange); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.vm-btn--white:hover { background: var(--vm-orange-light); transform: translateY(-1px); }
.vm-btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.vm-btn--outline:hover { background: rgba(255,255,255,.15); }

/* ── Benefits bar ── */
.vm-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--vm-white); border-bottom: 1px solid var(--vm-border);
  padding: 12px 16px; gap: 0;
}
.vm-benefit { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-right: 1px solid var(--vm-border); }
.vm-benefit:last-child { border-right: none; }
.vm-benefit__icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--vm-orange); }
.vm-benefit strong { display: block; font-size: 13px; color: var(--vm-text); line-height: 1.3; }
.vm-benefit span { font-size: 11px; color: var(--vm-muted); }

/* ── Category shortcuts ── */
.vm-cats {
  background: var(--vm-white); padding: 20px 0;
  border-bottom: 1px solid var(--vm-border);
}
.vm-cats__grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px;
}
.vm-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px; border-radius: var(--vm-radius-lg);
  text-decoration: none !important; transition: background .15s;
  cursor: pointer;
}
.vm-cat-item:hover { background: var(--vm-orange-light); }
.vm-cat-item__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--vm-bg); flex-shrink: 0;
  transition: transform .2s;
}
.vm-cat-item:hover .vm-cat-item__icon { transform: scale(1.08); }
.vm-cat-item__label { font-size: 11px; color: var(--vm-text); text-align: center; line-height: 1.3; font-weight: 500; }

/* ── Flash Sale banner ── */
.vm-flash {
  background: linear-gradient(90deg, #D0011B 0%, var(--vm-orange) 100%);
  border-radius: var(--vm-radius-lg); padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 0;
}
.vm-flash__label { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.vm-flash__sep { color: rgba(255,255,255,.5); font-size: 22px; }
.vm-flash__timer { display: flex; align-items: center; gap: 4px; }
.vm-flash__timer-box {
  background: #1a1a1a; color: #fff;
  font-size: 18px; font-weight: 700;
  width: 36px; height: 36px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.vm-flash__timer-sep { color: rgba(255,255,255,.8); font-size: 18px; font-weight: 700; }
.vm-flash__badge { margin-left: auto; background: rgba(255,255,255,.2); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }

/* ── Section headers ── */
.vm-section { padding: 20px 0 0; }
.vm-section--white { background: var(--vm-white); border-radius: var(--vm-radius-lg); padding: 20px; margin-bottom: 12px; box-shadow: var(--vm-shadow); }
.vm-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vm-section__title { font-size: 17px; font-weight: 800; color: var(--vm-text); margin: 0; padding-left: 10px; border-left: 4px solid var(--vm-orange); }
.vm-section__more { color: var(--vm-orange); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.vm-section__more:hover { text-decoration: underline; }

/* ── PRODUCT GRID (homepage + listing) ── */
/* Aimeos renders .catalog-list-items > .product.row */
.catalog-list-items.product-list,
.catalog-list-items {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  float: none !important;
}

.catalog-list-items .product {
  margin: 0 !important; padding: 0 !important;
  background: var(--vm-white) !important;
  border: 1px solid var(--vm-border) !important;
  border-radius: var(--vm-radius) !important;
  overflow: hidden !important;
  transition: box-shadow .2s, transform .2s !important;
  box-shadow: none !important;
  display: flex !important; flex-direction: column !important;
  position: relative;
}
.catalog-list-items .product:hover {
  box-shadow: var(--vm-shadow-hover) !important;
  transform: translateY(-2px);
  z-index: 1;
}

/* Remove Bootstrap row/col from product grid */
.catalog-list-items .product .row { display: block !important; margin: 0 !important; }
.catalog-list-items .product .list-column { padding: 0 !important; width: 100% !important; }

/* Product image */
.catalog-list-items .product .media-list {
  display: block; text-decoration: none !important;
  overflow: hidden; position: relative;
  aspect-ratio: 1/1;
}
.catalog-list-items .product .media-list .media-item img,
.catalog-list-items .product .media-item img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
  transition: transform .35s ease !important;
}
.catalog-list-items .product:hover .media-item img { transform: scale(1.06) !important; }

/* Image overlay on hover */
.catalog-list-items .product .media-list::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .2s;
}
.catalog-list-items .product:hover .media-list::after { background: rgba(0,0,0,.04); }

/* Product info block */
.catalog-list-items .product .product-info { padding: 8px 10px 4px; flex: 1; }

/* Product name */
.catalog-list-items .product .name,
.catalog-list-items .product .name h2 {
  font-size: 13px !important; font-weight: 400 !important;
  line-height: 1.4; margin: 0 0 4px !important;
  color: var(--vm-text) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px;
}

/* Hide duplicated short description inside card */
.catalog-list-items .product .text-list .text-item { display: none !important; }
.catalog-list-items .product .text-list { padding: 0 10px; }
.catalog-list-items .product .text-list a { text-decoration: none !important; }
.catalog-list-items .product .name a,
.catalog-list-items .product h2 a {
  color: var(--vm-text) !important; text-decoration: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-list-items .product .name a:hover { color: var(--vm-orange) !important; }

/* Supplier/brand */
.catalog-list-items .product .supplier {
  font-size: 11px; color: var(--vm-muted); margin-bottom: 4px;
}

/* Rating */
.catalog-list-items .product .rating {
  font-size: 11px; color: var(--vm-yellow); margin-bottom: 4px;
  display: flex; align-items: center; gap: 4px;
}
.catalog-list-items .product .rating .stars { letter-spacing: -1px; }
.catalog-list-items .product .rating .count { color: var(--vm-muted); font-size: 10px; }

/* Price area — hide "de 1" qty hint, taxes, shipping costs and stock dot in cards */
.catalog-list-items .product .price-item .quantity,
.catalog-list-items .product .price-item .taxrate,
.catalog-list-items .product .price-item .costs,
.catalog-list-items .product .stock-list,
.catalog-list-items .product .offer .stock-actual { display: none !important; }

.catalog-list-items .product .price-list { padding: 2px 10px 6px; }
.catalog-list-items .product .price-item .value {
  color: var(--vm-orange) !important; font-weight: 700 !important;
  font-size: 16px !important; display: inline-block;
}
.catalog-list-items .product .price-item .original {
  color: var(--vm-muted) !important; text-decoration: line-through !important;
  font-size: 11px !important; display: inline-block; margin-right: 6px;
  font-weight: 400 !important;
}
.catalog-list-items .product .price-item .rebate,
.catalog-list-items .product .price-item .rebatepercent { display: none !important; }

/* Add to cart — hide qty input & attribute selects, full-width labeled button */
.catalog-list-items .product .basket .items-attribute { display: none !important; }
.catalog-list-items .product .addbasket { padding: 0 10px 10px; margin-top: auto; }
.catalog-list-items .product .addbasket .input-group { display: block !important; }
.catalog-list-items .product .addbasket input[type="number"] { display: none !important; }
.catalog-list-items .product .addbasket button,
.catalog-list-items .product .btn-action {
  width: 100% !important; background: var(--vm-orange) !important;
  border: none !important; color: #fff !important;
  border-radius: var(--vm-radius) !important; font-size: 12.5px !important;
  font-weight: 600 !important; padding: 8px 0 !important;
  transition: background .15s !important; cursor: pointer;
}
.catalog-list-items .product .addbasket button::after { content: 'Adicionar ao carrinho'; }
.catalog-list-items .product .addbasket button::before { display: none !important; }
.catalog-list-items .product .addbasket button:hover { background: var(--vm-orange-dark, #d94f27) !important; }

/* Pin / wishlist */
.catalog-list-items .product .btn-pin {
  position: absolute !important; top: 6px; right: 6px;
  background: rgba(255,255,255,.9) !important; border-radius: 50% !important;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.catalog-list-items .product:hover .btn-pin { opacity: 1; }
.catalog-list-items .product .btn-pin svg,
.catalog-list-items .product .btn-pin i { color: var(--vm-muted) !important; font-size: 14px; }
.catalog-list-items .product .btn-pin:hover svg,
.catalog-list-items .product .btn-pin.pinned svg { color: var(--vm-orange) !important; }

/* ── Product badges ── */
.vm-badge-new, .vm-badge-sale, .vm-badge-hot {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 2px;
  color: #fff; text-transform: uppercase; letter-spacing: .5px;
}
.vm-badge-new  { background: var(--vm-green); }
.vm-badge-sale { background: var(--vm-red); }
.vm-badge-hot  { background: var(--vm-yellow); color: #333; }

/* ── Catalog list page wrapper ── */
.catalog-list {
  background: var(--vm-white);
  border-radius: var(--vm-radius-lg);
  padding: 16px;
  box-shadow: var(--vm-shadow);
}

/* Sort/filter toolbar */
.catalog-list-head {
  background: var(--vm-bg) !important;
  border-radius: var(--vm-radius) !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
  border: 1px solid var(--vm-border) !important;
  display: flex; align-items: center; gap: 16px;
}
.catalog-list-head .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vm-muted); }
.catalog-list-head .sort a { color: var(--vm-text); text-decoration: none; font-size: 13px; padding: 4px 10px; border-radius: var(--vm-radius); }
.catalog-list-head .sort a:hover, .catalog-list-head .sort a.active { background: var(--vm-orange); color: #fff; }

/* ── Filters sidebar ── */
.catalog-filter {
  background: var(--vm-white) !important;
  border-radius: var(--vm-radius-lg) !important;
  border: 1px solid var(--vm-border) !important;
  padding: 14px !important; box-shadow: var(--vm-shadow);
}
.catalog-filter .filter-heading {
  font-size: 14px; font-weight: 700; color: var(--vm-text);
  border-bottom: 1px solid var(--vm-border); padding-bottom: 10px; margin-bottom: 12px;
}
.catalog-filter .filter-item a { font-size: 13px; color: var(--vm-text); text-decoration: none; }
.catalog-filter .filter-item a:hover { color: var(--vm-orange); }
.catalog-filter .price-range input { border: 1px solid var(--vm-border) !important; border-radius: var(--vm-radius) !important; }

/* ── Product detail ── */
.catalog-detail {
  background: var(--vm-white) !important; border-radius: var(--vm-radius-lg) !important;
  padding: 24px !important; box-shadow: var(--vm-shadow) !important;
}
.catalog-detail-name { font-size: 18px !important; font-weight: 700 !important; }
.catalog-detail-price .price-actual { font-size: 28px !important; color: var(--vm-orange) !important; }

/* ── Rating stars ── */
.rating .fa-star, .stars i { color: var(--vm-yellow) !important; }

/* ── Basket / Checkout ── */
.basket-standard {
  background: var(--vm-white) !important; border-radius: var(--vm-radius-lg) !important;
  box-shadow: var(--vm-shadow) !important; padding: 20px !important;
}
.checkout-standard .btn-primary,
.basket-standard .btn-primary {
  background: var(--vm-orange) !important; border-color: var(--vm-orange) !important;
}
.catalog-detail-basket button[type=submit] {
  background: var(--vm-orange) !important; border-color: var(--vm-orange) !important;
  color: #fff !important; font-weight: 700 !important; font-size: 15px !important;
  border-radius: var(--vm-radius) !important; transition: background .15s !important;
}
.catalog-detail-basket button[type=submit]:hover { background: var(--vm-orange-dark) !important; }

/* ── Breadcrumbs ── */
.catalog-stage-breadcrumb .breadcrumb-item a { color: var(--vm-orange) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--vm-muted); }

/* ── Pagination ── */
.page-link { color: var(--vm-orange) !important; border-color: var(--vm-border) !important; }
.page-item.active .page-link {
  background: var(--vm-orange) !important; border-color: var(--vm-orange) !important; color: #fff !important;
}

/* ── Footer ── */
.vm-footer { background: var(--vm-white); border-top: 1px solid var(--vm-border); padding: 36px 0 0; margin-top: 32px; }
.vm-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; }
.vm-footer__col h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; color: var(--vm-text); }
.vm-footer__col ul { list-style: none; padding: 0; margin: 0; }
.vm-footer__col ul li { margin-bottom: 8px; }
.vm-footer__col ul a { color: var(--vm-muted); font-size: 13px; text-decoration: none; }
.vm-footer__col ul a:hover { color: var(--vm-orange); }
.vm-footer__payments { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-badge { background: var(--vm-border); border-radius: 2px; font-size: 11px; padding: 3px 8px; color: var(--vm-text); }
.vm-footer__tagline { color: var(--vm-muted); font-size: 12px; margin-top: 6px; }
.vm-footer__bottom { border-top: 1px solid var(--vm-border); padding: 16px 0; text-align: center; }
.vm-footer__bottom p { color: var(--vm-muted); font-size: 12px; margin: 0; }

/* ── Freight Calculator ── */
.vm-freight-calc {
  background: var(--vm-white); border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius); padding: 16px; margin-top: 20px;
}
.vm-freight-calc__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.vm-freight-calc__form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vm-freight-calc__input { flex: 1; min-width: 160px; max-width: 200px; border: 1px solid var(--vm-border); border-radius: var(--vm-radius); padding: 8px 12px; font-size: 14px; }
.vm-freight-calc__input:focus { outline: 2px solid var(--vm-orange); border-color: var(--vm-orange); }
.vm-freight-calc__btn { background: var(--vm-orange); color: #fff; border: none; border-radius: var(--vm-radius); padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.vm-freight-calc__btn:hover { background: var(--vm-orange-dark); }
.vm-freight-calc__btn:disabled { opacity: .6; cursor: wait; }
.vm-freight-calc__link { font-size: 12px; color: var(--vm-orange); text-decoration: none; }
.vm-freight-calc__result { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vm-freight-option { display: grid; grid-template-columns: 80px 1fr auto auto; align-items: center; gap: 8px; border: 1px solid var(--vm-border); border-radius: var(--vm-radius); padding: 8px 12px; background: #fafafa; }
.vm-freight-option__company { font-size: 11px; color: var(--vm-muted); }
.vm-freight-option__name    { font-size: 13px; font-weight: 600; }
.vm-freight-option__time    { font-size: 12px; color: var(--vm-muted); white-space: nowrap; }
.vm-freight-option__price   { font-size: 14px; font-weight: 700; color: var(--vm-orange); white-space: nowrap; }
.vm-freight-error { color: #dc2626; font-size: 13px; margin: 0; }

/* ── Reviews ── */
.vm-reviews { margin-top: 32px; }
.vm-btn-link { background: none; border: none; padding: 0; color: var(--vm-orange); font-size: 13px; cursor: pointer; text-decoration: underline; }
.vm-btn-link:hover { color: var(--vm-orange-dark); }
.vm-star-select { display: flex; gap: 4px; margin-bottom: 8px; user-select: none; }

/* ── Flash sale timer script ── */
.vm-flash-wrap { padding: 16px 0 4px; }

/* ── Back to top ── */
.back-to-top { background: var(--vm-orange) !important; }

/* ── List page layout ── */
.vm-list-layout { padding: 16px 0 32px; }
.vm-list-layout__inner { display: grid; grid-template-columns: 220px 1fr; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.vm-list-sidebar { min-width: 0; }
.vm-list-content { min-width: 0; }

/* wrap the Aimeos catalog/lists output */
.vm-list-content .catalog-list {
  background: var(--vm-white);
  border-radius: var(--vm-radius-lg);
  padding: 16px;
  box-shadow: var(--vm-shadow);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .catalog-list-items.product-list,
  .catalog-list-items { grid-template-columns: repeat(3, 1fr) !important; }
  .vm-cats__grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
  .catalog-list-items.product-list,
  .catalog-list-items { grid-template-columns: repeat(3, 1fr) !important; }
  .vm-cats__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .vm-list-layout__inner { grid-template-columns: 1fr; }
  .vm-list-sidebar { display: none; }
}

@media (max-width: 767px) {
  .vm-header__inner { flex-wrap: wrap; }
  .vm-logo { order: 1; }
  .vm-header__actions { order: 2; margin-left: auto; }
  .vm-search-wrap { order: 3; flex: 0 0 100%; max-width: 100%; }
  .vm-footer__grid { grid-template-columns: 1fr 1fr; }
  .vm-benefits { grid-template-columns: 1fr 1fr; }
  .vm-hero__title { font-size: 30px; }
  .catalog-list-items.product-list,
  .catalog-list-items { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .vm-cats__grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .vm-cat-item__icon { width: 42px; height: 42px; font-size: 20px; }
  .vm-flash { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .vm-footer__grid { grid-template-columns: 1fr; }
  .vm-benefits { grid-template-columns: 1fr 1fr; }
  .vm-hero__title { font-size: 24px; }
  .vm-cats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════ Rodada "layout profissional" ═══════════ */

/* ── Badges reais do Aimeos (.badges .badge-item) sobre a imagem ── */
.catalog-list-items .product .badges {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.catalog-list-items .product .badge-item {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 2px;
  color: #fff; text-transform: uppercase; letter-spacing: .5px; line-height: 1.6;
}
.catalog-list-items .product .badge-item.new  { background: var(--vm-green, #26aa5e); }
.catalog-list-items .product .badge-item.sale { background: var(--vm-red, #d0011b); }

/* Rebate % como badge na imagem (direita) */
.catalog-list-items .product .price-item .rebatepercent {
  display: block !important; position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--vm-yellow, #ffce3d); color: #d0011b;
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px;
}
.catalog-list-items .product { overflow: visible !important; }
.catalog-list-items .product .list-column:first-child { position: relative; overflow: hidden; border-radius: var(--vm-radius) var(--vm-radius) 0 0; }

/* ── Barra de categorias horizontal ── */
.vm-tree-hidden { display: none !important; }
.vm-catbar {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 4px;
}
.vm-catbar::-webkit-scrollbar { display: none; }
.vm-catbar__link {
  color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 9px 13px; white-space: nowrap; border-radius: var(--vm-radius);
  transition: background .15s;
}
.vm-catbar__link:hover { background: rgba(255,255,255,.18); color: #fff; }
.vm-catbar__link--hot { font-weight: 700; color: var(--vm-yellow, #ffce3d); }
.vm-header__nav { background: transparent; padding: 2px 0 8px; }
.vm-header__nav > .vm-container > .catalog-filter { display: none !important; }

/* ── Breadcrumb "Você está aqui: Voltar" escondido ── */
.catalog-stage-breadcrumb { display: none !important; }

/* ── Sidebar de filtros ── */
/* Filtro de preço com dados quebrados (0–1): esconder até ter dados reais */
.catalog-filter-price { display: none !important; }
/* Botão Salvar em laranja (fallback caso o price volte) */
.catalog-filter button.btn,
.catalog-filter .btn-primary {
  background: var(--vm-orange) !important; border-color: var(--vm-orange) !important;
  color: #fff !important; border-radius: var(--vm-radius) !important;
}
/* Espaçamento dos checkboxes de fornecedor */
.catalog-filter-supplier .attr-item,
.catalog-filter-attribute .attr-item {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
  font-size: 13px;
}
.catalog-filter-supplier .attr-count,
.catalog-filter-attribute .attr-count { color: var(--vm-muted); font-size: 12px; }

/* ── Header mobile: logo não estoura ── */
.vm-logo, .navbar-brand {
  font-size: clamp(14px, 4vw, 20px) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 48vw;
}
@media (min-width: 768px) { .vm-logo, .navbar-brand { max-width: none; } }

/* ── Detalhe do produto ── */
.catalog-detail .catalog-detail-basic h1,
.catalog-detail h1.name {
  text-transform: none !important; font-size: 24px !important;
  font-weight: 700 !important; letter-spacing: 0 !important;
  color: var(--vm-text) !important;
}
.catalog-detail .code { color: var(--vm-muted); font-size: 12px; }
.catalog-detail .addbasket button.btn-primary {
  background: var(--vm-orange) !important; border-color: var(--vm-orange) !important;
  font-weight: 600 !important; border-radius: var(--vm-radius) !important;
}

/* ── Força largura total dos cards (Aimeos define width:48% no .product) ── */
.aimeos:not(.cms-page) .product-list .product,
.catalog-list-items .product {
  width: 100% !important; max-width: none !important; margin: 0 !important;
}
.catalog-list-items .product .media-list {
  width: 100% !important; position: relative;
}
.catalog-list-items .product .price-list {
  display: block !important; margin: 0 !important; box-sizing: border-box !important;
}
.catalog-list-items .product .rating { margin: 0 !important; padding: 0 10px; }
.catalog-list-items .product .product-info { display: flex; align-items: center; justify-content: space-between; }
.catalog-list-items .product { text-align: start !important; }
.catalog-list-items .product .rating { margin-inline-start: auto; }

/* ── Grade "Produtos em Destaque" (home) ── */
.vm-featured {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.vm-pcard {
  background: var(--vm-white); border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius); overflow: hidden;
  text-decoration: none !important; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.vm-pcard:hover { box-shadow: var(--vm-shadow-hover); transform: translateY(-2px); }
.vm-pcard__img { aspect-ratio: 1/1; overflow: hidden; background: var(--vm-bg); }
.vm-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vm-pcard:hover .vm-pcard__img img { transform: scale(1.06); }
.vm-pcard__name {
  font-size: 13px; color: var(--vm-text); padding: 8px 10px 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.vm-pcard__price { color: var(--vm-orange); font-weight: 700; font-size: 16px; padding: 2px 10px 10px; }
@media (max-width: 900px) { .vm-featured { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .vm-featured { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ── Mata overflow horizontal (menus off-canvas zeynep do Aimeos) ── */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 480px) {
  .vm-header__actions { gap: 10px; }
  .vm-account__link { font-size: 12px; }
}

/* ── Logo Shoplace ── */
.vm-logo { display: flex; align-items: center; gap: 8px; }
.vm-logo__icon { height: 38px; width: auto; flex-shrink: 0; }
.vm-logo__text { font-weight: 800; letter-spacing: -0.5px; font-size: 24px; line-height: 1; }
.vm-logo .vm-logo__shop { color: #fff; }
.vm-logo .vm-logo__lace { color: #FFD24D; }
/* Footer (fundo branco): cores oficiais do brand */
.vm-logo--footer .vm-logo__icon { height: 32px; }
.vm-logo--footer .vm-logo__shop { color: #4F4F4F; }
.vm-logo--footer .vm-logo__lace { color: #FF6F00; }
/* Hero */
.vm-hero__title .vm-logo__shop { color: #fff; }
.vm-hero__title .vm-logo__lace { color: #FFD24D; }

/* ── Logo como imagem única + campo de quantidade do detalhe ── */
.vm-logo__img { display: block; height: 42px; width: auto; }
.vm-logo--footer .vm-logo__img { height: 34px; }
/* Campo de quantidade compacto na página do produto */
.catalog-detail .addbasket .input-group { display: flex; align-items: stretch; gap: 8px; }
.catalog-detail .addbasket input[type="number"] {
  max-width: 90px !important; flex: 0 0 90px !important;
  text-align: center; border: 1px solid var(--vm-border) !important;
  border-radius: var(--vm-radius) !important;
}
.catalog-detail .addbasket button.btn-primary { flex: 1; }

/* ═══════════ Tipografia da listagem + modo lista ═══════════ */

/* Título da categoria (stage): sem espaçamento exagerado */
.catalog-stage-header h1,
.catalog-stage-header .stage-header,
.catalog-detail h1 {
  font-family: inherit !important; letter-spacing: 0 !important;
  font-size: 22px !important; font-weight: 700 !important;
  color: var(--vm-text) !important; text-transform: none !important;
}

/* Banner da categoria (Verão 2025) */
.catalog-stage-image .stage-short,
.catalog-stage .stage-text {
  font-family: inherit !important; letter-spacing: 0 !important;
}
.catalog-stage .stage-short p { margin: 0 0 4px; font-size: 15px; line-height: 1.5; }
.catalog-stage .stage-short strong { color: var(--vm-orange); font-size: 18px; }

/* Sidebar: fontes normalizadas */
.catalog-filter, .catalog-session {
  font-family: inherit !important; letter-spacing: 0 !important;
}
.catalog-filter .header-name,
.catalog-filter-supplier .supplier-lists legend,
.catalog-filter fieldset legend,
.catalog-filter .attr-name, .catalog-filter .attr-item label,
.catalog-filter .supplier-item label {
  font-family: inherit !important; letter-spacing: 0 !important;
}
.catalog-session .header,
.catalog-session .pinned .header, .catalog-session .seen .header {
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .3px !important; color: var(--vm-muted) !important;
}

/* Barra "Ordenar por": opção ativa em pill laranja */
.catalog-list-head { font-family: inherit !important; letter-spacing: 0 !important; }
.catalog-list-head .sort a {
  color: var(--vm-text); text-decoration: none; font-size: 13.5px;
  padding: 5px 12px; border-radius: var(--vm-radius); transition: all .15s;
}
.catalog-list-head .sort a:hover { color: var(--vm-orange); }
.catalog-list-head .sort a.active,
.catalog-list-head .sort [class*="option-"].active {
  background: var(--vm-orange) !important; color: #fff !important; font-weight: 600;
}
.catalog-list-head .header-text { color: var(--vm-muted); font-size: 13.5px; }

/* Toggle grade/lista */
.catalog-list-type .type-item { border-radius: var(--vm-radius); }
.catalog-list-type .type-item:hover { background: var(--vm-orange-light); }

/* ── MODO LISTA (l_type=list): cards horizontais ── */
.catalog-list-items.list { display: block !important; }
.catalog-list-items.list .product {
  display: flex !important; flex-direction: row !important;
  align-items: stretch; gap: 0; margin-bottom: 12px !important;
  width: 100% !important;
}
.catalog-list-items.list .product .list-column:first-child {
  flex: 0 0 200px; width: 200px !important; margin: 0 !important;
  border-radius: var(--vm-radius) 0 0 var(--vm-radius);
}
.catalog-list-items.list .product .list-column:last-child {
  flex: 1; width: auto !important; margin: 0 !important;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 18px !important; text-align: start;
}
.catalog-list-items.list .product .media-list { aspect-ratio: 1/1; }
.catalog-list-items.list .product .name,
.catalog-list-items.list .product .name h2,
.catalog-list-items.list .product h2.name {
  font-size: 16px !important; font-weight: 600 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  min-height: 0 !important;
}
.catalog-list-items.list .product .text-list { padding: 0; }
.catalog-list-items.list .product .text-list .text-item {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13px; color: var(--vm-muted); margin: 4px 0 0;
}
.catalog-list-items.list .product .text-list .text-item ~ .text-item { display: none !important; }
.catalog-list-items.list .product .price-list { padding: 8px 0 !important; }
.catalog-list-items.list .product .addbasket { padding: 0 !important; max-width: 260px; }
.catalog-list-items.list .product .product-info { padding: 0 0 4px; }
.catalog-list-items.list .product .rating { padding: 0; }
@media (max-width: 640px) {
  .catalog-list-items.list .product .list-column:first-child { flex-basis: 130px; width: 130px !important; }
}

/* Nome no card (grade) cobre também a variante .list desligada */
.catalog-list-items .product .name,
.catalog-list-items .product .name h2 { font-family: inherit !important; }

/* ── Headings do Aimeos: sem uppercase/letter-spacing (regra global do tema default) ── */
.aimeos h1, .aimeos h2, .aimeos h3 {
  text-transform: none !important; letter-spacing: 0 !important;
  color: var(--vm-text) !important; font-weight: 700 !important;
}
.aimeos h1 { font-size: 22px !important; padding-top: 0 !important; }
.aimeos h2 { font-size: 17px !important; }
.aimeos .form-item label { letter-spacing: 0 !important; }
/* Nome do produto na grade continua leve (não é heading visual) */
.catalog-list-items .product h2.name { font-weight: 400 !important; font-size: 13px !important; }
.catalog-list-items.list .product h2.name { font-weight: 600 !important; font-size: 16px !important; }

/* Sort dentro de nav.pagination (estrutura real do Aimeos) */
.pagination .sort { font-family: inherit; letter-spacing: 0; }
.pagination .sort ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pagination .sort > span { color: var(--vm-muted); font-size: 13.5px; margin-right: 6px; }
.pagination .sort a {
  color: var(--vm-text); text-decoration: none !important; font-size: 13.5px;
  padding: 5px 12px; border-radius: var(--vm-radius); transition: all .15s;
  display: inline-block; white-space: nowrap;
}
.pagination .sort a:hover { color: var(--vm-orange); background: var(--vm-orange-light); }
.pagination .sort a.active {
  background: var(--vm-orange) !important; color: #fff !important; font-weight: 600;
}
.pagination .sort { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
