/************* Page Container *************/

#deals {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/************* Breadcrumb *************/

#dealsBreadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

#dealsBreadcrumbList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dealsBreadcrumbListItem {
    color: #8C8D8B;
}

.dealsBreadcrumbListItem:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: #CCC;
}

.dealsBreadcrumbListItemLink {
    color: var(--primary);
    text-decoration: none;
}

.dealsBreadcrumbListItemLink:hover {
    text-decoration: underline;
}

.dealsBreadcrumbListItemCurrent {
    color: #333;
    font-weight: 600;
}

/************* Header *************/

#dealsHeader {
    text-align: center;
    margin-bottom: 50px;
}

#dealsHeaderTitle {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

#dealsHeaderIntro {
    font-size: 17px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

#dealsHeaderCta {
    margin: 0 auto;
}

/************* Axis Index *************/

#dealsAxisIndex {
    margin-bottom: 60px;
}

#dealsAxisIndexList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.dealsAxisIndexListItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: #fff;
    color: var(--black);
    text-decoration: none;
    transition: 0.2s;
}

.dealsAxisIndexListItem:hover {
    background: var(--primary);
    color: #fff;
}

.dealsAxisIndexListItemLabel {
    font-size: 16px;
    font-weight: 600;
}

.dealsAxisIndexListItemCount {
    font-size: 13px;
    color: #8C8D8B;
}

.dealsAxisIndexListItem:hover .dealsAxisIndexListItemCount {
    color: rgba(255, 255, 255, 0.8);
}

/************* Live Deals *************/

#dealsLive {
    margin-bottom: 60px;
}

#dealsLiveTitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

#dealsLiveEmpty {
    font-size: 15px;
    color: #8C8D8B;
    padding: 16px 0;
}

#dealsLiveList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.dealsLiveListItem {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dealsLiveListItemName {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.dealsLiveListItemNameLink {
    color: inherit;
    text-decoration: none;
}

.dealsLiveListItemNameLink:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dealsLiveListItemMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.dealsLiveListItemMetaSite,
.dealsLiveListItemMetaType,
.dealsLiveListItemMetaScore {
    background: #F2E8C6;
    color: #5C4A00;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.dealsLiveListItemMetaDeal {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.dealsLiveListItemGrapes {
    font-size: 13px;
    color: #8C8D8B;
}

.dealsLiveListItemLink {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.dealsLiveListItemLink:hover {
    text-decoration: underline;
}

/************* Recent Deals *************/

#dealsRecent {
    margin-bottom: 60px;
}

#dealsRecentTitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #EBEBEA;
}

#dealsRecentNote {
    font-size: 13px;
    color: #8C8D8B;
    margin-bottom: 20px;
}

#dealsRecentList {
    display: flex;
    flex-direction: column;
}

.dealsRecentListItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-bottom: 1px solid #EBEBEA;
}

.dealsRecentListItem:hover {
    background: #FAFAFA;
}

.dealsRecentListItemName {
    font-size: 14px;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dealsRecentListItemNameLink {
    color: inherit;
    text-decoration: none;
}

.dealsRecentListItemNameLink:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dealsRecentListItemMeta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 12px;
    color: #8C8D8B;
}

.dealsRecentListItemMetaSeen {
    font-style: italic;
}

/************* Navigation *************/

#dealsNav {
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #EBEBEA;
}

#dealsNavTitle {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.dealsNavGroup {
    margin-bottom: 30px;
}

.dealsNavGroupTitle {
    font-size: 14px;
    font-weight: 700;
    color: #8C8D8B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dealsNavGroupTitleLink {
    color: inherit;
    text-decoration: none;
}

.dealsNavGroupTitleLink:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dealsNavGroupList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dealsNavGroupListItem {
}

.dealsNavGroupListItemLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #EBEBEA;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

.dealsNavGroupListItemLink:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dealsNavGroupListItemLinkCount {
    color: #8C8D8B;
    font-size: 11px;
    font-weight: 600;
}

/************* Footer *************/

#dealsFooter {
    padding-top: 30px;
    border-top: 1px solid #EBEBEA;
}

#dealsFooterDisclaimer {
    font-size: 12px;
    color: #8C8D8B;
    line-height: 1.6;
    margin: 0;
}

/************* Mobile *************/

@media (max-width: 800px) {
    #deals {
        padding: 24px 16px 40px;
    }

    #dealsHeaderTitle {
        font-size: 24px;
    }

    #dealsLiveTitle,
    #dealsRecentTitle,
    #dealsNavTitle {
        font-size: 20px;
    }

    #dealsLiveList {
        grid-template-columns: 1fr;
    }

    /* drop the wine type in the compact recent row so the name has room to breathe */
    .dealsRecentListItemMetaType {
        display: none;
    }
}
