/* Page Specific Styles */

/* Home Page Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
        margin: 30px 0;
        width: 100%;
        overflow: visible;
    }

    .category-card {
        min-width: auto;
        aspect-ratio: 1/1.2;
    }
}

@media(min-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: linear-gradient(145deg, var(--card) 0%, #161616 100%);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1.3;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--brand-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.category-card:hover::before {
    opacity: 1;
}

.cat-icon {
    width: 100%;
    height: 80%;
    margin: 0;
    filter: drop-shadow(0 0 15px rgba(201, 162, 77, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* For absolute badges */
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-pay-icons {
    position: absolute;
    bottom: 0px;
    /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-pay-icons img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    filter: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.category-card:hover .cat-icon {
    transform: scale(1.05);
    /* Simplified hover to avoid rotating badges too wildly */
}

.cat-name {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    z-index: 1;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.category-card:hover .cat-name {
    color: var(--brand);
}

/* Pay Section */
.x-pay {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

@media(min-width: 600px) {
    .x-pay {
        grid-template-columns: 1fr 1fr;
    }
}

.x-pay-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    padding: 20px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.x-pay-item:hover {
    border-color: var(--brand);
    background: linear-gradient(145deg, var(--card) 0%, #1a1a1a 100%);
    transform: translateY(-2px);
}

.x-pay-fig {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
}

.x-pay-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.x-pay-body strong {
    color: var(--text);
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 16px;
}

.x-pay-body span {
    color: var(--text-dim);
    font-size: 13px;
}