/* 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; }
}
/* Top Rest responsive header search */
.ct-header-toprest-search{width:min(100%,var(--tr-search-width,360px));color:var(--tr-search-color,var(--theme-text-color))}.tr-header-search-form{display:flex;align-items:center;width:100%;min-height:42px;background:var(--tr-search-bg,#f5f7f9);border:1px solid var(--tr-search-border,#e0e6eb);border-radius:var(--tr-search-radius,999px);overflow:hidden;transition:.2s}.tr-header-search-form:focus-within{background:var(--tr-search-focus-bg,#fff);border-color:var(--tr-search-focus-border,var(--theme-palette-color-1));color:var(--tr-search-focus-color,var(--theme-palette-color-1))}.tr-header-search-form input[type=search]{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:9px 16px;height:auto}.tr-header-search-form button{flex:0 0 44px;width:44px;height:42px;padding:10px;border:0;background:transparent!important;color:currentColor!important}.tr-header-search-form svg{width:22px;height:22px;fill:currentColor}.tr-search-desktop-icon .tr-header-search-form{width:44px}.tr-search-desktop-icon .tr-header-search-form input,.tr-search-desktop-off{display:none}.tr-search-icon-round.tr-search-desktop-icon .tr-header-search-form{border-radius:50%}.tr-search-icon-square.tr-search-desktop-icon .tr-header-search-form{border-radius:10px}@media(max-width:999.98px){.ct-header-toprest-search{width:auto}.tr-search-mobile-icon .tr-header-search-form{width:44px}.tr-search-mobile-icon .tr-header-search-form input,.tr-search-mobile-off{display:none}.tr-search-mobile-field{width:min(100%,320px)}.tr-search-mobile-field .tr-header-search-form input{display:block}}
.tr-loop-sku{display:block;color:#81909c;margin:2px 0 5px}.tr-loop-excerpt{font-size:12px;line-height:1.7;color:#60788f;margin:5px 0 8px}.tr-loop-cart-with-qty{display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:center;width:100%}.tr-loop-qty{width:72px!important;text-align:center}.tr-loop-cart-button .button{width:100%!important}.tr-checkout-product{display:flex;gap:10px;align-items:center}.tr-checkout-thumb{width:56px!important;height:56px!important;object-fit:contain;border-radius:8px}.tr-checkout-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.tr-checkout-name small{color:#667085}.tr-checkout-remove{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff0f0;color:#b42318!important;text-decoration:none!important}
html.tr-loading body:before{content:"";position:fixed;inset:0;z-index:999999;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23023C7F' stroke-width='5' stroke-linecap='round' stroke-dasharray='60 90'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat}

/* WooCommerce review cards controlled by TopRest X 2.4 */
.qxr-wc-reviews{--qxr-review-gap:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--qxr-review-gap)}.qxr-wc-review{display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px;border:1px solid #dfe9f2;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(23,50,77,.05)}.qxr-wc-review header{display:flex;align-items:center;gap:11px}.qxr-wc-review__avatar img{display:block;width:48px;height:48px;border-radius:50%;object-fit:cover}.qxr-wc-review header strong,.qxr-wc-review header small{display:block}.qxr-wc-review__verified{color:#148052;margin-top:3px}.qxr-wc-review__stars{color:#f5a623;letter-spacing:2px;font-size:18px}.qxr-wc-review blockquote{margin:0;color:#475f73;line-height:1.9}.qxr-wc-review__product{color:#023c7f;font-weight:800}.qxr-wc-review time{color:#8292a0;font-size:12px;margin-top:auto}.qxr-wc-reviews--compact .qxr-wc-review{padding:14px}.qxr-wc-reviews--slider{display:flex;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.qxr-wc-reviews--slider .qxr-wc-review{flex:0 0 min(380px,88vw);scroll-snap-align:start}.qxr-review-empty{padding:20px;border:1px dashed #bfd2e2;border-radius:14px;text-align:center;color:#60788f}
.tr-loop-cart-with-qty{display:flex;align-items:stretch;gap:7px;width:100%}.tr-loop-cart-with-qty .tr-loop-qty{width:72px;min-width:64px;text-align:center;border:1px solid #d6e1ea;border-radius:10px}.tr-loop-cart-with-qty .tr-loop-cart-button{display:flex;flex:1}.tr-loop-cart-with-qty .tr-loop-cart-button .button{width:100%}
@media(max-width:900px){.qxr-wc-reviews{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.qxr-wc-reviews{grid-template-columns:1fr}.qxr-wc-reviews--slider{display:flex}}
