/* [cazrom_products] catalog : phone layout.
 * Enqueued with a media attribute of (max-width: Elementor's mobile breakpoint) , so there is no
 * media query in here : everything in this file is the phone layout. */

/* where the sticky bar starts and ends : the same as the header above it ( its menu button and logo , its cart ) */
.czp { padding: 0 14px 40px; --czp-bar-left: 14px; --czp-bar-right: 16px; }

/* ---------- the filters become a page of their own ----------
   It covers the whole screen , over the sticky headers too , and slides in from the left like the site's menu. */
.czp .czp-layout, .czp.is-filters-hidden .czp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; transition: none; }
.czp .czp-sidebar, .czp.is-filters-hidden .czp-sidebar {
    /* over everything , the admin's toolbar included ( on a phone it scrolls away with the page ) */
    display: block; position: fixed; inset: 0; z-index: 100000; width: auto; opacity: 1; pointer-events: auto;
    max-height: none; padding: 0 var(--czp-bar-left, 14px) 32px; background: var(--czp-surface);
    overflow-y: auto; overscroll-behavior: contain;
    /* closed by default , the Filters button opens it */
    transform: translateX(-100%); visibility: hidden;
    transition: transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s .3s;
}
.czp.is-filters-open .czp-sidebar { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s; }
/* nothing of the page stays over the filters : the sticky header steps back while they are open */
html.czp-filters-on .czsh { visibility: hidden; }
.czp.is-filters-open .czp-sticky { z-index: auto; }
.czp .czp-sidebar-head {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 2; background: var(--czp-surface);
    padding: 12px 0; border-bottom: 1px solid var(--czp-line); font-size: 20px; font-weight: 800;
}
/* the same round button the menu closes with */
.czp .czp-sidebar-close, .czp .czp-sidebar-close:hover, .czp .czp-sidebar-close:focus, .czp .czp-sidebar-close:active {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: var(--czp-soft); color: var(--czp-ink); box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { .czp .czp-sidebar, .czp.is-filters-open .czp-sidebar { transition: none; } }

/* the filter buttons scroll from one edge of the screen to the other , with a little room at each end */
.czp .czp-pills {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(-1 * var(--czp-bar-left, 14px)); margin-right: calc(-1 * var(--czp-bar-right, 14px));
    padding: 0 var(--czp-bar-right, 14px) 2px var(--czp-bar-left, 14px);
    scroll-padding: 0 var(--czp-bar-right, 14px) 0 var(--czp-bar-left, 14px);
}
.czp .czp-pills::-webkit-scrollbar { display: none; }
.czp .czp-pill, .czp .czp-clear { flex: none; }
.czp .czp-pill-wrap { position: static; flex: none; }
/* a list hangs from the bar across the screen : square where it meets the bar , a line and round corners only at its foot */
.czp .czp-popover { left: 0; right: 0; top: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--czp-line); border-radius: 0 0 14px 14px; padding-left: var(--czp-bar-left, 14px); padding-right: var(--czp-bar-right, 14px); box-shadow: 0 14px 22px -10px rgba(0, 0, 0, .28); }

/* ---------- one card per row : image on the left , details centered on the right ---------- */
.czp .czp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.czp .czp-card { flex-direction: row; align-items: stretch; gap: 12px; padding: 8px; }
.czp .czp-card-media { flex: none; width: clamp(110px, 38%, 150px); align-self: stretch; display: flex; }
.czp .czp-card-link { aspect-ratio: auto; width: 100%; min-height: 150px; }
.czp .czp-card-info { justify-content: center; padding: 6px 4px 6px 0; }
/* the name leads on a phone , the colors come after it */
.czp .czp-card-title { order: -1; font-size: 15px; margin: 0 0 6px; }
.czp .czp-swatches { margin: 0 0 6px; height: 24px; }
.czp .czp-swatch, .czp .czp-swatch:hover, .czp .czp-swatch:focus, .czp .czp-swatch:active { width: 20px; height: 20px; }
.czp .czp-rating, .czp .czp-price { margin-left: 0; margin-right: 0; }
.czp .czp-card-tags { margin: 0; }
.czp .czp-card-tag { top: 6px; left: 6px; max-width: calc(100% - 46px); padding: 2px 6px; font-size: 10px; }
.czp .czp-fav { width: 32px; height: 32px; top: 6px; right: 6px; }
.czp .czp-pricing-pop { width: min(250px, 70vw); }

/* ---------- upload your art ---------- */
.czp .czp-upload { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
.czp .czp-upload-text { flex: 1 1 60%; }
.czp .czp-upload-actions { flex: 1 1 100%; justify-content: flex-end; }

/* the pages : stacked , the numbers first */
/* the pages on a phone , in two short lines :
     ‹   Page 2 of 15   ›          two big arrows , where you are between them ( no row of numbers )
     31–60 of 430      30 per page */
.czp .czp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; }
.czp .czp-pager-pages { order: 1; flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 10px; }
.czp .czp-pager-pages .czp-page:not(.czp-page-step), .czp .czp-pager-pages .czp-page-gap { display: none; }
.czp .czp-page-of { display: block; font-size: 15px; font-weight: 700; color: var(--czp-ink); font-variant-numeric: tabular-nums; }
.czp .czp-page.czp-page-step, .czp a.czp-page.czp-page-step:hover, .czp a.czp-page.czp-page-step:focus { width: 44px; height: 44px; background: var(--czp-soft); }
.czp .czp-page.czp-page-step.is-disabled { background: var(--czp-soft); opacity: .45; }
.czp .czp-pager-range { order: 2; font-size: 13px; }
.czp .czp-pager-lead, .czp .czp-pager-size > span:first-child { display: none; }
.czp .czp-pager-size { order: 3; margin-left: auto; gap: 6px; font-size: 13px; }
.czp .czp-pager-size select { height: 36px; padding: 0 30px 0 12px; background-position: right 11px center; font-size: 13px; }

/* the sticky bar is as wide as the screen , like the sticky header above it , whatever container the catalog sits in :
   it reaches out to both edges ( the script measures how far ) and pads itself back , so what is in it stays in line */
.czp .czp-sticky {
    margin-left: calc(-1 * var(--czp-edge-left, 0px)); margin-right: calc(-1 * var(--czp-edge-right, 0px));
    /* its left and right follow the header above it ( measured by the script ) : the title and the Filters button
       start where the header starts , the sort ends where the cart ends */
    padding-left: var(--czp-bar-left, 14px); padding-right: var(--czp-bar-right, 14px);
}
.czp.czp-favorites .czp-sticky { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.czp .czp-sort select { margin-right: 0; }
/* the trail above the title starts where the title does */
.czp .czp-breadcrumbs { margin-left: calc(var(--czp-bar-left, 14px) - var(--czp-edge-left, 14px)); }
.czp.czp-favorites .czp-breadcrumbs { margin-left: 0; }

/* the front of the catalog on a phone : the pictures first , two to a row , then the full list of categories */
.czp .czl-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.czp .czl-side { position: static; max-height: none; order: 2; padding-right: 0; }
.czp .czl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; order: 1; }
.czp .czl-card, .czp a.czl-card:hover, .czp a.czl-card:focus { padding: 8px 8px 12px; }
.czp .czl-card-name { font-size: 14.5px; margin-top: 10px; }