@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400&family=Gentium+Book+Plus:ital,wght@1,700&family=Lora:ital,wght@1,700&display=swap');

.product-layout-wrapper {
    background-color: #e3e3db;
    display: flex;
    width: 100%;
	padding-bottom: 300px;
}

.product-container {
    display: flex;
    width: 100%;
    align-items: flex-start; 
}

.sidebar {
    width: 280px; 
    background: white;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    padding-bottom: 40px; 
    height: fit-content;
	border-radius: 10px;
}

.sidebar h2 {
    font-family: 'Lora', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 23px; 
    padding: 25px 20px;
    margin: 0;
    background-color: #eeeeee;
    border-left: 8px solid #cf1111;
	border-top-right-radius: 10px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px; 
    text-decoration: none;
    color: #000000;
    font-family: 'Alegreya', serif;
    font-size: 18px;
    transition: 0.2s;
}

.sidebar-list li a:hover {
    background-color: #f5f5f5;
    color: #c92127;
}

.sidebar-list img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.main-content-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 18px; 
    padding: 95px 188px 80px 188px; 
    align-content: start;
}

.cat-card {
    background: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1; 
    width: 100%;
    max-width: 200px; 
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cat-card-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; 
}

.cat-card-img img {
    max-width: 95%;
    max-height: 130px; 
    object-fit: contain;
}

.cat-card-label {
    background-color: #c92127;
    color: white;
    text-align: center;
    padding: 8px 5px;
    font-family: 'Gentium Book Plus', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1000px) { .main-content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
    .product-container { flex-direction: column; }
    .sidebar { width: 100%; padding-bottom: 10px; }
    .main-content-grid { grid-template-columns: repeat(2, 1fr); padding: 10px; gap: 8px; }
}



.category-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.category-title {
    font-family: 'Crimson Pro', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px; 
    color: #000000;
}

.category-sidebar {
   
    margin-top: 130px;
	border-radius: 10px;
}

.sidebar h2.no-highlight {
    background-color: transparent !important;
    border-left: none !important;
    padding-left: 20px;
    font-size: 24px;
    color: #000;
}

.sidebar-list li.active-link {
    background-color: #eeeeee !important;
    border-left: 5px solid #cf1111 !important;
}

.sidebar-list li:hover {
    background-color: #f9f9f9;
    border-left: 5px solid #ddd;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    padding: 0 40px;
    align-content: start;
}



.item-container {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    transition: transform 0.3s ease;
}

.item-container:hover {
    transform: translateY(-8px);
}

.white-square {
    background-color: white;
    width: 100%;
    height: 220px !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.item-container:hover .white-square {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.white-square img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

.item-name {
    margin-top: 15px;
    font-family: 'Gentium Book Plus', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    color: #000000;
}



.details-main {
    flex-grow: 1;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
}

.details-layout {
    display: flex;
    gap: 80px; 
    max-width: 1100px;
    width: 100%;
    align-items: flex-start;
}

.white-square-large {
    background-color: white;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 20px;
}

.white-square-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.details-info {
    flex: 1;
    padding-top: 20px;
}

.details-title {
    font-family: 'Gentium Book Plus', serif;
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 60px;
    color: #000;
}

.details-description h3 {
    font-family: 'Gentium Book Plus', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 15px;
}

.details-description p {
    font-family: 'Alegreya', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.details-action-buttons {
    margin-top: 80px;
    display: flex;
    gap: 25px;
}

.btn-order-now {
    background-color: #cf1111; 
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.btn-back-page {
    background-color: #311b92; 
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}



.details-main {
    flex-grow: 1;
    padding-top: 150px; 
    padding-left: 150px; 
    display: flex;
    justify-content: flex-start;
}

.details-layout {
    display: flex;
    gap: 80px; 
    align-items: flex-start;
    max-width: 1200px;
}

.white-square-details {
    background-color: white;
    width: 280px; 
    height: 280px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

.details-info {
    max-width: 500px;
}

.white-square-details {
    background-color: white;
    width: 280px; 
    height: 280px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 15px;
}

.white-square-details img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.details-title {
    font-family: 'Crimson Pro', serif;
    font-weight: 700; 
    font-size: 30px;
    margin-bottom: 50px;
    color: #000;
}

.desc-heading {
    font-family: 'Gentium Book Plus', serif;
    font-style: italic;
    font-weight: 700; 
    font-size: 22px;
    margin-bottom: 10px;
}

.desc-text {
    font-family: 'Alegreya', serif;
    font-weight: 400; 
    font-size: 18px;
    color: #333;
    max-width: 400px;
}

.details-action-buttons {
    margin-top: 60px;
    display: flex;
    gap: 15px;
}

.btn-cta {
    padding: 10px 30px;
    text-decoration: none;
    font-family: 'Crimson Pro', serif;
    font-weight: 700; 
    font-size: 16px;
    border-radius: 5px;
    color: white;
    text-align: center;
    transition: 0.3s;
}

.btn-order {
    background-color: #cf1111; 
}

.btn-back {
    background-color: #311b92; 
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
	color: #36168F;
	background-color: #E3E3DB;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}





@media (max-width: 1200px) {
    .main-content-grid {
        padding: 50px 40px;
    }
}

@media (max-width: 900px) {
    .product-container {
        flex-direction: column; 
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-top: 0 !important; 
    }

    .sidebar h2 {
        font-size: 20px;
        padding: 15px;
    }

    .sidebar-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        background: #fff;
        padding: 10px 0;
    }

    .sidebar-list li {
        flex: 0 0 auto;
    }

    .sidebar-list li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .main-content-grid {
        grid-template-columns: repeat(2, 1fr); 
        padding: 20px;
        gap: 15px;
    }

    .details-main {
        padding-left: 20px;
        padding-top: 40px;
    }

    .details-layout {
        flex-direction: column; 
        align-items: center;
        gap: 30px;
    }

    .details-info {
        text-align: center;
        max-width: 100%;
    }

    .desc-text {
        margin: 0 auto;
    }

    .details-action-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cat-card-label {
        font-size: 0.75rem;
    }
}

/* --- FIX FOR PRODUCT PAGES --- */

/* 1. Force all product images to be the same size and not stretch */
.product-card img, 
.category-card img,
.main-content-grid .product-card img {
    width: 100% !important;
    height: 220px !important; /* Adjust this height if you want them taller or shorter */
    object-fit: cover !important; /* This crops images perfectly to fill the box */
    display: block;
    border-bottom: 1px solid #eee;
}

/* 2. Center the "Category Heading" text on mobile */
@media (max-width: 900px) {
    .main-content-grid h1, 
    .main-content-grid .category-title,
    .main-content-grid > h1:first-of-type {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-bottom: 20px;
    }

    /* Adjust image height slightly for smaller phone screens */
    .product-card img {
        height: 180px !important;
    }
}

@media (max-width: 900px) {
    /* 1. Fix the "Waste Receptacle" text cut-off and center it */
    .category-title {
        text-align: center !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 2. Fix the Product Grid so it doesn't cut off on the right */
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Shows 2 items per row */
        gap: 15px !important;
        padding: 0 15px !important; /* Gives side spacing so items don't touch screen edges */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important; /* Crucial: Keeps padding INSIDE the width */
    }

    /* 3. Ensure product items (white squares) fit perfectly */
    .white-square {
        width: 100% !important; /* Let the grid decide the width */
        height: auto !important; 
        aspect-ratio: 1 / 1 !important; /* Keeps it a perfect square */
    }

    .item-container {
        width: 100% !important;
    }

    .item-name {
        font-size: 16px !important; /* Slightly smaller for mobile fitting */
        padding: 0 5px;
    }
}

