.promo-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
}

.promo-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-filters {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-self: stretch;
}

.promo-list-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-self: stretch;
}

/* --- SEARCH BAR --- */
.promo-search {
    position: relative;
    width: fit-content;
    align-self: stretch;
}

/* add padding for icon only in search */
.promo-search .promo-input {
    padding-left: 36px;
}

.promo-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #000;
    background-color: #fff;
    font-family: inherit;
    transition: border-color 0.2s ease;
    appearance: none;
}

.select-promo-input {
    display: block !important;
    width: 15% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #000 !important;
    background-color: #fff !important;
    font-family: inherit !important;
    transition: border-color 0.2s ease !important;
    appearance: none !important;
    height: 100% !important;
}

/* Optional: Add custom dropdown arrow */
.select-promo-input {
    background: url("data:image/svg+xml;utf8,<svg fill='%23666' height='10' viewBox='0 0 20 20' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 4.5L14.5 7z'/></svg>") no-repeat right 12px center/12px auto !important;
}

#promo-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.promo-list-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-list-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-list-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.promo-list-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* overlay container */
.promo-status-price {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 2;
}

/* tags */
.promo-status-price .tag {
    background-color: rgb(239, 233, 233);
    color: #fff;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.promo-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-grow: 1;
    justify-content: space-between; 
}

.promo-meta-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-type {
    display: flex;
    gap: 6px;
}

.tag {
    background-color: rgb(239, 233, 233);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.promo-meta-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: stretch;
    align-items: start;
}

.promo-price {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.promo-date-time {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: start;
    font-size: small;
    font-weight: 400;
}

.promo-date,
.promo-quantity {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    font-size: 15px;
}

.promo-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.promo-action-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.promo-actions .btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.promo-actions .btn-primary {
    background: #13294b;
    color: #fff;
}

.promo-actions .btn-primary:hover {
    background: #1d3a70;
}


@keyframes wave {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

@media (max-width: 777px) {
    .promo-filters {
        flex-direction: column;
    }

    .promo-search {
        width: 100%;
    }

    .promo-list-btn {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-list-btn .filter-button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    #promo-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #promo-list-container {
        grid-template-columns: 1fr;
    }

    .promo-list-image img {
        height: 250px;
    }
}