/* WP668 Design Library v1 — component styles, scoped to avoid Astra/Elementor conflicts. */
.wp668-dsg { --dsg-red:#C91424; --dsg-ink:#252020; --dsg-border:#EDE1DB; font-family:inherit; width:100%; min-width:0; }
.wp668-dsg *, .wp668-dsg *::before, .wp668-dsg *::after { box-sizing:border-box; }
.wp668-dsg-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:0 0 26px; }
.wp668-dsg-filter { min-width:0; min-height:58px; padding:11px 9px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid #EEE2DA; border-radius:12px; background:#fff; color:#534741; font-family:inherit; font-size:12px; line-height:1.5; font-weight:650; cursor:pointer; transition:background .2s,border-color .2s,color .2s; }
.wp668-dsg-filter:hover, .wp668-dsg-filter.is-active { border-color:#EAC7C6; background:#FFF0ED; color:var(--dsg-red); }
.wp668-dsg-filter:focus-visible, .wp668-dsg a:focus-visible { outline:3px solid #EF865F; outline-offset:3px; }
.wp668-dsg-filter-icon { display:grid; flex:none; place-items:center; width:25px; height:25px; border-radius:7px; background:#FAEEE9; color:var(--dsg-red); font-size:15px; }
.wp668-dsg-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.wp668-dsg-card { min-width:0; height:100%; display:flex; flex-direction:column; overflow:hidden; background:#fff; border:1px solid var(--dsg-border); border-radius:14px; transition:transform .2s,box-shadow .2s,border-color .2s; }
.wp668-dsg-card[hidden] { display:none !important; }
.wp668-dsg-cover { display:block; overflow:hidden; width:100%; aspect-ratio:1.88; background:#E8EEE9; text-decoration:none !important; }
.wp668-dsg-image { display:block; width:100%; height:100% !important; object-fit:cover; object-position:center; }
.wp668-dsg-placeholder { display:flex; flex-direction:column; gap:9px; height:100%; margin:14px; padding:13px; border:7px solid #fff; border-radius:7px; background:#fff; box-shadow:0 8px 18px #3332; }
.wp668-dsg-mini-top { height:10px; flex:0 0 10px; width:60%; background:#E4EAE5; border-radius:4px; }
.wp668-dsg-mini-hero { flex:1; background:linear-gradient(135deg,#2C5556,#669290); border-radius:3px; }
.wp668-dsg-mini-bars { height:20px; flex:0 0 20px; background:linear-gradient(90deg,#E9EDE5 32%,transparent 32% 34%,#DAE5D7 34% 66%,transparent 66% 68%,#E7E0D2 68%); border-radius:3px; }
.wp668-dsg-content { flex:1; padding:18px 19px 15px; }
.wp668-dsg-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:7px; color:var(--dsg-red); font-size:11px; font-weight:700; }
.wp668-dsg-meta small { color:#A08D84; font-size:10px; font-weight:400; white-space:nowrap; }
.wp668-dsg-title { margin:0 !important; color:var(--dsg-ink); font-size:17px !important; line-height:1.45 !important; font-weight:750 !important; letter-spacing:normal !important; }
.wp668-dsg-title a { color:inherit; text-decoration:none !important; }
.wp668-dsg-title a:hover { color:var(--dsg-red); }
.wp668-dsg-summary { margin:9px 0 0 !important; color:#897A73; font-size:12px; line-height:1.8; }
.wp668-dsg-footer { min-height:45px; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 19px; border-top:1px solid #F2E9E4; font-size:12px; }
.wp668-dsg-footer a { color:var(--dsg-red); font-weight:750; text-decoration:none !important; }
.wp668-dsg-footer a:hover { text-decoration:underline !important; }
.wp668-dsg-footer .wp668-dsg-consult { color:#A18B80; font-weight:500; }
.wp668-dsg-footer .wp668-dsg-consult.is-disabled { cursor:default; }
.wp668-dsg-empty,.wp668-dsg-no-match { padding:28px 18px; border:1px dashed #E8D4CF; border-radius:14px; background:#fff; text-align:center; color:#897A73; font-size:14px; }
.wp668-dsg-no-match { margin-top:15px; }
.wp668-dsg-no-match[hidden] { display:none; }
@media(hover:hover) and (pointer:fine) { .wp668-dsg-card:hover { transform:translateY(-4px); box-shadow:0 15px 42px rgba(68,29,22,.065); border-color:#E6C9BD; } }
/* WP668 V2.0 reference — tablet: 3x2 filters + 2-column cards. */
@media (max-width: 980px) {
  .wp668-dsg-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 24px;
  }
  .wp668-dsg-filter {
    min-height: 46px;
    padding: 9px 6px;
    gap: 7px;
    font-size: 11px;
  }
  .wp668-dsg-filter-icon { width: 22px; height: 22px; font-size: 13px; }
  .wp668-dsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .wp668-dsg-cover { aspect-ratio: 1.68; }
  .wp668-dsg-image { object-fit: contain; }
  .wp668-dsg-content { padding: 13px 14px 12px; }
  .wp668-dsg-meta { font-size: 10px; margin-bottom: 6px; gap: 5px; }
  .wp668-dsg-meta small { font-size: 9px; }
  .wp668-dsg-title { font-size: 14px !important; line-height: 1.4 !important; }
  .wp668-dsg-summary { font-size: 11px; line-height: 1.65; margin-top: 7px !important; }
  .wp668-dsg-footer { min-height: 37px; padding: 9px 14px; font-size: 11px; }
}
/* Small tablet / large phone: keep two cards per row like the supplied design. */
@media (max-width: 600px) {
  .wp668-dsg-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
  .wp668-dsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wp668-dsg-cover { aspect-ratio: 1.46; }
  .wp668-dsg-content { padding: 12px 12px 10px; }
  .wp668-dsg-title { font-size: 13px !important; }
  .wp668-dsg-footer { padding: 9px 12px; }
}
/* Handset reference — 3x2 vertical category pills and compact 2-column designs. */
@media (max-width: 480px) {
  .wp668-dsg-filters { gap: 8px; margin-bottom: 28px; }
  .wp668-dsg-filter {
    flex-direction: column;
    gap: 5px;
    min-height: 72px;
    padding: 9px 3px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
  }
  .wp668-dsg-filter-icon { width: 22px; height: 22px; font-size: 13px; }
  .wp668-dsg-grid { gap: 10px; }
  .wp668-dsg-cover { aspect-ratio: 1.36; }
  .wp668-dsg-image { object-fit: contain; }
  .wp668-dsg-content { padding: 11px 10px 10px; }
  .wp668-dsg-meta { font-size: 9px; gap: 4px; margin-bottom: 7px; }
  .wp668-dsg-meta small { font-size: 8px; }
  .wp668-dsg-title { font-size: 12px !important; line-height: 1.36 !important; overflow-wrap: anywhere; }
  .wp668-dsg-summary { font-size: 10px; line-height: 1.6; margin-top: 7px !important; }
  .wp668-dsg-footer { min-height: 34px; padding: 8px 10px; font-size: 10px; }
  .wp668-dsg-footer a { font-size: inherit; }
  .wp668-dsg-footer .wp668-dsg-consult { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce){.wp668-dsg-card,.wp668-dsg-filter{transition:none !important;} .wp668-dsg-card:hover{transform:none !important;} }


/* Optional Elementor Free helpers: add these classes to the existing containers/widgets.
   They intentionally change layout only, not global Astra typography or colors. */
.wp668-collection-header {
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
}
.wp668-collection-all { margin-left: auto; flex-shrink: 0; }
.wp668-collection-cta {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}
@media (max-width: 480px) {
  .wp668-collection-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }
  .wp668-collection-all { margin-left: 0 !important; align-self: flex-start !important; }
  .wp668-collection-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .wp668-collection-cta-btn,
  .wp668-collection-cta-btn .elementor-button-wrapper,
  .wp668-collection-cta-btn .elementor-button { width: 100% !important; }
  .wp668-collection-cta-btn .elementor-button { justify-content: center; }
}

/* V1.2 — actual website-designs Elementor Page + dynamic directory (from V2.0 prototype). */
.wp668-catalog, .wp668-cat-strip, .wp668-catalog-art { --wp668-red:#C91424; --wp668-line:#EDE2DC; --wp668-text:#453B39; font-family:inherit; min-width:0; }
.wp668-catalog *, .wp668-cat-strip *, .wp668-catalog-art * { box-sizing:border-box; }
.wp668-catalog a, .wp668-cat-strip a { text-decoration:none !important; }
.wp668-catalog a:focus-visible, .wp668-cat-strip a:focus-visible, .wp668-catalog button:focus-visible, .wp668-catalog input:focus-visible, .wp668-catalog select:focus-visible { outline:3px solid #FFA486; outline-offset:2px; }
.wp668-cat-strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:11px; margin-bottom:32px; }
.wp668-cat-item { min-width:0; min-height:68px; display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid #F0E1DA; border-radius:13px; background:#fff; color:#252020 !important; font-size:13px; line-height:1.4; font-weight:700; padding:10px 8px; transition:background .18s,border-color .18s,box-shadow .18s; }
.wp668-cat-item:hover, .wp668-cat-item.is-active { background:#FFF4F0; border-color:#E7B8AF; box-shadow:0 8px 18px #53261B0A; }
.wp668-cat-item.is-active { color:#C91424 !important; }
.wp668-cat-icon { display:grid; flex:none; place-items:center; width:33px; height:33px; border-radius:10px; background:#FAECE7; color:#C91424; font-size:16px; font-weight:800; }
.wp668-catalog-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 0 20px; }
.wp668-catalog-head h2 { margin:0 !important; font-size:28px !important; color:#252020; font-weight:800 !important; }
.wp668-catalog-head p { margin:5px 0 0 !important; color:#746964; font-size:12px; }
.wp668-catalog-prototype { font-size:11px; color:#967246; background:#FFF4E6; border:1px solid #F3E3C2; border-radius:99px; padding:6px 11px; }
.wp668-catalog-columns { display:grid; grid-template-columns:242px minmax(0,1fr); align-items:start; gap:24px; }
.wp668-catalog-side { display:grid; gap:15px; min-width:0; }
.wp668-catalog-side-card { border:1px solid #EDE2DC; background:#fff; border-radius:15px; padding:19px; }
.wp668-catalog-side-card h3 { color:#252020; font-size:15px; font-weight:750; margin:0 0 15px !important; }
.wp668-catalog-side-cats { display:grid; gap:2px; }
.wp668-catalog-side-cats a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 9px; border-radius:9px; font-size:13px; color:#655B56; }
.wp668-catalog-side-cats a:hover, .wp668-catalog-side-cats a.is-active { background:#FFF0EC; color:#B31727; }
.wp668-catalog-side-cats span { color:#BAACA6; font-size:15px; }
.wp668-catalog-help { background:#292321; color:#fff; border-radius:15px; padding:22px; }
.wp668-catalog-help > span { color:#FFB69D; font-size:10px; letter-spacing:.12em; font-weight:800; }
.wp668-catalog-help h3 { font-size:18px; line-height:1.5; color:#fff; margin:10px 0 8px !important; font-weight:800; }
.wp668-catalog-help p { font-size:12px; line-height:1.8; margin:0 0 12px !important; color:#DBCEC7; }
.wp668-catalog-help-btn { display:block; text-align:center; background:#C91424; padding:11px; color:#fff !important; border-radius:9px; font-size:12px; font-weight:750; }
.wp668-catalog-articles a { display:block; color:#594D48; font-size:12px; line-height:1.65; padding:10px 0; border-top:1px solid #F2EAE6; }
.wp668-catalog-articles a:hover { color:#C91424; }
.wp668-catalog-main { min-width:0; }
.wp668-catalog-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:9px; background:#fff; border:1px solid #EDE2DC; padding:12px; border-radius:14px; margin:0 0 15px; }
.wp668-catalog-toolbar input, .wp668-catalog-toolbar select { font-family:inherit; background:#FFFDFC; border:1px solid #E9DEDA; border-radius:8px; height:38px; font-size:12px; color:#453B39; margin:0 !important; padding:8px 10px; box-shadow:none; }
.wp668-catalog-search { flex:1 1 190px; min-width:100px; margin:0; }
.wp668-catalog-search input { width:100%; }
.wp668-catalog-toolbar button { cursor:pointer; }
.wp668-catalog-submit { height:38px; background:#C91424; color:#fff; border:0; border-radius:8px; padding:0 12px; font-size:12px; font-weight:700; }
.wp668-catalog-sort { margin:0; }
.wp668-catalog-sort select { width:auto; min-width:111px; }
.wp668-catalog-result { font-size:12px; color:#948780; white-space:nowrap; }
.wp668-catalog-view { display:flex; padding:3px; border:1px solid #EBE0DD; border-radius:9px; gap:3px; }
.wp668-catalog-view button { background:transparent; color:#897E78; border:0; border-radius:6px; font-size:15px; line-height:1; width:31px; height:30px; padding:0; }
.wp668-catalog-view button.is-active { background:#FAECE7; color:#C91424; }
.wp668-catalog-active { font-size:12px; color:#7A6D66; padding:0 2px 13px; }
.wp668-catalog-active a { color:#C91424; margin-left:8px; }
.wp668-catalog-products .wp668-dsg-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.wp668-catalog-products .wp668-dsg-cover { aspect-ratio:1.72; }
.wp668-catalog-products .wp668-dsg-image { object-fit:cover; }
.wp668-catalog-products .wp668-dsg-content { padding:15px 15px 13px; }
.wp668-catalog-products .wp668-dsg-title { font-size:15px !important; }
.wp668-catalog-products .wp668-dsg-summary { font-size:11.5px; }
.wp668-catalog-products .wp668-dsg-footer { padding:10px 15px; font-size:11px; }
.wp668-catalog-products .wp668-dsg-grid.is-list { grid-template-columns:1fr; }
.wp668-catalog-products .is-list .wp668-dsg-card { flex-direction:row; height:auto; }
.wp668-catalog-products .is-list .wp668-dsg-cover { width:34%; flex:0 0 34%; aspect-ratio:auto; min-height:170px; }
.wp668-catalog-products .is-list .wp668-dsg-content { flex:1; padding:18px; }
.wp668-catalog-products .is-list .wp668-dsg-footer { flex:0 0 130px; flex-direction:column; align-items:flex-start; justify-content:center; border-top:0; border-left:1px solid #F2E9E4; }
.wp668-catalog-empty { background:#fff; border:1px dashed #E5D5CE; border-radius:14px; padding:50px 20px; text-align:center; }
.wp668-catalog-empty h3 { margin:0 0 8px; font-size:18px; }
.wp668-catalog-empty p { color:#897A73; }
.wp668-catalog-empty a { color:#C91424; font-weight:700; }
.wp668-catalog-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:24px; }
.wp668-catalog-pagination a { display:grid; place-items:center; width:36px; height:36px; background:#fff; border:1px solid #EDE2DC; border-radius:9px; color:#453B39; font-size:13px; }
.wp668-catalog-pagination a.is-current { background:#C91424; border-color:#C91424; color:white; }
.wp668-catalog-filter-open, .wp668-catalog-close { display:none; }
.wp668-catalog-backdrop[hidden] { display:none !important; }
/* CSS-only mock browser from category page V2 prototype. */
.wp668-catalog-art { height:215px; border:1px solid #F0DCD3; border-radius:23px; background:linear-gradient(135deg,#FFEBE2,#FFF5EC 48%,#F5D4CE); position:relative; overflow:hidden; }
.wp668-catalog-art:before { content:""; position:absolute; width:290px; height:290px; right:-70px; top:-140px; border:45px solid #DD4F4218; border-radius:50%; }
.wp668-catalog-art-window { position:absolute; width:250px; height:165px; top:21px; left:50%; transform:translateX(-50%) rotate(-6deg); background:white; border:4px solid white; border-radius:12px; box-shadow:0 22px 35px #6D382F33; overflow:hidden; }
.wp668-catalog-art-bar { height:23px; display:flex; gap:4px; align-items:center; padding:0 11px; background:#F3F1F0; }
.wp668-catalog-art-bar i { width:6px; height:6px; background:#D8C5BD; border-radius:50%; }
.wp668-catalog-art-screen { height:77px; display:flex; gap:10px; align-items:center; padding:15px; background:#223A40; }
.wp668-catalog-art-lines { flex:1; }
.wp668-catalog-art-lines b { display:block; width:90px; height:7px; background:#fff; border-radius:4px; margin-bottom:7px; }
.wp668-catalog-art-lines b:nth-child(2) { width:62px; }
.wp668-catalog-art-lines small { display:block; width:85px; height:4px; background:#7FA3A4; border-radius:4px; margin-top:12px; }
.wp668-catalog-art-shape { width:80px; height:58px; flex:0 0 80px; transform:rotate(-12deg); background:linear-gradient(145deg,#9DBDB8,#426F70); clip-path:polygon(14% 25%,74% 0%,100% 33%,87% 99%,5% 80%); }
.wp668-catalog-art-blocks { display:flex; padding:13px 12px; gap:8px; }
.wp668-catalog-art-blocks i { flex:1; height:25px; border-radius:4px; background:#F1F0EE; }
.wp668-catalog-art-flag { position:absolute; bottom:14px; right:25px; background:#C91424; padding:10px 12px; color:white; font-size:11px; border-radius:10px; box-shadow:0 9px 20px #B830262E; font-weight:700; }

@media(max-width:1060px) {
 .wp668-catalog-columns { grid-template-columns:205px minmax(0,1fr); gap:17px; }
 .wp668-catalog-products .wp668-dsg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .wp668-cat-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .wp668-catalog-art { height:187px; }
}
@media(max-width:760px) {
 .wp668-cat-strip { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:10px; margin-bottom:25px; padding-bottom:6px; }
 .wp668-cat-item { min-width:140px; flex:0 0 140px; min-height:66px; justify-content:flex-start; text-align:left; scroll-snap-align:start; }
 .wp668-catalog-head { align-items:flex-start; flex-direction:column; }
 .wp668-catalog-head h2 { font-size:23px !important; }
 .wp668-catalog-prototype { white-space:normal; }
 .wp668-catalog-columns { display:block; }
 .wp668-catalog-side { position:fixed; z-index:99999; top:0; bottom:0; left:0; width:min(320px,85vw); overflow-y:auto; background:#FFF9F5; padding:24px 18px 45px; transform:translateX(-110%); visibility:hidden; transition:transform .22s,visibility .22s; box-shadow:12px 0 35px #25140C24; }
 .wp668-catalog-side.is-open { transform:translateX(0); visibility:visible; }
 .wp668-catalog-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:99998; background:#1D161177; }
 .wp668-catalog-close { display:flex; border:0; padding:0 0 14px; background:none; width:100%; justify-content:space-between; align-items:center; font-size:16px; font-weight:750; color:#252020; }
 .wp668-catalog-filter-open { display:inline-flex; border:1px solid #E9DEDA; background:#fff; color:#574B44; font-size:12px; padding:9px 11px; border-radius:9px; }
 .wp668-catalog-toolbar { padding:10px; }
 .wp668-catalog-search { flex-basis:calc(100% - 65px); }
 .wp668-catalog-products .wp668-dsg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .wp668-catalog-products .wp668-dsg-cover { aspect-ratio:1.55; }
 .wp668-catalog-products .wp668-dsg-content { padding:12px 12px 9px; }
 .wp668-catalog-products .wp668-dsg-title { font-size:13px !important; }
 .wp668-catalog-products .wp668-dsg-summary { font-size:10.5px; }
 .wp668-catalog-products .wp668-dsg-footer { font-size:10px; padding:9px 12px; }
 .wp668-catalog-art { height:172px; }
 .wp668-catalog-products .is-list .wp668-dsg-footer { flex:0 0 90px; padding:8px; }
}
@media(max-width:420px) {
 .wp668-cat-item { min-width:128px; flex-basis:128px; }
 .wp668-catalog-products .wp668-dsg-grid { grid-template-columns:1fr; gap:14px; }
 .wp668-catalog-products .wp668-dsg-cover { aspect-ratio:1.72; }
 .wp668-catalog-products .wp668-dsg-content { padding:16px; }
 .wp668-catalog-products .wp668-dsg-title { font-size:15px !important; }
 .wp668-catalog-products .wp668-dsg-summary { font-size:11.5px; }
 .wp668-catalog-products .wp668-dsg-footer { font-size:12px; padding:11px 16px; }
 .wp668-catalog-products .is-list .wp668-dsg-card { flex-direction:column; }
 .wp668-catalog-products .is-list .wp668-dsg-cover { width:100%; min-height:0; aspect-ratio:1.72; }
 .wp668-catalog-products .is-list .wp668-dsg-footer { border-left:0; border-top:1px solid #F2E9E4; flex-basis:auto; flex-direction:row; align-items:center; justify-content:space-between; }
 .wp668-catalog-art { height:156px; }
}
@media(prefers-reduced-motion:reduce) { .wp668-catalog-side, .wp668-cat-item { transition:none; } }

/* V1.4.4: mobile category strip wraps in exactly three equal columns, never horizontal scrolls. */
@media (max-width: 760px) {
  .wp668-cat-strip { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    overflow:visible !important; overflow-x:visible !important; scroll-snap-type:none !important;
    gap:8px !important; width:100%; max-width:100%; padding-bottom:0 !important; align-items:stretch; }
  .wp668-cat-item { min-width:0 !important; width:100% !important; flex:initial !important; flex-basis:auto !important;
    scroll-snap-align:none !important; min-height:68px; padding:7px 3px !important;
    justify-content:center !important; flex-direction:column; gap:5px; text-align:center !important;
    font-size:11px; line-height:1.4; overflow-wrap:anywhere; white-space:normal; }
  .wp668-cat-item .wp668-cat-icon { width:27px; height:27px; font-size:14px; }
  .wp668-cat-item > span:last-child { display:block; min-width:0; max-width:100%; overflow-wrap:anywhere; }
}
