/* ==============================
   RESELLER PAGE
   ============================== */

/* --- Hero --- */
.reseller-hero {
    background: var(--main-yellow);
    padding: 60px 0 50px;
}

.reseller-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.reseller-hero-logo img {
    width: 140px;
}

.reseller-hero-text h1 {
    color: var(--black);
}

.reseller-hero-text p {
    color: #333;
}

/* --- Search --- */
.reseller-search {
    padding: 40px 0 10px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 0 25px;
    height: 56px;
    max-width: 500px;
    transition: box-shadow 0.2s;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 3px var(--main-yellow);
}

.search-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.search-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: 'didact-r';
    width: 100%;
    height: 100%;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

/* --- Count --- */
.reseller-count {
    padding: 20px 0 10px;
    color: #666;
}

/* --- Grid --- */
.reseller-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0 60px;
}

/* --- Card --- */
.reseller-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reseller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.reseller-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--main-yellow);
    color: var(--black);
    font-family: 'poppins-sb';
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.reseller-card-body {
    padding: 30px 25px 20px;
    flex: 1;
}

.reseller-card-icon-circle {
    width: 48px;
    height: 48px;
    background: var(--main-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.reseller-card-icon-circle img {
    width: 22px;
    height: 22px;
}

.reseller-card-name {
    font-family: 'poppins-sb';
    font-size: 18px;
    line-height: 24px;
    color: var(--black);
    margin-bottom: 10px;
}

.reseller-card-address {
    font-family: 'didact-r';
    font-size: 14px;
    line-height: 21px;
    color: #666;
}

/* --- Card Footer --- */
.reseller-card-footer {
    border-top: 1px solid #f0f0f0;
    display: flex;
}

.reseller-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    text-decoration: none;
    font-family: 'didact-r';
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}

.reseller-action:hover {
    background: #f9f9f9;
    opacity: 1;
}

.reseller-action img {
    width: 16px;
    height: 16px;
}

.reseller-action-map {
    border-left: 1px solid #f0f0f0;
    color: var(--black);
    font-family: 'poppins-m';
}

.reseller-action-map:hover {
    background: var(--main-yellow);
}

/* --- No results --- */
.reseller-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* --- CTA Section --- */
.reseller-cta-section {
    padding: 0 0 80px;
}

.reseller-cta-box {
    background: var(--black);
    color: var(--white);
    border-radius: 25px;
    padding: 60px 50px;
    text-align: center;
}

.reseller-cta-box h2 {
    color: var(--white);
}

.reseller-cta-box p {
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
}

.reseller-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--main-yellow);
    color: var(--black);
    font-family: 'poppins-sb';
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.reseller-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255,210,48,0.4);
    opacity: 1;
}

/* --- Footer --- */
.reseller-footer {
    background: #fafafa;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.reseller-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reseller-footer-logo {
    width: 80px;
}

.reseller-footer-inner p {
    color: #999;
}

.reseller-back-link {
    color: var(--black);
    text-decoration: none;
    font-family: 'poppins-m';
}

.reseller-back-link:hover {
    color: var(--main-yellow);
}

/* ==============================
   RESPONSIVE
   ============================== */

@media screen and (max-width: 992px) {
    .reseller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .reseller-cta-box {
        padding: 50px 30px;
    }
}

@media screen and (max-width: 768px) {
    .reseller-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .reseller-hero-logo img {
        width: 100px;
    }

    .reseller-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-bar {
        max-width: 100%;
    }

    .reseller-footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .reseller-cta-box {
        padding: 40px 20px;
        border-radius: 15px;
    }

    .reseller-cta-btn {
        font-size: 14px;
        padding: 12px 30px;
    }
}

@media screen and (max-width: 480px) {
    .reseller-hero {
        padding: 40px 0 30px;
    }

    .reseller-card-name {
        font-size: 16px;
    }

    .reseller-action span {
        font-size: 12px;
    }
}
