:root {
    --bg: #1e1f24;
    /* Corporate Gray */
    --panel: #2a2c33;
    --muted: #a7adbd;
    --text: #f2f5ff;
    --line: rgba(255, 255, 255, .08);
    --accent: #B6CC38;
    /* Corporate Green */
    --accent-dark: #a3b832;
    --accent-light: #e9f2c9;

    /* Premium Palette (Light Modal) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --emerald-50: #f3f8e8;
    /* Adjusted for corporate green match */
    --emerald-100: #e9f2c9;
    --emerald-600: #89b12d;
    --emerald-700: #104a1d;
    /* Dark text from code.html */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: radial-gradient(1200px 600px at 15% -10%, rgba(182, 204, 56, .12), transparent),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 255, 255, .06), transparent),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand {
    font-weight: 900;
    letter-spacing: -0.8px;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--accent);
}

.meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

/* Search Interface (Home) */
.search-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

.search-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
}

.search-desc {
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px;
    display: flex;
    transition: all .3s;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(182, 204, 56, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: white;
    font-size: 16px;
    flex-grow: 1;
    outline: none;
}

.search-input::placeholder {
    color: var(--slate-500);
}

.btn--search {
    background: var(--accent);
    border: none;
    border-radius: 14px;
    padding: 0 24px;
    color: var(--slate-900);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s;
}

.btn--search:active {
    transform: scale(0.95);
}

.btn--filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 20px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    margin-left: 6px;
}

.btn--filter:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.btn--filter:active {
    transform: scale(0.95);
}


.results-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn--search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: white;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all .2s;
    width: 100%;
}

.btn--search-result:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}

.btn--search-result__type {
    background: var(--accent);
    color: var(--slate-900);
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.btn--search-result__title {
    font-size: 14px;
    font-weight: 700;
    flex-grow: 1;
}

.btn--search-result__ref {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Notice Modal (First Search Notice) */
.notice-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.2s ease-out;
}

.notice-modal {
    background: white;
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 32px;
    animation: slideUp 0.3s ease-out;
}

.notice-modal__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.2;
}

.notice-modal__desc {
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 15px;
    line-height: 1.6;
}

.notice-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn--notice-continue {
    background: var(--accent);
    color: var(--slate-900);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--notice-continue:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(182, 204, 56, 0.3);
}

.btn--notice-details {
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--notice-details:hover {
    background: var(--slate-200);
}

/* Filter Modal (Advanced Search Filters) */
.filter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.filter-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-600);
    transition: all 0.2s;
}

.filter-modal__close:hover {
    background: var(--slate-200);
    transform: rotate(90deg);
}

.filter-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.filter-modal__desc {
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.5;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field label {
    font-size: 13px;
    font-weight: 800;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-field input {
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--slate-900);
    background: var(--slate-50);
    transition: all 0.2s;
}

.filter-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 204, 56, 0.1);
    background: white;
}

.filter-field input::placeholder {
    color: var(--slate-400);
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn--filter-search {
    flex: 1;
    background: var(--accent);
    color: var(--slate-900);
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.btn--filter-search:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(182, 204, 56, 0.3);
}

.btn--filter-search:active {
    transform: translateY(0);
}

.btn--filter-clear {
    flex: 1;
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.btn--filter-clear:hover {
    background: var(--slate-200);
}

/* Product Card Search Results (Individual Product Cards) */
.product-card-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card-search:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product-card-search__image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-search__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-search__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-search__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.product-card-search__ref {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.product-card-search__price {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
}

.btn--product-view {
    background: var(--accent);
    color: var(--slate-900);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.btn--product-view:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

.btn--product-view:active {
    transform: scale(0.98);
}

@media (min-width: 640px) {
    .results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Premium Product Landing (The Card itself) */
.p-landing {
    background: white;
    width: 100%;
    max-width: 672px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.p-landing__scroll {
    overflow-y: visible;
}

/* Hero Section */
.p-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--slate-100);
    cursor: zoom-in;
}

.p-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Content */
.p-content {
    padding: 24px;
    color: var(--slate-900);
}

/* Botones de Navegación Modal (Flechas Premium Glass) */
.p-nav-btn {
    position: absolute;
    bottom: 15px;
    /* Bajadas a la base de la imagen como pidió */
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    /* Verde corporativo solicitado */
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.p-nav-btn--prev {
    left: 20px;
}

.p-nav-btn--next {
    right: 20px;
}

/* Animación de entrada para contenido del modal al navegar */
@keyframes slideInProduct {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.p-modal__scroll>* {
    animation: slideInProduct 0.4s ease-out;
}

/* Estado de carga interna del modal */
.p-modal--loading {
    opacity: 0.5;
    filter: blur(2px);
    pointer-events: none;
}

@media (max-width: 950px) {
    .p-nav-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        top: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .p-nav-btn--prev {
        left: 15px;
        /* Más compacto en móvil */
        margin-left: 0;
    }

    .p-nav-btn--next {
        right: 15px;
        margin-right: 0;
    }
}

@media (min-width: 640px) {
    .p-content {
        padding: 32px;
    }
}

.p-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.p-title-wrap {
    flex-grow: 1;
}

.p-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--emerald-700);
}

@media (min-width: 640px) {
    .p-title {
        font-size: 24px;
    }
}

.p-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8f5e1;
    color: #25622a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-price-wrap {
    text-align: right;
    flex-shrink: 0;
}

.p-price-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: -0.2px;
    margin-bottom: 2px;
}

.p-price-val {
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.p-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate-600);
    font-weight: 500;
    margin: 0 0 24px;
}

/* Specs */
.p-section-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-800);
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.p-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .p-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.p-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
}

.p-spec-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
}

.p-spec-text {
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

.p-spec-text span {
    color: var(--slate-500);
    font-weight: 500;
    margin-left: 4px;
}

/* Actions */
.p-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn--p-main {
    flex-grow: 1;
    background: #B6CC38;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.btn--p-main:hover {
    background: var(--accent-dark);
}

.btn--p-sec {
    background: #eef2ff;
    color: #111;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all .2s;
    flex-grow: 1;
}

/* Variants */
.p-variants {
    padding-top: 24px;
}

.p-variant-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
    transition: box-shadow .3s;
}

.p-variant-name {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--emerald-700);
    text-transform: uppercase;
}

.p-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.p-variant-pill {
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--slate-50);
    border: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-variant-pill span {
    color: var(--slate-400);
    font-weight: 500;
    margin-left: 4px;
}

.p-variant-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-50);
}

.p-variant-price {
    margin-right: auto;
    font-size: 16px;
    font-weight: 900;
    background: #f3f8e8;
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--accent);
}

.btn--v-cot {
    background: #e9f2c9;
    color: #19330a;
    border: 1px solid var(--accent);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.btn--v-img {
    background: #e9f2c9;
    color: #19330a;
    border: 1px solid var(--accent);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

/* Zoom Overlay */
.zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    backdrop-filter: blur(10px);
}

.zoom-overlay img {
    max-width: min(92vw, 960px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    background: white;
}

.zoom-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--slate-900);
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 24px;
}

/* Helpers */
.btn:active {
    transform: scale(0.95);
}

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

.error {
    color: #ffb4b4;
    text-align: center;
    padding: 40px;
}

/* === NEW TABLE VIEW STYLES (Requirement 3) === */

.search-wrap-dark {
    background-color: #4C4D4D;
    /* Fixed dark background */
    padding: 40px 20px;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 900px;
}

/* Adjust contained search-container */
.search-wrap-dark .search-container {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.results-table-container {
    margin-top: 30px;
}

/* Table Grid Layout */
.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 80px;
    /* Desc | Ref | Cat | Action */
    padding: 10px 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    gap: 12px;
}

.th-col {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.th-action {
    text-align: right;
}

.th-cat {
    text-align: center;
}

.th-ref {
    text-align: center;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 80px;
    align-items: center;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    /* Darker row for contrast on 4C4D4D */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 6px;
    gap: 12px;
}

.table-row:hover {
    background: rgba(182, 204, 56, 0.1);
    /* Accent hover */
    border-color: var(--accent);
}

/* Columns */
.td-col {
    font-size: 13px;
    color: white;
}

.td-desc {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-ref,
.td-cat {
    text-align: center;
    color: var(--slate-400);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-action {
    text-align: right;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-info {
    font-size: 14px;
    font-weight: 700;
    color: white;
    min-width: 100px;
    text-align: center;
}

.btn--page {
    background: #B6CC38;
    /* Decology Green */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn--page:hover:not(:disabled) {
    background: #a3b832;
    transform: translateY(-1px);
}

.btn--page:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.btn--table-view {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.table-row:hover .btn--table-view {
    background: var(--accent);
    color: var(--slate-900);
}

/* Responsive Table */
@media (max-width: 600px) {
    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .td-ref,
    .td-cat {
        display: none;
    }

    /* Hide extra cols on mobile */

    .td-desc {
        font-size: 14px;
    }
}

/* === PREMIUM SUGGESTION ALERT (Yellow Theme) === */
.suggestion-banner {
    background: #FFFBEB;
    /* Dim Yellow */
    border: 1px solid #FEF3C7;
    /* Subtle Yellow Border */
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.suggestion-content p {
    margin: 0;
    font-size: 14px;
    color: #92400E;
    /* Dark legible text */
    font-weight: 500;
    line-height: 1.5;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn--suggestion-ok {
    background: #B6CC38;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn--suggestion-ok:hover {
    background: #a3b832;
}

.btn--suggestion-close {
    background: #E1E4E8;
    color: #4C4D4D;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn--suggestion-close:hover {
    background: #D1D5DA;
}

@media (max-width: 600px) {
    .suggestion-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .suggestion-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .suggestion-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* === PREMIUM MODAL REFINEMENTS (card decology.png style) === */

.p-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.p-modal {
    background: #F4F5F7;
    /* Light gray background from mockup */
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.p-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    /* Back to Right as requested */
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 22px;
    color: #1A1D1E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.p-modal__close:hover {
    transform: scale(1.1);
}

.p-modal__scroll {
    overflow-y: auto;
}

.p-hero {
    width: 100%;
    height: 350px;
    background: #e8ebf0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .p-hero {
        height: 280px;
        /* Reduced for mobile */
    }
}

/* Adjust title wrap to avoid overlap with X/Price if very long */
.p-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}

.p-title-wrap {
    flex: 1;
    padding-right: 40px;
    /* Safe space for floating elements */
}

.p-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-content {
    padding: 40px;
}

.p-title {
    font-size: 28px;
    font-weight: 800;
    color: #1A1D1E;
    margin-bottom: 12px;
}

.p-badge {
    background: #EBF2D1;
    color: #6B7C1E;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
}

.p-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4C4D4D;
    margin-bottom: 32px;
}

.p-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1A1D1E;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.p-spec-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-spec-icon {
    width: 24px;
    height: 24px;
    background: #EBF2D1;
    color: #6B7C1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.p-spec-text {
    font-size: 14px;
    font-weight: 700;
    color: #1A1D1E;
}

.p-spec-text span {
    font-weight: 500;
    color: #4C4D4D;
    margin-left: 4px;
}

.p-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn--p-main {
    background: #B6CC38;
    /* Decology Green */
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--p-main:hover {
    background: #a3b832;
    transform: translateY(-2px);
}

.btn--p-sec {
    background: #E1E4E8;
    color: #1A1D1E;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--p-sec:hover {
    background: #D1D5DA;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .p-specs-grid {
        grid-template-columns: 1fr;
    }

    .p-actions {
        grid-template-columns: 1fr;
    }

    .p-modal {
        width: 100%;
        /* Cambiado de vw a % para evitar scrollbar issues */
        max-width: 100%;
        border-radius: 0;
        max-height: 100dvh;
        height: 100dvh;
        margin: 0;
        z-index: 2001;
        overflow-x: hidden;
    }

    .p-modal-overlay {
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        overflow-x: hidden;
    }

    .p-content {
        padding: 24px 20px 40px;
    }

    /* Fix table responsiveness */
    .table-row {
        gap: 8px;
        padding: 12px 10px;
    }

    .td-col.td-desc {
        font-size: 13px;
    }

    /* Center search interface and prevent overflow */
    .search-wrap-dark {
        padding: 20px 10px;
        width: 100%;
        overflow-x: hidden;
    }

    .search-container {
        width: 100%;
        margin: 20px 0;
        padding: 0 10px;
    }

    .search-box {
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    /* Fixed top navigation button in modal for mobile */
    .p-nav-btn {
        bottom: 10px;
        /* Pegadas a la base en móvil */
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .p-title {
        font-size: 22px;
    }
}