/* TopRest X Ultimate additions */
:root{--toprest-radius:14px;--toprest-shadow:0 12px 34px rgba(2,60,127,.08)}
html[dir="rtl"] body{font-feature-settings:"kern" 1}
.toprest-x-ultimate .ct-header-toprest-city .qa-inline-selector{margin:0}
.toprest-x-ultimate .ct-header-toprest-city .qa-inline-current,.toprest-x-ultimate .toprest-city-fallback{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 14px;border:1px solid var(--theme-border-color);border-radius:12px;background:var(--toprest-city-bg,transparent);color:var(--toprest-city-color,var(--theme-text-color));font:inherit;cursor:pointer;transition:.2s ease}
.toprest-x-ultimate .ct-header-toprest-city .qa-inline-current:hover,.toprest-x-ultimate .toprest-city-fallback:hover{background:var(--toprest-city-hover-bg,var(--theme-palette-color-6));color:var(--toprest-city-hover-color,var(--theme-palette-color-1))}
.toprest-city-style-minimal .qa-inline-current{border:0!important;background:transparent!important;padding-inline:4px!important}
.toprest-city-style-pill .qa-inline-current{border-radius:999px!important}
.ct-header-toprest-whatsapp{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;background:var(--toprest-wa-bg,#25D366);color:var(--toprest-wa-color,#fff);font-weight:700;line-height:1;text-decoration:none;transition:.2s ease}
.ct-header-toprest-whatsapp:hover{background:var(--toprest-wa-hover-bg,#1EAF55);color:var(--toprest-wa-hover-color,#fff);transform:translateY(-1px)}
.ct-header-toprest-whatsapp svg{width:20px;height:20px;fill:currentColor}
.toprest-floating-whatsapp{position:fixed;bottom:28px;z-index:9997;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#25D366;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:.2s ease}
.toprest-floating-whatsapp.is-right{right:22px}.toprest-floating-whatsapp.is-left{left:22px}.toprest-floating-whatsapp:hover{transform:translateY(-3px) scale(1.03);color:#fff}.toprest-floating-whatsapp svg{width:28px;height:28px;fill:currentColor}
.ct-footer-toprest-payments{color:var(--toprest-payments-color,var(--theme-text-color));display:flex;flex-direction:column;align-items:var(--horizontal-alignment,center);gap:10px;width:100%}
.toprest-payments-title{font-weight:700}.toprest-payment-logos{display:flex;align-items:center;justify-content:inherit;flex-wrap:wrap;gap:var(--qx-payment-gap,10px)}
.toprest-payment-method{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:5px 10px;border:1px solid var(--theme-border-color);border-radius:8px;background:#fff;color:#17324d;font-size:12px;font-weight:700;white-space:nowrap}
.toprest-payment-method img{display:block;width:auto;max-width:100px;height:var(--qx-payment-height,28px);object-fit:contain}
/* TopRest brand and storefront modules */
.toprest-x-ultimate .qasf-brand-grid,.toprest-x-ultimate .qa-catalog-brands{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.toprest-x-ultimate .qasf-brand-card,.toprest-x-ultimate .qa-brand-card{border:1px solid var(--theme-border-color);border-radius:14px;background:#fff;padding:18px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;transition:.2s ease}
.toprest-x-ultimate .qasf-brand-card:hover,.toprest-x-ultimate .qa-brand-card:hover{border-color:var(--theme-palette-color-1);box-shadow:var(--toprest-shadow);transform:translateY(-2px)}
.toprest-x-ultimate .qasf-brand-card img,.toprest-x-ultimate .qa-brand-card img{max-height:76px;width:auto;object-fit:contain}
/* WooCommerce polish */
.toprest-x-ultimate.woocommerce .products .product,.toprest-x-ultimate .products .product{border-radius:14px;overflow:hidden}
.toprest-x-ultimate .products .product .ct-media-container{background:#fff}
.toprest-x-ultimate .woocommerce-product-gallery{border-radius:16px;overflow:hidden}
.toprest-x-ultimate .single-product .entry-summary{align-self:start}
.toprest-x-ultimate .woocommerce-tabs{border-radius:14px}
@media(max-width:1024px){.toprest-x-ultimate .qasf-brand-grid,.toprest-x-ultimate .qa-catalog-brands{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:689px){.toprest-x-ultimate .qasf-brand-grid,.toprest-x-ultimate .qa-catalog-brands{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toprest-floating-whatsapp{bottom:82px;width:48px;height:48px}.toprest-payment-method{min-height:34px;padding:4px 8px}.ct-header-toprest-whatsapp span{display:none}}

.ct-header-toprest-account{display:inline-flex;align-items:center;gap:7px;color:var(--toprest-account-color,var(--theme-text-color));font-weight:700;text-decoration:none}.ct-header-toprest-account:hover{color:var(--toprest-account-hover-color,var(--theme-palette-color-1))}.ct-header-toprest-account svg{width:21px;height:21px;fill:currentColor}


/* TopRest X 5.1.1 — compact product description and reviews-first tabs */
.single-product .woocommerce-tabs #tab-description .toprest-description-heading {
  margin-block-end: 14px;
}
.single-product .woocommerce-tabs .toprest-description-inner {
  position: relative;
  overflow: visible;
  transition: max-height .32s ease;
}
.single-product .woocommerce-tabs .toprest-description-inner.is-collapsed {
  max-height: var(--toprest-description-collapsed-height, 5.4em);
  overflow: hidden;
}
.single-product .woocommerce-tabs .toprest-description-inner.is-collapsed.has-overflow::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2.5em;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--theme-palette-color-8, #fff));
}
.single-product .woocommerce-tabs .toprest-description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  margin-block-start: 16px;
  padding: 8px 20px;
  border: 1px solid var(--theme-palette-color-1, #023c7f);
  border-radius: 10px;
  background: transparent;
  color: var(--theme-palette-color-1, #023c7f);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.single-product .woocommerce-tabs .toprest-description-toggle:hover,
.single-product .woocommerce-tabs .toprest-description-toggle:focus-visible {
  background: var(--theme-palette-color-1, #023c7f);
  color: #fff;
}
.single-product .woocommerce-tabs .toprest-description-toggle[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .single-product .woocommerce-tabs .toprest-description-inner { transition: none; }
}
