/* NST Store Tools — kept small so it sits well inside any theme */
.nst-note {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #eeebe4;
  color: #18241e;
  font-size: 14px;
  line-height: 1.7;
}
.nst-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 4px;
  padding: 10px 20px;
  border: 1px solid #d6d2c8;
  border-radius: 999px;
  color: #18241e;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.nst-wa-btn svg { color: #25d366; flex-shrink: 0; }
.nst-wa-btn:hover, .nst-wa-btn:focus-visible { border-color: #033221; color: #033221; }
.nst-dims {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #eeebe4;
  color: #033221;
  font-size: 13px;
}
.nst-dims[hidden] { display: none; }
.nst-dims-row { display: flex; align-items: center; gap: 8px; }
.nst-dims .tick { width: 1px; height: 14px; background: currentColor; }
.nst-dims .line { flex: 1; height: 1px; background: currentColor; opacity: .7; }
.nst-dims .label { white-space: nowrap; font-weight: 600; padding: 0 4px; }
.nst-wa-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 20px;
  z-index: 9990;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 36, 30, .22);
  transition: transform .2s;
}
.nst-wa-fab:hover { transform: scale(1.06); color: #fff; }
@media (prefers-reduced-motion: reduce) { .nst-wa-fab, .nst-wa-btn { transition: none; } }
/* English option values ("3 seats 270cm") read correctly inside Arabic pages */
.variations select, .variations .value, .woocommerce-mini-cart .variation, .wc-item-meta { unicode-bidi: plaintext; }

/* Footer & contact blocks (inherit the theme's footer colors) */
.nst-foot p { line-height: 1.9; opacity: .85; margin: 0 0 16px; }
.nst-foot__links, .nst-foot__social, .nst-contact, .nst-branch-list { list-style: none; margin: 0; padding: 0; }
.nst-foot__links li { margin: 0 0 8px; }
.nst-foot a { color: inherit; text-decoration: none; opacity: .85; }
.nst-foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nst-foot__wa { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #25d366; color: #fff !important; opacity: 1 !important; font-weight: 500; }
.nst-foot__wa:hover { text-decoration: none !important; filter: brightness(1.05); }
.nst-foot__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.nst-contact li { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.nst-contact li span { opacity: .6; min-width: 64px; }
.nst-branch-list { display: grid; gap: 14px; margin-top: 14px; }
.nst-branch-list li { display: flex; flex-direction: column; gap: 2px; }
.nst-branch-list li span { opacity: .75; }
.nst-branch-list li a { font-size: .9em; text-decoration: underline; text-underline-offset: 4px; }
.entry-content .nst-contact, .entry-content .nst-branch-list { margin-block: 16px 24px; }
.entry-content .nst-branch-list li { padding: 16px 20px; border: 1px solid #d6d2c8; border-radius: 8px; }

/* Sale badges and savings */
.nst-onsale { font-weight: 600 !important; }
.nst-save { display: inline-block; margin-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: #eeebe4; color: #a8844f; font-size: .8em; font-weight: 600; vertical-align: middle; }

/* Product cards: every photo in the same 4:3 landscape box, filling it edge to edge
   (room photos are mostly landscape, so the furniture stays fully in view). */
.products .product figure {
  display: block !important;
  aspect-ratio: auto !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  position: relative;
}
.products .product .ct-media-container,
.products .product .ct-image-container {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #eeebe4 !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
}
.products .product .ct-media-container img,
.products .product .ct-image-container img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: 50% 82% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  transition: transform .5s ease;
}
.products .product:hover .ct-media-container img,
.products .product:hover a.woocommerce-LoopProduct-link > img { transform: scale(1.04); }

/* Plain WooCommerce markup (title sits inside the same link): crop the image itself to 4:3 */
.products .product a.woocommerce-LoopProduct-link > img,
.products .product-category a > img,
.nst-home ul.products li.product a > img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: 50% 82% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #eeebe4 !important;
  mix-blend-mode: normal !important;
}

/* Badges on the top corner of the photo */
.products li.product { position: relative; }
.products .product .onsale,
.products .product .out-of-stock-badge {
  z-index: 3 !important;
}

/* Product page gallery: full photo at its own shape, no frame */
.woocommerce-product-gallery__image > a,
.woocommerce-product-gallery__image,
.ct-product-gallery-container .ct-media-container {
  aspect-ratio: auto !important;
  height: auto !important;
  background: transparent !important;
}
.woocommerce-product-gallery__image img,
.ct-product-gallery-container .ct-media-container img,
.flexy-items .ct-media-container img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  background: transparent !important;
  mix-blend-mode: normal !important;
}
.flex-control-thumbs img,
.flexy-pills img,
.ct-product-gallery-container .flexy-pills .ct-media-container img {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 6px;
}

/* Blog cards */
.entries article .ct-media-container,
.entries .entry-card .ct-media-container { aspect-ratio: 4 / 3 !important; overflow: hidden; border-radius: 8px; }
.entries article .ct-media-container img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Imported Shopify pages & articles */
.nst-imported img { height: auto; border-radius: 8px; margin-block: 16px; }
.nst-imported table { width: 100%; border-collapse: collapse; }
.nst-imported td, .nst-imported th { border: 1px solid #d6d2c8; padding: 8px; }
.nst-review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-block: 16px 32px; }
.nst-review-grid img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #d6d2c8; }

/* Separates (pieces of the same room / collection) on the product page */
.nst-separates { clear: both; margin: 48px 0 24px; padding-top: 36px; border-top: 1px solid #e6e2d9; }
.nst-separates__head { margin-bottom: 22px; }
.nst-separates__head h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); }
.nst-separates__head p { margin: 0; color: #6b6b6b; }
.nst-separates .woocommerce { width: 100%; }
.nst-separates-link { display: inline-block; margin: 4px 0 14px; color: #a8844f !important; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Footer: readable on the dark background (the theme's grey was too faint) */
.nst-foot { color: rgba(255, 255, 255, .86) !important; }
.nst-foot .widget-title, .nst-foot h3 { color: #fff !important; }
.nst-foot p { color: rgba(255, 255, 255, .86) !important; opacity: 1 !important; }
.nst-foot a, .nst-foot .nst-foot__links a, .nst-foot .nst-foot__social a { color: rgba(255, 255, 255, .9) !important; opacity: 1 !important; }
.nst-foot a:hover { color: #d4b27a !important; }
.nst-foot .nst-contact li, .nst-foot .nst-contact a { color: #fff !important; opacity: 1 !important; }
.nst-foot .nst-contact li span { color: rgba(255, 255, 255, .62) !important; opacity: 1 !important; }
.nst-foot .nst-branch-list strong { color: #fff !important; }
.nst-foot .nst-branch-list li span { color: rgba(255, 255, 255, .8) !important; opacity: 1 !important; }
.nst-foot .nst-branch-list li a { color: #d4b27a !important; }
.nst-foot .nst-foot__wa { color: #fff !important; }
.nst-foot .nst-lang--foot { color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; }
.ct-footer [data-id="copyright"], .ct-footer [data-id="copyright"] * , .ct-footer .ct-footer-copyright { color: rgba(255, 255, 255, .75) !important; }
.ct-footer [data-id="socials"] a, .ct-footer .ct-social-box a { color: rgba(255, 255, 255, .8) !important; }
.ct-footer [data-id="socials"] a:hover, .ct-footer .ct-social-box a:hover { color: #d4b27a !important; }
