/**
 * Wyszukiwarka produktów - styl jak newsletter
 */

.dst-search-container {
    font-family: "Red Hat Display", sans-serif;
    position: relative;
    width: 100% !important;
}

.dst-search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.dst-search-input-wrapper {
    flex: 1;
    min-width: 0;
}

.dst-search-field {
    width: 100%;
    height: 64px;
    font-size: 18px;
    padding: 10px 20px;
    color: #000;
    font-weight: 500;
    font-family: "Red Hat Display", sans-serif;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #000;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.dst-search-field:focus {
    outline: none;
    border-color: #000;
}

.dst-search-field::placeholder {
    color: #999;
    font-weight: 400;
}

.dst-search-button {
    background: #120E0B;
    border: 0;
    color: #FFF;
    font-family: "Red Hat Display", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    min-width: 169px;
    height: 64px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all .2s linear;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 20px;
}

.dst-search-button:hover {
    background: #000;
}

.dst-search-button .nav-action__icon::before {
    content: "[";
    margin-right: 3px;
    transition: margin .1s ease;
}

.dst-search-button .nav-action__icon::after {
    content: "]";
    margin-left: 3px;
    transition: margin .1s ease;
}

.dst-search-button .nav-action__icon i {
    font-size: 16px;
    transition: all .1s linear;
}

.dst-search-button:hover .nav-action__icon::before {
    margin-right: 6px;
}

.dst-search-button:hover .nav-action__icon::after {
    margin-left: 6px;
}

/* ===== WYNIKI WYSZUKIWANIA ===== */
.dst-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #000;
    border-top: none;
    max-height: 330px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 0;
}

.dst-search-results.active {
    display: block;
}

.dst-search-results-list {
    padding: 0;
}

.dst-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #000;
    transition: background 0.2s ease;
}

.dst-search-item:hover {
    background: #f9f9f9;
}

.dst-search-item:last-child {
    border-bottom: none;
}

.dst-search-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.dst-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dst-search-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dst-search-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.dst-search-item-sku {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    line-height: 1;
}

.dst-search-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-top: 3px;
}

.dst-search-item-price .woocommerce-Price-amount {
    font-weight: 600;
}

.dst-search-item-price .price {
    display: flex;
    align-items: first baseline;
    gap: 4px;
    color: #000 !important;
}

.dst-search-item-price .woocommerce-price-suffix {
    font-size: 12px;
    color: #aaa;
}

/* ===== BRAK WYNIKÓW ===== */
.dst-search-empty {
    padding: 40px 20px;
    text-align: center;
}

.dst-search-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000;
}

.dst-search-empty p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.dst-search-empty-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.dst-search-empty-button:hover {
    background: #333;
    color: #fff;
}

/* ===== LOADING STATE ===== */
.dst-search-results.loading::before {
    content: "Wyszukiwanie...";
    display: block;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dst-search-form {
        flex-direction: column;
    }
    
    .dst-search-button {
        width: 100%;
        min-width: auto;
    }
    
    .dst-search-field {
        height: 50px;
        font-size: 16px;
    }
    
    .dst-search-button {
        height: 50px;
    }
}
