.centered-content {
    max-width: 1400px;
    margin: 10px auto 0;
    padding: 0 10px;
}
.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color); /* Use global background color */
    border-radius: 15px;
    box-shadow: none;
    margin: 50px auto 10px;
    position: relative;
    overflow: hidden;
}

.section-Cat {
    font-size: 2.0rem;
    font-weight: 700;
    color: var(--text-color); /* Use global text color */
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    position: relative;
    width: 100%;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color); /* Use global primary color */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding: 15px;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5 ease;
    border-radius: 15px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color); /* Use global text color */
    margin-bottom: 10px;
}

.product-price {
    color: #2c5282;
    font-weight: 600;
    margin: 5px 0;
    font-size: 1.1em;
}

.product-type,
.product-packing {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.details-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color); /* Use global primary color */
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.5s ease;
}

.details-btn:hover {
    background-color: #c41d23;
}

.show-all-btn {
   text-decoration: none; 
}

.show-all-container a {
    text-decoration: none;
}

:root {
    --dark: #050608;
    --light: #ffffff;
    --primary: #e56a23;
    --font: "Inter", Arial, Helvetica, sans-serif;
    --rounded: 100vw;
}

.show-all-btn {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: var(--rounded);
    margin: 5px;
    padding: 0.7rem 1rem 0.8rem 2rem;
    display: inline-flex;
    background: none;
    color: var(--dark);
    font-size: 24px;
    letter-spacing: -1px;
  }
  .show-all-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--rounded);
    background-image: linear-gradient(-45deg, var(--primary), transparent 50%);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0, 0.75, 1), opacity 1s ease;
  }
  .show-all-btn::after {
    content: "❯";
    display: grid;
    place-items: center;
    height: 1em;
    width: 1em;
    padding: 4px;
    margin-left: 0.65rem;
    border-radius: var(--rounded);
    background: var(--primary);
    color: var(--light);
    font-size: 0.75em;
    line-height: 0;
    transform: translateY(2px);
    transition: background-color 0.25s ease 0.25s;
  }
  .show-all-btn:hover::before {
    transform: translateX(0);
    opacity: 1;
  }
  .show-all-btn:hover::after {
    background: var(--dark);
  }

.section-Cat {
    font-size: 2.0rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    padding: 0 20px 0 20px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-Cat h3 {
    margin: 0;
}

.back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(45deg, var(--primary-color), #ff8f50);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(229, 106, 35, 0.2);
    float: right;
    min-width: fit-content;
}

.back-to-categories::before {
    content: '←';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-categories:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(229, 106, 35, 0.3);
}

.back-to-categories:hover::before {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .product-container {
        margin-top: 70px;
        padding: 10px;
    }

    .section-Cat {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 15px 0 15px;
    }

    .back-to-categories {
        font-size: 0.9rem;
        padding: 6px 12px;
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product {
        padding: 10px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-type,
    .product-packing {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .show-all-btn {
        font-size: 18px;
        padding: 0.5rem 0.8rem 0.6rem 1.5rem;
    }
}
.product-division {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0;
}
/* Updated PDF download container styles */
.pdf-download-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .pdf-download-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .category-dropdown,
    .pdf-download-btn {
        width: 100%;
    }
}

/* Updated dropdown styles */
.category-dropdown {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    min-width: 250px;
    background-color: white;
    cursor: pointer;
}

.category-dropdown:focus {
    outline: none;
    border-color: #ED1C24;
    box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.1);
}

/* Ensure consistent button styling */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ED1C24;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 160px;
}

.pdf-download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pdf-download-btn:not(:disabled):hover {
    background-color: #d41920;
}

.pdf-download-btn img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Updated Categories and Types Grid Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px;
    width: calc(100% - 40px);
}

.category-wrapper {
    height: 100%;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.category-title {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Category Icon styles */
.category-icon {
    width: 40px;
    height: 40px;
    background: rgba(237, 28, 36, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
}

.category-card:hover .category-icon svg {
    fill: #fff;
}

/* Section Title Styles */
.section-title {
    font-size: 1.8rem;
    color: #333;
    margin: 40px 20px 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        margin: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-icon {
        width: 32px;
        height: 32px;
    }

    .category-icon svg {
        width: 16px;
        height: 16px;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 30px 15px 15px;
    }
}