


.category-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    height: 100%;
}


.category-left {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.category-left h2 {
    font-size: 2rem;
    font-family: "Georgia", serif;
    margin-bottom: 20px;
    color: #575047;
}

.category-left p {
    font-size: 1.1rem;
    font-family: "Georgia", serif;
    text-align: center;
    width: 80%;
    line-height: 1.5;
    color: #575047;
}


.category-right {
    width: 45%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    justify-items: center;
    align-items: start;
    padding-top: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
    color: #575047;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.category-item {
    text-align: center;
}

.category-item img {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.category-item span {
    text-decoration: none;
    color: #575047;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    display: block;
    margin-top: 4px;
    margin-left: 80px;
}


.category-item:hover {
    text-decoration: underline;
}


.category-return {
    position: absolute;
    top: 10%;
    left: 20%;
    color: #575047;
    font-family: "Georgia", serif;
    font-size: 1rem;
    text-decoration: none;
}

.category-return:hover {
    text-decoration: underline;
}


.pagination {
    position: absolute;
    bottom: 80px; 
    left: -5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: "Georgia", serif;
    z-index: 9999;
}

.category-wrappers {
    position: absolute;
    top: 10%;        
    left: 25%;      
    width: 80%;     
    height: 86%;
    z-index: 2;  
    pointer-events: auto;
}

.page-btn {
    text-decoration: none;
    align-self: flex-start;
    color: #3b2f2f;
    font-weight: bold;
    padding: 8px 16px;
    font-weight: 900;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.page-btn.prev {
    margin-right: 750px;
}

.page-btn.next {
    margin-left: 750px;
}


.page-btn:hover {
    color: #5c4c4c;
    transform: scale(1.1);
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-info {
    font-size: 1.1rem;
    color: #3b2f2f;
}
@media (max-width: 1400px) {

    /* Center everything inside the book */
    .category-wrappers {
        position: absolute;
        top: 14%;
        left: 12%;            /* moves content closer to center fold */
        width: 62%;           /* smaller width so left & right are closer */
        height: 80%;
        z-index: 2;
    }

    .category-content {
        display: flex;
        justify-content: space-between;  /* left & right columns */
        align-items: flex-start;
        width: 100%;
        gap: 40px;                       /* space between left/right */
        margin: 0 auto;
    }

    /* Left page column */
    .category-left {
        width: 48%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .category-left h2 {
        font-size: 2.1rem;
        margin-bottom: 15px;
        margin-left: 120px;
    }

    .category-left p {
        font-size: 1.1rem;
        width: 90%;
        margin-left: 50px;
    }

    /* Right page grid */
    .category-right {
        width: 48%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        justify-items: center;
        align-items: start;
    }

    .category-item img {
        max-width: 110px;
        max-height: 110px;
    }

    /* Pagination */
    .pagination {
        position: absolute;
        bottom: 60px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 80px;
    }

    .page-btn {
        font-size: 1.6rem;
    }
    .category-return {
        font-size: 0.9rem;
        margin-left: -50px;
    }
}

@media (max-width: 768px) {
    .category-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        width: 100%;
        height: auto;
        gap: 20px;
    }

.category-return {
    position: absolute;
    top: 8vh;
    left: 20%;
    z-index: 10;
    font-size: 1rem;
    font-weight: 500;
    color: #3b2a1a !important;                 /* SAME COLOR */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-family: inherit;
}
  
  
.category-return:hover {
    color: #513c28;                 /* SAME HOVER COLOR */
    border-bottom: 2px solid #513c28;
}


    .category-left {
        width: 100%;
        margin-bottom: 15px;
        margin-top: 90px;
    }

    .category-left h2 {
        font-size: 1.8rem;
        color: #fff8c6;
    }

    .category-left p {
        font-size: 1rem;
        color: #fff8c6;
        margin-left: 5px;
    }

    .category-right {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        width: 100% !important;
        gap: 15px;
        margin-left: -90px;
    }

    .category-item {
        width: 100%;
        max-width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-item img {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }

    .category-item a {
        font-size: 1rem;
        color: #fff8c6;
        text-decoration: none;
    }

    .category-item a:hover {
        text-decoration: underline;
    }

    /* pagination now centered below */
    .pagination {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 25px;
    }

    .page-btn {
        color: #fff8c6;
    }

    .page-btn:hover {
        background-color: #e0c8a5;
        color: #000;
    }

    .category-wrappers {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding-bottom: 50px;
    }
}

/* --- Small Phones (≤480px) --- */
@media (max-width: 480px) {
    .category-right {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-item img {
        width: 70px;
        height: 70px;
    }

    .category-left h2 {
        font-size: 1.6rem;
    }

    .category-left p {
        font-size: 1rem;
        width: 95%;
    }

    .category-return {
        font-size: 0.9rem;
    }

    .page-info {
        font-size: 1rem;
    }
}