/* evoucher-doitac.css - Stylesheet for E-Voucher Đối tác */

.evoucher-page {
    background-color: #fcfcfc;
    padding: 40px 0;
}

/* 1. Filter section styling */
.evoucher-filters {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 24px;
    margin-bottom: 32px;
}

.filters-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.8fr 1fr;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 36px 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #1e293b;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-wrapper select:focus {
    border-color: #ca1204;
    box-shadow: 0 0 0 3px rgba(202, 18, 4, 0.08);
    outline: none;
}

.select-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    width: 12px;
    height: 12px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.search-wrapper input:focus {
    border-color: #ca1204;
    box-shadow: 0 0 0 3px rgba(202, 18, 4, 0.08);
    outline: none;
}

.search-wrapper .search-icon-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-wrapper .search-icon-btn svg {
    width: 16px;
    height: 16px;
}

.search-wrapper .search-icon-btn:hover {
    color: #ca1204;
}

.btn-search-submit {
    background-color: #ca1204;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.btn-search-submit:hover {
    background-color: #b00f03;
    box-shadow: 0 4px 12px rgba(202, 18, 4, 0.15);
}

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

/* 2. Category list styling */
.category-nav-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 32px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.category-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-nav-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.category-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: #cbd5e0;
}

.category-nav-wrapper {
    display: flex;
    /* justify-content: space-between; */
    gap: 16px;
    min-width: max-content;
    width: 100%;
    padding: 4px;
}

.cat-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 90px;
    max-width: 120px;
    cursor: pointer;
}

.cat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.cat-icon-box svg {
    width: 24px;
    height: 24px;
}

.cat-nav-item:hover .cat-icon-box {
    border-color: #f5c2c0;
    background-color: #fff2f1;
    color: #ca1204;
    box-shadow: 0 4px 10px rgba(202, 18, 4, 0.08);
}

.cat-nav-item:hover .cat-nav-name {
    color: #ca1204;
}

.cat-nav-item.active .cat-icon-box {
    border-color: #ca1204;
    background-color: #fff2f1;
    color: #ca1204;
    box-shadow: 0 4px 12px rgba(202, 18, 4, 0.12);
}

.cat-nav-item.active .cat-nav-name {
    color: #ca1204;
    font-weight: 700;
}

.cat-nav-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* 3. Voucher Cards Grid styling */
.voucher-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.voucher-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.voucher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    border-color: #e2e8f0;
}

.voucher-card-img-sec {
    position: relative;
    height: 120px;
    background-color: #f8fafc;
}

.voucher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Circle Badge Overlay */
.partner-logo-badge {
    position: absolute;
    bottom: -24px;
    left: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #ffffff;
    text-align: center;
}

.logo-green {
    background-color: #3aaa35;
    color: #ffffff;
}

.logo-white-green {
    background-color: #ffffff;
    color: #3aaa35;
    box-shadow: 0 4px 12px rgba(58, 170, 53, 0.15), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.logo-blue {
    background-color: #1069c9;
    color: #ffffff;
}

.logo-inner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.logo-inner-text .line-1 {
    font-size: 8px;
    font-weight: 700;
    opacity: 0.9;
}

.logo-inner-text .line-2 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-inner-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3aaa35;
    line-height: 1.1;
}

.logo-inner-icon svg {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.logo-inner-icon .tea-house-text {
    font-size: 7px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.logo-inner-gym {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1.1;
}

.logo-inner-gym svg {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.logo-inner-gym .gym-text {
    font-size: 7px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

/* Card Content Body */
.voucher-card-body {
    padding: 36px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.partner-title-wrap {
    margin-bottom: 14px;
}

.title-category-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.color-green {
    color: #3aaa35;
}

.color-blue {
    color: #1069c9;
}

.partner-category-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.partner-category-info svg {
    width: 12px;
    height: 12px;
}

/* Discount Bar */
.discount-banner-sec {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.discount-left {
    display: flex;
    flex-direction: column;
    line-height: 1;
    align-items: flex-start;
}

.discount-left .lbl-giam {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.discount-left .val-giam {
    font-size: 26px;
    font-weight: 800;
}

.discount-divider {
    width: 1px;
    height: 36px;
    background-color: #e2e8f0;
    margin: 0 16px;
}

.discount-right {
    flex: 1;
}

.discount-right .discount-condition {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.partner-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.45;
    flex-grow: 1;
}

/* Card Buttons Actions */
.voucher-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-action {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    height: 40px;
    box-sizing: border-box;
}

.btn-view-detail {
    flex: 1;
    background-color: #ffffff;
    color: #ca1204;
    border: 1px solid #ca1204;
}

.btn-view-detail:hover {
    background-color: #ca1204;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(202, 18, 4, 0.1);
}

.btn-contact-buy {
    flex: 1.2;
    background-color: #ca1204;
    color: #ffffff;
    border: 1px solid #ca1204;
}

.btn-contact-buy:hover {
    background-color: #b00f03;
    border-color: #b00f03;
    box-shadow: 0 4px 12px rgba(202, 18, 4, 0.2);
    color: #fff;
}

/* 4. Responsive Queries */
@media (max-width: 1200px) {
    .filters-form {
        grid-template-columns: 1fr 1fr 1fr 1.5fr 0.8fr;
        gap: 12px;
    }

    .category-nav-wrapper {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .filters-form {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .search-group {
        grid-column: span 2;
    }

    .button-group {
        grid-column: span 2;
    }

    .voucher-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .voucher-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .evoucher-filters {
        padding: 16px;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .search-group {
        grid-column: span 1;
    }

    .button-group {
        grid-column: span 1;
    }
}

/* 5. Features Section styling */
.evoucher-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding: 28px 32px;
    background-color: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

/* Feature icons custom colors */
.icon-red {
    background-color: #fff2f1;
    color: #ca1204;
}

.icon-orange {
    background-color: #fff8ec;
    color: #f59f00;
}

.icon-green-outline {
    background-color: #f2fbf2;
    color: #3aaa35;
}

.icon-blue-outline {
    background-color: #f0f6fc;
    color: #1069c9;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.feature-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Feature responsiveness */
@media (max-width: 1024px) {
    .evoucher-features-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .evoucher-features-row {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-toggle:hover {
    background: #cbd5e1;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .filters-form {
        display: none; /* Hidden by default on mobile */
        margin-top: 16px;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .filters-form.show {
        display: grid !important;
    }

    .mobile-filter-toggle.active .toggle-arrow {
        transform: rotate(180deg);
    }
}