:root {
    --idtm-orange: #ff6a2b;
    --idtm-orange-hover: #ea5520;
    --idtm-dark: #02073e;
    --idtm-dark-2: #07123b;
    --idtm-border: #e5eaf2;
    --idtm-text: #0f172a;
    --idtm-muted: #64748b;
    --idtm-bg: #f6f8fc;
    --idtm-white: #ffffff;
    --idtm-blue: #03a9f4;
}

/* ==========================================
   PAGE WRAPPER & LAYOUT
========================================== */
html, body {
    background-color: var(--idtm-bg);
}

.idtm-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 1600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
    background: var(--idtm-bg);
    color: var(--idtm-text);
}

.idtm-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
}

.idtm-top-bar {
    margin-bottom: 20px;
    background: var(--idtm-dark);
    padding: 20px;
    border-radius: 15px;
    color: var(--idtm-white);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idtm-top-bar-p {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.idtm-top-bar input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--idtm-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: black;
    transition: 0.3s ease;
}

.idtm-top-bar input:focus {
    border-color: var(--idtm-blue);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.2);
}

/* ==========================================
   FILTERS SIDEBAR (DARK)
========================================== */
.idtm-filters {
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(2, 7, 62, 0.08);
    padding: 20px;
    border-radius: 16px;
    position: sticky;
    top: 150px;
    height: calc(100vh - 160px);
    overflow-y: auto;
    min-width: auto;
}

/* Sidebar Custom Scrollbar */
.idtm-filters::-webkit-scrollbar { width: 6px; }
.idtm-filters::-webkit-scrollbar-track { background: transparent; }
.idtm-filters::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
.idtm-filters::-webkit-scrollbar-thumb:hover { background: #475569; }

.idtm-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
    color: #f8fafc;
}

#idtm-reset {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
}

#idtm-reset:hover {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

.idtm-filter-block {
    margin-bottom: 25px;
}

.idtm-filter-block h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idtm-filter-block label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    padding: 8px 8px 8px 34px;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.idtm-filter-block label:hover {
    background: #1e293b;
    color: #f8fafc;
}

/* Hide native inputs */
.idtm-filter-block input[type="checkbox"], 
.idtm-filter-block input[type="radio"],
.loc-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Base shape for Custom Checks */
.checkmark-box, .checkmark-radio {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid #475569;
    border-radius: 4px;
    transition: 0.2s ease;
}
.checkmark-radio { border-radius: 50%; }

/* Active States */
.idtm-filter-block input:checked ~ .checkmark-box, 
.idtm-filter-block input:checked ~ .checkmark-radio,
.loc-label input:checked ~ .checkmark-radio {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Inner Checkmark Drawing */
.checkmark-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Inner Dot Drawing for Radios */
.checkmark-radio:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.idtm-filter-block input:checked ~ .checkmark-box:after, 
.idtm-filter-block input:checked ~ .checkmark-radio:after,
.loc-label input:checked ~ .checkmark-radio:after {
    display: block;
}

/* Price Inputs */
.price-inputs-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-inputs-container input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    text-align: center;
    color: #f8fafc;
    background: #1e293b;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}
.price-inputs-container input:focus { border-color: #3b82f6; }
.separator { color: #475569; font-weight: 800; }

/* ==========================================
   LOCATION SEARCH & FLAT LIST
========================================== */
.idtm-location-search {
    width: 100% !important;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    border: 1px solid #334155 !important;
    background: #1e293b !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    outline: none !important;
    transition: 0.2s ease !important;
}
.idtm-location-search::placeholder { color: #64748b !important; }
.idtm-location-search:focus { border-color: #3b82f6 !important; background: #0f172a !important; }

/* Scrollable Container (Maintains original height and scrollbar) */
.idtm-location-list {
    max-height: 250px !important;
    overflow-y: auto !important;
    padding-right: 5px !important;
    margin-right: -5px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #3b82f6 transparent !important;
}
.idtm-location-list::-webkit-scrollbar { width: 5px !important; }
.idtm-location-list::-webkit-scrollbar-track { background: transparent !important; }
.idtm-location-list::-webkit-scrollbar-thumb { background-color: #334155 !important; border-radius: 10px !important; }

/* Universal Label Styles for the filters */
.loc-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 5px 8px 10px !important; /* Forces left padding */
    font-size: 13px !important;
    cursor: pointer !important;
    position: relative !important;
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    width: 100% !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    border-radius: 6px !important;
    margin: 0 !important;
}
.loc-label:hover { color: #f8fafc !important; background: #1e293b !important; }
.loc-label.main-loc strong { font-weight: 700 !important; color: #fff !important; }

/* Hide native inputs */
.loc-label input[type="radio"],
.loc-label input[type="checkbox"] { 
    position: absolute !important; 
    opacity: 0 !important; 
    cursor: pointer !important; 
}

/* Checkmarks Layout Fix */
.loc-label .checkmark-radio {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    height: 16px !important;
    width: 16px !important;
    background-color: transparent !important;
    border: 2px solid #475569 !important;
    border-radius: 50% !important;
    transition: 0.2s ease !important;
}

.loc-label input:checked ~ .checkmark-radio {
    border-color: #3b82f6 !important;
    background-color: #3b82f6 !important;
}

.loc-label .checkmark-radio:after {
    content: "" !important;
    position: absolute !important;
    display: none !important;
    left: 3px !important;
    top: 3px !important;
    width: 6px !important;
    height: 6px !important;
    background: white !important;
    border-radius: 50% !important;
}

.loc-label input:checked ~ .checkmark-radio:after {
    display: block !important;
}

/* Flag Icon */
.loc-list-flag { 
    width: 20px !important; 
    height: 14px !important; 
    object-fit: cover !important; 
    border-radius: 2px !important; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.loc-toggle {
    color: #64748b;
    cursor: pointer;
    font-size: 11px;
    padding: 8px;
    margin-right: 5px;
    transition: transform 0.2s ease, color 0.2s;
    z-index: 5;
}
.loc-toggle:hover { color: #f8fafc; }
.loc-toggle.rotate { transform: rotate(180deg); color: #3b82f6; }

.loc-cities {
    background: rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    margin-bottom: 5px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Indented City Labels */
.city-label {
    padding: 6px 8px 6px 36px; 
    font-size: 12px;
    color: #94a3b8;
    border-radius: 0;
    border-left: 2px solid transparent;
}
.city-label:hover { color: #fff; background: rgba(255, 255, 255, 0.03); border-left-color: #3b82f6; }

/* ==========================================
   PRODUCT GRID & SORTING
========================================== */
.idtm-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#res-count {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    color: var(--idtm-text);
    background-color: #fff;
}

#sort-select {
    padding: 10px 40px 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: var(--idtm-white);
    color: var(--idtm-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

#product-grid.idtm-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* HORIZONTAL CARD STYLES */
.idtm-product-card {
    display: flex;
    align-items: stretch;
    flex-direction: row;
    background: var(--idtm-white);
    border: 1px solid #dde5ef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    z-index: 1;
    overflow: visible; 
}

.idtm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    z-index: 5;
    border-color: #cbd5e1;
}

/* LEFT CONTENT AREA */
.card-info {
    flex: 1;
    background: #fff;
    padding: 26px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--idtm-text);
    border-radius: 22px 0 0 22px; 
}

.idtm-ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.ref-item { font-family: monospace; font-size: 13px; }
.ref-item.pid { color: #94a3b8; }
.ref-item.dc { color: #64748b; }

.copy-pid { transition: color 0.2s; }
.copy-pid:hover { color: #3b82f6; }

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--idtm-dark);
    letter-spacing: -0.03em;
}

/* BADGES */
.idtm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Updated Gradients */
.badge-gaming { background: linear-gradient(135deg, #4c1d95, #a855f7); } /* Purple */
.badge-storage { background: linear-gradient(135deg, #1e3a8a, #3b82f6); } /* Blue */
.badge-gpu { background: linear-gradient(135deg, #14532d, #22c55e); } /* Green */

/* --- CPU & GPU SUBTITLE --- */
.card-cpu-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #64748b;
}
.card-cpu-sub i { color: #64748b; }

/* GPU Match screenshot styling */
.gpu-sub-tag {
    color: var(--idtm-orange);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px dashed var(--idtm-orange);
    padding-bottom: 1px;
    position: relative;
    cursor: default;
}
.gpu-sub-tag i.fa-bolt { color: var(--idtm-orange); }

.gpu-sub-tag.has-spec-options {
    margin-right: 20px; 
    cursor: help;
}

/* SPECS CONTAINER */
.card-specs-container {
    width: 100%;
    background: #f8fbff;
    border: 1px solid #b9cbe7;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px; 
    align-items: stretch;
}

.spec-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 14px;
    position: relative;
    border-radius: 8px;
}
.spec-box + .spec-box { border-left: 1px solid #e6edf5; }

.spec-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--idtm-orange);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.spec-details span { display: block; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: #64748b; margin-bottom: 3px; }
.spec-details strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--idtm-text); white-space: normal; line-height: 1.2; }

/* FEATURES */
.card-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.feature-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    cursor: default;
    transition: 0.2s ease;
}
.feature-tag:hover { transform: translateY(-1px); border-color: #c8d4e3; z-index: 20; }
.feature-tag i { color: var(--idtm-orange); }

/* RIGHT ACTION PANEL */
.card-action {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #050f3b 0%, #02073e 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    border-radius: 0 22px 22px 0; 
}

.price-tag {
    font-size: 3.3rem;
    line-height: 1;
    font-weight: 900;
    color: var(--idtm-orange);
    margin-bottom: 0px; 
}
.price-bw-add {
    color: var(--idtm-orange);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}
.price-period {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 22px;
}

.buy-btn, .load-more-btn {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff6a2b 0%, #ff5a1f 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(255, 106, 43, 0.28);
    transition: 0.2s ease;
}
.buy-btn:hover, .load-more-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ff5f21 0%, #f24f12 100%);
    box-shadow: 0 14px 28px rgba(255, 106, 43, 0.34);
}
.load-more-btn {
    width: auto;
    padding: 14px 40px;
    background: #fff;
    color: #03a9f4;
    border: 2px solid #03a9f4;
    box-shadow: none;
}
.load-more-btn:hover { background: #03a9f4; color: #fff; }

.loc-flag {
    width: 100%;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 600;
}
.loc-flag img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

/* ==========================================
   TOOLTIPS
========================================== */
.spec-box.has-spec-options::after, .feature-tag.feature-has-opts::after {
    content: "\f129";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gpu-sub-tag.has-spec-options::after {
    content: "\f129";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -4px;
    right: -22px;
    font-size: 9px;
    color: #fff;
    background: var(--idtm-orange);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-box.has-spec-options::after {
    top: -5px; right: -5px; font-size: 10px; color: #4a4a4a; background: #fff;
    width: 20px; height: 20px; border: 1px solid #ababab;
}
.feature-tag.feature-has-opts::after {
    top: -6px; right: -6px; color: #fff; background: var(--idtm-orange);
    font-size: 7px; width: 15px; height: 15px;
}

.spec-box.has-spec-tooltip { cursor: help; border-bottom: 2px dashed #e2e8f0; padding-bottom: 2px; }
.spec-box.has-spec-tooltip:hover { border-bottom-color: var(--idtm-orange); }

.custom-tooltip, .spec-tooltip {
    visibility: hidden; opacity: 0; position: absolute; left: 50%; transform: translateX(-50%);
    background: #1f2937; color: #fff; padding: 10px; border-radius: 6px;
    width: max-content; min-width: 180px; max-width: 250px; z-index: 9999;
    pointer-events: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: .2s;
}

.custom-tooltip { bottom: 120%; }
.spec-tooltip {
    top: 110%; background-color: #ffffff; color: #333; border: 1px solid var(--idtm-border);
    padding: 12px; border-radius: 8px; max-width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: left;
}

.custom-tooltip:after, .spec-tooltip:after { content: ""; position: absolute; left: 50%; margin-left: -6px; border-style: solid; }
.custom-tooltip:after { top: 100%; border-width: 6px 6px 0; border-color: #1f2937 transparent transparent; }
.spec-tooltip:after { bottom: 100%; border-width: 0 6px 6px; border-color: transparent transparent #ffffff transparent; filter: drop-shadow(0 -1px 0 #e2e8f0); }

.feature-tag:hover .custom-tooltip { visibility: visible; opacity: 1; bottom: 130%; }
.spec-box.has-spec-tooltip:hover .spec-tooltip, .gpu-sub-tag.has-spec-tooltip:hover .spec-tooltip { visibility: visible; opacity: 1; top: 120%; z-index: 999; }

.tt-title { font-weight: 700; color: var(--idtm-orange); margin-bottom: 5px; border-bottom: 1px solid #444; padding-bottom: 5px; font-size: 10px; text-transform: uppercase; }
.tt-row, .st-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 3px; }
.st-row { font-size: 12px; border-bottom: 1px dashed #f0f0f0; padding-bottom: 4px; }
.st-row:last-child { border-bottom: none; }
.tt-price { color: #34d399; font-weight: 700; margin-left: 10px; }
.st-opt { font-weight: 600; color: #1f2937; }
.st-price { color: var(--idtm-orange); font-weight: 700; margin-left: 5px; }

/* ==========================================
   EMPTY STATE & OTHERS
========================================== */
.idtm-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; background: #ffffff; border: 2px dashed #cbd5e1; border-radius: 16px;
    padding: 80px 20px; box-shadow: 0 10px 30px rgba(2, 7, 62, 0.02); width: 100%;
}
.idtm-empty-state h3 { font-size: 24px; font-weight: 700; color: var(--idtm-dark); margin: 0 0 12px 0; }
.hidden { display: none !important; }

/* H2 Formatting */
.g-new-product-pricing-table-wrapper-title { font-weight: 900 !important; }
.g-new-product-pricing-table-wrapper-title .red {
    color: var(--idtm-orange); background-color: rgba(255, 106, 43, 0.15);
    padding: 2px 10px; border-radius: 6px; display: inline-block;
}

/* ==========================================
   MEDIA QUERIES
========================================== */
@media screen and (max-width: 1550px) {
    .g-new-product-pricing-table-wrapper { margin-left: 1% !important; margin-right: 1% !important; margin-top: 10px !important; }
}

@media screen and (max-width: 1400px) {
    .card-action { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-left: none; padding-top: 20px; border-radius: 0 0 22px 22px; }
    .buy-btn { width: max-content; }
    .price-period { margin-bottom: 0px; }
}

@media screen and (max-width: 1120px) {
    .card-cpu-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .gpu-sub-tag { margin-left: 0; }
    .card-header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .card-specs-container { width: 100%; }
    .card-specs { grid-template-columns: 1fr; gap: 15px; }
    .spec-box + .spec-box { border-left: none; border-top: 1px solid #e6edf5; }
    .card-action { gap: 10px; }
}

@media screen and (max-width: 900px) {
    .idtm-main-layout { grid-template-columns: 1fr; min-width: 100%; }
    .idtm-filters { position: relative; height: 400px; top: 0; width: 100%; max-width: 500px; margin: 0 auto; display: block; }
    .idtm-product-card { flex-direction: column; }
    .card-info { padding: 22px; border-radius: 22px 22px 0 0; }
    .card-action { width: 100%; padding: 22px; flex-direction: column; justify-content: center; border-radius: 0 0 22px 22px; }
    .price-tag { font-size: 2.8rem; align-items: center; }
    .buy-btn { width: auto; max-width: 260px; padding: 10px 30px; }
}

@media screen and (max-width: 520px) {
    .idtm-wrapper { padding: 14px; }
    .card-title { font-size: 1.5rem; }
    .idtm-sorting { flex-direction: column; gap: 15px; }
    #sort-select { width: 100%; }
}