/*
Theme Name: USM Child (Urban Stripmall)
Template: twentytwentyfive
Description: Custom child theme for The Urban Stripmall, built on Twenty Twenty-Five. Replaces Marketplace theme per Phase 9 decision (USM Central Command v22-v23).
Version: 17.3
Author: The Architect
*/

/* ===========================================================
   USM COLOR SYSTEM
   =========================================================== */

:root {
  --usm-dark-bg: #1a1a1a;
  --usm-heading-gold: #b8934a;
  --usm-heading-gold-hover: #d4af6a;
  --usm-body-link: #e8e2d4;
  --usm-body-link-hover: #ffffff;
}

/* Reset oversized default block-theme typography inside our
   header/footer parts specifically, so nothing inherits the
   theme.json huge clamp() font sizes. */
.usm-topbar, .usm-topbar p,
.usm-logobar, .usm-logobar p,
.usm-mainnav, .usm-mainnav p,
.usm-footer-wrap, .usm-footer-wrap p, .usm-footer-wrap h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* ===========================================================
   HEADER
   =========================================================== */

.usm-topbar {
  background-color: var(--usm-dark-bg);
  padding: 10px 24px;
  align-items: center;
}

.usm-topbar-link a {
  color: var(--usm-body-link);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-right: 20px;
}

.usm-topbar-link a:hover {
  color: var(--usm-heading-gold-hover);
}

.usm-install-app-btn a {
  background-color: var(--usm-heading-gold);
  color: var(--usm-dark-bg);
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 18px;
  text-decoration: none;
  font-size: 13px;
}

.usm-account-submenu {
  background-color: #f4f4f4;
  padding: 10px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.usm-account-submenu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.usm-account-submenu-list a {
  color: var(--usm-dark-bg);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.usm-account-submenu-list a:hover {
  color: var(--usm-heading-gold);
}

.usm-logobar {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
}

.usm-site-name a {
  font-size: 22px;
  font-weight: 700;
  color: var(--usm-dark-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.usm-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.usm-icon-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.usm-icon-link {
  position: relative;
  color: var(--usm-dark-bg);
  text-decoration: none;
}

.usm-icon-link .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.usm-icon-link:hover {
  color: var(--usm-heading-gold);
}

.usm-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e0263d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usm-mainnav {
  display: flex;
  justify-content: space-between;
  background-color: #f4f4f4;
  padding: 14px 60px;
}

.usm-mainnav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.usm-mainnav a,
.usm-mainnav-list a {
  color: var(--usm-dark-bg);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.usm-mainnav a:hover,
.usm-mainnav-list a:hover {
  color: var(--usm-heading-gold);
}

/* Main-nav dropdown submenus (Buy Wholesale, My Account). Desktop
   only in practice — .usm-mainnav is already hidden below 768px,
   so no extra media-query scoping is needed here. */
.usm-mainnav-list li {
  position: relative;
}

.usm-mainnav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
}

/* Rightmost top-level item (e.g. Buy Wholesale) would otherwise open
   its dropdown off the right edge of the viewport — anchor it to the
   right side of its own <li> instead of the left. */
.usm-mainnav-list li:last-child > .sub-menu {
  left: auto;
  right: 0;
}

.usm-mainnav-list li:hover > .sub-menu,
.usm-mainnav-list li:focus-within > .sub-menu {
  display: block;
}

.usm-mainnav-list .sub-menu li {
  width: 100%;
}

.usm-mainnav-list .sub-menu a {
  display: block;
  padding: 8px 18px;
  text-transform: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--usm-dark-bg);
  white-space: nowrap;
}

.usm-mainnav-list .sub-menu a:hover {
  background-color: #f4f4f4;
  color: var(--usm-heading-gold);
}

/* ===========================================================
   FOOTER
   Deep charcoal background, medium-dark gold headings (bold),
   warm cream links — one rule set, no logged-in override exists
   anywhere, which is the actual fix for the white-on-white bug.
   =========================================================== */

.usm-footer-wrap {
  background-color: var(--usm-dark-bg);
  padding: 60px 40px 40px;
}

.usm-footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.usm-footer-col {
  flex: 1;
  min-width: 180px;
}

.usm-footer-col .widget-title {
  color: var(--usm-heading-gold) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: 0.02em;
  margin-bottom: 14px !important;
}

.usm-footer-col p {
  margin-bottom: 10px !important;
}

.usm-footer-col a {
  color: var(--usm-body-link) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.usm-footer-col a:hover {
  color: var(--usm-body-link-hover) !important;
  text-decoration: underline !important;
}

.usm-footer-counter {
  color: var(--usm-body-link) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  display: block;
}

.usm-footer-badges {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(184,147,74,0.2);
}

.usm-footer-copyright {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(184,147,74,0.2);
  text-align: center;
}

.usm-footer-copyright p {
  color: var(--usm-body-link) !important;
  font-size: 12px !important;
  opacity: 0.7;
}

.usm-footer-badges-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.usm-footer-badges-stack img {
  max-width: 110px;
  height: auto;
  display: block;
}

/* ===========================================================
   MOBILE — 768px and below. HD-2 mobile-first.
   =========================================================== */
@media (max-width: 768px) {
  .usm-account-submenu {
    padding: 8px 16px;
  }
  .usm-account-submenu-list {
    justify-content: flex-start;
    gap: 14px;
  }
  .usm-account-submenu-list a {
    font-size: 11px;
  }

  .usm-logobar {
    padding: 12px 16px;
  }
  .usm-site-name a {
    font-size: 17px;
    gap: 8px;
  }
  .usm-logo-img {
    height: 28px;
    width: 28px;
  }
  .usm-icon-links {
    gap: 14px;
  }

  .usm-mainnav {
    padding: 10px 16px;
  }
  .usm-mainnav-list {
    justify-content: flex-start;
    gap: 16px;
  }
  .usm-mainnav a,
  .usm-mainnav-list a {
    font-size: 11px;
  }

  .usm-footer-wrap {
    padding: 40px 20px 24px;
  }
  .usm-footer-columns {
    gap: 28px;
  }
  .usm-footer-col {
    min-width: 45%;
  }
}

/* ===========================================================
   MOBILE NAV OVERRIDE — Architect's explicit decision, CCv23.
   The account-submenu row and main-nav row (both new to Phase 9)
   are DESKTOP ONLY. On mobile, the existing "USM Mobile Navigation
   System" snippet's Quick Nav bar + hamburger menu remains the
   sole navigation, exactly as it was pre-Phase-9. This avoids
   competing with a proven, independent nav system and matches
   what customers are already used to.
   =========================================================== */
@media (max-width: 768px) {
  .usm-account-submenu,
  .usm-mainnav {
    display: none;
  }
}
