/* TAG-A-ROOM shared styles.
   Primary #0169B8 · Hover #014F8A · Dark #111111 · Light gray #F5F7FA
   Ribbon: #FEFA1F #FC811C #F91055 #DA019F #724DB5 #01A0D6 #40D13D #DEF306
   Page sections keep the designs' inline styles; this file holds what is shared. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; font-family: 'Archivo', system-ui, sans-serif; color: #111111; background: #fff; }
a { color: #0169B8; text-decoration: none; }
a:hover { color: #014F8A; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---------- Header (Header.dc.html) ---------- */
.header-spacer { height: 82px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(20, 32, 46, .08); }
.header-bar { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.header-logo { display: block; width: 240px; height: 50px; overflow: hidden; flex: none; }
.header-logo img { display: block; width: 206px; height: 79px; max-width: none; margin-top: -15px; }

.desktop-nav { display: flex; gap: 22px; flex: 1; justify-content: center; font-weight: 600; font-size: 15px; }
.nav-item { position: relative; padding: 10px 0; }
.nav-link { color: #111111; display: flex; align-items: center; gap: 5px; border-bottom: 3px solid transparent; padding-bottom: 2px; }
.nav-link.is-active { color: #0169B8; border-bottom-color: #0169B8; }
.nav-link:hover { color: #014F8A; }
.dropdown {
  display: none; position: absolute; top: 100%; left: -16px;
  max-height: calc(100vh - 160px); overflow: auto;
  background: #fff; border: 1px solid #E3E8EE; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, .16);
  padding: 8px 0; flex-direction: column; z-index: 60;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: flex; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.dd-group + .dd-group { border-top: 1px solid #E3E8EE; margin-top: 6px; padding-top: 6px; }
.dropdown a { display: block; color: #111111; padding: 9px 22px; font-weight: 400; font-size: 15px; white-space: nowrap; }
.dropdown a.dd-head { font-weight: 700; }
.dropdown a.dd-on { color: #0169B8; font-weight: 700; }
.dropdown a:hover { background: #F5F7FA; color: #0169B8; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.icon-link, .icon-link:hover { color: #111111; display: flex; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -9px; background: #0169B8; color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.btn-primary { background: #0169B8; color: #fff; font-weight: 700; border-radius: 10px; }
.btn-primary:hover { background: #014F8A; color: #fff; }
.header-cta { padding: 12px 20px; font-size: 15px; margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: #111111; }

.mobile-menu {
  border-top: 1px solid #E3E8EE; padding: 8px 24px 20px; display: flex; flex-direction: column; background: #fff;
  max-height: calc(100vh - 82px); overflow-y: auto;
}
.m-item { border-bottom: 1px solid #EEF1F5; }
.m-link, .m-link:hover { color: #111111; font-weight: 600; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }
.m-sub { display: flex; flex-direction: column; padding: 0 0 8px 16px; }
.m-sub a { color: #4A5A6C; font-weight: 600; padding: 10px 0; font-size: 15px; }
.m-cta { padding: 14px 20px; margin-top: 16px; text-align: center; }

@media (max-width: 1099.98px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 1100px) { .mobile-menu { display: none !important; } }
@media (max-width: 639.98px) { .header-cta { display: none; } }
@media (max-width: 479.98px) {
  .header-spacer { height: 72px; }
  .header-bar { padding: 12px 16px; gap: 16px; }
  .header-logo { width: 180px; height: 44px; }
  .header-logo img { width: 180px; height: 69px; margin-top: -13px; }
}

/* ---------- Floating cart ---------- */
.floating-cart {
  position: fixed; right: 20px; bottom: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #0169B8; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(1, 105, 184, .4), 0 2px 6px rgba(0, 0, 0, .2); border: 3px solid #fff;
}
.floating-cart:hover { background: #111111; color: #fff; }
.floating-cart b {
  position: absolute; top: -8px; right: -8px; background: #F91055; color: #fff; font-size: 12px;
  min-width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ---------- Layout fixes for narrow screens ----------
   The designs use grid minimums (e.g. minmax(280px,1fr)) that overflow a 320px
   phone; let those tracks shrink instead. */
@media (max-width: 400px) {
  [style*="minmax(280px"], [style*="minmax(300px"], [style*="minmax(260px"], [style*="minmax(220px"], [style*="minmax(200px"] { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Homepage category grid (Homepage.dc.html: 5 / 3 / 1 columns) */
.home-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 899.98px) { .home-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .home-cat-grid { grid-template-columns: minmax(0, 1fr); } }

/* Store placeholder while Ecwid loads (the store element is empty until then). */
#my-store-1805034:empty {
  min-height: 520px; border-radius: 20px; position: relative;
  background: linear-gradient(100deg, #F5F7FA 30%, #E9EEF3 50%, #F5F7FA 70%) 0 0 / 300% 100%;
  animation: tar-shimmer 1.4s ease-in-out infinite;
}
#my-store-1805034:empty::after {
  content: 'Loading products…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #6B7B8D;
}
@keyframes tar-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Policy pages (src/policy.mjs) ---------- */
.pol-hero { background: #0169B8; color: #fff; }
.pol-hero-inner { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) 24px clamp(32px, 4.5vw, 52px); }
.pol-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: #D6E7F5; }
.pol-crumbs a { color: #fff; }
.pol-crumbs a:hover { color: #fff; text-decoration: underline; }
.pol-hero h1 { text-transform: uppercase; font-style: italic; font-weight: 900; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -.01em; margin: 14px 0 10px; }
.pol-updated { margin: 0; font-size: 15px; font-weight: 600; color: #D6E7F5; }

.pol-body { background: #fff; padding: clamp(36px, 6vw, 72px) 24px clamp(56px, 8vw, 96px); }
.pol-wrap { max-width: 1076px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; }
.pol-wrap--single { max-width: 760px; grid-template-columns: minmax(0, 1fr); }

.pol-toc { position: sticky; top: 106px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; background: #F5F7FA; border: 1px solid #E3E8EE; border-radius: 16px; padding: 20px 14px 14px; }
.pol-toc-title { margin: 0 0 10px 12px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #0169B8; }
.pol-toc ol, .pol-jump ol { list-style: none; margin: 0; padding: 0; }
.pol-toc a { display: block; padding: 8px 12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; color: #4A5A6C; font-weight: 600; font-size: 15px; line-height: 1.35; }
.pol-toc a:hover { color: #0169B8; }
.pol-toc a.is-active { color: #0169B8; border-left-color: #0169B8; background: #fff; }

.pol-jump { display: none; margin: 0 0 28px; background: #F5F7FA; border: 1px solid #E3E8EE; border-radius: 12px; }
.pol-jump summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 16px; color: #111111; }
.pol-jump ol { padding: 0 18px 12px; }
.pol-jump a { display: block; padding: 9px 0; border-top: 1px solid #E3E8EE; color: #4A5A6C; font-weight: 600; font-size: 15px; }
.pol-jump a.is-active { color: #0169B8; }

.pol-main { font-size: 18px; line-height: 1.7; color: #2B3642; min-width: 0; overflow-wrap: anywhere; }
.pol-intro { margin: 0 0 36px; font-weight: 700; font-size: 17px; }
.pol-lead { margin: 0 0 24px; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.01em; color: #111111; }
.pol-section { margin: 0 0 48px; } /* html scroll-padding-top keeps targets below the fixed header */
.pol-section h2 { margin: 0 0 18px; padding-left: 14px; border-left: 5px solid var(--pol-accent, #0169B8); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -.01em; color: #111111; }
.pol-section h3 { margin: 30px 0 10px; font-weight: 800; font-size: 20px; line-height: 1.3; color: #0169B8; }
.pol-section p { margin: 0 0 16px; }
.pol-section ul { margin: 0 0 16px; padding-left: 22px; }
.pol-section li { margin-bottom: 8px; }
.pol-section li::marker { color: #0169B8; }
.pol-section a { text-decoration: underline; font-weight: 600; }
.pol-note { background: #F5F7FA; border: 1px solid #E3E8EE; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 600; color: #4A5A6C; }

.pol-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 0 0 32px; }
.pol-section .pol-card-text { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #4A5A6C; }
.pol-card { background: #fff; border: 1px solid #E3E8EE; border-top: 4px solid #0169B8; border-radius: 14px; padding: 18px 20px 12px; box-shadow: 0 2px 10px rgba(17, 17, 17, .05); }
.pol-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pol-card-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #F5F7FA; display: flex; align-items: center; justify-content: center; }
.pol-section .pol-card h3 { margin: 0; color: #111111; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.pol-card dl { margin: 0; }
.pol-card dt { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6B7B8D; line-height: 1.4; }
.pol-card dd { margin: 0 0 10px; font-weight: 600; font-size: 16px; line-height: 1.4; color: #111111; }
.pol-summary-note { grid-column: 1 / -1; margin: 0 !important; font-size: 14px; color: #6B7B8D; }

.pol-related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 20px 0 0; margin: 0 0 36px; border-top: 1px solid #E3E8EE; }
.pol-related span { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #6B7B8D; margin-right: 4px; }
.pol-related a { border: 2px solid #0169B8; border-radius: 30px; padding: 7px 16px; font-weight: 700; font-size: 15px; line-height: 1.4; color: #0169B8; }
.pol-related a:hover { background: #0169B8; color: #fff; }

.pol-questions { background: #F5F7FA; border: 1px solid #E3E8EE; border-top: 4px solid #0169B8; border-radius: 16px; padding: clamp(22px, 3vw, 30px); }
.pol-questions h2 { margin: 0 0 6px; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.15; letter-spacing: -.01em; color: #111111; }
.pol-questions p { margin: 0 0 18px; color: #4A5A6C; font-size: 17px; }
.pol-q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.pol-q-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.pol-q-btn { padding: 13px 26px; font-size: 16px; line-height: 1.4; }

.pol-top {
  position: fixed; right: 20px; bottom: 98px; z-index: 89; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 30px; padding: 10px 16px; background: #111111; color: #fff; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(17, 17, 17, .25);
}
.pol-top:hover { background: #0169B8; }

@media (max-width: 959.98px) {
  .pol-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
  .pol-toc { display: none; }
  .pol-jump { display: block; }
}
@media (max-width: 639.98px) {
  .pol-summary { grid-template-columns: minmax(0, 1fr); }
  .pol-main { font-size: 17px; }
}

/* ---------- Sitemap (src/sitemap.mjs) ---------- */
.sm-body { background: #F5F7FA; padding: clamp(36px, 6vw, 72px) 24px clamp(56px, 8vw, 96px); }
.sm-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: start; }
.sm-group { background: #fff; border: 1px solid #E3E8EE; border-top: 5px solid #0169B8; border-radius: 16px; padding: 24px 26px; box-shadow: 0 2px 10px rgba(17, 17, 17, .05); }
.sm-group--wide { grid-column: 1 / -1; }
.sm-group h2 { margin: 0 0 14px; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.sm-group h2 a { color: #111111; }
.sm-group h2 a:hover { color: #0169B8; }
.sm-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 16px; line-height: 1.4; }
.sm-group--wide ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 9px 32px; }
.sm-group li a { color: #2B3642; font-weight: 600; }
.sm-group li a:hover { color: #0169B8; text-decoration: underline; }

/* Store grids: no colored dot above product and category titles. */
html body #my-store-1805034 .grid-product__title::before,
html body #my-store-1805034 .grid-category__title::before {
  display: none !important;
}

/* Hover and focus states from the designs */
.pdafb498:hover{color:#014F8A !important}
.p00a919a:hover{background:#fff !important;color:#0169B8 !important;border-color:#fff !important}
.pf38956a:hover{background:#fff !important;color:#111111 !important}
.p0f390cc:hover{background:#fff !important;color:#0169B8 !important}
.p32a9fcc:hover{background:#0169B8 !important;color:#fff !important}
.pa4a3119:focus-within{border-color:#0169B8 !important}
.p1eb4b45:hover{background:#014F8A !important;color:#fff !important}
.p23961f9:hover{background:#F5F7FA !important;box-shadow:inset 0 -4px 0 #0169B8 !important}
.peb4792a:hover{transform:translateY(-4px) !important;color:#0169B8 !important}
.pf932eec:hover{background:#0169B8 !important;color:#fff !important;border-color:#0169B8 !important}
.p0d2c248:hover{transform:translateY(-4px) !important;box-shadow:0 12px 28px rgba(20,32,46,.14) !important}
.p510ff13:hover{filter:brightness(1.08) !important}
.pc6058bf:hover{background:#E6EEF6 !important;color:#111111 !important}
.pdfbd43d:hover{background:#111111 !important}
.p56c33d6:hover{color:#0169B8 !important}
.pd832c7c:hover{background:#F5F7FA !important}
.p4a67cb0:hover{color:#D0103A !important}
.p198155b:focus-within{border-color:#0169B8 !important;box-shadow:0 0 0 3px rgba(1,105,184,.25) !important}
.p4d254d2:hover{border-color:#0169B8 !important;color:#0169B8 !important}
.p652f949:hover{background:#E6EEF6 !important;color:#014F8A !important;border-color:#E6EEF6 !important}
.pb2f3068:hover{background:#F5F7FA !important;color:#0169B8 !important}
.p9710493:hover{background:#111111 !important;color:#fff !important}
.p4543ca0:hover{color:#E6EEF6 !important}
.p130b6dd:hover{box-shadow:0 8px 24px rgba(1,105,184,.25) !important}
.p3214f7b:hover{box-shadow:0 10px 28px rgba(1,105,184,.18) !important;color:#111111 !important}
