/* Pixstock — custom styles (on top of Bootstrap 5.3) */
:root {
  --px-ink: #0F1115;
  --px-ink-2: #262B33;
  --px-text: #4A525E;
  --px-muted: #6B7380;
  --px-line: #D9DEE4;
  --px-line-soft: #E6E9ED;
  --px-surface: #F4F6F8;
  --px-accent: #1FA9F0;
  --px-accent-soft: #E4F4FD;
  --px-link: #0A7CC2;
  --px-link-hover: #075E94;
  --px-danger: #E5484D;
  --px-radius: 12px;
  --row-h: 220px;
  --bs-body-font-family: 'Outfit', sans-serif;
  --bs-body-color: var(--px-ink);
}
body { font-family: 'Outfit', sans-serif; color: var(--px-ink); -webkit-font-smoothing: antialiased; }
a { color: var(--px-link); text-decoration: none; }
a:hover { color: var(--px-link-hover); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }

/* Header */
.px-header { position: sticky; top: 0; z-index: 1030; background: var(--px-ink); }
.px-header-inner { height: 68px; display: flex; align-items: center; gap: 36px; padding: 0 32px; }
.px-logo { display: flex; flex-shrink: 0; }
.px-logo img { height: 30px; width: auto; display: block; }
.px-nav { flex: 1; min-width: 0; }
.px-nav > ul { display: flex; gap: 2px; }
.px-dd { position: relative; }
.px-nav-link { background: none; border: 0; color: #E7EAEE; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.px-nav-link i { font-size: 11px; transition: transform .2s; }
.px-nav-link:hover, .px-dd.open .px-nav-link { background: rgba(255,255,255,.08); color: #fff; }
.px-dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(15,17,21,.18); margin: 0; }
.px-dd-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--px-ink); font-size: 15px; }
.px-dd-menu a:hover { background: var(--px-surface); color: var(--px-ink); }
.px-dd.open .px-dd-menu { display: block; }
.px-dd.open .px-nav-link i { transform: rotate(180deg); }
.px-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.px-icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: #E7EAEE; font-size: 18px; }
.px-icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.px-icon-btn .bi-list { font-size: 24px; }
.px-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--px-accent); color: var(--px-ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.px-badge.d-none { display: none !important; }
.px-login { margin-left: 10px; background: #fff; color: var(--px-ink); font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 10px; white-space: nowrap; }
.px-login:hover { background: var(--px-accent-soft); color: var(--px-ink); }
@media (min-width: 992px) {
  .px-dd:hover .px-dd-menu { display: block; }
  .px-dd:hover .px-nav-link { background: rgba(255,255,255,.08); color: #fff; }
  .px-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
}
@media (max-width: 991.98px) {
  .px-header-inner { gap: 16px; padding: 0 20px; }
  .px-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--px-ink); border-top: 1px solid #262B33; padding: 12px 20px 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .px-nav.open { display: block; }
  .px-nav > ul { flex-direction: column; }
  .px-nav-link { width: 100%; justify-content: space-between; padding: 12px; font-size: 16px; }
  .px-dd-menu { position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; }
  .px-dd-menu a { color: #C9CED6; }
  .px-dd-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
}
@media (max-width: 575.98px) {
  .px-login { padding: 8px 14px; margin-left: 4px; }
  .px-actions a[aria-label="Language"] { display: none; }
}

/* Search + tags */
.px-search { display: flex; align-items: stretch; height: 54px; background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-radius); overflow: hidden; }
.px-search-lg { height: 62px; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.05); }
.px-search-type { display: flex; align-items: center; gap: 10px; padding: 0 16px 0 18px; margin: 0; border-right: 1px solid var(--px-line-soft); font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer; }
.px-search-type i { color: var(--px-muted); }
.px-search-type .bi-chevron-down { font-size: 11px; }
.px-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 18px; font-size: 16px; color: var(--px-ink); background: transparent; }
.px-search-lg input { font-size: 17px; }
.px-search button { border: 0; background: var(--px-ink); color: #fff; width: 64px; font-size: 19px; }
.px-search button:hover { background: var(--px-ink-2); }
.px-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.px-tags-label { font-size: 14px; color: var(--px-muted); margin-right: 4px; }
.px-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--px-line); background: #fff; border-radius: 999px; font-size: 14px; color: #2A303A; }
.px-tag i { font-size: 11px; }
.px-tag:hover { border-color: var(--px-accent); color: var(--px-link); }
@media (max-width: 575.98px) { .px-search-type { display: none; } }

/* Hero */
.px-hero { background: var(--px-surface); border-bottom: 1px solid var(--px-line-soft); }
.px-hero .container-xxl { padding: 64px 32px 48px; }
.px-hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--px-link); }
.px-hero-free { color: var(--px-link); font-weight: 600; }
.px-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.px-hero p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--px-text); }
@media (max-width: 575.98px) { .px-hero .container-xxl { padding: 40px 20px 32px; } }

/* Sections */
.px-section { padding-top: 48px; padding-bottom: 80px; }
.container-xxl.px-section { padding-left: 32px; padding-right: 32px; }
.px-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.px-section-head h2 { margin: 0; font-size: 28px; }
.px-more { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; }

/* Justified gallery (CSS only: each tile sets --r = width / height) */
.px-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.px-gallery-sm { --row-h: 190px; }
.px-tile { position: relative; flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row-h)); max-width: calc(var(--r) * var(--row-h) * 1.6); aspect-ratio: var(--r); border-radius: 10px; overflow: hidden; background: #E9EDF1; }
.px-gallery-spacer { flex-grow: 100; flex-basis: 0; }
.px-tile-link, .px-tile img { display: block; width: 100%; height: 100%; }
.px-tile img { object-fit: cover; transition: transform .5s ease; }
.px-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,17,21,.35) 0%, rgba(15,17,21,0) 35%, rgba(15,17,21,0) 60%, rgba(15,17,21,.6) 100%); opacity: 0; transition: opacity .2s; }
.px-tile:hover img { transform: scale(1.04); }
.px-tile:hover::after { opacity: 1; }
.px-gallery-sm .px-tile::after { display: none; }
.px-gallery-sm .px-tile:hover img { transform: none; opacity: .88; }
.px-tile-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; opacity: 0; transition: opacity .2s; }
.px-ai-badge { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; background: rgba(15,17,21,.7); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; }
.px-ai-badge i { color: #5CC6F7; }
.px-tile:hover .px-tile-actions, .px-tile:hover .px-ai-badge, .px-tile:focus-within .px-tile-actions { opacity: 1; }
.px-tile-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.95); color: var(--px-ink); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.px-tile-btn.active .bi-heart-fill { color: var(--px-danger); }
@media (hover: none) { .px-tile-actions { opacity: 1; } }
@media (max-width: 1199.98px) { :root { --row-h: 190px; } .px-gallery-sm { --row-h: 170px; } }
@media (max-width: 767.98px) { :root { --row-h: 140px; } .px-gallery-sm { --row-h: 120px; } .container-xxl.px-section { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 479.98px) { :root { --row-h: 100px; } .px-gallery-sm { --row-h: 90px; } }

/* Product */
.px-product { padding: 28px 32px 0; }
.px-product-search { margin-bottom: 40px; }
.px-breadcrumb { font-size: 14px; margin-bottom: 10px; --bs-breadcrumb-divider-color: var(--px-muted); --bs-breadcrumb-item-active-color: var(--px-muted); }
.px-breadcrumb a { color: var(--px-muted); }
.px-breadcrumb a:hover { color: var(--px-ink); }
.px-product-head { margin-bottom: 40px; }
.px-product-head h1 { margin: 0 0 10px; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.15; text-wrap: balance; }
.px-ai-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; background: var(--px-accent-soft); color: var(--px-link-hover); font-size: 14px; font-weight: 500; }
.px-main-image { position: relative; margin: 0 0 32px; border-radius: 16px; overflow: hidden; background: #E9EDF1; aspect-ratio: 800 / 622; }
.px-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-fullscreen { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.95); color: var(--px-ink); display: flex; align-items: center; justify-content: center; }
.px-fullscreen:hover { color: var(--px-ink); background: #fff; }
.px-description { max-width: 760px; }
.px-description h2 { font-size: 20px; margin-bottom: 12px; }
.px-description p { font-size: 16px; line-height: 1.65; color: var(--px-text); text-wrap: pretty; }
.px-aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 992px) { .px-aside { position: sticky; top: 96px; } }
.px-buy-card { border: 1px solid #E3E7EC; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 1px 2px rgba(15,17,21,.04), 0 10px 30px rgba(15,17,21,.05); }
.px-buy-card fieldset { display: flex; flex-direction: column; gap: 10px; }
.px-label { font-size: 14px; font-weight: 600; margin: 0; float: none; }
.px-size { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #E3E7EC; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.px-size:hover { border-color: #AEB5BF; }
.px-size:has(input:checked) { border-color: var(--px-ink); background: #F7F9FA; }
.px-size input { accent-color: var(--px-ink); width: 18px; height: 18px; margin: 0; }
.px-size-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.px-size-text strong { font-size: 15px; font-weight: 600; }
.px-size-text small { font-size: 13px; color: var(--px-muted); }
.px-size-price { font-size: 15px; font-weight: 600; }
.px-price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; border-top: 1px solid #EEF0F3; }
.px-price-row span { font-size: 15px; color: var(--px-text); }
.px-price-row strong { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.px-buy-actions { display: flex; gap: 10px; }
.px-btn-primary { flex: 1; height: 52px; border: 0; border-radius: 12px; background: var(--px-ink); color: #fff; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.px-btn-primary:hover { background: var(--px-ink-2); }
.px-btn-square { width: 52px; height: 52px; flex-shrink: 0; border: 1px solid var(--px-line); border-radius: 12px; background: #fff; font-size: 18px; color: var(--px-ink); }
.px-btn-square:hover, .px-btn-square[aria-expanded="true"] { border-color: var(--px-ink); }
.px-btn-square.active { color: var(--px-danger); }
.px-share { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--px-surface); }
.px-share[hidden] { display: none; }
.px-share-copy { display: flex; height: 42px; background: #fff; border: 1px solid var(--px-line); border-radius: 10px; overflow: hidden; }
.px-share-copy input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 12px; font-size: 14px; color: var(--px-text); background: transparent; }
.px-share-copy button { border: 0; border-left: 1px solid var(--px-line-soft); background: #fff; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--px-ink); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.px-share-copy button:hover { background: #F7F9FA; }
.px-share-links { display: flex; gap: 8px; }
.px-share-links a { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid #E3E7EC; display: flex; align-items: center; justify-content: center; color: var(--px-ink); font-size: 16px; cursor: pointer; }
.px-share-links a:hover { border-color: var(--px-ink); color: var(--px-ink); }
.px-perks { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--px-text); }
.px-perks li { display: flex; gap: 8px; align-items: center; }
.px-perks i { color: var(--px-link); }
.px-perks a { color: inherit; text-decoration: underline; text-decoration-color: var(--px-line); text-underline-offset: 3px; }
.px-perks a:hover { color: var(--px-link); text-decoration-color: currentColor; }
.px-license-box { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 760px; }
.px-license-box h3 { margin-bottom: 0; }
.px-aside .px-license-box { margin-top: 0; }
.px-perks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 15px; }
@media (min-width: 576px) { .px-perks-grid { grid-template-columns: repeat(3, max-content); column-gap: 56px; } }
.px-license-link { align-self: flex-start; font-size: 14px; color: var(--px-link); }
.px-block h3 { font-size: 16px; margin-bottom: 12px; }
.px-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 15px; margin: 0; }
.px-details dt { font-weight: 400; color: var(--px-muted); }
.px-details dd { margin: 0; }
.px-image-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.px-image-tags a { padding: 5px 12px; border-radius: 8px; background: #F1F3F5; color: #2A303A; font-size: 14px; }
.px-image-tags a:hover { background: var(--px-accent-soft); color: var(--px-link-hover); }
.px-report { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--px-muted); }
.px-report:hover { color: var(--px-ink); }
.px-related { padding-top: 64px; }
@media (max-width: 767.98px) { .px-product { padding: 20px 20px 0; } }

/* Footer */
.px-footer { background: var(--px-ink); color: #C9CED6; padding: 64px 32px 40px; }
.px-footer img { height: 34px; width: auto; }
.px-foot-text { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: #9BA3AE; max-width: 280px; }
.px-foot-title { font-size: 16px; color: #fff; margin-bottom: 18px; }
.px-foot-links { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.px-foot-links a { color: #C9CED6; font-size: 15px; }
.px-foot-links a:hover { color: #fff; }
.px-foot-bottom { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--px-ink-2); font-size: 14px; color: #9BA3AE; }
.px-socials { display: flex; gap: 6px; }
.px-socials a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #C9CED6; font-size: 17px; }
.px-socials a:hover { background: #1C2027; color: #fff; }
@media (max-width: 767.98px) { .px-footer { padding: 48px 20px 32px; } }

/* ==========================================================
   WordPress theme additions (pixstock26)
   ========================================================== */

/* Main menu: WordPress renders plain links instead of the mockup's dropdowns */
.px-nav > ul > li { list-style: none; }
a.px-nav-link { text-decoration: none; }
.px-nav .current-menu-item > .px-nav-link { background: rgba(255,255,255,.08); color: #fff; }

/* Search form without the mockup's "Images" type selector */
.px-search input[type="search"] { padding-left: 20px; }
.px-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* Results pages (shop, tags, orientation, search) */
.px-results { padding-bottom: 80px; }
.px-results-title { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.px-results-count { font-size: 15px; color: var(--px-muted); }
.px-empty { font-size: 16px; color: var(--px-text); }

/* Pagination */
.px-pagination { display: flex; justify-content: center; margin-top: 40px; }
.px-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0 3px; border: 1px solid var(--px-line); border-radius: 10px; color: var(--px-ink); font-weight: 500; }
.px-pagination a.page-numbers:hover { border-color: var(--px-ink); }
.px-pagination .page-numbers.current { background: var(--px-ink); border-color: var(--px-ink); color: #fff; }
.px-pagination .page-numbers.dots { border: 0; min-width: 20px; }

/* Product page tweaks */
.px-main-image { aspect-ratio: auto; }
.px-main-image img { height: auto; }
.px-breadcrumb .active a { color: var(--px-muted); }
.px-report { background: none; border: 0; padding: 0; }

/* Report popup (native <dialog>) */
.px-dialog { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 64px rgba(15,17,21,.28); color: var(--px-ink); }
.px-dialog::backdrop { background: rgba(15,17,21,.55); }
.px-dialog-form { padding: 24px; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.px-dialog h2 { font-size: 20px; margin: 0 0 8px; }
.px-dialog p { margin: 0 0 16px; color: var(--px-text); line-height: 1.55; }
.px-dialog textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--px-line); border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; }
.px-dialog textarea:focus { outline: 2px solid var(--px-accent); outline-offset: 0; border-color: transparent; }
.px-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.px-dialog-actions .px-btn-primary { flex: 0 0 auto; height: 44px; padding: 0 20px; }
.px-btn-secondary { height: 44px; padding: 0 20px; border: 1px solid var(--px-line); border-radius: 12px; background: #fff; color: var(--px-ink); font-weight: 600; }
.px-btn-secondary:hover { border-color: var(--px-ink); }
.px-dialog-form[data-state="form"] .px-dialog-thanks,
.px-dialog-form[data-state="form"] .px-dialog-close,
.px-dialog-form[data-state="thanks"] .px-dialog-body,
.px-dialog-form[data-state="thanks"] .px-btn-secondary,
.px-dialog-form[data-state="thanks"] .px-dialog-send { display: none; }

/* Plain pages and blog */
.px-page { padding: 40px 32px 80px; }
.px-page-article { max-width: 860px; }
.px-page-title { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: 24px; }
.px-content { font-size: 16px; line-height: 1.7; color: var(--px-text); }
.px-content h2, .px-content h3 { color: var(--px-ink); margin-top: 1.6em; }
.px-content img { max-width: 100%; height: auto; border-radius: 12px; }
.px-post-meta { font-size: 14px; color: var(--px-muted); margin-bottom: 8px; }
.px-post-meta a { color: var(--px-muted); }
.px-post-image img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 24px; }
.px-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.px-post-card h2 { font-size: 20px; margin-bottom: 8px; }
.px-post-card h2 a { color: var(--px-ink); }
.px-post-card-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.px-post-excerpt { color: var(--px-text); line-height: 1.6; }
@media (max-width: 767.98px) { .px-page { padding: 28px 20px 60px; } }

/* WooCommerce: reskin only (cart, checkout, my account keep WooCommerce's
   own markup) -- brand font, colors, buttons and inputs. */
.woocommerce, .woocommerce-page, .wc-block-components-text-input, .wc-block-cart, .wc-block-checkout { font-family: 'Outfit', sans-serif; }
.px-page .woocommerce a, .px-page .wc-block-cart a, .px-page .wc-block-checkout a { color: var(--px-link); }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.wc-block-components-button:not(.is-link), .wp-element-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--px-ink) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; font-weight: 600 !important; font-family: 'Outfit', sans-serif !important;
}
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover, .wp-element-button:hover { background: var(--px-ink-2) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page select { border: 1px solid var(--px-line); border-radius: 10px; padding: 10px 12px; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-block-components-textarea { border-radius: 10px !important; border-color: var(--px-line) !important; }
.wc-block-components-text-input.is-active input:focus, .wc-block-components-text-input input:focus { box-shadow: 0 0 0 1px var(--px-accent) !important; border-color: var(--px-accent) !important; }
.wc-block-components-product-name { color: var(--px-ink) !important; font-weight: 600; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 12px; font-family: 'Outfit', sans-serif; }
.woocommerce-notices-wrapper:not(:empty) { margin-bottom: 24px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--px-accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--px-accent); }
.woocommerce-message .button { float: right; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--px-ink); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--px-surface); color: var(--px-ink); }
.woocommerce table.shop_table { border-radius: 12px; border-color: var(--px-line-soft); }

/* Footer stays at the bottom on short pages (cart, empty results) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.px-footer { flex-shrink: 0; }

/* Cart, checkout and my account use the full container width */
.woocommerce-cart .px-page-article, .woocommerce-checkout .px-page-article, .woocommerce-account .px-page-article { max-width: none; }

/* Main menu: centered between the logo and the header actions on desktop
   (the phone menu stays a left-aligned list) */
@media (min-width: 992px) { .px-nav > ul { justify-content: center; } }

/* Tag row under the search box: wraps on larger screens; on phones one
   line that scrolls sideways, with arrow buttons */
.px-tags-wrap { position: relative; }
.px-tags-arrow { display: none; }
@media (max-width: 767.98px) {
  .px-tags { flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .px-tags::-webkit-scrollbar { display: none; }
  .px-tags .px-tag { flex-shrink: 0; white-space: nowrap; }
  .px-tags-label { display: none; }
  .px-tags-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--px-line); background: #fff; color: var(--px-ink); font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(15,17,21,.12); }
  .px-tags-arrow[hidden] { display: none; }
  .px-tags-prev { left: 0; }
  .px-tags-next { right: 0; }
  .px-tags-wrap { margin-top: 14px; }
  .px-tags-wrap .px-tags { margin-top: 0; }
  /* Fade the cut-off edge so it reads as "there's more" */
  .px-tags-wrap.has-next .px-tags { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .px-tags-wrap.has-prev .px-tags { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
  .px-tags-wrap.has-prev.has-next .px-tags { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
}

/* Log in / My account: text button on larger screens, an icon button
   (same look as the cart icon) on phones */
.px-login-icon { display: none; }
@media (max-width: 767.98px) {
  .px-login { width: 40px; height: 40px; padding: 0; margin-left: 0; border-radius: 10px; background: none; color: #E7EAEE; display: flex; align-items: center; justify-content: center; font-size: 20px; }
  .px-login:hover { background: rgba(255,255,255,.08); color: #fff; }
  .px-login-icon { display: inline; }
  .px-login-text { display: none; }
}

/* Desktop: larger header and footer logos (phones/tablets keep 30px / 34px) */
@media (min-width: 992px) {
  .px-logo img, .px-footer img { height: 40px; }
}

/* Phones: the product page's .row.g-5 (48px gutter) pulls its columns 24px
   outward, past the 20px page padding -> sideways scroll. Use a gutter
   that fits inside the padding. */
@media (max-width: 767.98px) {
  .px-product > .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* Intro paragraph on content pages (block class "px-lead") */
.px-content .px-lead { font-size: 19px; line-height: 1.6; color: var(--px-ink); margin-bottom: 1.5em; }

/* FAQ: expandable questions (core Details block with class "px-faq") */
.px-content h2 + .px-faq, .px-content .px-faq + .px-faq { margin-top: 0; }
.px-faq { border-bottom: 1px solid var(--px-line-soft); padding: 0; }
.px-content h2 + .px-faq { border-top: 1px solid var(--px-line-soft); }
.px-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--px-ink); }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 13px; color: var(--px-muted); transition: transform .2s; flex-shrink: 0; }
.px-faq[open] summary::after { transform: rotate(180deg); }
.px-faq summary:hover { color: var(--px-link); }
.px-faq > :not(summary) { margin: 0 0 16px; }
.px-faq > p:last-child, .px-faq > figure:last-child { margin-bottom: 20px; }

/* Size table inside the FAQ */
.px-size-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.px-size-table th, .px-size-table td { padding: 8px 12px; border-bottom: 1px solid var(--px-line-soft); text-align: left; white-space: nowrap; }
.px-size-table th { color: var(--px-ink); font-weight: 600; background: var(--px-surface); }
.px-size-table figcaption { font-size: 13px; color: var(--px-muted); margin-top: 6px; }
.px-size-table { overflow-x: auto; }

/* Wishlist (WCBoost plugin buttons restyled as the design's hearts; see functions.php) */
.px-btn-square.wcboost-wishlist-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.px-btn-square.wcboost-wishlist-button:hover { color: var(--px-danger); }
.px-tile-btn.wcboost-wishlist-button { text-decoration: none; }
.px-tile-btn.wcboost-wishlist-button:hover { color: var(--px-danger); }
.wcboost-wishlist-button.added { color: var(--px-danger); }
.px-btn-square .wcboost-wishlist-button__icon, .px-tile-btn .wcboost-wishlist-button__icon { margin: 0; display: flex; line-height: 1; }
.px-btn-square .wcboost-wishlist-button__icon svg, .px-tile-btn .wcboost-wishlist-button__icon svg { width: 1em; height: 1em; }
.px-tile-actions:has(.wcboost-wishlist-button.added) { opacity: 1; }

/* Wishlist page (the plugin's [wcboost_wishlist] table inside page.php) */
.wcboost-wishlist .wishlist_table { border: 1px solid var(--px-line); border-radius: 12px; border-collapse: separate; overflow: hidden; margin-bottom: 24px; }
.wcboost-wishlist .wishlist_table th { background: var(--px-surface); color: var(--px-ink); font-weight: 600; font-size: 14px; }
.wcboost-wishlist .wishlist_table td { vertical-align: middle; }
.wcboost-wishlist .wishlist_table .product-thumbnail img { max-width: 140px; width: 140px; border-radius: 8px; }
.wcboost-wishlist .wishlist_table .product-name a { color: var(--px-ink); font-weight: 600; text-decoration: none; }
.wcboost-wishlist .wishlist_table .product-name a:hover { text-decoration: underline; }
.wcboost-wishlist .wishlist_table .product-date { color: var(--px-muted); font-size: 14px; white-space: nowrap; }
.wcboost-wishlist .wishlist_table a.remove { color: var(--px-muted) !important; font-size: 22px; }
.wcboost-wishlist .wishlist_table a.remove:hover { background: var(--px-danger); color: #fff !important; }
.wcboost-wishlist .button, .wcboost-wishlist a.button { background: var(--px-ink); color: #fff; border-radius: 10px; padding: 10px 18px; font-weight: 600; white-space: nowrap; }
.wcboost-wishlist .button:hover { background: var(--px-ink-2); color: #fff; }
.wcboost-wishlist .woocommerce-info { border-radius: 12px; }
.wcboost-wishlist-edit-link-wrapper { font-size: 14px; }
.wishlist-share__title { font-size: 16px; font-weight: 600; color: var(--px-ink); margin: 8px 0 12px; }
.px-content .wishlist-share__buttons a { border: 1px solid var(--px-line); border-radius: 10px; background: #fff; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--px-ink); }
.px-content .wishlist-share__buttons a:hover { border-color: var(--px-ink); }
/* Phones: WooCommerce stacks the table into label/value rows; drop the
   stray ":" on unlabeled cells and show the image full width. */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive.wishlist_table tr td:not([data-title])::before { content: none; }
  .woocommerce table.shop_table_responsive.wishlist_table tr td.product-remove { text-align: right !important; padding-bottom: 0; }
  .woocommerce table.shop_table_responsive.wishlist_table tr td.product-thumbnail { display: block; text-align: left !important; }
  .wcboost-wishlist .wishlist_table .product-thumbnail img { width: 100%; max-width: none; }
}

/* Collections */
.px-collection-intro { max-width: 860px; margin-top: 12px; }
.px-collection-intro > :last-child { margin-bottom: 0; }
.px-collection-lead { font-size: 17px; color: var(--px-text); margin: 0; max-width: 760px; }
.px-free-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 40px; border-radius: var(--px-radius); background: var(--px-accent-soft); color: var(--px-ink); }
.px-free-banner i { font-size: 22px; color: var(--px-link); }
.px-free-banner p { margin: 0; font-size: 16px; }
.px-free-banner strong { color: var(--px-link); }
.px-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.px-collection-card { display: flex; flex-direction: column; gap: 4px; color: var(--px-ink); }
.px-collection-card:hover { color: var(--px-link); }
.px-collection-cover { display: block; aspect-ratio: 4 / 3; border-radius: var(--px-radius); overflow: hidden; background: var(--px-surface); margin-bottom: 8px; }
.px-collection-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.px-collection-card:hover .px-collection-cover img { transform: scale(1.03); }
.px-collection-name { font-size: 18px; font-weight: 600; }
.px-collection-count { font-size: 14px; color: var(--px-muted); }
.px-tile-remove:hover { color: var(--px-danger); }
.px-collection-links { display: flex; flex-wrap: wrap; gap: 8px; }
.px-collection-links a { padding: 5px 12px; border-radius: 8px; background: var(--px-accent-soft); color: var(--px-link); font-size: 14px; }
.px-collection-links a:hover { color: var(--px-link-hover); }
@media (max-width: 575.98px) { .px-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .px-collection-name { font-size: 16px; } }
