/* Optional: reset h1 and total-items positions */
.view-background.surgical-gloves-page h1 {
    top: 0 !important; /* reset previous top */
    right: 0 !important; /* reset previous right */
    position: relative; /* keep relative for safe adjustments */
}

.view-background.surgical-gloves-page .total-items {
    top: 0 !important; /* reset previous top */
    margin-left: 0 !important;
    position: relative;
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, calc(33.33% - 10px));
    gap: 17px;

    /* Center alignment fix */
    justify-content: center; /* Centers the entire grid horizontally */
    margin: 90px auto 0 auto; /* Centers using auto margins */

    width: fit-content;
}
/* Gray section on bottom of Item */
.item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, #cce7ff 0%, #e8f4ff 100%);
    z-index: -1;
    transition: background 0.3s ease;
}
/* Individual item styling */
.item {
    border: 1px solid rgba(84, 172, 240, 0.6);
    margin: 0;
    padding: 0;
    text-align: center;
    height: 450px;
    width: 315px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    pointer-events: auto;

    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
    border-radius: 14px;

    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

/* Hover effect for the item container */
.item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.25);
    border: 1px solid rgba(0, 132, 255, 0.85);
}
/* Glow effect when hovered */
.item:hover::after {
    background: linear-gradient(to top, #b7e0ff 0%, #e0f4ff 100%);
}
/* Hover effect for the image inside the item */
.item img {
    height: 300px;
    width: 280px;
    position: relative;
    transition: transform 0.35s ease, filter 0.35s ease;
    border-radius: 10px;
}

.item img:hover {
    transform: scale(1.07);
    filter: drop-shadow(0 4px 8px rgba(0, 119, 255, 0.25));
}
/* Styling for the description */
.display {
    position: relative; /* Keep it above the background */
    top: 5px;
    z-index: 1; /* Ensure text appears above the background */
    font-weight: normal;
    font-size: 16px; /* Adjust the font size as needed */
}
/* Styling for the name */
.name {
    font-weight: bold;
    z-index: 1; /* Ensure text appears above the background */
    font-size: 17px; /* Adjust the font size as needed */
    color: #004a88;
}
.item:hover .name {
    color: #007efc;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #eef6ff 0%, #f7f9fc 100%);
}
/*Surgical Text Title*/
/* Page Title */
h1 {
    position: relative;
    font-family: "Kanit", sans-serif;
    font-weight: bold;
    top: 80px;
    font-size: 4.3rem;
    right: -50px;
    color: var(--clr-secondary-400);
    background: linear-gradient(90deg, #007efc, #007efc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}
.total-items {
    position: relative; /* Allows for precise control over positioning */
    top: 83px; /* Moves the element down by 10px */
    margin-left: 240px;
    font-weight: bold;
    font-size: 17px; /* Adjust the font size as needed */
}
:root {
    --clr-secondary-400: #0067b1;
}
.item-name.item-53 {
    position: relative;
    left: 160px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-53 .industries-section {
    margin-top: -500px; /* Adjust vertical spacing */
    margin-left: 370px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-53 .packaging-header {
    margin-top: -120px; /* optional, for some left padding */
    margin-left: 580px; /* optional, for some left padding */
}
#item-53 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 480px; /* optional, for some left padding */
    margin-top: -530px; /* optional, for some left padding */
}
.item-name.item-54 {
    position: relative;
    left: 170px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-54 .industries-section {
    margin-top: -400px; /* Adjust vertical spacing */
    margin-left: 470px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-54 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -200px; /* optional, for some left padding */
}
#item-54 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}

#item-55 .industries-section {
    margin-top: -500px; /* Adjust vertical spacing */
    margin-left: 380px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-55 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 540px; /* optional, for some left padding */
    margin-top: -520px; /* optional, for some left padding */
}
#item-55 .packaging-header {
    margin-top: -120px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
.item-name.item-53 {
    position: relative;
    left: 210px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-53 .industries-section {
    margin-top: -480px; /* Adjust vertical spacing */
    margin-left: 470px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-53 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -340px; /* optional, for some left padding */
}
#item-53 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}

#item-56 .industries-section {
    margin-top: -320px; /* Adjust vertical spacing */
    margin-left: 470px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-56 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -190px; /* optional, for some left padding */
}
#item-56 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
.item-name.item-57 {
    position: relative;
    left: 210px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-57 .industries-section {
    margin-top: -330px; /* Adjust vertical spacing */
    margin-left: 400px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-57 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -200px; /* optional, for some left padding */
}
#item-57 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
.item-name.item-60 {
    position: relative;
    left: 120px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-60 .industries-section {
    margin-top: -310px; /* Adjust vertical spacing */
    margin-left: 400px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-60 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -200px; /* optional, for some left padding */
}
#item-60 .packaging-header {
    margin-top: -225px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
/* Scoped styling for Surgical Gowns page */
.view-background.surgical-gowns-page .items-grid {
    display: grid;
    grid-template-columns: repeat(3, 330px); /* 3 items per row, fixed width */
    gap: 1px; /* spacing between items */
    justify-content: center; /* center the grid */
    margin: 90px auto 0 auto; /* top margin and horizontal centering */
    width: fit-content; /* shrink to fit items */
}

.view-background.surgical-gowns-page .item {
    border: 1px solid rgba(84, 172, 240, 0.6);
    padding: 0;
    text-align: center;
    height: 450px;
    width: 315px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
    border-radius: 14px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.view-background.surgical-gowns-page .item img {
    width: 280px; /* image size */
    height: 300px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.item-name.item-67 {
    position: relative;
    left: 120px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-67 .industries-section {
    margin-top: -320px; /* Adjust vertical spacing */
    margin-left: 470px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-67 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -190px; /* optional, for some left padding */
}
#item-67 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
.item-name.item-68 {
    position: relative;
    left: 230px; /* move left (increase the number for more shift) */
    white-space: nowrap; /* keep the name on one line */
}
#item-68 .industries-section {
    margin-top: -320px; /* Adjust vertical spacing */
    margin-left: 470px; /* Move section to the right if needed */
    font-size: 14px; /* Adjust font size */
    color: #2f2c2c; /* Text color */
    white-space: nowrap;
}
#item-68 .packaging-table {
    font-size: 14px; /* font size for packaging table */
    margin-left: 530px; /* optional, for some left padding */
    margin-top: -190px; /* optional, for some left padding */
}
#item-68 .packaging-header {
    margin-top: -230px; /* optional, for some left padding */
    margin-left: 650px; /* optional, for some left padding */
}
