/* ====================================================================
   Product Deal Manager — Stylesheet
   ==================================================================== */

/* ---- RESET & BASE ---- */
#pdm-wrapper *, .pdm-form-wrap *, .pdm-admin-wrap * { box-sizing: border-box; }

/* ====================================================================
   CSS VARIABLES
   ==================================================================== */
:root {
    --pdm-primary:    #f97316;
    --pdm-primary-dk: #ea6c0a;
    --pdm-success:    #16a34a;
    --pdm-danger:     #dc2626;
    --pdm-warn:       #d97706;
    --pdm-info:       #2563eb;
    --pdm-bg:         #f8f9fb;
    --pdm-card-bg:    #ffffff;
    --pdm-border:     #e5e7eb;
    --pdm-text:       #1f2937;
    --pdm-muted:      #6b7280;
    --pdm-radius:     14px;
    --pdm-shadow:     0 2px 16px rgba(0,0,0,.08);
    --pdm-shadow-h:   0 6px 28px rgba(0,0,0,.14);
}

/* ====================================================================
   DEALS GRID WRAPPER
   ==================================================================== */
#pdm-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pdm-text);
}

/* ---- FILTER BAR ---- */
.pdm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--pdm-radius);
    border: 1px solid var(--pdm-border);
    box-shadow: var(--pdm-shadow);
}

.pdm-search-wrap { flex: 1; min-width: 200px; }

.pdm-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.pdm-search-input:focus { border-color: var(--pdm-primary); }

.pdm-filter-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.pdm-filter-wrap .pdm-select { width: auto; flex: 1; }

.pdm-select {
    padding: 10px 12px;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.pdm-select:focus { border-color: var(--pdm-primary); }

/* ---- GRID ---- */
.pdm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ====================================================================
   DEAL CARD — Screenshot-matched design
   ==================================================================== */
.pdm-card {
    cursor: pointer;
    background: #fff;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    /* gradient border effect */
    background-image: linear-gradient(#fff,#fff), linear-gradient(160deg,#f97316 0%,#a855f7 50%,#3b82f6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
}
.pdm-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
    transform: translateY(-4px);
}

.pdm-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.pdm-badge-disc {
    display: inline-block;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(225,29,72,.4);
}

.pdm-badge-expiry {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.pdm-badge-expiry.urgent { background: #fee2e2; color: var(--pdm-danger); }
.pdm-badge-expiry.warn   { background: #fef3c7; color: var(--pdm-warn); }

/* Image section — light lavender bg like screenshot */
.pdm-card-img-wrap {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #eef0f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.pdm-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.pdm-card:hover .pdm-card-img { transform: scale(1.07); }

.pdm-no-img {
    font-size: 52px;
    opacity: .2;
}

/* Wishlist heart — top right of image */
.pdm-card-actions-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
}
.pdm-wishlist-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s;
}
.pdm-wishlist-btn:hover, .pdm-wishlist-active { color: #f43f5e; }

.pdm-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    background: #fff;
}

/* Shop/brand row with logo-style name */
.pdm-card-brand,
.pdm-card-shop {
    font-size: 11px;
    font-weight: 800;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdm-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.pdm-card-desc {
    font-size: 12px;
    color: var(--pdm-muted);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price row — large selling price, strikethrough MRP */
.pdm-card-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 12px;
}
.pdm-price-regular {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}
.pdm-price-selling {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.5px;
}
.pdm-price-save {
    font-size: 11px;
    color: var(--pdm-success);
    font-weight: 700;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Visitors pill — pink rounded pill like screenshot */
.pdm-card-visitors {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff0f3;
    color: #f43f5e;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    margin-bottom: 8px;
    border: 1px solid #fecdd3;
}

/* Clicks/bought pill — lavender pill like screenshot */
.pdm-card-clicks {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f0ff;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid #ddd6fe;
}

/* Button row — Buy button + Share icon side by side */
.pdm-card-btn-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
}
/* ---- BUY NOW + SHARE — brand-new classes, copied 1:1 from Today's Deals
   (.ph-td-buy-btn / .ph-td-share-btn in assets/css/frontend.css) so the
   card buttons render pixel-identical. No other rule in this file may
   target .pdm-td-buy-btn / .pdm-td-share-btn. ---- */
.pdm-td-buy-btn {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 11px 12px !important;
    background: linear-gradient(135deg,#4f46e5 0%,#8b5cf6 100%) !important;
    color: #fff !important;
    text-align: center;
    border-radius: 11px !important;
    font-weight: 700 !important;
    font-size: 12.5px;
    letter-spacing: .1px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(79,70,229,.28) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: box-shadow .2s, transform .15s;
    border: none !important;
    min-width: 0;
}
.pdm-td-buy-btn:hover {
    box-shadow: 0 6px 16px rgba(79,70,229,.4) !important;
    transform: translateY(-1px);
    color: #fff !important;
}
.pdm-td-share-btn {
    flex-shrink: 0;
    width: 40px;
    background: #f6f7fb !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4f46e5 !important;
    padding: 0;
    margin: 0;
    transition: background .2s;
}
.pdm-td-share-btn:hover { background: #eef0f8 !important; }
.pdm-td-share-btn svg { width: 17px; height: 17px; display: block; flex-shrink: 0; }
@media (max-width:600px) {
    .pdm-td-buy-btn { font-size: 11.5px; padding: 9px 10px; }
}
.pdm-td-buy-btn-full {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* ---- LOADER / EMPTY ---- */
.pdm-loader {
    text-align: center;
    padding: 48px 20px;
    color: var(--pdm-muted);
}
.pdm-spinner {
    display: inline-block;
    width: 36px; height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--pdm-primary);
    border-radius: 50%;
    animation: pdm-spin .7s linear infinite;
    margin-bottom: 12px;
}
@keyframes pdm-spin { to { transform: rotate(360deg); } }

.pdm-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--pdm-muted);
    font-size: 16px;
}

.pdm-btn-secondary {
    padding: 12px 36px;
    background: #fff;
    border: 2px solid var(--pdm-primary);
    color: var(--pdm-primary);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.pdm-btn-secondary:hover { background: var(--pdm-primary); color: #fff; }

/* ====================================================================
   DEAL FORM
   ==================================================================== */
.pdm-form-wrap {
    background: #fff;
    border-radius: var(--pdm-radius);
    border: 1px solid var(--pdm-border);
    box-shadow: var(--pdm-shadow);
    padding: 28px 32px;
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdm-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pdm-text);
    margin: 0 0 24px;
}

/* ---- FETCH BOX ---- */
.pdm-fetch-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 18px 20px 14px;
    margin-bottom: 8px;
}

.pdm-fetch-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.pdm-fetch-icon { font-size: 24px; }
.pdm-fetch-header strong { display: block; font-size: 15px; color: var(--pdm-text); margin-bottom: 2px; }
.pdm-fetch-hint { font-size: 12px; color: var(--pdm-muted); margin: 0; }

.pdm-fetch-row { display: flex; gap: 8px; }

.pdm-fetch-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #fed7aa;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
}
.pdm-fetch-input:focus { border-color: var(--pdm-primary); }

.pdm-btn-fetch {
    padding: 10px 18px;
    background: var(--pdm-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .2s;
}
.pdm-btn-fetch:hover { background: var(--pdm-primary-dk); }
.pdm-btn-fetch:disabled { opacity: .7; cursor: not-allowed; }

.pdm-fetch-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pdm-spin .6s linear infinite;
}

.pdm-fetch-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.pdm-fetch-success { background: #dcfce7; color: var(--pdm-success); }
.pdm-fetch-error   { background: #fee2e2; color: var(--pdm-danger); }
.pdm-fetch-info    { background: #dbeafe; color: var(--pdm-info); }
.pdm-fetch-warn    { background: #fef3c7; color: var(--pdm-warn); }

.pdm-supported-sites {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    font-size: 11px;
    color: var(--pdm-muted);
}

.pdm-site-badge {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pdm-text);
}

/* ---- DIVIDER ---- */
.pdm-form-divider {
    text-align: center;
    position: relative;
    margin: 18px 0;
    color: var(--pdm-muted);
    font-size: 13px;
}
.pdm-form-divider::before, .pdm-form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--pdm-border);
}
.pdm-form-divider::before { left: 0; }
.pdm-form-divider::after  { right: 0; }

/* ---- FORM FIELDS ---- */
.pdm-form-group { margin-bottom: 18px; }

.pdm-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pdm-text);
    margin-bottom: 6px;
}

.pdm-req { color: var(--pdm-danger); margin-left: 2px; }
.pdm-hint { color: var(--pdm-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }

.pdm-input, .pdm-textarea, .pdm-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--pdm-text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.pdm-input:focus, .pdm-textarea:focus {
    border-color: var(--pdm-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.pdm-textarea { resize: vertical; min-height: 90px; }

.pdm-form-row { display: flex; gap: 14px; }
.pdm-half { flex: 1; min-width: 0; }

/* Price with currency icon */
.pdm-input-icon-wrap { position: relative; }
.pdm-currency {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--pdm-muted);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
}
.pdm-price-input { padding-left: 28px !important; }

/* Form price inputs — full width, large and clear */
.pdm-form-wrap .pdm-input-icon-wrap .pdm-price-input {
    width: 100% !important;
    height: 48px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 10px 14px 10px 32px !important;
    border-radius: 10px !important;
    border: 2px solid var(--pdm-border) !important;
    box-sizing: border-box !important;
}
.pdm-form-wrap .pdm-input-icon-wrap .pdm-price-input:focus {
    border-color: var(--pdm-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12) !important;
}
.pdm-form-wrap .pdm-currency {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--pdm-primary) !important;
    left: 10px !important;
}

/* Discount preview */
.pdm-discount-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 16px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}
.pdm-discount-badge {
    background: var(--pdm-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}
.pdm-discount-save { font-size: 13px; color: var(--pdm-success); font-weight: 600; }

/* Media tabs */
.pdm-media-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 10px;
}
.pdm-tab-btn {
    padding: 7px 16px;
    border: none;
    background: #f9fafb;
    font-size: 13px;
    cursor: pointer;
    color: var(--pdm-muted);
    transition: all .15s;
}
.pdm-tab-btn + .pdm-tab-btn { border-left: 1.5px solid var(--pdm-border); }
.pdm-tab-active { background: var(--pdm-primary); color: #fff; font-weight: 600; }

.pdm-btn-outline {
    padding: 9px 18px;
    border: 1.5px solid var(--pdm-primary);
    background: #fff;
    color: var(--pdm-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}
.pdm-btn-outline:hover { background: var(--pdm-primary); color: #fff; }

/* Image preview */
.pdm-img-preview-inner {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
}
.pdm-img-preview {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid var(--pdm-border);
    object-fit: contain;
    background: #f3f4f6;
}
.pdm-remove-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--pdm-danger);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}

/* Submit button */
.pdm-btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--pdm-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 8px;
}
.pdm-btn-primary:hover { background: var(--pdm-primary-dk); transform: translateY(-1px); }
.pdm-btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Form messages */
.pdm-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}
.pdm-msg-success { background: #dcfce7; color: var(--pdm-success); border: 1px solid #86efac; }
.pdm-msg-error   { background: #fee2e2; color: var(--pdm-danger);  border: 1px solid #fca5a5; }
.pdm-msg-info    { background: #dbeafe; color: var(--pdm-info);    border: 1px solid #93c5fd; }

/* Brand wrap */
.pdm-brand-wrap { position: relative; }

/* ====================================================================
   ADMIN PANEL
   ==================================================================== */
.pdm-admin-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdm-admin-page-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
    color: #1f2937 !important;
}

.pdm-admin-form {
    max-width: 800px;
    margin: 0;
    border: 1px solid var(--pdm-border);
}

/* Toolbar */
.pdm-admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.pdm-admin-search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pdm-admin-search { padding: 7px 12px; border: 1px solid var(--pdm-border); border-radius: 6px; font-size: 13px; }
.pdm-admin-filter-select { padding: 7px 10px; border: 1px solid var(--pdm-border); border-radius: 6px; font-size: 13px; }
.pdm-count-badge {
    margin-left: auto;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--pdm-muted);
    font-weight: 600;
}

/* Table */
.pdm-admin-table { border-collapse: collapse; width: 100%; }
.pdm-admin-table th { background: #f8f9fb; font-size: 12px; font-weight: 700; padding: 10px 14px; text-align: left; }
.pdm-admin-table td { padding: 10px 14px; border-top: 1px solid var(--pdm-border); vertical-align: middle; font-size: 13px; }
.pdm-admin-table tr:hover td { background: #fafafa; }

.pdm-admin-thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--pdm-border); background: #f3f4f6; }
.pdm-admin-thumb-placeholder { width: 56px; height: 56px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 24px; }

.pdm-admin-disc { background: #fee2e2; color: var(--pdm-danger); font-weight: 700; border-radius: 20px; padding: 2px 8px; font-size: 11px; }
.pdm-admin-link { font-size: 11px; color: var(--pdm-info); text-decoration: none; }
.pdm-admin-link:hover { text-decoration: underline; }

.pdm-expiry-urgent { color: var(--pdm-danger); font-weight: 600; }
.pdm-expiry-warn   { color: var(--pdm-warn);   font-weight: 600; }

.pdm-admin-actions { white-space: nowrap; }
.pdm-admin-btn-edit, .pdm-admin-btn-delete {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}
.pdm-admin-btn-edit   { background: #dbeafe; color: var(--pdm-info); margin-right: 4px; }
.pdm-admin-btn-edit:hover { background: var(--pdm-info); color: #fff; }
.pdm-admin-btn-delete { background: #fee2e2; color: var(--pdm-danger); }
.pdm-admin-btn-delete:hover { background: var(--pdm-danger); color: #fff; }

.pdm-admin-empty { padding: 40px; text-align: center; color: var(--pdm-muted); }

.pdm-pagination { margin-top: 16px; }
.pdm-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--pdm-border); border-radius: 6px; text-decoration: none; font-size: 13px; margin: 0 2px; }
.pdm-pagination .current { background: var(--pdm-primary); color: #fff; border-color: var(--pdm-primary); }

/* Admin cards */
.pdm-admin-card {
    background: #fff;
    border: 1px solid var(--pdm-border);
    border-radius: var(--pdm-radius);
    padding: 24px;
    margin-top: 4px;
}
.pdm-admin-brands-textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    line-height: 1.6;
}

.pdm-brands-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdm-brand-chip {
    background: #f1f5f9;
    border: 1px solid var(--pdm-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pdm-text);
}

/* Settings */
.pdm-settings-table th { font-weight: 600; padding-right: 24px; text-align: left; white-space: nowrap; }
.pdm-settings-table td { padding: 12px 0; }

.pdm-shortcode-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.pdm-shortcode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #f8f9fb;
    border-radius: 8px;
    font-size: 13px;
}
.pdm-shortcode-item code { font-size: 13px; background: #1e293b; color: #f8fafc; padding: 3px 10px; border-radius: 6px; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 640px) {
    .pdm-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .pdm-card-img-wrap { height: 150px; }
    .pdm-form-wrap { padding: 18px 16px; }
    .pdm-form-row { flex-direction: column; }
    .pdm-fetch-row { flex-direction: column; }
    .pdm-btn-fetch { width: 100%; justify-content: center; }
    .pdm-filter-bar { flex-direction: column; align-items: stretch; }
    .pdm-filter-wrap { flex-wrap: nowrap; gap: 8px; }
    .pdm-filter-wrap .pdm-select { flex: 1; width: 0 !important; min-width: 0; border-radius: 10px !important; padding: 8px 6px !important; font-size: 12px; }
}

/* ====================================================================
   v1.1 ADDITIONS: Modal, card info button, shop name, file input
   ==================================================================== */

/* ---- CARD footer ---- */
.pdm-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.pdm-card-info-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    padding: 0;
}
.pdm-card-info-btn:hover { background: #dbeafe; border-color: #93c5fd; }

/* Shop name (was brand) on card */
.pdm-card-shop {
    font-size: 11px;
    font-weight: 700;
    color: var(--pdm-primary);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

/* Make card cursor pointer */
.pdm-card:focus { outline: 2px solid var(--pdm-primary); outline-offset: 2px; }

/* ---- MODAL ---- */
.pdm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

body.pdm-modal-open { overflow: hidden; }

.pdm-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    animation: pdm-modal-in .22s ease;
}
@keyframes pdm-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pdm-modal-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background .2s;
}
.pdm-modal-close:hover { background: #fee2e2; color: var(--pdm-danger); }

.pdm-modal-inner { padding: 0 0 24px; }

.pdm-modal-img-wrap {
    width: 100%;
    background: #f8f9fb;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdm-modal-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    display: block;
}

.pdm-modal-content { padding: 20px 24px 0; }

.pdm-modal-shop {
    font-size: 12px;
    font-weight: 700;
    color: var(--pdm-primary);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}

.pdm-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pdm-text);
    line-height: 1.4;
    margin: 0 0 14px;
}

.pdm-modal-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.pdm-modal-mrp  { font-size: 14px; color: var(--pdm-muted); }
.pdm-modal-sp   { font-size: 28px; font-weight: 800; color: var(--pdm-text); }
.pdm-modal-save { font-size: 13px; color: var(--pdm-success); font-weight: 600; margin-bottom: 14px; background: #dcfce7; display: inline-block; padding: 3px 12px; border-radius: 20px; }

.pdm-modal-desc {
    margin: 14px 0;
    padding: 14px;
    background: #f8f9fb;
    border-radius: 10px;
}
.pdm-modal-desc h4 { font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--pdm-text); }
.pdm-modal-desc p  { font-size: 13px; color: var(--pdm-muted); line-height: 1.6; margin: 0; white-space: pre-line; }

.pdm-modal-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--pdm-muted);
    margin-bottom: 16px;
}


/* ---- SHOP SELECT in form ---- */
.pdm-shop-select-wrap { position: relative; }
.pdm-select-full { width: 100%; }

/* ---- FILE INPUT AREA ---- */
.pdm-file-drop-hint {
    font-size: 12px;
    color: var(--pdm-muted);
    margin-top: 6px;
}

/* ---- RESPONSIVE MODAL ---- */
@media (max-width: 640px) {
    .pdm-modal { border-radius: 14px; }
    .pdm-modal-img { max-height: 280px; }
    .pdm-modal-sp { font-size: 22px; }
    .pdm-modal-title { font-size: 16px; }
    .pdm-modal-content { padding: 14px 16px 0; }
}

/* ====================================================================
   v1.2: Image download protection + description unlimited
   ==================================================================== */

/* Prevent image download via pointer/select */
.pdm-no-save {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none;       /* blocks right-click save-as on image itself */
    -webkit-touch-callout: none;
}

/* The img-wrap needs pointer-events so the card click still works,
   but the img inside is blocked */
/* card-img-wrap position:relative set in main rule above */

/* Description textarea: allow unlimited height growth */
.pdm-textarea {
    min-height: 100px;
    max-height: none;
    resize: vertical;
}

/* Upload status indicator while image is uploading */
.pdm-upload-progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pdm-info);
    margin-top: 6px;
}

/* ====================================================================
   v1.3: Offers section, More Info below Buy Now, modal offers
   ==================================================================== */

/* ---- CARD: More Info below Buy Now (stacked layout) ---- */
.pdm-card-body {
    display: flex;
    flex-direction: column;
}
.pdm-card-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid var(--pdm-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--pdm-muted);
    transition: all .2s;
}
.pdm-card-info-btn:hover {
    border-color: var(--pdm-primary);
    color: var(--pdm-primary);
    background: #fff7ed;
}

/* Remove old card-footer flex layout (replaced by stacked) */
.pdm-card-footer { display: none !important; }

/* Offers badge on card */
.pdm-card-offers-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 20px;
    padding: 3px 9px;
    margin: 6px 0 4px;
    width: fit-content;
}

/* ---- OFFERS FORM SECTION ---- */
.pdm-offers-fetch-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.pdm-offers-url-input { flex: 1; }
.pdm-offers-fetch-btn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
}

.pdm-offers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 0;
}

.pdm-offer-row {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8f9fb;
    border: 1.5px solid var(--pdm-border);
    border-radius: 10px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.pdm-input-sm {
    padding: 8px 10px;
    border: 1.5px solid var(--pdm-border);
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    color: var(--pdm-text);
}
.pdm-input-sm:focus { border-color: var(--pdm-primary); }

.pdm-offer-type   { width: 150px; flex-shrink: 0; }
.pdm-offer-title  { flex: 1; min-width: 120px; }
.pdm-offer-detail { flex: 2; min-width: 160px; }

.pdm-offer-remove-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--pdm-danger);
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.pdm-offer-remove-btn:hover { background: var(--pdm-danger); color: #fff; }

.pdm-btn-add-offer {
    padding: 8px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pdm-muted);
    cursor: pointer;
    transition: all .2s;
    width: 100%;
    text-align: center;
}
.pdm-btn-add-offer:hover {
    border-color: var(--pdm-primary);
    color: var(--pdm-primary);
    background: #fff7ed;
}

/* ---- MODAL OFFERS ---- */
.pdm-modal-offers {
    margin: 14px 0;
}
.pdm-modal-offers h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--pdm-text);
    margin: 0 0 10px;
}
.pdm-modal-offers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdm-modal-offer-item {
    border-radius: 10px;
    padding: 10px 14px;
    border-left: 4px solid #d1d5db;
    background: #f8f9fb;
}
/* Color coding by offer type */
.pdm-offer-type-bank     { border-left-color: #2563eb; background: #eff6ff; }
.pdm-offer-type-cashback { border-left-color: #16a34a; background: #f0fdf4; }
.pdm-offer-type-emi      { border-left-color: #7c3aed; background: #f5f3ff; }
.pdm-offer-type-exchange { border-left-color: #d97706; background: #fffbeb; }
.pdm-offer-type-coupon   { border-left-color: #db2777; background: #fdf2f8; }
.pdm-offer-type-special  { border-left-color: #f97316; background: #fff7ed; }
.pdm-offer-type-combo    { border-left-color: #0891b2; background: #ecfeff; }
.pdm-offer-type-discount { border-left-color: #dc2626; background: #fef2f2; }

.pdm-modal-offer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pdm-modal-offer-type {
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
}
.pdm-modal-offer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pdm-text);
}
.pdm-modal-offer-detail {
    font-size: 12px;
    color: var(--pdm-muted);
    line-height: 1.5;
}

/* Responsive offers form */
@media (max-width: 640px) {
    .pdm-offer-row       { flex-direction: column; align-items: stretch; }
    .pdm-offer-type      { width: 100%; }
    .pdm-offers-fetch-row { flex-direction: column; }
}

/* ====================================================================
   v1.4: Full-size modal image, no More Info button, card cursor hint
   ==================================================================== */

/* Card: pointer cursor + subtle "click to view" hint */
/* Tap for details tooltip removed — distracting on mobile */

/* Hide More Info button (removed from HTML but keep rule in case cached) */
.pdm-card-info-btn { display: none; }
.pdm-card-footer   { display: none !important; }

/* Modal image rules moved to main section above */

/* Settings saved notice — make it visible even without JS */
.pdm-settings-saved {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Ad slot styles moved to v1.8 section */


/* Ad styles in v1.8 block below */


/* ====================================================================
   v1.8 — Advertisement Cards: Modern, Clean, Responsive
   ==================================================================== */

/* ---- GRID SLOT ---- */
.pdm-ad-slot.pdm-ad-item {
    grid-column: 1 / -1 !important;
    width: 100%;
    margin: 4px 0;
    animation: pdm-fade-in .4s ease;
}
@keyframes pdm-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- INNER CARD ---- */
.pdm-ad-inner {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.pdm-ad-inner:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* ---- SPONSORED LABEL ---- */
.pdm-ad-label {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255,255,255,.85);
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

/* ================================================================
   LAYOUT: image-only
   ================================================================ */
.pdm-ad-layout-img .pdm-ad-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 420px; /* desktop cap — scaled down further at smaller breakpoints below */
    background: #f3f4f6;
}
.pdm-ad-layout-img .pdm-ad-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;    /* never crop, always show full image — just capped in height */
    transition: transform .35s ease;
    background: #f3f4f6;
}
.pdm-ad-layout-img .pdm-ad-inner:hover .pdm-ad-img { transform: scale(1.01); }
.pdm-ad-layout-img .pdm-ad-img-link { display: block; width: 100%; }

/* Video ads already use their own fixed 16:9 ratio box — don't double-cap them */
.pdm-ad-layout-img.pdm-ad-has-video .pdm-ad-img-wrap,
.pdm-ad-layout-img.pdm-ad-has-video .pdm-ad-img-wrap .pdm-ad-img {
    max-height: none;
}

/* Tablet ≤ 900px */
@media (max-width: 900px) {
    .pdm-ad-layout-img .pdm-ad-img-wrap { max-height: 320px; }
    .pdm-ad-layout-img .pdm-ad-img      { max-height: 320px; }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
    .pdm-ad-layout-img .pdm-ad-img-wrap { max-height: 260px; }
    .pdm-ad-layout-img .pdm-ad-img      { max-height: 260px; }
}

/* ================================================================
   LAYOUT: text-only
   ================================================================ */
.pdm-ad-layout-text .pdm-ad-inner {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-color: #bfdbfe;
}
.pdm-ad-layout-text .pdm-ad-content {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.pdm-ad-layout-text .pdm-ad-message {
    flex: 1;
    min-width: 180px;
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
    line-height: 1.6;
    white-space: pre-line;
    padding: 0;
}

/* ================================================================
   LAYOUT: split (image left + message right)
   Desktop/tablet — side by side; mobile — stacked.
   Image is always shown in full (object-fit: contain) — never cropped.
   ================================================================ */
.pdm-ad-layout-split .pdm-ad-inner {
    display: flex;
    align-items: stretch;
    min-height: 160px;
}
.pdm-ad-layout-split .pdm-ad-img-wrap {
    flex: 0 0 38%;
    max-width: 38%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f3f4f6;
}
.pdm-ad-layout-split .pdm-ad-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;    /* show full image, never crop */
    transition: transform .35s ease;
}
.pdm-ad-layout-split .pdm-ad-inner:hover .pdm-ad-img { transform: scale(1.02); }
.pdm-ad-layout-split .pdm-ad-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.pdm-ad-layout-split .pdm-ad-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}
.pdm-ad-layout-split .pdm-ad-message {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.65;
    white-space: pre-line;
    padding: 0;
}

/* ---- SHARED MESSAGE ---- */
.pdm-ad-message { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ---- LINKS IN MESSAGE ---- */
.pdm-ad-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(37,99,235,.35);
    word-break: break-all;
    transition: color .15s, text-decoration-color .15s;
}
.pdm-ad-link:hover { color: #1d4ed8; text-decoration-color: #2563eb; }

/* ---- CTA BUTTON ---- */
.pdm-ad-cta-wrap { display: flex; width: 100%; }
.pdm-ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
    transition: box-shadow .2s, transform .15s, filter .2s;
    white-space: nowrap;
    letter-spacing: .2px;
}
.pdm-ad-cta:hover {
    box-shadow: 0 7px 22px rgba(124,58,237,.5);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* ================================================================
   RESPONSIVE — split adapts at every breakpoint, image always full & visible
   ================================================================ */

/* Tablet ≤ 900px: slightly larger image column, tighter padding */
@media (max-width: 900px) {
    .pdm-ad-layout-split .pdm-ad-img-wrap { flex-basis: 42%; max-width: 42%; height: 220px; }
    .pdm-ad-layout-split .pdm-ad-content  { padding: 18px 20px; }
}

/* Mobile ≤ 640px: stack image above content, full-width image, content aligned under it */
@media (max-width: 640px) {
    .pdm-ad-layout-split .pdm-ad-inner    { flex-direction: column; min-height: 0; }
    .pdm-ad-layout-split .pdm-ad-img-wrap { flex: none; max-width: 100%; width: 100%; height: 200px; }
    .pdm-ad-layout-split .pdm-ad-img-link { width: 100%; height: 100%; }
    .pdm-ad-layout-split .pdm-ad-content,
    .pdm-ad-layout-text  .pdm-ad-content  { padding: 16px 18px; gap: 10px; align-items: flex-start; }
    .pdm-ad-layout-split .pdm-ad-message,
    .pdm-ad-layout-text  .pdm-ad-message  { font-size: 13px; }
    .pdm-ad-cta-wrap { width: 100%; }
    .pdm-ad-cta  { width: 100%; padding: 12px 16px; font-size: 13px; }
    .pdm-ad-label { font-size: 8px; top: 8px; right: 8px; }
}

/* ================================================================
   ADMIN FORM: device checkboxes
   ================================================================ */
.pdm-ad-device-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.pdm-device-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8f9fb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
    user-select: none;
}
.pdm-device-label input[type="checkbox"] {
    accent-color: var(--pdm-primary);
    width: 15px; height: 15px;
    margin: 0;
}
.pdm-device-label:has(input:checked) {
    border-color: var(--pdm-primary);
    background: #fff7ed;
    color: #c2410c;
    font-weight: 700;
}

/* ====================================================================
   v1.9 — Ad Carousel (Carousel view format)
   ==================================================================== */

/* ---- WRAPPER ---- */
.pdm-ad-carousel-wrap {
    grid-column: 1 / -1 !important;
    width: 100%;
    position: relative;
    margin: 8px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    background: #fff;
    animation: pdm-fade-in .4s ease;
    /* Make sure carousel sits inside grid correctly */
    contain: layout;
}

/* ---- TRACK ---- */
.pdm-carousel-track {
    position: relative;
    width: 100%;
    /* Height is driven by the active slide's content */
}

/* ---- SLIDES ---- */
.pdm-carousel-slide {
    display: none;
    width: 100%;
}
.pdm-carousel-slide.pdm-carousel-active {
    display: block;
    animation: pdm-slide-in .35s ease;
}
@keyframes pdm-slide-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Ad items inside carousel lose their outer wrapper styles — track handles shape */
.pdm-carousel-slide .pdm-ad-slot.pdm-ad-item {
    grid-column: unset;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}
.pdm-carousel-slide .pdm-ad-inner {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* ---- PREV / NEXT ARROWS ---- */
.pdm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, box-shadow .15s, transform .15s;
    backdrop-filter: blur(4px);
}
.pdm-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transform: translateY(-50%) scale(1.08);
}
.pdm-carousel-prev { left: 10px; }
.pdm-carousel-next { right: 10px; }

/* ---- DOTS ---- */
.pdm-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.pdm-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: 1.5px solid rgba(255,255,255,.8);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s, width .2s;
}
.pdm-carousel-dot.pdm-dot-active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
    transform: none;
}

/* ---- WHEN ONLY ONE AD — no arrows/dots needed ---- */
.pdm-ad-carousel-wrap[data-total="1"] .pdm-carousel-dots,
.pdm-ad-carousel-wrap[data-total="1"] .pdm-carousel-arrow { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .pdm-carousel-arrow { width: 30px; height: 30px; font-size: 18px; }
    .pdm-carousel-prev  { left: 6px; }
    .pdm-carousel-next  { right: 6px; }
    .pdm-carousel-dot   { width: 6px; height: 6px; }
    .pdm-carousel-dot.pdm-dot-active { width: 16px; }
}

/* ====================================================================
   v1.9.1 — Ad form: link + button text group
   ==================================================================== */
.pdm-ad-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.pdm-ad-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdm-sub-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pdm-muted);
    min-width: 80px;
    flex-shrink: 0;
}

/* ====================================================================
   v1.9.2 — Carousel toggle switch + static ad mode
   ==================================================================== */

/* ---- TOGGLE SWITCH ---- */
.pdm-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.pdm-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.pdm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    background: #d1d5db;
    border-radius: 13px;
    transition: background .25s;
    flex-shrink: 0;
}
.pdm-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: transform .25s;
}
.pdm-toggle-label input:checked ~ .pdm-toggle-switch {
    background: #f97316;
}
.pdm-toggle-label input:checked ~ .pdm-toggle-switch::after {
    transform: translateX(20px);
}
.pdm-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ---- STATIC AD (carousel OFF) ---- */
.pdm-ad-static {
    grid-column: 1 / -1 !important;
    margin: 8px 0;
    animation: pdm-fade-in .3s ease;
}
.pdm-ad-static .pdm-ad-inner {
    border-radius: 14px;
}

/* ====================================================================
   v2.0 — Image ratio picker in Settings
   ==================================================================== */
.pdm-ratio-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pdm-ratio-option {
    cursor: pointer;
    text-align: center;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fb;
    min-width: 72px;
    transition: border-color .15s, background .15s, box-shadow .15s;
    user-select: none;
}
.pdm-ratio-option:hover {
    border-color: #f97316;
    background: #fff7ed;
}
.pdm-ratio-option.pdm-ratio-selected {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.pdm-ratio-preview {
    width: 56px;
    margin: 0 auto 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.pdm-ratio-option.pdm-ratio-selected .pdm-ratio-preview {
    background: #fed7aa;
}

.pdm-ratio-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-ratio-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #9ca3af;
}
.pdm-ratio-option.pdm-ratio-selected .pdm-ratio-icon { color: #ea580c; }

.pdm-ratio-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}
.pdm-ratio-option.pdm-ratio-selected .pdm-ratio-label { color: #c2410c; }

.pdm-ratio-desc {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 1px;
}
.pdm-ratio-option.pdm-ratio-selected .pdm-ratio-desc { color: #ea580c; }

/* ====================================================================
   v2.1 — Page Heading, Featured Deals Section, Featured Badge
   ==================================================================== */

/* ---- PAGE HEADING ---- */
.pdm-page-heading {
    text-align: center;
    margin-bottom: 28px;
}
.pdm-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--pdm-text);
    margin: 0 0 6px;
    line-height: 1.2;
}
.pdm-page-subtitle {
    font-size: 15px;
    color: var(--pdm-muted);
    margin: 0;
}
@media (max-width: 640px) {
    .pdm-page-title    { font-size: 22px; }
    .pdm-page-subtitle { font-size: 13px; }
}

/* ---- FEATURED SECTION ---- */
#pdm-featured-section {
    margin-bottom: 36px;
}
.pdm-featured-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.pdm-featured-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--pdm-text);
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.pdm-featured-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--pdm-primary);
    border-radius: 2px;
}

/* Featured grid uses same grid but with highlighted cards */
.pdm-featured-grid { margin-bottom: 0; }

.pdm-featured-divider {
    margin-top: 28px;
    border: none;
    border-top: 2px dashed #e5e7eb;
}

/* ---- FEATURED CARD STYLE ---- */
.pdm-card-featured {
    border-color: #fed7aa !important;
    box-shadow: 0 2px 16px rgba(249,115,22,.12) !important;
    background: linear-gradient(160deg, #fff 80%, #fff7ed 100%) !important;
}
.pdm-card-featured:hover {
    box-shadow: 0 6px 28px rgba(249,115,22,.2) !important;
}

/* ---- FEATURED BADGE ---- */
.pdm-badge-featured {
    display: inline-block;
    width: fit-content;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .3px;
}

/* ---- FEATURED TOGGLE IN FORM ---- */
.pdm-featured-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fb;
    transition: border-color .2s, background .2s;
    width: 100%;
}
.pdm-featured-toggle-wrap:has(input:checked) {
    border-color: #f97316;
    background: #fff7ed;
}
.pdm-featured-toggle-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pdm-featured-toggle-ui {
    position: relative;
    width: 42px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    flex-shrink: 0;
    transition: background .25s;
}
.pdm-featured-toggle-wrap:has(input:checked) .pdm-featured-toggle-ui {
    background: #f97316;
}
.pdm-featured-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: transform .25s;
}
.pdm-featured-toggle-wrap:has(input:checked) .pdm-featured-toggle-knob {
    transform: translateX(18px);
}
.pdm-featured-toggle-text {
    font-size: 14px;
    color: var(--pdm-text);
}
.pdm-featured-toggle-wrap:has(input:checked) .pdm-featured-toggle-text {
    color: #c2410c;
    font-weight: 600;
}

/* ====================================================================
   v2.2 — Dashboard, Custom Label, Ad Click Tracking
   ==================================================================== */

/* ---- DASHBOARD STAT CARDS ---- */
.pdm-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.pdm-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--pdm-border);
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.pdm-stat-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.1); }
.pdm-stat-icon { font-size: 28px; flex-shrink: 0; }
.pdm-stat-num  { font-size: 24px; font-weight: 800; color: #1f2937; line-height: 1; }
.pdm-stat-label{ font-size: 11px; font-weight: 600; color: #6b7280; margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }

.pdm-stat-blue   { border-left: 4px solid #3b82f6; }
.pdm-stat-orange { border-left: 4px solid #f97316; }
.pdm-stat-gold   { border-left: 4px solid #f59e0b; }
.pdm-stat-purple { border-left: 4px solid #8b5cf6; }
.pdm-stat-green  { border-left: 4px solid #10b981; }
.pdm-stat-gray   { border-left: 4px solid #6b7280; }

/* ---- QUICK ACTIONS ---- */
.pdm-dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pdm-action-btn {
    padding: 9px 18px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    transition: all .15s;
}
.pdm-action-btn:hover { background: #e2e8f0; color: #1f2937; text-decoration: none; }
.pdm-action-primary   { background: #f97316; color: #fff; border-color: #f97316; }
.pdm-action-primary:hover { background: #ea6c0a; color: #fff; }

/* ---- DASHBOARD PANELS ---- */
.pdm-dash-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) { .pdm-dash-panels { grid-template-columns: 1fr; } }

.pdm-dash-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.pdm-dash-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--pdm-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ---- CUSTOM LABEL ---- */
.pdm-label-wrap { display: flex; flex-direction: column; gap: 8px; }

.pdm-label-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pdm-label-preset-btn {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--pdm-border);
    background: #f8f9fb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: all .15s;
}
.pdm-label-preset-btn:hover {
    border-color: var(--pdm-primary);
    background: #fff7ed;
    color: var(--pdm-primary);
}

.pdm-label-preview-wrap {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- CUSTOM LABEL BADGE (on deal cards) ---- */
.pdm-card-custom-label {
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
}

/* ---- Card expiry date+time ---- */
.pdm-card-expiry {
    font-size: 11px;
    color: var(--pdm-muted);
    margin: 6px 0 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.pdm-card-expiry span {
    font-weight: 600;
    color: #4b5563;
}

/* ====================================================================
   v2.2.8 — Disc below price, expiry alert above button, upload inline
   ==================================================================== */

/* % OFF label — below selling price */
.pdm-card-disc-line {
    display: inline-block;
    width: fit-content;
    background: #fee2e2;
    color: var(--pdm-danger);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 4px 0 6px;
    letter-spacing: .2px;
}

/* Expires Today / N days left — plain small text below Buy Now, centered, no background */
.pdm-card-expiry-alert {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin: 6px 0 0;
    padding: 0;
    background: none;
    border: none;
    text-align: center;
}
.pdm-card-expiry-alert.pdm-expiry-urgent { color: var(--pdm-danger); }
.pdm-card-expiry-alert.pdm-expiry-warn   { color: var(--pdm-warn); }

/* Upload status — inline below Choose Image */
.pdm-upload-status {
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.pdm-upload-info    { background: #dbeafe; color: #1d4ed8; }
.pdm-upload-success { background: #dcfce7; color: #15803d; }
.pdm-upload-error   { background: #fee2e2; color: #dc2626; }

/* ====================================================================
   v2.3.4 — Modern card design overrides & responsive polish
   ==================================================================== */

/* Filter bar — glassmorphism style */
.pdm-filter-bar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229,231,235,.8);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Search input — rounded pill */
.pdm-search-input {
    border-radius: 50px !important;
    padding: 10px 20px !important;
    background: #f9fafb;
    border-color: #e5e7eb;
    font-size: 14px;
}
.pdm-search-input:focus {
    background: #fff;
    border-color: var(--pdm-primary) !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

/* Sort/category selects */
.pdm-select {
    border-radius: 10px !important;
    padding: 9px 14px !important;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 500;
}
.pdm-select:focus { border-color: var(--pdm-primary) !important; }

/* Card hover overlay removed — not needed on mobile */

/* Custom label badge — on image */
.pdm-card-custom-label {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(109,40,217,.35);
    white-space: nowrap;
    width: fit-content;
}

/* Offers badge */
.pdm-card-offers-badge {
    font-size: 11px;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 6px;
    padding: 4px 8px;
    margin: 2px 0 8px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
}

/* Expiry alert */
.pdm-card-expiry-alert {
    font-size: 11px;
    text-align: center;
    margin: 4px 0 8px;
}

/* Load more button */
.pdm-btn-secondary {
    padding: 13px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    background: #fff;
    border: 2px solid var(--pdm-primary);
    color: var(--pdm-primary);
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(249,115,22,.15);
}
.pdm-btn-secondary:hover {
    background: var(--pdm-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249,115,22,.35);
    transform: translateY(-1px);
}

/* Page heading */
.pdm-page-heading { margin-bottom: 24px; }
.pdm-page-title { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }

/* ---- RESPONSIVE GRID ---- */
/* Desktop default handled by output_grid_css inline style */
@media (max-width: 1024px) {
    .pdm-card-img-wrap { height: 180px; }
}
@media (max-width: 640px) {
    .pdm-grid { gap: 12px; }
    .pdm-card-img-wrap { height: 160px; }
    .pdm-price-selling { font-size: 19px; }
    .pdm-card-body { padding: 12px 13px 14px; }
    .pdm-filter-bar { padding: 12px 14px; gap: 8px; }
    .pdm-filter-wrap { flex-wrap: nowrap; gap: 8px; }
    .pdm-filter-wrap .pdm-select { flex: 1; width: 0 !important; min-width: 0; border-radius: 10px !important; padding: 8px 6px !important; font-size: 12px; }
}

/* Card animation on load */
.pdm-card {
    animation: pdm-card-in .3s ease both;
}
@keyframes pdm-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================================
   v2.5.0 — BOLD/VIBRANT NAVY REDESIGN (frontend deals grid)
   ==================================================================== */

#pdm-wrapper {
    --pdm-navy:        #0f1f4d;
    --pdm-navy-dk:     #0a1638;
    --pdm-navy-lt:     #1e3a8a;
    --pdm-accent:      #2563eb;
    --pdm-accent-2:    #7c3aed;
    --pdm-accent-3:    #ec4899;
    --pdm-grad-buy:    linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
    --pdm-grad-disc:   linear-gradient(135deg, #ff4d6d 0%, #ec4899 100%);
    --pdm-grad-save:   linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --pdm-grad-label:  linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --pdm-grad-bar:    linear-gradient(120deg, var(--pdm-navy) 0%, var(--pdm-navy-lt) 100%);
}

/* ---- FILTER BAR — navy gradient banner ---- */
#pdm-wrapper .pdm-filter-bar {
    background: var(--pdm-grad-bar) !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 30px rgba(15,31,77,.28) !important;
    padding: 18px 22px !important;
}
#pdm-wrapper .pdm-search-input {
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    background: rgba(255,255,255,.95) !important;
    font-weight: 500;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
#pdm-wrapper .pdm-search-input:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(236,72,153,.45) !important;
}
#pdm-wrapper .pdm-select {
    border: none !important;
    border-radius: 50px !important;
    padding: 11px 16px !important;
    background: rgba(255,255,255,.95) !important;
    font-weight: 600;
    color: var(--pdm-navy);
}
#pdm-wrapper .pdm-select:focus { box-shadow: 0 0 0 3px rgba(124,58,237,.45) !important; }

/* ---- GRID SPACING ---- */
#pdm-wrapper .pdm-grid { gap: 20px; }

/* ---- CARD — bold gradient accents ---- */
#pdm-wrapper .pdm-card {
    border: 1.5px solid #e8eaf3;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(15,31,77,.08);
    position: relative;
}
#pdm-wrapper .pdm-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--pdm-grad-buy);
    z-index: 1;
}
#pdm-wrapper .pdm-card:hover {
    box-shadow: 0 14px 36px rgba(37,99,235,.22), 0 4px 12px rgba(124,58,237,.18);
    transform: translateY(-6px);
    border-color: #c7d2fe;
}

#pdm-wrapper .pdm-card-img-wrap {
    background: linear-gradient(160deg, #f3f4fb 0%, #e8ecfb 100%);
}

/* ---- BADGES ---- */
#pdm-wrapper .pdm-badge-disc {
    background: var(--pdm-grad-disc) !important;
    box-shadow: 0 3px 10px rgba(236,72,153,.4) !important;
}
#pdm-wrapper .pdm-card-custom-label {
    background: var(--pdm-grad-label) !important;
    box-shadow: 0 3px 10px rgba(124,58,237,.4) !important;
}
#pdm-wrapper .pdm-card-offers-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(8,145,178,.35);
}

/* ---- BRAND / SHOP LABEL ---- */
#pdm-wrapper .pdm-card-shop,
#pdm-wrapper .pdm-card-brand {
    color: var(--pdm-accent-2);
}

/* ---- PRICES ---- */
#pdm-wrapper .pdm-price-selling { color: var(--pdm-navy); }
#pdm-wrapper .pdm-price-save {
    background: var(--pdm-grad-save) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(22,163,74,.35);
}
#pdm-wrapper .pdm-card-disc-line {
    background: var(--pdm-grad-disc) !important;
    color: #fff !important;
}

/* ---- LOAD MORE BUTTON ---- */
#pdm-wrapper .pdm-btn-secondary {
    border: none !important;
    background: var(--pdm-grad-bar) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(15,31,77,.3) !important;
}
#pdm-wrapper .pdm-btn-secondary:hover { filter: brightness(1.15); }

/* ---- LOADER / AJAX SPINNER ---- */
#pdm-wrapper .pdm-spinner {
    border-color: #e0e7ff;
    border-top-color: var(--pdm-accent-2);
}
#pdm-wrapper .pdm-loader { color: var(--pdm-navy); font-weight: 600; }

/* ---- AJAX CARD ENTRANCE ANIMATION ---- */
#pdm-wrapper .pdm-card { animation: pdm-card-pop .4s cubic-bezier(.2,.9,.3,1.2) backwards; }
@keyframes pdm-card-pop {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- RESPONSIVE TUNING ---- */
@media (max-width: 640px) {
    #pdm-wrapper .pdm-filter-bar { border-radius: 14px !important; padding: 14px 16px !important; }
    #pdm-wrapper .pdm-grid { gap: 14px; }
    #pdm-wrapper .pdm-card { border-radius: 14px; }
}

/* ====================================================================
   v2.5.2 — Modal redesign (deal detail popup lives outside #pdm-wrapper,
   so it needs its own bold/vibrant treatment to match the deals grid)
   ==================================================================== */
.pdm-modal {
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(15,31,77,.32);
}
.pdm-modal-img-wrap {
    background: linear-gradient(160deg, #f3f4fb 0%, #e8ecfb 100%);
    border-radius: 22px 22px 0 0;
}
.pdm-modal-close {
    background: rgba(15,31,77,.08);
    color: #0f1f4d;
}
.pdm-modal-close:hover { background: #fee2e2; color: #dc2626; }

.pdm-modal-shop { color: #7c3aed; }
.pdm-modal-sp   { color: #0f1f4d; }

.pdm-modal-save {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22,163,74,.35);
}

.pdm-modal-meta span {
    background: #eef0fb;
    color: #0f1f4d;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}


.pdm-modal-offers h4 { color: #0f1f4d; }
.pdm-modal-offer-item { border-left: 3px solid #7c3aed; }

/* ====================================================================
   v2.6.0 — PROMO POPUP (frontend, site-wide)
   ==================================================================== */
.pdm-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,14,35,.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.pdm-popup-overlay.pdm-popup-visible { opacity: 1; pointer-events: auto; }
body.pdm-popup-open { overflow: hidden; }

.pdm-popup-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    transform: translateY(16px) scale(.96);
    transition: transform .25s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pdm-popup-overlay.pdm-popup-visible .pdm-popup-box { transform: translateY(0) scale(1); }

.pdm-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: #0f1f4d;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: background .2s, transform .15s;
}
.pdm-popup-close:hover { background: #fee2e2; color: #dc2626; transform: scale(1.06); }

.pdm-popup-img-wrap {
    width: 100%;
    background: linear-gradient(160deg, #f3f4fb 0%, #e8ecfb 100%);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdm-popup-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}
.pdm-popup-img-link { display: block; width: 100%; }

.pdm-popup-image-only .pdm-popup-img-wrap { border-radius: 20px; }
.pdm-popup-image-only .pdm-popup-img { max-height: 80vh; }

.pdm-popup-content {
    padding: 20px 22px 24px;
    text-align: center;
}
.pdm-popup-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f1f4d;
    margin: 0 0 8px;
}
.pdm-popup-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 18px;
}
.pdm-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(124,58,237,.4);
    transition: box-shadow .2s, transform .15s, filter .2s;
    position: relative;
    overflow: hidden;
}
.pdm-popup-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.pdm-popup-btn:hover::after { left: 130%; }
.pdm-popup-btn:hover {
    box-shadow: 0 9px 24px rgba(124,58,237,.55);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

@media (max-width: 480px) {
    .pdm-popup-box { max-width: 92vw; border-radius: 16px; }
    .pdm-popup-img-wrap { border-radius: 16px 16px 0 0; }
    .pdm-popup-image-only .pdm-popup-img-wrap { border-radius: 16px; }
    .pdm-popup-content { padding: 16px 18px 20px; }
    .pdm-popup-title { font-size: 17px; }
    .pdm-card-badges { top: 8px; left: 8px; gap: 4px; }
    .pdm-badge-disc { font-size: 10px; padding: 4px 9px; }
}

/* ====================================================================
   v2.7.0 — AD VIDEO SUPPORT (YouTube + uploaded video)
   ==================================================================== */

/* ---- Frontend: responsive 16:9 video box, used inside .pdm-ad-img-wrap ---- */
.pdm-ad-video-wrap { padding: 0; background: #000; }
.pdm-ad-video-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.pdm-ad-video-ratio iframe,
.pdm-ad-video-ratio video.pdm-ad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

/* Video ads always show full-width media, never the squeezed split layout */
.pdm-ad-layout-img.pdm-ad-has-video .pdm-ad-img-wrap,
.pdm-ad-layout-split.pdm-ad-has-video .pdm-ad-img-wrap {
    flex: none !important;
    max-width: 100% !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
}
.pdm-ad-layout-split.pdm-ad-has-video .pdm-ad-inner { flex-direction: column; }

/* ---- Admin: media type selector buttons ---- */
.pdm-media-type-btn {
    padding: 8px 16px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    margin-right: 8px;
    transition: all .15s;
}
.pdm-media-type-btn:hover { border-color: #c7d2fe; }
.pdm-media-type-btn.pdm-tab-active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #fff;
}
.pdm-media-panel { margin-top: 10px; }

/* ====================================================================
   v2.8.0 — REALTIME UPDATES (new deal/ad highlight)
   ==================================================================== */
.pdm-card-new,
.pdm-ad-new {
    animation: pdm-realtime-pop .5s cubic-bezier(.2,.9,.3,1.2), pdm-realtime-glow 1.8s ease-out;
}
@keyframes pdm-realtime-pop {
    from { opacity: 0; transform: translateY(-12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pdm-realtime-glow {
    0%   { box-shadow: 0 0 0 3px rgba(124,58,237,.5), 0 8px 24px rgba(124,58,237,.3); }
    100% { box-shadow: none; }
}

/* ====================================================================
   v2.8.5 — ROW BALANCING (no orphaned empty grid cell on odd counts)
   ==================================================================== */
.pdm-card-fill-row {
    grid-column: 1 / -1;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

/* ====================================================================
   v2.8.9 — REMOVE TOP/SURROUNDING SPACING (mobile/tablet/desktop)
   Defensive reset in case the active theme/page-builder section adds
   default top padding/margin around the shortcode content.
   ==================================================================== */
#pdm-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.pdm-page-heading {
    margin-top: 0 !important;
}
/* Common theme/Elementor wrapper classes that may add default top spacing
   around the element directly containing this shortcode */
.elementor-widget-shortcode:has(#pdm-wrapper),
.elementor-element:has(#pdm-wrapper) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ====================================================================
   v2.8.10 — TIGHTEN TOP SPACING further (~2mm only, not zero)
   The previous #pdm-wrapper-only reset wasn't enough because the gap
   comes from the theme/page-builder's content wrapper around the
   shortcode, not from the plugin's own markup. Target common wrapper
   containers directly, plus pull the wrapper up as a guaranteed fallback.
   ==================================================================== */
body:has(#pdm-wrapper) .site-content,
body:has(#pdm-wrapper) .content-area,
body:has(#pdm-wrapper) .entry-content,
body:has(#pdm-wrapper) main,
body:has(#pdm-wrapper) article,
body:has(#pdm-wrapper) .elementor,
body:has(#pdm-wrapper) .elementor-widget-shortcode,
body:has(#pdm-wrapper) .elementor-element,
body:has(#pdm-wrapper) .elementor-section-wrap,
body:has(#pdm-wrapper) .page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Guaranteed fallback regardless of theme structure (browsers without :has support too) */
#pdm-wrapper {
    margin-top: 8px !important; /* ~2mm breathing room only */
}

/* ====================================================================
   v2.8.11 — HEADING BADGE
   ==================================================================== */
.pdm-heading-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
@media (max-width: 640px) {
    .pdm-heading-badge { font-size: 11px; padding: 5px 14px; }
}

/* ====================================================================
   v2.8.12 — CATEGORY IMAGES (logo shown next to category on cards/modal)
   ==================================================================== */
.pdm-category-logo {
    display: inline-block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: -3px;
    margin-right: 2px;
    border-radius: 3px;
}
.pdm-modal-shop .pdm-category-logo {
    width: 18px;
    height: 18px;
    vertical-align: -4px;
}

/* ====================================================================
   v2.9.0 — CATEGORY CIRCLE BAR (replaces search + dropdown category filter)
   ==================================================================== */
.pdm-cat-scroll-wrap {
    margin-bottom: 12px;
}
.pdm-cat-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    scrollbar-width: thin;
}
.pdm-cat-scroll::-webkit-scrollbar { height: 6px; }
.pdm-cat-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.pdm-cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 72px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}
.pdm-cat-circle:focus,
.pdm-cat-circle:active,
.pdm-cat-circle:focus-visible {
    outline: none;
    background: none;
    box-shadow: none;
}
.pdm-cat-circle-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pdm-cat-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    display: block;
}
/* For logo images that have transparent/white bg — keep contain with slight padding */
.pdm-cat-circle-img img.pdm-logo-img {
    object-fit: contain;
    padding: 8px;
    background: #fff;
}
.pdm-cat-circle-all { font-size: 26px; }

.pdm-cat-circle-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pdm-cat-circle:hover .pdm-cat-circle-img { transform: translateY(-2px); }
.pdm-cat-circle:focus-visible .pdm-cat-circle-img {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.pdm-cat-circle.pdm-cat-active .pdm-cat-circle-img {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124,58,237,.15), 0 4px 14px rgba(124,58,237,.3);
    background: #fff;
}
.pdm-cat-circle.pdm-cat-active .pdm-cat-circle-label {
    color: #7c3aed;
}

@media (max-width: 640px) {
    .pdm-cat-scroll { gap: 14px; }
    .pdm-cat-circle { width: 64px; }
    .pdm-cat-circle-img { width: 60px; height: 60px; font-size: 20px; }
    .pdm-cat-circle-label { font-size: 11px; }
}

/* ====================================================================
   v2.9.2 — MINIMAL SORT CONTROL (replaces bulky navy sort bar)
   ==================================================================== */
.pdm-sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.pdm-sort-mini {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath fill='%237c3aed' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 34px 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,31,77,.06);
    transition: border-color .15s, box-shadow .15s;
}
.pdm-sort-mini:hover  { border-color: #c7d2fe; }
.pdm-sort-mini:focus  { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.15); }

@media (max-width: 640px) {
    .pdm-sort-mini { font-size: 12px; padding: 7px 30px 7px 14px; }
}

/* ====================================================================
   v2.9.3 — NEW FEATURES: wishlist, share, countdown, price filter
   ==================================================================== */

/* wishlist/share — defined above */

.pdm-share-menu {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
    padding: 6px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    border: 1px solid #f1f5f9;
}
.pdm-share-menu a {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .1s;
}
.pdm-share-menu a svg { flex-shrink: 0; border-radius: 50%; }
.pdm-share-menu a:hover { background: #f3f4f6; }

/* ---- Countdown timer ---- */
.pdm-card-countdown {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    padding: 5px 10px;
    margin: 6px 0;
    text-align: center;
}

/* ---- Favorites toggle ---- */
.pdm-fav-toggle.pdm-cat-active {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #fff;
    border-color: transparent;
}

/* ---- Price range filter ---- */
.pdm-price-filter {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pdm-price-input {
    width: 80px;
    padding: 7px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 13px;
}
.pdm-price-clear-btn { padding: 8px 12px; }

@media (max-width: 640px) {
    .pdm-price-input { width: 64px; }
}

/* ====================================================================
   v2.9.3 CONTINUED — Price history chart, subscribe widget
   ==================================================================== */

/* ---- Price history mini chart (deal modal) ---- */
.pdm-price-history { margin: 16px 0; }
.pdm-price-history h4 { font-size: 13px; font-weight: 700; color: #0f1f4d; margin: 0 0 10px; }
.pdm-price-history-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding: 0 4px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8eaf3;
}
.pdm-ph-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 2px;
    cursor: default;
}
.pdm-ph-bar {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 4px 4px 0 0;
    transition: opacity .15s;
}
.pdm-ph-bar-wrap:hover .pdm-ph-bar { opacity: .7; }
.pdm-ph-label { font-size: 9px; color: #94a3b8; white-space: nowrap; }
.pdm-ph-range { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-top: 6px; }
.pdm-ph-range strong { color: #0f1f4d; }

/* ---- Subscribe widget ---- */
.pdm-subscribe-widget {
    margin-top: 40px;
    background: var(--pdm-grad-bar, linear-gradient(120deg,#0f1f4d,#1e3a8a));
    border-radius: 20px;
    padding: 2px;
}
.pdm-subscribe-inner {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
}
.pdm-subscribe-icon { font-size: 32px; margin-bottom: 8px; }
.pdm-subscribe-title { font-size: 18px; font-weight: 800; color: #0f1f4d; margin: 0 0 6px; }
.pdm-subscribe-sub   { font-size: 13px; color: #64748b; margin: 0 0 18px; }
.pdm-subscribe-form  { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.pdm-subscribe-input {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    text-align: center;
}
.pdm-subscribe-input:focus { outline: none; border-color: #7c3aed; }

@media (max-width: 640px) {
    .pdm-subscribe-inner { padding: 22px 16px; }
}

/* btn-row — defined above */
.pdm-btn-expiry {
    display: block;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1;
}
/* Responsive font scale for very small cards (2-col mobile) */
@media (max-width: 400px) {
    .pdm-card-btn-row .pdm-td-buy-btn { font-size: 11px; }
}

/* ====================================================================
   v2.9.8 — Compact filter row on mobile (max 2 rows)
   ==================================================================== */
@media (max-width: 640px) {
    .pdm-sort-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
    }
    /* Row 1: MY FAVORITES (left) + Sort dropdown (right) */
    #pdm-favorites-toggle { grid-column: 1; grid-row: 1; }
    #pdm-sort             { grid-column: 2; grid-row: 1; }
    /* Row 2: Price filter spans full width */
    .pdm-price-filter     { grid-column: 1 / -1; grid-row: 2; }
    .pdm-price-input      { flex: 1; min-width: 0; }
}

/* ====================================================================
   v2.9.9 — Two-row filter bar (favorites+sort top, price below)
   ==================================================================== */
.pdm-filter-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.pdm-filter-top-row #pdm-favorites-toggle { flex: 1; }
.pdm-filter-top-row #pdm-sort { flex: 0 0 auto; min-width: 130px; }

.pdm-filter-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.pdm-filter-price-row .pdm-price-input { flex: 1; min-width: 0; }
.pdm-price-sep { flex: 0 0 auto; color: #94a3b8; font-weight: 600; }

/* Hide old sort-row class if anything still uses it */
.pdm-sort-row:empty { display: none; }

@media (max-width: 640px) {
    .pdm-filter-top-row #pdm-sort { min-width: 110px; }
}

/* ====================================================================
   v2.9.16 — Share toast (desktop fallback when native share not available)
   ==================================================================== */
.pdm-share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    z-index: 999999;
    white-space: nowrap;
    pointer-events: none;
}
.pdm-share-toast.pdm-share-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ====================================================================
   v2.9.17 — Fake visitors + fake clicks badges on deal cards
   ==================================================================== */
.pdm-card-visitors {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 6px 0 2px;
    animation: pdm-vis-pulse 3s ease-in-out infinite;
}
@keyframes pdm-vis-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}

.pdm-card-clicks {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 2px 0 6px;
}

/* ====================================================================
   v2.9.27 — Compact filter chip bar redesign
   ==================================================================== */
.pdm-filter-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}
.pdm-filter-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 60px;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.pdm-chip-icon { font-size: 18px; line-height: 1; }
.pdm-chip-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .3px; }
.pdm-filter-chip:hover { border-color: #c7d2fe; background: #f5f3ff; }
.pdm-filter-chip.pdm-chip-active,
#pdm-favorites-toggle.pdm-cat-active {
    background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
    border-color: transparent !important;
    color: #fff;
}
.pdm-filter-chip.pdm-chip-active .pdm-chip-label,
.pdm-filter-chip.pdm-chip-active .pdm-chip-icon,
#pdm-favorites-toggle.pdm-cat-active .pdm-chip-label,
#pdm-favorites-toggle.pdm-cat-active .pdm-chip-icon { color: #fff; }

.pdm-sort-chip {
    flex: 1;
    min-width: 0;
    height: 52px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath fill='%237c3aed' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 32px 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: border-color .15s;
}
.pdm-sort-chip:focus { outline: none; border-color: #7c3aed; }

.pdm-filter-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    animation: pdm-slide-down .2s ease;
}
@keyframes pdm-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pdm-filter-price-row .pdm-price-input { flex: 1; min-width: 0; }

@media (max-width: 360px) {
    .pdm-filter-chip { width: 52px; height: 48px; }
    .pdm-chip-icon { font-size: 16px; }
}

/* ====================================================================
   v2.9.28 — Saved/Price chips match sort pill style exactly
   ==================================================================== */
.pdm-chip-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    flex-shrink: 0;
}
.pdm-chip-btn:hover { border-color: #c7d2fe; }
.pdm-chip-btn.pdm-chip-active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #fff;
}
.pdm-saved-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #ec4899;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50px;
    padding: 0 4px;
}
.pdm-chip-btn.pdm-chip-active .pdm-saved-badge { background: rgba(255,255,255,.35); }

.pdm-sort-chip {
    flex: 1;
    min-width: 0;
    height: 44px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='13' height='13'%3E%3Cpath fill='%237c3aed' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 0 32px 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: border-color .15s;
}
.pdm-sort-chip:focus { outline: none; border-color: #7c3aed; }

.pdm-filter-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

/* ====================================================================
   v2.9.35 — WebView share bottom sheet
   ==================================================================== */
.pdm-share-menu-center {
    box-shadow: 0 -4px 30px rgba(0,0,0,.15) !important;
    border-radius: 16px 16px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* ===================== PRICE RANGE SLIDER ===================== */
.pdm-price-slider-wrap {
    width: 100%;
    padding: 8px 4px 4px;
}
.pdm-price-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 12px;
}
.pdm-range-track {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 8px 18px;
}
.pdm-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #a855f7);
    border-radius: 4px;
    pointer-events: none;
}
.pdm-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    outline: none;
    margin: 0;
}
.pdm-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
    cursor: pointer;
    pointer-events: all;
    margin-top: -8px;
    transition: border-color .15s, box-shadow .15s;
}
.pdm-range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4f46e5;
    box-shadow: 0 2px 8px rgba(79,70,229,.3);
    cursor: pointer;
    pointer-events: all;
}
.pdm-range-input::-webkit-slider-thumb:hover,
.pdm-range-input:active::-webkit-slider-thumb {
    border-color: #7c3aed;
    box-shadow: 0 0 0 5px rgba(79,70,229,.15);
}
.pdm-price-slider-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}
.pdm-filter-price-row {
    background: #f8f7ff;
    border: 1.5px solid #e0d9ff;
    border-radius: 14px;
    padding: 16px 20px 12px;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* v5.108.22 — PDM frontend rotating/loading visual removed */
.pdm-loader,.pdm-loading,.pdm-loading-wrap,.pdm-loading-state,.pdm-spinner,#pdm-loader,#pdm-loading,[class*="pdm-"][class*="spinner"],[class*="pdm-"][class*="loader"],[class*="pdm-"][class*="loading"]{display:none!important;animation:none!important}


/* v5.109.51 — PDM frontend category names are never truncated */
#pdm-wrapper .pdm-cat-circle{
	width:auto!important;
	min-width:76px!important;
	max-width:150px!important;
	padding:0 4px!important;
}
#pdm-wrapper .pdm-cat-circle-label{
	display:block!important;
	width:100%!important;
	max-width:150px!important;
	height:auto!important;
	min-height:32px!important;
	overflow:visible!important;
	text-overflow:clip!important;
	white-space:normal!important;
	-webkit-line-clamp:unset!important;
	-webkit-box-orient:initial!important;
	word-break:normal!important;
	overflow-wrap:anywhere!important;
	line-height:1.25!important;
	text-align:center!important;
}
#pdm-wrapper .pdm-cat-scroll{
	align-items:flex-start!important;
}
@media(max-width:640px){
	#pdm-wrapper .pdm-cat-circle{
		min-width:72px!important;
		max-width:125px!important;
	}
	#pdm-wrapper .pdm-cat-circle-label{
		max-width:125px!important;
		font-size:11px!important;
		min-height:28px!important;
	}
}


/* v5.150.0 — Daily Deals mobile card: compact engagement + strict 2-line title */
.pdm-card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.32 !important;
    height: 2.64em !important;
    min-height: 2.64em !important;
    max-height: 2.64em !important;
    margin: 0 0 7px !important;
}
.pdm-engagement-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 3px 0 7px !important;
    min-width: 0 !important;
}
.pdm-engagement-row > .pdm-card-visitors,
.pdm-engagement-row > .pdm-card-clicks {
    display: flex !important;
    flex: 1 1 50% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 4px 4px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
.pdm-engagement-row > .pdm-card-visitors span,
.pdm-engagement-row > .pdm-card-clicks span { flex: 0 0 auto !important; }
@media (max-width: 480px) {
    .pdm-card-title { font-size: 13px !important; }
    .pdm-engagement-row { gap: 4px !important; }
    .pdm-engagement-row > .pdm-card-visitors,
    .pdm-engagement-row > .pdm-card-clicks {
        padding: 4px 3px !important;
        font-size: 9.5px !important;
    }
}

/* v5.151.0 — Daily Deals card redesign: cleaner commerce architecture */
#pdm-wrapper .pdm-card{
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #e7eaf0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(15,23,42,.07)!important;
    min-width:0!important;
}
#pdm-wrapper .pdm-card::before{height:4px!important;}
#pdm-wrapper .pdm-card-img-wrap{
    margin:0!important;
    border-radius:0!important;
    background:#f7f8fc!important;
    border:0!important;
    height:190px!important;
    min-height:0!important;
    padding:0!important;
}
#pdm-wrapper .pdm-card-img{
    width:100%!important;height:100%!important;padding:10px!important;
    object-fit:contain!important;background:#f7f8fc!important;
}
#pdm-wrapper .pdm-card-body{
    padding:12px 13px 13px!important;
    display:flex!important;flex-direction:column!important;gap:0!important;
}
#pdm-wrapper .pdm-card-shop{
    margin:0 0 7px!important;min-height:22px!important;
    font-size:11px!important;font-weight:800!important;letter-spacing:.02em!important;
    color:#6d43d9!important;
}
#pdm-wrapper .pdm-card-title{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:15px!important;font-weight:700!important;line-height:1.32!important;
    height:2.64em!important;min-height:2.64em!important;max-height:2.64em!important;
    margin:0 0 9px!important;color:#172033!important;
}
#pdm-wrapper .pdm-card-prices{
    display:flex!important;align-items:baseline!important;gap:8px!important;
    min-height:34px!important;margin:0 0 9px!important;
}
#pdm-wrapper .pdm-price-regular{font-size:13px!important;color:#9aa3b2!important;text-decoration:line-through!important;}
#pdm-wrapper .pdm-price-selling{font-size:24px!important;font-weight:850!important;line-height:1!important;color:#111b35!important;}
#pdm-wrapper .pdm-engagement-row{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;
    width:100%!important;margin:0 0 10px!important;padding:0!important;
}
#pdm-wrapper .pdm-engagement-row>.pdm-card-visitors,
#pdm-wrapper .pdm-engagement-row>.pdm-card-clicks{
    width:100%!important;max-width:none!important;min-width:0!important;
    height:29px!important;padding:0 5px!important;margin:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    border-radius:9px!important;font-size:10px!important;font-weight:700!important;line-height:1!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    box-shadow:none!important;
}
#pdm-wrapper .pdm-card-visitors{background:#fff6f5!important;border:1px solid #ffd9d4!important;color:#c75d55!important;}
#pdm-wrapper .pdm-card-clicks{background:#f7f4ff!important;border:1px solid #e4dcff!important;color:#7651c8!important;}
#pdm-wrapper .pdm-card-btn-row{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;margin-top:auto!important;}
#pdm-wrapper .pdm-btn-buynow{
    min-width:0!important;height:44px!important;border-radius:12px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    font-size:13px!important;font-weight:800!important;box-shadow:0 5px 12px rgba(91,61,220,.18)!important;
}
#pdm-wrapper .pdm-share-btn{
    width:44px!important;height:44px!important;min-width:44px!important;border-radius:12px!important;
    background:#f8f9fc!important;border:1px solid #e5e8ef!important;box-shadow:none!important;
}
#pdm-wrapper .pdm-badge-disc{
    top:10px!important;left:10px!important;border-radius:10px!important;
    padding:6px 9px!important;font-size:11px!important;font-weight:800!important;
}
#pdm-wrapper .pdm-wishlist-btn{
    width:38px!important;height:38px!important;border-radius:12px!important;top:10px!important;right:10px!important;
    background:rgba(255,255,255,.94)!important;box-shadow:0 3px 10px rgba(15,23,42,.10)!important;
}
@media(max-width:640px){
    #pdm-wrapper .pdm-card{border-radius:15px!important;}
    #pdm-wrapper .pdm-card-img-wrap{height:150px!important;}
    #pdm-wrapper .pdm-card-img{padding:8px!important;}
    #pdm-wrapper .pdm-card-body{padding:10px 10px 11px!important;}
    #pdm-wrapper .pdm-card-shop{font-size:9.5px!important;margin-bottom:5px!important;min-height:18px!important;}
    #pdm-wrapper .pdm-card-title{font-size:12.5px!important;line-height:1.3!important;height:2.6em!important;min-height:2.6em!important;max-height:2.6em!important;margin-bottom:7px!important;}
    #pdm-wrapper .pdm-card-prices{gap:5px!important;min-height:29px!important;margin-bottom:7px!important;}
    #pdm-wrapper .pdm-price-regular{font-size:10.5px!important;}
    #pdm-wrapper .pdm-price-selling{font-size:20px!important;}
    #pdm-wrapper .pdm-engagement-row{gap:4px!important;margin-bottom:8px!important;}
    #pdm-wrapper .pdm-engagement-row>.pdm-card-visitors,
    #pdm-wrapper .pdm-engagement-row>.pdm-card-clicks{height:25px!important;padding:0 3px!important;font-size:8.5px!important;border-radius:8px!important;}
    #pdm-wrapper .pdm-card-btn-row{grid-template-columns:minmax(0,1fr) 38px!important;gap:6px!important;}
    #pdm-wrapper .pdm-btn-buynow{height:39px!important;border-radius:10px!important;font-size:11.5px!important;}
    #pdm-wrapper .pdm-share-btn{width:38px!important;height:39px!important;min-width:38px!important;border-radius:10px!important;}
    #pdm-wrapper .pdm-badge-disc{top:8px!important;left:8px!important;padding:5px 7px!important;font-size:9.5px!important;}
    #pdm-wrapper .pdm-wishlist-btn{width:34px!important;height:34px!important;top:8px!important;right:8px!important;border-radius:10px!important;}
}


/* v5.152.0 — precise wishlist heart */
#pdm-wrapper .pdm-wishlist-btn{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;color:#94a3b8!important;}
#pdm-wrapper .pdm-wishlist-btn .pdm-heart-icon{width:20px!important;height:20px!important;display:block!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#pdm-wrapper .pdm-wishlist-btn.pdm-wishlist-active{color:#f43f5e!important;background:#fff5f7!important;border-color:#fecdd3!important;}
#pdm-wrapper .pdm-wishlist-btn.pdm-wishlist-active .pdm-heart-icon{fill:currentColor!important;stroke:currentColor!important;}
@media(max-width:640px){#pdm-wrapper .pdm-wishlist-btn .pdm-heart-icon{width:18px!important;height:18px!important;}}

/* v5.156.0 — responsive PDM detail popup redesign */
.pdm-modal-overlay{padding:20px!important;background:rgba(15,23,42,.68)!important;backdrop-filter:blur(8px)}
.pdm-modal{width:min(760px,100%)!important;max-height:min(900px,94dvh)!important;border-radius:26px!important;overflow:hidden!important;box-shadow:0 28px 80px rgba(15,23,42,.28)!important;background:#fff!important}
.pdm-modal-inner{overflow-y:auto!important;max-height:94dvh!important;padding-bottom:0!important}
.pdm-modal-img-wrap{background:#f7f8fc!important;padding:16px!important;border-bottom:1px solid #edf0f5!important}
.pdm-modal-img{width:100%!important;max-height:410px!important;object-fit:contain!important;border-radius:18px!important;background:#fff!important}
.pdm-modal-content{padding:22px 24px 24px!important}.pdm-modal-shop{margin-bottom:10px!important}.pdm-modal-title{font-size:22px!important;line-height:1.3!important;margin:0 0 16px!important;color:#111827!important}
.pdm-modal-price-row{display:flex!important;align-items:baseline!important;gap:10px!important;flex-wrap:wrap!important;margin-bottom:8px!important}.pdm-modal-sp{font-size:34px!important}.pdm-modal-save{margin:0 0 14px!important}
.pdm-modal-social{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:12px 0 16px!important}.pdm-modal-social span{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:9px 10px!important;border:1px solid #e7e9f4!important;border-radius:12px!important;background:#fafaff!important;color:#5b6477!important;font-size:13px!important;white-space:nowrap!important}
.pdm-modal-meta{margin:14px 0!important}.pdm-modal-meta span{display:inline-flex!important;padding:8px 11px!important;border-radius:10px!important;background:#f5f3ff!important;color:#4c3a83!important;font-size:13px!important}
.pdm-modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:14px 0 10px!important}.pdm-modal-actions button{height:44px!important;border:1px solid #e2e5ee!important;border-radius:13px!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-weight:700!important;color:#334155!important;cursor:pointer!important}.pdm-modal-actions svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}.pdm-modal-save-btn.is-saved{color:#e11d48!important;background:#fff1f2!important;border-color:#fecdd3!important}.pdm-modal-save-btn.is-saved svg{fill:#e11d48!important}
.pdm-modal-content .pdm-td-buy-btn-full{min-height:50px!important;border-radius:14px!important;font-size:16px!important;margin-top:0!important}.pdm-modal-close{top:14px!important;right:14px!important;width:42px!important;height:42px!important;border-radius:50%!important;z-index:4!important;background:rgba(255,255,255,.96)!important;box-shadow:0 5px 18px rgba(15,23,42,.16)!important}
@media(max-width:600px){.pdm-modal-overlay{padding:0!important;align-items:flex-end!important}.pdm-modal{width:100%!important;max-height:92dvh!important;border-radius:24px 24px 0 0!important}.pdm-modal-inner{max-height:92dvh!important}.pdm-modal-img-wrap{padding:12px!important}.pdm-modal-img{max-height:34dvh!important;border-radius:15px!important}.pdm-modal-content{padding:16px 16px calc(18px + env(safe-area-inset-bottom))!important}.pdm-modal-title{font-size:18px!important}.pdm-modal-sp{font-size:28px!important}.pdm-modal-social{gap:6px!important}.pdm-modal-social span{font-size:11.5px!important;padding:8px 5px!important}.pdm-modal-offer-item{padding:10px!important}.pdm-modal-actions button{height:42px!important}}

/* v5.156.4 — PDM mobile deal detail: true full-screen Daily Deals layout */
@media (max-width: 600px) {
  body.pdm-modal-open { overflow:hidden !important; }
  #pdm-modal-overlay.pdm-modal-overlay {
    position:fixed !important; inset:0 !important; z-index:999999 !important;
    display:none; padding:0 !important; margin:0 !important;
    align-items:stretch !important; justify-content:stretch !important;
    background:#f7f8fc !important; backdrop-filter:none !important;
  }
  #pdm-modal-overlay .pdm-modal {
    position:relative !important; inset:auto !important; transform:none !important;
    width:100vw !important; max-width:none !important; height:100dvh !important;
    max-height:100dvh !important; min-height:100dvh !important; margin:0 !important;
    padding:0 !important; border:0 !important; border-radius:0 !important;
    background:#fff !important; box-shadow:none !important; overflow:hidden !important;
  }
  #pdm-modal-overlay #pdm-modal-inner {
    width:100% !important; height:100dvh !important; max-height:100dvh !important;
    overflow-y:auto !important; overflow-x:hidden !important; overscroll-behavior:contain !important;
    border:0 !important; border-radius:0 !important; box-shadow:none !important;
    background:#fff !important; padding:0 0 calc(14px + env(safe-area-inset-bottom)) !important;
  }
  #pdm-modal-overlay #pdm-modal-inner:before {
    content:""; display:block; height:5px; position:sticky; top:0; z-index:12;
    background:linear-gradient(90deg,#2f6df6 0%,#7c3aed 52%,#ec4899 100%);
  }
  #pdm-modal-overlay .pdm-modal-close {
    position:fixed !important; top:calc(12px + env(safe-area-inset-top)) !important; right:12px !important;
    width:42px !important; height:42px !important; min-width:42px !important; min-height:42px !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    margin:0 !important; padding:0 !important; border-radius:14px !important;
    border:1px solid #e5e8ef !important; background:rgba(255,255,255,.96) !important;
    color:#1f2a3d !important; box-shadow:0 5px 18px rgba(15,23,42,.13) !important;
    font-size:19px !important; line-height:1 !important; z-index:1000001 !important;
  }
  #pdm-modal-inner .pdm-modal-img-wrap {
    width:100% !important; height:31dvh !important; min-height:205px !important; max-height:285px !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    padding:18px 14px 10px !important; margin:0 !important; background:#f5f6fb !important;
    border:0 !important; border-bottom:1px solid #eceff5 !important; border-radius:0 !important;
  }
  #pdm-modal-inner .pdm-modal-img {
    width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important;
    object-fit:contain !important; object-position:center !important; margin:0 !important; padding:0 !important;
    border-radius:12px !important; background:#fff !important;
  }
  #pdm-modal-inner .pdm-modal-content { padding:12px 16px 16px !important; margin:0 !important; }
  #pdm-modal-inner .pdm-modal-shop { margin:0 0 6px !important; min-height:24px !important; }
  #pdm-modal-inner .pdm-modal-title {
    margin:0 0 9px !important; font-size:20px !important; line-height:1.22 !important; font-weight:750 !important;
    color:#172033 !important; display:-webkit-box !important; -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important; overflow:hidden !important;
  }
  #pdm-modal-inner .pdm-modal-price-row { display:flex !important; align-items:baseline !important; flex-wrap:wrap !important; gap:8px !important; margin:0 0 5px !important; }
  #pdm-modal-inner .pdm-modal-mrp { font-size:13px !important; color:#7d8796 !important; }
  #pdm-modal-inner .pdm-modal-sp { font-size:30px !important; line-height:1 !important; font-weight:800 !important; color:#10204a !important; }
  #pdm-modal-inner .pdm-badge-disc { padding:5px 10px !important; border-radius:999px !important; font-size:11px !important; line-height:1.2 !important; }
  #pdm-modal-inner .pdm-modal-save { display:inline-flex !important; width:auto !important; margin:2px 0 7px !important; padding:5px 10px !important; border-radius:999px !important; font-size:11px !important; }
  #pdm-modal-inner .pdm-modal-social { display:grid !important; grid-template-columns:1fr 1fr !important; gap:7px !important; margin:7px 0 !important; }
  #pdm-modal-inner .pdm-modal-social > span { min-width:0 !important; min-height:36px !important; padding:6px 7px !important; border-radius:11px !important; font-size:11px !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
  #pdm-modal-inner .pdm-modal-meta { margin:7px 0 !important; padding:8px 10px !important; border-radius:11px !important; font-size:11.5px !important; }
  #pdm-modal-inner .pdm-modal-actions { display:grid !important; grid-template-columns:1fr 1fr !important; gap:8px !important; margin:8px 0 !important; }
  #pdm-modal-inner .pdm-modal-actions button { min-height:42px !important; height:42px !important; padding:0 10px !important; border-radius:12px !important; font-size:13px !important; }
  #pdm-modal-inner .pdm-modal-actions svg { width:18px !important; height:18px !important; }
  #pdm-modal-inner .pdm-td-buy-btn-full { display:flex !important; align-items:center !important; justify-content:center !important; width:100% !important; min-height:46px !important; height:46px !important; margin:0 !important; border-radius:13px !important; font-size:16px !important; }
  #pdm-modal-inner .pdm-modal-offers, #pdm-modal-inner .pdm-price-history, #pdm-modal-inner .pdm-modal-desc { margin-top:10px !important; }
}
@media (max-width: 380px) {
  #pdm-modal-inner .pdm-modal-img-wrap { height:28dvh !important; min-height:180px !important; }
  #pdm-modal-inner .pdm-modal-content { padding-left:12px !important; padding-right:12px !important; }
  #pdm-modal-inner .pdm-modal-title { font-size:18px !important; }
  #pdm-modal-inner .pdm-modal-sp { font-size:27px !important; }
}

/* v5.156.5 — responsive PDM detail architecture: mobile / tablet / desktop */
body.pdm-modal-open{overflow:hidden!important}
#pdm-modal-overlay.pdm-modal-overlay{position:fixed!important;inset:0!important;z-index:2147483600!important;background:rgba(15,23,42,.62)!important;backdrop-filter:blur(7px)!important;display:none;align-items:center!important;justify-content:center!important;padding:24px!important}
#pdm-modal-overlay .pdm-modal{position:relative!important;width:min(1040px,96vw)!important;max-width:1040px!important;height:auto!important;max-height:92dvh!important;min-height:0!important;margin:0!important;border:1px solid rgba(226,232,240,.9)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 28px 90px rgba(15,23,42,.28)!important;overflow:hidden!important}
#pdm-modal-overlay #pdm-modal-inner{width:100%!important;height:auto!important;max-height:92dvh!important;overflow:auto!important;background:#fff!important;padding:0!important}
#pdm-modal-overlay #pdm-modal-inner:before{content:"";display:block;height:5px;position:sticky;top:0;z-index:15;background:linear-gradient(90deg,#2f6df6 0%,#7c3aed 52%,#ec4899 100%)}
#pdm-modal-overlay .pdm-modal-close{position:absolute!important;top:16px!important;right:16px!important;z-index:2147483640!important;width:44px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #e5e7eb!important;border-radius:14px!important;background:rgba(255,255,255,.96)!important;color:#172033!important;box-shadow:0 5px 18px rgba(15,23,42,.14)!important;font-size:20px!important}
#pdm-modal-inner .pdm-modal-img-wrap{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:18px!important;margin:0!important;background:#f5f6fb!important;border-bottom:1px solid #edf0f5!important;display:flex!important;align-items:center!important;justify-content:center!important}
#pdm-modal-inner .pdm-modal-img{display:block!important;width:100%!important;height:auto!important;max-width:720px!important;max-height:420px!important;object-fit:contain!important;border-radius:16px!important;background:#fff!important}
#pdm-modal-inner .pdm-modal-content{padding:20px 24px 24px!important;margin:0!important}
#pdm-modal-inner .pdm-modal-title{font-size:22px!important;line-height:1.28!important;margin:0 0 12px!important;color:#172033!important;font-weight:750!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
#pdm-modal-inner .pdm-modal-price-row{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:10px!important;margin:0 0 7px!important}
#pdm-modal-inner .pdm-modal-sp{font-size:34px!important;line-height:1!important}
#pdm-modal-inner .pdm-modal-social{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}
#pdm-modal-inner .pdm-modal-social>span{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:42px!important;padding:8px 10px!important;border:1px solid #e7e9f4!important;border-radius:13px!important;background:#fafaff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#pdm-modal-inner .pdm-modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:12px 0 10px!important}
#pdm-modal-inner .pdm-modal-actions button{height:46px!important;border-radius:13px!important}
#pdm-modal-inner .pdm-td-buy-btn-full{min-height:50px!important;height:50px!important;border-radius:14px!important;margin:0!important}

/* Desktop: image + information side-by-side for efficient use of wide screens */
@media (min-width:1024px){
 #pdm-modal-overlay #pdm-modal-inner{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr)!important;align-items:stretch!important}
 #pdm-modal-overlay #pdm-modal-inner:before{grid-column:1/-1!important}
 #pdm-modal-inner .pdm-modal-img-wrap{height:calc(92dvh - 5px)!important;max-height:720px!important;border-bottom:0!important;border-right:1px solid #edf0f5!important;padding:28px!important;position:sticky!important;top:5px!important}
 #pdm-modal-inner .pdm-modal-img{max-width:100%!important;max-height:100%!important}
 #pdm-modal-inner .pdm-modal-content{padding:30px 30px 28px!important;align-self:center!important}
 #pdm-modal-inner .pdm-modal-title{font-size:25px!important}
}

/* Tablet: wide centered sheet, balanced image and content */
@media (min-width:601px) and (max-width:1023px){
 #pdm-modal-overlay.pdm-modal-overlay{padding:22px!important}
 #pdm-modal-overlay .pdm-modal{width:min(760px,94vw)!important;max-height:92dvh!important;border-radius:22px!important}
 #pdm-modal-inner .pdm-modal-img-wrap{height:min(42dvh,380px)!important;padding:18px!important}
 #pdm-modal-inner .pdm-modal-img{height:100%!important;max-height:100%!important;width:100%!important}
 #pdm-modal-inner .pdm-modal-content{padding:18px 22px 22px!important}
}

/* Mobile: true full-screen product detail, no site header showing through */
@media (max-width:600px){
 #pdm-modal-overlay.pdm-modal-overlay{inset:0!important;width:100vw!important;height:100dvh!important;padding:0!important;background:#fff!important;backdrop-filter:none!important;align-items:stretch!important;justify-content:stretch!important}
 #pdm-modal-overlay .pdm-modal{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 #pdm-modal-overlay #pdm-modal-inner{display:block!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0 0 calc(14px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important}
 #pdm-modal-overlay .pdm-modal-close{position:fixed!important;top:calc(10px + env(safe-area-inset-top))!important;right:12px!important;width:40px!important;height:40px!important;border-radius:12px!important}
 #pdm-modal-inner .pdm-modal-img-wrap{height:34dvh!important;min-height:210px!important;max-height:300px!important;padding:14px 12px 9px!important;border-right:0!important}
 #pdm-modal-inner .pdm-modal-img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;border-radius:12px!important}
 #pdm-modal-inner .pdm-modal-content{padding:12px 16px 16px!important}
 #pdm-modal-inner .pdm-modal-shop{margin:0 0 5px!important}
 #pdm-modal-inner .pdm-modal-title{font-size:19px!important;line-height:1.22!important;margin:0 0 8px!important}
 #pdm-modal-inner .pdm-modal-price-row{gap:7px!important;margin-bottom:5px!important}
 #pdm-modal-inner .pdm-modal-mrp{font-size:13px!important}
 #pdm-modal-inner .pdm-modal-sp{font-size:29px!important}
 #pdm-modal-inner .pdm-badge-disc{font-size:11px!important;padding:5px 9px!important}
 #pdm-modal-inner .pdm-modal-save{font-size:11px!important;padding:5px 9px!important;margin:2px 0 6px!important}
 #pdm-modal-inner .pdm-modal-social{gap:7px!important;margin:7px 0!important}
 #pdm-modal-inner .pdm-modal-social>span{min-height:36px!important;padding:6px!important;font-size:11.5px!important}
 #pdm-modal-inner .pdm-modal-meta{margin:7px 0!important;padding:8px 10px!important;font-size:11.5px!important}
 #pdm-modal-inner .pdm-modal-actions{gap:8px!important;margin:8px 0!important}
 #pdm-modal-inner .pdm-modal-actions button{height:42px!important;font-size:13px!important}
 #pdm-modal-inner .pdm-td-buy-btn-full{height:46px!important;min-height:46px!important;font-size:16px!important}
}
@media (max-width:380px){
 #pdm-modal-inner .pdm-modal-img-wrap{height:30dvh!important;min-height:180px!important}
 #pdm-modal-inner .pdm-modal-content{padding-left:12px!important;padding-right:12px!important}
 #pdm-modal-inner .pdm-modal-title{font-size:17px!important}
 #pdm-modal-inner .pdm-modal-sp{font-size:26px!important}
}

/* v5.156.9 — PDM popup always centered in the visible viewport */
@media (max-width:600px){
 #pdm-modal-overlay.pdm-modal-overlay{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;padding:12px!important;background:rgba(15,23,42,.62)!important;backdrop-filter:blur(7px)!important;display:none;align-items:center!important;justify-content:center!important}
 #pdm-modal-overlay .pdm-modal{position:relative!important;inset:auto!important;width:calc(100vw - 24px)!important;max-width:560px!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;border:1px solid rgba(226,232,240,.95)!important;border-radius:20px!important;box-shadow:0 24px 70px rgba(15,23,42,.30)!important;overflow:hidden!important;background:#fff!important}
 #pdm-modal-overlay #pdm-modal-inner{width:100%!important;height:auto!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;border-radius:20px!important}
 #pdm-modal-overlay .pdm-modal-close{position:absolute!important;top:12px!important;right:12px!important}
 #pdm-modal-inner .pdm-modal-img-wrap{height:min(31dvh,245px)!important;min-height:170px!important;max-height:245px!important;padding:12px!important}
 #pdm-modal-inner .pdm-modal-content{padding:11px 14px calc(13px + env(safe-area-inset-bottom))!important}
}
\n/* v5.156.9 — true viewport centering + stable modal flex layout */\n@media (max-width:600px){\n #pdm-modal-overlay.pdm-modal-overlay{\n   position:fixed!important;inset:0!important;\n   width:100vw!important;height:var(--ph-vh,100dvh)!important;\n   min-height:0!important;margin:0!important;padding:12px!important;\n   align-items:center!important;justify-content:center!important;\n }\n #pdm-modal-overlay.pdm-modal-overlay[style*="display: block"],\n #pdm-modal-overlay.pdm-modal-overlay[style*="display: flex"]{display:flex!important}\n #pdm-modal-overlay .pdm-modal{\n   position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;\n   width:calc(100vw - 24px)!important;max-width:560px!important;\n   height:auto!important;max-height:calc(var(--ph-vh,100dvh) - 24px)!important;\n   margin:0!important;transform:none!important;\n }\n #pdm-modal-overlay #pdm-modal-inner{max-height:calc(var(--ph-vh,100dvh) - 24px)!important}\n}\n
/* v5.157.3 — rebuilt PDM popup action architecture */
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;
 gap:10px!important;width:100%!important;margin:12px 0 10px!important;
}
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button{
 appearance:none!important;-webkit-appearance:none!important;position:relative!important;inset:auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
 width:100%!important;min-width:0!important;max-width:none!important;height:46px!important;min-height:46px!important;
 padding:0 12px!important;margin:0!important;border:1px solid #dfe3eb!important;border-radius:13px!important;
 background:#fff!important;color:#263449!important;box-shadow:none!important;transform:none!important;
 font:700 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-sizing:border-box!important;overflow:hidden!important;
}
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button::before,
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button::after{content:none!important;display:none!important}
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button svg{position:static!important;display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;margin:0!important;transform:none!important;overflow:visible!important}
#pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button span{position:static!important;display:block!important;width:auto!important;margin:0!important;padding:0!important;white-space:nowrap!important;transform:none!important}
@media(max-width:600px){
 #pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions{gap:9px!important}
 #pdm-modal-overlay .pdm-modal #pdm-modal-inner .pdm-modal-actions > button{height:44px!important;min-height:44px!important;font-size:14px!important}
}

/* v5.157.7 — Daily Deals compact mobile discovery header */
@media (max-width: 640px) {
  #pdm-wrapper { margin-top: 4px !important; }
  #pdm-wrapper .pdm-page-heading {
    margin: 0 0 14px !important;
    padding: 0 12px !important;
  }
  #pdm-wrapper .pdm-heading-badge {
    margin: 0 0 7px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    box-shadow: 0 3px 10px rgba(124,58,237,.24) !important;
  }
  #pdm-wrapper .pdm-page-title {
    margin: 0 0 4px !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    letter-spacing: -.25px !important;
  }
  #pdm-wrapper .pdm-page-subtitle {
    margin: 0 auto !important;
    max-width: 94% !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  #pdm-wrapper .pdm-filter-top-row {
    gap: 7px !important;
    margin: 0 12px 10px !important;
  }
  #pdm-wrapper .pdm-chip-btn,
  #pdm-wrapper .pdm-sort-chip {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 19px !important;
    font-size: 12px !important;
  }
  #pdm-wrapper .pdm-chip-btn {
    padding: 0 12px !important;
    gap: 4px !important;
  }
  #pdm-wrapper .pdm-sort-chip {
    padding: 0 27px 0 12px !important;
    background-position: right 9px center !important;
  }
  #pdm-wrapper .pdm-saved-badge {
    min-width: 16px !important;
    height: 16px !important;
    font-size: 9px !important;
  }
  #pdm-wrapper .pdm-cat-scroll-wrap {
    margin: 0 0 7px !important;
  }
  #pdm-wrapper .pdm-cat-scroll {
    gap: 10px !important;
    padding: 3px 12px 7px !important;
    scrollbar-width: none !important;
  }
  #pdm-wrapper .pdm-cat-scroll::-webkit-scrollbar { display: none !important; }
  #pdm-wrapper .pdm-cat-circle {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 62px !important;
    padding: 0 !important;
    gap: 5px !important;
  }
  #pdm-wrapper .pdm-cat-circle-img {
    width: 48px !important;
    height: 48px !important;
    font-size: 17px !important;
    border-width: 1.5px !important;
    box-shadow: 0 2px 6px rgba(15,23,42,.08) !important;
  }
  #pdm-wrapper .pdm-cat-circle-img img.pdm-logo-img { padding: 6px !important; }
  #pdm-wrapper .pdm-cat-circle-all { font-size: 20px !important; }
  #pdm-wrapper .pdm-cat-circle-label {
    width: 100% !important;
    max-width: 62px !important;
    min-height: 0 !important;
    height: 15px !important;
    font-size: 9.5px !important;
    line-height: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
  }
  #pdm-wrapper .pdm-cat-circle.pdm-cat-active .pdm-cat-circle-img {
    box-shadow: 0 0 0 3px rgba(124,58,237,.13),0 3px 9px rgba(124,58,237,.20) !important;
  }
  #pdm-wrapper .pdm-filter-price-row {
    margin: 0 12px 8px !important;
    padding: 10px 12px 8px !important;
  }
}
@media (max-width: 380px) {
  #pdm-wrapper .pdm-filter-top-row { gap: 5px !important; margin-left: 9px !important; margin-right: 9px !important; }
  #pdm-wrapper .pdm-chip-btn,#pdm-wrapper .pdm-sort-chip { font-size: 11px !important; }
  #pdm-wrapper .pdm-chip-btn { padding-left: 10px !important; padding-right: 10px !important; }
  #pdm-wrapper .pdm-cat-scroll { padding-left: 9px !important; padding-right: 9px !important; }
}
