/* ============================================================
   Diilzo Storefront — Product List (PLP) — Amazon Deals style
   Pixel-based, mobile-first responsive
   ============================================================ */

/* ── Page Title Bar (simple, no hero) ──────────────────────────── */
.dz-plp-title-bar {
    background: #fff;
    border-bottom: 1px solid var(--diilzo-border);
    padding: 14px 20px;
}

.dz-plp-title-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dz-plp-title-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dz-plp-page-h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--diilzo-text);
    margin: 0;
}

.dz-plp-title-count {
    font-size: 14px;
    color: var(--diilzo-muted);
    font-weight: 600;
}

.dz-plp-title-deals {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FDECEC;
    color: #cc0c39;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #F5C8C8;
}

.dz-plp-title-deals i {
    font-size: 12px;
}

/* ── Sub-nav tabs (Amazon: Today's Deals / Coupons / Outlet...) ── */
.dz-plp-subnav {
    background: #fff;
    border-bottom: 1px solid var(--diilzo-border);
    padding: 0 20px;
}

.dz-plp-subnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dz-plp-subnav-inner::-webkit-scrollbar {
    display: none;
}

.dz-plp-subnav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    margin-bottom: -1px;
}

.dz-plp-subnav-tab i {
    font-size: 13px;
}

.dz-plp-subnav-tab:hover {
    color: var(--diilzo-primary);
    background: #F0FBF5;
}

.dz-plp-subnav-tab.dz-plp-subnav-active {
    color: var(--diilzo-primary);
    border-bottom-color: var(--diilzo-primary);
}

/* ── Category Bubbles (Amazon deals circular category icons) ───── */
.dz-plp-cat-bubbles {
    background: #fff;
    border-bottom: 1px solid var(--diilzo-border);
    padding: 16px 20px;
}

.dz-plp-cat-bubbles-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.dz-plp-cat-bubbles-inner::-webkit-scrollbar {
    display: none;
}

.dz-plp-cat-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    flex-shrink: 0;
    width: 80px;
    transition: transform 0.15s;
}

.dz-plp-cat-bubble:hover {
    transform: translateY(-2px);
}

.dz-plp-cat-bubble-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dz-plp-cat-bubble:hover .dz-plp-cat-bubble-img {
    border-color: var(--diilzo-primary);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.2);
}

.dz-plp-cat-bubble-active .dz-plp-cat-bubble-img {
    border-color: var(--diilzo-primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.dz-plp-cat-bubble-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-plp-cat-bubble-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--diilzo-primary);
}

.dz-plp-cat-bubble-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: #555;
}

.dz-plp-cat-bubble-active .dz-plp-cat-bubble-name {
    color: var(--diilzo-primary);
}

/* ── Deal Sections (Amazon: "Save on big purchases" carousels) ─── */
.dz-plp-deal-section {
    background: #fff;
    max-width: 1400px;
    margin: 16px auto 0;
    border: 1px solid var(--diilzo-border);
    border-radius: 10px;
    overflow: hidden;
}

.dz-plp-deal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dz-plp-deal-section-head h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--diilzo-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-plp-deal-section-head h2 i {
    color: var(--diilzo-primary);
}

.dz-plp-deal-section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--diilzo-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.dz-plp-deal-section-link:hover {
    color: #00C732;
}

.dz-plp-deal-carousel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 8px;
}

.dz-plp-deal-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    padding: 4px 8px;
}

.dz-plp-deal-carousel-track::-webkit-scrollbar {
    display: none;
}

.dz-plp-carousel-nav {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--diilzo-border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    z-index: 2;
}

.dz-plp-carousel-nav:hover {
    background: var(--diilzo-primary);
    color: #fff;
    border-color: var(--diilzo-primary);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Deal tile (Amazon deal card style) */
.dz-plp-deal-tile {
    flex-shrink: 0;
    width: 180px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.dz-plp-deal-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--diilzo-primary);
}

.dz-plp-deal-tile-img {
    width: 100%;
    height: 140px;
    background: #fafafa;
    overflow: hidden;
}

.dz-plp-deal-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.dz-plp-deal-tile:hover .dz-plp-deal-tile-img img {
    transform: scale(1.08);
}

.dz-plp-deal-tile-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ddd;
}

.dz-plp-deal-tile-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dz-plp-deal-tile-badge {
    font-size: 11px;
    font-weight: 700;
    color: #cc0c39;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dz-plp-deal-tile-badge-feat {
    color: var(--diilzo-primary);
}

.dz-plp-deal-tile-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.dz-plp-deal-tile-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dz-plp-deal-tile-discount {
    font-size: 14px;
    font-weight: 800;
    color: #cc0c39;
}

.dz-plp-deal-tile-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--diilzo-text);
}

.dz-plp-deal-tile-list {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.dz-plp-breadcrumb {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid var(--diilzo-border);
}

.dz-plp-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--diilzo-muted);
    flex-wrap: wrap;
}

.dz-plp-breadcrumb-inner a {
    color: var(--diilzo-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.dz-plp-breadcrumb-inner a:hover {
    text-decoration: underline;
}

.dz-plp-breadcrumb-home {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.dz-plp-breadcrumb-home i {
    font-size: 12px;
}

.dz-plp-breadcrumb .dz-plp-sep {
    margin: 0 4px;
    color: #ccc;
}

.dz-plp-breadcrumb .dz-plp-current {
    color: #333;
    font-weight: 600;
}

/* ── Main Layout ───────────────────────────────────────────────── */
.dz-plp-main {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 120px);
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.dz-plp-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--diilzo-border);
    padding: 0 0 20px;
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.dz-plp-sidebar::-webkit-scrollbar {
    width: 5px;
}

.dz-plp-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.dz-plp-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--diilzo-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.dz-plp-sidebar-head h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.dz-plp-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Current category context */
.dz-plp-current-cat {
    background: #F0FBF5;
    border-bottom: 1px solid #C5E8D5;
    padding: 14px 18px;
    margin-bottom: 0;
}

.dz-plp-cat-context {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--diilzo-primary);
}

.dz-plp-cat-context i {
    font-size: 14px;
}

.dz-plp-clear-cat {
    margin-left: auto;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.dz-plp-clear-cat:hover {
    color: #cc0c39;
}

.dz-plp-subcats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.dz-plp-subcat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dz-plp-subcat-link:hover {
    background: #DCF5EC;
    color: var(--diilzo-primary);
}

.dz-plp-subcat-img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.dz-plp-subcat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 10px;
    color: var(--diilzo-primary);
    flex-shrink: 0;
}

/* Filter groups */
.dz-plp-filter-group {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.dz-plp-filter-group:last-of-type {
    border-bottom: none;
}

.dz-plp-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--diilzo-text);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.dz-plp-toggle-icon {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
}

.dz-plp-filter-title.dz-plp-collapsed .dz-plp-toggle-icon {
    transform: rotate(-90deg);
}

.dz-plp-filter-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dz-plp-filter-body.dz-plp-hidden {
    display: none;
}

.dz-plp-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: color 0.15s;
}

.dz-plp-filter-option:hover {
    color: var(--diilzo-primary);
}

.dz-plp-filter-option input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--diilzo-primary);
}

.dz-plp-filter-option label {
    cursor: pointer;
    flex: 1;
}

.dz-plp-no-options {
    font-size: 12px;
    color: #999;
    padding: 6px 0;
}

/* Brand list scrollable */
.dz-plp-brand-list {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dz-plp-brand-list::-webkit-scrollbar {
    width: 4px;
}

.dz-plp-brand-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Price presets */
.dz-plp-price-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.dz-plp-price-preset {
    background: #fff;
    border: 1px solid var(--diilzo-border);
    border-radius: 6px;
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: center;
}

.dz-plp-price-preset:hover {
    background: #DCF5EC;
    border-color: var(--diilzo-primary);
    color: var(--diilzo-primary);
}

.dz-plp-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-plp-price-inputs input {
    flex: 1;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

.dz-plp-price-inputs input:focus {
    border-color: var(--diilzo-primary);
}

.dz-plp-price-inputs span {
    color: #999;
    font-size: 12px;
}

/* Clear all */
.dz-plp-clear-all {
    margin: 16px 18px 0;
    background: #FDECEC;
    border: 1px solid #F5C8C8;
    color: #cc0c39;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: calc(100% - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.dz-plp-clear-all:hover {
    background: #F5C8C8;
}

/* ── Content Area ──────────────────────────────────────────────── */
.dz-plp-content {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}

/* Page header */
.dz-plp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dz-plp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dz-plp-filter-btn {
    display: none;
    background: #fff;
    border: 1px solid var(--diilzo-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.dz-plp-filter-btn:hover {
    background: #fff;
}

.dz-plp-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--diilzo-text);
    margin: 0;
}

.dz-plp-result-count {
    font-size: 14px;
    color: var(--diilzo-muted);
    font-weight: 600;
}

/* Toolbar */
.dz-plp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--diilzo-border);
}

.dz-plp-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-plp-sort-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23565959' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s;
}

.dz-plp-sort-select:hover {
    border-color: var(--diilzo-primary);
}

/* View toggle */
.dz-plp-view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.dz-plp-view-btn {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: background 0.15s, color 0.15s;
}

.dz-plp-view-btn:hover {
    background: #fff;
}

.dz-plp-view-btn.dz-plp-view-active {
    background: var(--diilzo-primary);
    color: #fff;
}

/* Active filter chips */
.dz-plp-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dz-plp-active-chips:empty {
    display: none;
}

.dz-plp-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--diilzo-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.dz-plp-chip i {
    cursor: pointer;
    color: #999;
    font-size: 11px;
    transition: color 0.15s;
}

.dz-plp-chip i:hover {
    color: #cc0c39;
}

/* ── Product Grid ──────────────────────────────────────────────── */
.dz-plp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.dz-plp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.dz-plp-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--diilzo-primary);
}

.dz-plp-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #fafafa;
    overflow: hidden;
}

.dz-plp-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.dz-plp-card:hover .dz-plp-card-image {
    transform: scale(1.05);
}

.dz-plp-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ddd;
}

/* Badges */
.dz-plp-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dz-plp-card-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dz-plp-badge-sale {
    background: #cc0c39;
    color: #fff;
}

.dz-plp-badge-new {
    background: #007600;
    color: #fff;
}

.dz-plp-badge-feat {
    background: var(--diilzo-primary);
    color: #fff;
}

.dz-plp-badge-whole {
    background: #1890ff;
    color: #fff;
}

.dz-plp-badge-video {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Search result count + suggestion ─────────────────────────── */
.dz-plp-result-count {
    font-size: 13px;
    color: var(--diilzo-muted);
    margin-left: auto;
    white-space: nowrap;
}

.dz-plp-suggestion {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6d5800;
}

.dz-plp-suggestion a {
    color: var(--diilzo-primary);
    font-weight: 700;
    text-decoration: none;
}

.dz-plp-suggestion a:hover {
    text-decoration: underline;
}

/* ── Trending searches in empty state ─────────────────────────── */
.dz-plp-empty-trending {
    margin: 20px 0;
}

.dz-plp-empty-trending-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.dz-plp-empty-trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dz-plp-trending-chip {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}

.dz-plp-trending-chip:hover {
    background: var(--diilzo-primary);
    color: #fff;
    border-color: var(--diilzo-primary);
}

/* Wishlist heart */
.dz-plp-card-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s, color 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dz-plp-card:hover .dz-plp-card-wishlist {
    opacity: 1;
}

.dz-plp-card-wishlist:hover {
    background: #fff;
    color: #DC2626;
}

.dz-plp-card-wishlist.dz-plp-wish-active {
    color: #DC2626;
    opacity: 1;
}

.dz-plp-card-wishlist.dz-plp-wish-active i {
    font-weight: 900;
}

/* Card body */
.dz-plp-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.dz-plp-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 39px;
}

.dz-plp-card-store {
    font-size: 11px;
    color: var(--diilzo-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-plp-card-store i {
    font-size: 10px;
    color: #bbb;
}

.dz-plp-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-plp-card-stars {
    color: var(--diilzo-star);
    font-size: 12px;
    display: inline-flex;
    gap: 1px;
}

.dz-plp-card-review-count {
    font-size: 11px;
    color: #999;
}

.dz-plp-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.dz-plp-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--diilzo-text);
    line-height: 1;
}

.dz-plp-card-currency {
    font-size: 11px;
    font-weight: 600;
    color: var(--diilzo-primary, #32C700);
    opacity: 0.75;
}

.dz-plp-card-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.dz-plp-card-discount {
    font-size: 12px;
    font-weight: 700;
    color: #cc0c39;
    background: #FDECEC;
    padding: 1px 6px;
    border-radius: 3px;
}

.dz-plp-card-stock {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dz-plp-in-stock {
    color: #007600;
}

.dz-plp-out-stock {
    color: #cc0c39;
}

.dz-plp-card-moq {
    font-size: 11px;
    color: #1890ff;
    background: #eaf3ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Empty state ───────────────────────────────────────────────── */
.dz-plp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--diilzo-muted);
}

.dz-plp-empty i {
    font-size: 56px;
    margin-bottom: 16px;
    color: #ddd;
}

.dz-plp-empty h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.dz-plp-empty p {
    font-size: 14px;
    margin: 0 0 16px;
}

.dz-plp-empty-btn {
    display: inline-block;
    background: var(--diilzo-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.dz-plp-empty-btn:hover {
    background: #00C732;
}

/* ── Infinite Scroll ───────────────────────────────────────────── */
.dz-plp-infinite-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 20px;
}

.dz-plp-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
    font-size: 14px;
    color: var(--diilzo-muted);
}

.dz-plp-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--diilzo-primary);
    border-radius: 50%;
    animation: dzPlpSpin 0.8s linear infinite;
}

@keyframes dzPlpSpin {
    to {
        transform: rotate(360deg);
    }
}

.dz-plp-infinite-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
    font-size: 13px;
    color: var(--diilzo-muted);
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.dz-plp-infinite-end i {
    color: #007600;
    font-size: 16px;
}

/* ── Mobile overlay ────────────────────────────────────────────── */
.dz-plp-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 149;
}

.dz-plp-overlay.dz-plp-open {
    display: block;
}

/* ── List view mode ────────────────────────────────────────────── */
.dz-plp-grid.dz-plp-list-view {
    grid-template-columns: 1fr;
}

.dz-plp-grid.dz-plp-list-view .dz-plp-card {
    flex-direction: row;
    max-width: 100%;
}

.dz-plp-grid.dz-plp-list-view .dz-plp-card-img-wrap {
    width: 200px;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.dz-plp-grid.dz-plp-list-view .dz-plp-card-body {
    padding: 16px 20px;
}

.dz-plp-grid.dz-plp-list-view .dz-plp-card-title {
    font-size: 16px;
    -webkit-line-clamp: 1;
    min-height: auto;
}

.dz-plp-grid.dz-plp-list-view .dz-plp-card-price {
    font-size: 24px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .dz-plp-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .dz-plp-page-h1 {
        font-size: 20px;
    }

    .dz-plp-title-deals {
        font-size: 12px;
    }

    .dz-plp-subnav-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .dz-plp-cat-bubble {
        width: 70px;
    }

    .dz-plp-cat-bubble-img {
        width: 56px;
        height: 56px;
    }

    .dz-plp-cat-bubble-name {
        font-size: 10px;
    }

    .dz-plp-deal-section {
        margin: 12px 14px 0;
    }

    .dz-plp-deal-section-head h2 {
        font-size: 15px;
    }

    .dz-plp-deal-tile {
        width: 155px;
    }

    .dz-plp-deal-tile-img {
        height: 115px;
    }

    .dz-plp-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 270px;
        height: 100vh;
        z-index: 150;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 3px 0 16px rgba(0, 0, 0, 0.15);
    }

    .dz-plp-sidebar.dz-plp-open {
        left: 0;
    }

    .dz-plp-sidebar-close {
        display: block;
    }

    .dz-plp-filter-btn {
        display: flex;
    }

    .dz-plp-content {
        padding: 12px 14px;
    }

    .dz-plp-page-title {
        font-size: 18px;
    }

    .dz-plp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dz-plp-card-title {
        font-size: 13px;
        min-height: 36px;
    }

    .dz-plp-card-price {
        font-size: 17px;
    }

    .dz-plp-card-wishlist {
        opacity: 1;
    }

    .dz-plp-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dz-plp-sort-select {
        width: 100%;
    }

    .dz-plp-view-toggle {
        align-self: flex-end;
    }

    /* List view on mobile */
    .dz-plp-grid.dz-plp-list-view .dz-plp-card {
        flex-direction: row;
    }

    .dz-plp-grid.dz-plp-list-view .dz-plp-card-img-wrap {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .dz-plp-page-h1 {
        font-size: 18px;
    }

    .dz-plp-title-bar {
        padding: 10px 14px;
    }

    .dz-plp-subnav-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .dz-plp-cat-bubble {
        width: 64px;
    }

    .dz-plp-cat-bubble-img {
        width: 50px;
        height: 50px;
    }

    .dz-plp-deal-tile {
        width: 140px;
    }

    .dz-plp-deal-tile-img {
        height: 100px;
    }

    .dz-plp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dz-plp-card-body {
        padding: 8px 10px;
        gap: 3px;
    }

    .dz-plp-card-title {
        font-size: 12px;
        min-height: 33px;
    }

    .dz-plp-card-price {
        font-size: 15px;
    }

    .dz-plp-card-currency {
        font-size: 10px;
    }

    .dz-plp-card-store {
        font-size: 10px;
    }

    .dz-plp-card-stock {
        font-size: 11px;
    }

    .dz-plp-page {
        padding: 6px 10px;
        font-size: 13px;
    }

    .dz-plp-page-nav {
        padding: 6px 12px;
        font-size: 12px;
    }

    .dz-plp-header {
        flex-direction: column;
        align-items: flex-start;
    }
}