.product-header .header-content { gap: 10px; }
.product-search { display: flex; align-items: center; flex: 1; min-width: 0; background: #f6f3f3; border: 1px solid #ead7d9; border-radius: 10px; }
.product-search input { width: 100%; min-width: 0; padding: 9px; border: 0; background: transparent; font: inherit; font-size: 14px; color: #000; }
.product-search button, .product-view-buttons button { border: 0; background: transparent; padding: 7px; color: #4F171B; }
.product-view-buttons { display: flex; }
.product-view-buttons [aria-pressed="true"] { background: #4F171B; color: #fff; border-radius: 6px; }
.product-list-page { padding-bottom: 90px; }
.product-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; }
.product-chips .category-tag { white-space: nowrap; font-size: 13px; padding: 7px 12px; border: 1px solid #ead7d9; border-radius: 8px; }
.product-results { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.product-results h1 { font-size: 18px; margin: 0; }
.product-results span { font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.product-grid .dz-card { background: #fff; border-color: #4F171B; }
.product-grid .dz-media img { display: block; width: 100%; height: auto; aspect-ratio: 245 / 210; object-fit: contain; background: #fff; }
.product-grid .dz-content { padding: 10px; }
.product-grid .dz-content .title { max-width: none; font-size: 13px; font-weight: 500; line-height: 1.5; color: #000; overflow-wrap: anywhere; }
.product-grid .dz-price { font-size: 13px; color: #000; }
.product-grid.is-list { grid-template-columns: 1fr; }
.product-grid.is-list .dz-card { display: flex; align-items: center; }
.product-grid.is-list .dz-media { flex: 0 0 110px; border: 0; }
.product-grid.is-list .dz-content { flex: 1; }
.product-pagination { display: flex; justify-content: center; gap: 24px; padding: 24px 0; }
.product-pagination a { color: #4F171B; }
.product-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; display: flex; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #ead7d9; }
.product-bottom-bar > * { flex: 1; text-align: center; background: transparent; border: 0; border-right: 1px solid #ead7d9; color: #000; font: inherit; font-size: 13px; }
.product-sort-options { display: flex; flex-direction: column; gap: 12px; }
.product-sort-options a { color: #000; padding: 6px; }
.product-sort-options [aria-current] { color: #4F171B; font-weight: 600; }

.product-grid .dz-content { padding-bottom: 14px; }
.product-grid .dz-price { padding-right: 38px; min-height: 24px; }
.product-grid .product-cart-button { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px 0 0 0; background: #4F171B; color: #fff; font-size: 17px; cursor: pointer; }
.product-grid .product-cart-button:hover { background: #381014; }
.product-grid .product-cart-button:focus-visible { outline: 2px solid #4F171B; outline-offset: -4px; box-shadow: inset 0 0 0 2px #fff; }
.product-grid .dz-media { position: relative; }
.product-grid .product-wishlist-button { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #4F171B; cursor: pointer; }
.product-wishlist-button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-wishlist-button[aria-pressed="true"] svg { fill: currentColor; }
.product-wishlist-button:focus-visible { outline: 2px solid #4F171B; outline-offset: 2px; }
/* Keep the product sort/filter tools just above the shared app footer. */
.product-bottom-bar{bottom:calc(60px + env(safe-area-inset-bottom))!important;z-index:9!important;padding:8px 0!important;min-height:44px;align-items:center}
.product-list-page{padding-bottom:145px!important}
body.petmagnet-home .menubar-area.footer-fixed{z-index:20;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
body.petmagnet-home .product-list-page{padding-bottom:calc(160px + env(safe-area-inset-bottom))!important}

/* Keep product prices bold and aligned at the bottom-left of each card. */
.product-grid:not(.is-list) .dz-card{display:flex;flex-direction:column;height:100%}
.product-grid .dz-card .dz-content{display:flex;flex-direction:column;flex:1;min-width:0}
.product-grid .dz-card .dz-price{margin-top:auto;padding-top:8px;font-size:16px;font-weight:700;line-height:1.4;text-align:left;align-self:stretch}
.product-grid.is-list .dz-card{align-items:stretch}
