/* Multifunction Printer Page Styles - Compact Grid */

/* Page Title Section */
.page-title {
    padding: 40px 15px;
    text-align: center;
    background-color: #ede8dd;
}

.page-title h1 {
    font-size: 2.2em;
    color: #790502;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1em;
    color: #333;
}

/* Category Section */
.category-section {
    padding: 40px 15px;
    text-align: center;
    background-color: #ede8dd;
}

.category-section h2 {
    font-size: 1.8em;
    color: #790502;
    margin-bottom: 25px;
}

/* Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Styling */
.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    max-width: 160px;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    padding: 0 5px;
}

/* Product Button */
.product-button {
    background-color: #c11520;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.product-button:hover {
    background-color: #a10f18;
    transform: translateY(-2px);
}

/* Single card adjustment */
.product-card.single {
    max-width: 520px;
    margin: 30px auto;
    padding: 25px;
}
.back-link {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.back-link a {
    color: #790502;
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.back-link a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.back-link a:hover {
    color: #c11520;
}

.back-link a:hover::before {
    opacity: 1;
    left: -25px;
}





/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card img {
        max-width: 180px;
        height: 220px;
    }
}

