/*
 * NX Minimal Shop UI — custom stylesheet for the user's real PHP theme
 * Brand: #073bad (blue) / #f60d9a (pink)
 * Scope: nx-* classes added to header.php, footer.php, aprud_center.php
 * Install in /theme/nx-theme.css (already linked by the edited header.php).
 */

:root {
  --nx-blue: #073bad;
  --nx-blue-hover: #052d87;
  --nx-pink: #f60d9a;
  --nx-ink: #172440;
  --nx-text: #34415a;
  --nx-muted: #758199;
  --nx-line: #e7eaf3;
  --nx-surface: #f7f9fe;
  --nx-pink-wash: #fff1fa;
  --nx-blue-wash: #f0f5ff;
  --nx-soft-shadow: 0 6px 22px rgba(16, 40, 93, .055);
  --nx-raised-shadow: 0 18px 38px rgba(16, 40, 93, .11);
  --nx-radius: 18px;
}

/* Shared keyboard accessibility — restricted to our components. */
.nx-site-header a:focus-visible,
.nx-site-header button:focus-visible,
.nx-mobile-dock a:focus-visible,
.nx-product-card:focus-visible,
.nx-footer a:focus-visible,
.nx-footer button:focus-visible,
.nx-footer input:focus-visible {
  outline: 3px solid rgba(246, 13, 154, .55);
  outline-offset: 3px;
}

/* —————————————————— HEADER —————————————————— */
.nx-site-header {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  background: #fff;
  border-bottom: 1px solid var(--nx-line);
  box-shadow: 0 4px 18px rgba(10, 35, 88, .045);
}
.nx-site-header .nx-header-shell {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(12px, 2.2vw, 34px);
}
.nx-site-header .nx-header-top {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding-block: 10px;
}
.nx-header-logo .logomain {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}
.nx-header-search .nx-search,
.nx-header-search .nx-search-field {
  width: 100%;
  margin: 0;
}
.nx-header-search .nx-search-field {position: relative;}
.nx-header-search .nx-search-input#countryv {
  width: 100%;
  height: 48px !important;
  margin: 0 !important;
  padding: 10px 17px 10px 56px !important;
  border: 1px solid var(--nx-line) !important;
  border-radius: 14px !important;
  outline: 0;
  background: var(--nx-surface) !important;
  color: var(--nx-ink);
  box-shadow: none !important;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.nx-header-search .nx-search-input#countryv:focus {
  background: #fff !important;
  border-color: rgba(7, 59, 173, .35) !important;
  box-shadow: 0 0 0 4px rgba(7, 59, 173, .07) !important;
}
.nx-header-search .nx-search-input::placeholder {color: #99a2b3;}
.nx-header-search .nx-search-button.cbutton {
  position: absolute !important;
  top: 50% !important;
  left: 5px !important;
  right: auto !important;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--nx-blue) !important;
  color: #fff !important;
  cursor: pointer;
  transition: background-color .18s, box-shadow .18s;
}
.nx-header-search .nx-search-button.cbutton:hover {
  background: var(--nx-blue-hover) !important;
  box-shadow: 0 4px 12px rgba(7, 59, 173, .18);
}
.nx-header-search .nx-search-button i {color: inherit !important; font-size: 16px;}

.nx-header-actions .nx-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;  margin-right: auto;
}
.nx-header-actions .nx-header-controls > li {list-style: none; margin: 0;}
.nx-header-actions .nx-cart-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  text-decoration: none;
  background: var(--nx-blue-wash);
  border: 1px solid #e3ebff;
  border-radius: 13px;
  transition: background .18s, transform .18s;
}
.nx-header-actions .nx-cart-link:hover {background: #e8f0ff; transform: translateY(-1px);}
.nx-header-actions .nx-cart-link .crdu {position: relative; display: inline-flex; align-items: center; justify-content: center;}
.nx-header-actions .nx-cart-link .crdu i {font-size: 23px; color: var(--nx-blue);}
.nx-header-actions .nx-cart-count {
  position: absolute;
  top: -9px;
  right: -13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  color: #fff !important;
  background: var(--nx-pink);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}
.nx-header-actions .nx-account-link.loginbtnt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 10px 15px !important;
  border: 1px solid var(--nx-line) !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: var(--nx-ink) !important;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: border-color .18s, background .18s;
}
.nx-header-actions .nx-account-link.loginbtnt:hover {
  background: var(--nx-blue-wash) !important;
  border-color: #c5d4f5 !important;
}
.nx-header-actions .nx-account-link i {color: var(--nx-blue) !important; font-size: 17px !important;}

/* Existing multi-level navigation stays intact. */
.nx-site-header .nx-desktop-nav {
  background: #fff;
  border-top: 1px solid #f0f1f6;
}
.nx-site-header .nx-main-navigation,
.nx-site-header .nx-main-navigation .main_header_area {background: #fff;}
.nx-site-header .nx-main-navigation .nav-menu > li > a {
  color: var(--nx-text);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.nx-site-header .nx-main-navigation .nav-menu > li > a:hover,
.nx-site-header .nx-main-navigation .nav-menu > li.active > a {
  color: var(--nx-blue) !important;
  background: var(--nx-blue-wash);
}
.nx-site-header .nx-main-navigation .nav-dropdown,
.nx-site-header .nx-main-navigation .megamenu-panel {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  box-shadow: var(--nx-raised-shadow);
}
.nx-site-header .nx-main-navigation .nav-dropdown a:hover,
.nx-site-header .nx-main-navigation .megamenu-panel a:hover {color: var(--nx-pink) !important;}
/* The existing scroll script adds .fixed; retain this behavior with a calmer look. */
.nx-desktop-nav.fixed {
  z-index: 1100 !important;
  padding: 0 clamp(12px, 2.2vw, 32px) !important;
  border-bottom: 1px solid var(--nx-line);
  box-shadow: 0 8px 24px rgba(15, 35, 80, .09) !important;
}

/* —————————————————— REAL PRODUCT CARD —————————————————— */
/* aprud_center.php outputs the card itself, not the whole product grid. */
a.nx-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
  background: #fff;
  color: var(--nx-ink);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-soft-shadow);
  text-align: right;
  text-decoration: none !important;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
a.nx-product-card:hover {
  transform: translateY(-3px);
  border-color: #d7dff1;
  box-shadow: var(--nx-raised-shadow);
  text-decoration: none;
}
a.nx-product-card .nx-product-media.wdecds {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  background: #fafbff;
  border: 1px solid #f3f5fa;
  border-radius: 13px !important;
}
a.nx-product-card .nx-product-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 260px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 9px;
  transition: transform .25s;
}
a.nx-product-card:hover .nx-product-image {transform: scale(1.035);}
a.nx-product-card .io_color_div {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}
a.nx-product-card .io_color_prud {width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px #dce1ec;}
a.nx-product-card .nx-product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 44px;
  margin: 13px 4px 9px;
  color: var(--nx-ink) !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.9;
  text-align: right;
}
a.nx-product-card .nx-product-pricing.pbooox {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 48px;
  margin-top: auto;
  padding: 2px 4px 9px;
  background: transparent;
}
a.nx-product-card .nx-product-price.price {
  color: var(--nx-blue) !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.9;
  text-align: right;
}
a.nx-product-card .nx-product-price.price > span {color: var(--nx-muted); font-weight: 400;}
a.nx-product-card .nx-product-price.price del,
a.nx-product-card .nx-product-price.price s {color: #a7afbc; font-size: 11px; font-weight: 400;}
a.nx-product-card .nx-product-price.price .not_available {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: #7d8799 !important;
  background: #f4f6fa;
  border-radius: 7px;
  font-size: 12px;
}
a.nx-product-card .nx-product-action {width: 100%; margin-top: 4px;}
a.nx-product-card .nx-product-add.eaddtocardb {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 39px;
  margin: 0;
  padding: 8px 10px !important;
  border: 1px solid var(--nx-blue) !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: var(--nx-blue) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
a.nx-product-card .nx-product-add.eaddtocardb:hover {
  background: var(--nx-blue-hover) !important;
  border-color: var(--nx-blue-hover) !important;
}

/* —————————————————— FOOTER —————————————————— */
.nx-footer.c-footer {
  margin-top: 42px;
  padding: 30px 0 0;
  color: var(--nx-text);
  background: #f8faff;
  border-top: 1px solid var(--nx-line);
}
.nx-footer > .container {max-width: 1320px;}
.nx-footer .nx-footer__top {align-items: center; row-gap: 10px; font-size: 12px;}
.nx-footer .nx-footer__back-to-top.gotoop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  float: left;
  padding: 8px 12px;
  color: var(--nx-blue) !important;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  font-size: 11.5px;
  text-decoration: none;
  transition: background-color .18s;
}
.nx-footer .nx-footer__back-to-top:hover {background: var(--nx-blue-wash);}
.nx-footer .nx-footer__features.c-footer__feature-innerbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 0;
}
.nx-footer .nx-footer__feature.c-footer__badge {
  display: flex;
  min-width: 0;
  justify-content: center;
  align-items: center;
  min-height: 96px;
  padding: 13px 9px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  box-shadow: 0 2px 9px rgba(16, 40, 93, .025);
  color: var(--nx-text);
  text-decoration: none !important;
}
.nx-footer .nx-footer__feature .c-footer__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  color: var(--nx-text);
  font-size: 11.5px;
}
.nx-footer .nx-footer__feature img {width: 40px; height: 40px; object-fit: contain;}
.nx-footer .nx-footer__main {
  margin-top: 28px;
  padding-block: 25px 28px;
  border-top: 1px solid var(--nx-line);
  row-gap: 24px;
}
.nx-footer .o-headline-linksaa {
  color: var(--nx-ink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.nx-footer .c-footer__links-ul {color: var(--nx-muted); font-size: 12px; line-height: 2.1;}
.nx-footer .c-footer__links-ul li {margin: 4px 0;}
.nx-footer .c-footer__links-ul a {
  color: var(--nx-muted) !important;
  text-decoration: none;
  transition: color .18s;
}
.nx-footer .c-footer__links-ul a:hover {color: var(--nx-pink) !important;}
.nx-footer .nx-footer__social-links {display: flex; align-items: center; flex-wrap: wrap; gap: 8px;}
.nx-footer .nx-footer__social-links .c-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  transition: transform .18s, border-color .18s;
}
.nx-footer .nx-footer__social-links .c-footer__social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 13, 154, .35);
}
.nx-footer .nx-footer__social-links img {display: block; max-width: 100%; max-height: 100%; object-fit: contain;}
.nx-footer .nx-footer__newsletter {margin-top: 16px;}
.nx-footer .nx-footer__newsletter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}
.nx-footer .nx-footer__newsletter-row input#mailid {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--nx-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--nx-text);
  font-family: inherit;
  font-size: 11px;
  box-shadow: none !important;
}
.nx-footer .nx-footer__newsletter-row input#mailid:focus {border-color: rgba(7, 59, 173, .5) !important; outline: none;}
.nx-footer .nx-footer__newsletter-submit.btn-secondary {
  flex: 0 0 auto;
  height: 44px;
  min-width: 52px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--nx-blue) !important;
  border-radius: 11px !important;
  background: var(--nx-blue) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.nx-footer .nx-footer__newsletter-submit:hover {background: var(--nx-blue-hover) !important;}
.nx-footer #mapidw {max-width: 100%; border-color: var(--nx-line) !important; border-radius: 14px !important;}
.nx-footer .nx-footer__bottom {
  padding: 16px 0 20px;
  border-top: 1px solid var(--nx-line);
  color: var(--nx-muted);
  font-size: 11px;
  line-height: 2;
}
.nx-footer .nx-footer__bottom a {color: var(--nx-blue); text-decoration: none;}

/* —————————————————— MOBILE BOTTOM NAV —————————————————— */
@media (min-width: 801px) {
  .nx-mobile-dock {display: none !important;}
}
@media (max-width: 800px) {
  body.nx-has-mobile-nav {
    /* Prevent the fixed dock from hiding the page footer / checkout actions. */
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .nx-mobile-dock.displayblock800.fixed2 {
    position: fixed !important;
    display: block !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    background: rgba(255, 255, 255, .97) !important;
    border-top: 1px solid rgba(225, 230, 243, .98) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -6px 28px rgba(17, 38, 84, .095) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nx-mobile-dock .nx-mobile-dock__inner {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    max-width: 620px;
    margin-inline: auto;
    padding: 0;
  }
  .nx-mobile-dock .nx-mobile-dock__item.loginbtnx_b {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100% !important;
    min-width: 0;
    min-height: 61px;
    margin: 0 !important;
    padding: 8px 2px 6px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #78839a !important;
    text-align: center !important;
    text-decoration: none !important;
    font-family: inherit;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s, color .2s;
  }
  .nx-mobile-dock .nx-mobile-dock__item i {
    display: block;
    width: auto;
    height: 23px;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 22px !important;
    font-weight: 400;
    line-height: 23px;
    transition: color .2s, transform .2s;
  }
  .nx-mobile-dock .nx-mobile-dock__item span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit !important;
    font-size: clamp(8px, 2.5vw, 10.5px) !important;
    font-weight: 500;
    line-height: 1.6;
  }
  .nx-mobile-dock .nx-mobile-dock__item:hover,
  .nx-mobile-dock .nx-mobile-dock__item:focus-visible {
    color: var(--nx-blue) !important;
    background: var(--nx-blue-wash) !important;
  }
  .nx-mobile-dock .nx-mobile-dock__item.is-active {
    color: var(--nx-blue) !important;
    background: #f1f5ff !important;
  }
  .nx-mobile-dock .nx-mobile-dock__item.is-active i {
    color: var(--nx-pink) !important;
    transform: translateY(-1px);
  }
  .nx-mobile-dock .nx-mobile-dock__item.is-active::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    width: 17px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 100px;
    background: var(--nx-pink);
  }
  /* Don't let the legacy sticky navigation cover the bottom navigation. */
  .nx-desktop-nav.fixed {z-index: 1050 !important;}
  .nx-site-header .nx-header-top {min-height: 66px; padding-block: 7px;}
  .nx-header-logo .logomain {max-height: 50px;}
  .nx-site-header {margin-bottom: 10px;}
  .nx-header-actions .nx-header-controls {gap: 6px;}
  .nx-header-actions .nx-account-link.loginbtnt {padding-inline: 8px !important; font-size: 11px;}
  .nx-header-actions .nx-cart-link {width: 40px; height: 40px;}
  .nx-footer.c-footer {margin-top: 24px; padding-top: 24px;}
  .nx-footer .nx-footer__features.c-footer__feature-innerbox {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .nx-footer .nx-footer__main {margin-top: 21px; padding-top: 20px;}
}
@media (max-width: 380px) {
  .nx-mobile-dock.displayblock800.fixed2 {padding-inline: 5px !important;}
  .nx-mobile-dock .nx-mobile-dock__inner {gap: 1px;}
  .nx-mobile-dock .nx-mobile-dock__item.loginbtnx_b {min-height: 59px; padding-inline: 0 !important;}
  .nx-mobile-dock .nx-mobile-dock__item i {font-size: 20px !important;}
  .nx-header-actions .nx-account-link.loginbtnt {font-size: 10px;}
}
@media (prefers-reduced-motion: reduce) {
  .nx-site-header *, .nx-product-card *, .nx-footer *, .nx-mobile-dock * {transition: none !important; animation: none !important;}
  a.nx-product-card:hover, a.nx-product-card:hover .nx-product-image {transform: none;}
}
