/* ═══════════════════════════════════════════════════════════════
   Laminate Designs Search Page — laminate-designs.css
   ═══════════════════════════════════════════════════════════════ */

:root {
    --ld-brand:    #00ADF1;
    --ld-yellow:   #FFDE2D;
    --ld-dark:     #0f172a;
    --ld-text:     #334155;
    --ld-muted:    #64748b;
    --ld-bg:       #f1f5f9;
    --ld-white:    #ffffff;
    --ld-border:   #e2e8f0;
    --ld-ease:     0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.laminate-page {
    background: var(--ld-bg);
    min-height: 70vh;
}

/* ══ FILTER BAR ═════════════════════════════════════════════════ */
.ld-filter-section {
    background: var(--ld-white);
    border-bottom: 1px solid var(--ld-border);
    padding: 22px 0;
    position: sticky;
    top: 70px;           /* below fixed nav */
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ld-filter-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ld-search-wrap {
    position: relative;
    flex: 1 1 260px;
    min-width: 200px;
}

.ld-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ld-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.ld-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--ld-border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--ld-text);
    background: var(--ld-bg);
    transition: border-color var(--ld-ease), box-shadow var(--ld-ease);
    outline: none;
    font-family: inherit;
}

.ld-search-input:focus {
    border-color: var(--ld-brand);
    box-shadow: 0 0 0 3px rgba(0,173,241,0.1);
    background: var(--ld-white);
}

.ld-search-input::placeholder { color: var(--ld-muted); }

.ld-select {
    padding: 12px 36px 12px 14px;
    border: 1.5px solid var(--ld-border);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--ld-text);
    background: var(--ld-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--ld-ease), box-shadow var(--ld-ease);
    outline: none;
    font-family: inherit;
    min-width: 160px;
}

.ld-select:focus {
    border-color: var(--ld-brand);
    box-shadow: 0 0 0 3px rgba(0,173,241,0.1);
    background-color: var(--ld-white);
}

.ld-filter-btn {
    padding: 12px 24px;
    background: var(--ld-brand);
    color: var(--ld-white);
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ld-ease);
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ld-filter-btn:hover {
    background: #0096d6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,173,241,0.3);
}

.ld-clear-btn {
    padding: 12px 18px;
    background: transparent;
    color: var(--ld-muted);
    border: 1.5px solid var(--ld-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ld-ease);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ld-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.04);
}

/* ══ RESULTS META BAR ═══════════════════════════════════════════ */
.ld-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.ld-results-count {
    font-size: 0.95rem;
    color: var(--ld-muted);
}

.ld-results-count strong {
    color: var(--ld-dark);
    font-weight: 700;
}

.ld-active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ld-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,173,241,0.1);
    color: var(--ld-brand);
    border: 1px solid rgba(0,173,241,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ══ DESIGN GRID ════════════════════════════════════════════════ */
.ld-grid-section { padding: 30px 0 60px; }

.ld-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ══ DESIGN CARD ════════════════════════════════════════════════ */
.ld-card {
    background: var(--ld-white);
    border-radius: 16px;
    border: 1px solid var(--ld-border);
    overflow: hidden;
    transition: transform var(--ld-ease), box-shadow var(--ld-ease), border-color var(--ld-ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ld-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--ld-brand);
}

/* Link wrapper for the swatch area */
.ld-card-swatch-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

/* Swatch / Image Area */
.ld-card-swatch {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--ld-bg);
    flex-shrink: 0;
}

.ld-card-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ld-card:hover .ld-card-swatch img { transform: scale(1.05); }

/* Hex fallback swatch */
.ld-swatch-hex {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-swatch-hex i {
    font-size: 3rem;
    color: rgba(255,255,255,0.4);
}

/* Design code badge */
.ld-code-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 24px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Hover overlay */
.ld-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,173,241,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ld-ease);
}

.ld-card:hover .ld-card-overlay { opacity: 1; }

.ld-overlay-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card Body */
.ld-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ld-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ld-dark);
    line-height: 1.3;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ld-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ld-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ld-tag-color {
    background: rgba(0,173,241,0.08);
    color: #0284c7;
    border: 1px solid rgba(0,173,241,0.15);
}

.ld-tag-finish {
    background: rgba(245,158,11,0.08);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.15);
}

.ld-tag-collection {
    background: rgba(139,92,246,0.08);
    color: #7c3aed;
    border: 1px solid rgba(139,92,246,0.15);
}

.ld-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ══ CARD DOWNLOAD ACTIONS ══════════════════════════════════════ */
.ld-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ld-border);
    flex-wrap: wrap;
}

.ld-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    justify-content: center;
    padding: 9px 14px;
    background: var(--ld-brand);
    color: var(--ld-white);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--ld-ease);
    white-space: nowrap;
    border: 1.5px solid var(--ld-brand);
}

.ld-download-btn:hover {
    background: #0096d6;
    border-color: #0096d6;
    color: var(--ld-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,173,241,0.3);
}

.ld-download-btn--secondary {
    background: transparent;
    color: var(--ld-brand);
    flex: 0 0 auto;
    padding: 9px 12px;
}

.ld-download-btn--secondary:hover {
    background: var(--ld-brand);
    color: var(--ld-white);
    transform: translateY(-2px);
}

.ld-no-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--ld-muted);
    opacity: 0.6;
    flex: 1;
}

/* Icon-only action buttons (WhatsApp, Call, Swatch) */
.ld-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--ld-ease);
    flex-shrink: 0;
    border: 1.5px solid transparent;
}

.ld-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.ld-btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}

.ld-btn-call {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}
.ld-btn-call:hover {
    background: #0369a1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2,132,199,0.3);
}

.ld-btn-swatch {
    background: transparent;
    color: var(--ld-brand);
    border-color: var(--ld-border);
}
.ld-btn-swatch:hover {
    background: var(--ld-brand);
    color: #fff;
    border-color: var(--ld-brand);
    transform: translateY(-2px);
}

/* ══ EMPTY STATE ════════════════════════════════════════════════ */
.ld-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--ld-muted);
}

.ld-empty i {
    font-size: 4rem;
    color: var(--ld-border);
    margin-bottom: 20px;
    display: block;
}

.ld-empty h3 {
    font-size: 1.4rem;
    color: var(--ld-dark);
    margin-bottom: 10px;
}

/* ══ PAGINATION ═════════════════════════════════════════════════ */
.ld-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.ld-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--ld-border);
    color: var(--ld-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ld-ease);
    background: var(--ld-white);
}

.ld-page-btn:hover {
    border-color: var(--ld-brand);
    color: var(--ld-brand);
    background: rgba(0,173,241,0.05);
}

.ld-page-btn.active {
    background: var(--ld-brand);
    border-color: var(--ld-brand);
    color: var(--ld-white);
    box-shadow: 0 4px 15px rgba(0,173,241,0.35);
}

.ld-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.ld-page-btn-wide {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

.ld-page-dots {
    color: var(--ld-muted);
    font-size: 0.9rem;
    padding: 0 4px;
}

/* ══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .ld-filter-section { top: 0; }

    .ld-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .ld-filter-form { gap: 10px; }

    .ld-select { min-width: 130px; }
}

@media (max-width: 640px) {
    .ld-grid { grid-template-columns: 1fr; gap: 16px; }

    .ld-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .ld-search-wrap { flex: none; }

    .ld-select { width: 100%; }

    .ld-filter-btn,
    .ld-clear-btn { width: 100%; justify-content: center; }

    .ld-card-swatch { height: 180px; }

    .ld-results-bar { flex-direction: column; align-items: flex-start; }
}
