.custom-product-grid-container {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
height: fit-content;
}
.custom-product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1rem;
padding: 1rem 0;
}
.custom-pagination {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1.5rem;
}
.pagination-button {
padding: 0.4rem 0.75rem;
background: #eee;
border-radius: 4px;
text-decoration: none;
color: #333;
font-weight: 500;
transition: background 0.2s ease;
}
.pagination-button:hover {
background: #ddd;
}
.pagination-button.active {
background: #333;
color: #fff;
}
@media only screen and (max-width: 600px) {
.custom-product-grid-container {
align-items: center;
font-size: 1.25rem;
}
.custom-product-grid {
display: grid;
grid-template-columns: 1fr;
}
.custom-product-card {
max-width: 100% !important;
width: 100%;
}
}.custom-product-row {
font-size: 1rem;
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
gap: 1em;
padding: 1em 0;
scrollbar-width: thin; -ms-overflow-style: auto; }
@media only screen and (max-width: 800px) {
.custom-product-row {
font-size: 1.1rem;
}
}
.custom-product-row::-webkit-scrollbar {
display: none;
}
.custom-product-row::-webkit-scrollbar {
height: 6px;
}
.custom-product-row::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 4px;
}
.scroll-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
background: rgba(255, 255, 255, 0.5);
border: none;
font-size: 2em;
height: 2em;
width: 1.5em;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
transition: background 0.3s;
user-select: none;
}
.scroll-button img {
margin: 0;
width: 50%;
height: auto;
aspect-ratio: 1/1;
}
.scroll-button:hover {
background: rgba(240, 240, 240, 1);
}
.scroll-button.left {
left: 0;
translate: -50% 0px;
}
.scroll-button.right {
right: 0;
translate: 50% 0px;
}
.custom-product-card {
background: white;
border: 1px solid #eee;
min-width: 200px;
max-width: 250px;
flex-shrink: 0;
scroll-snap-align: start;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
}
.custom-product-card:hover {
transform: scale(1.02);
background: #f9f9f9;
}
.product-image {
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.overlay-badge {
position: absolute;
top: 1em;
left: 1em;
translate: 0px 0px;
}
.product-image img {
width: 100%;
aspect-ratio: 4/3;
object-fit: contain;
}
.product-details {
height: 100%;
padding: 1em;
display: flex;
flex-direction: column;
gap: 0.5em;
}
.product-title {
font-size: 1.1em;
font-weight: 600;
}
.product-specs {
font-size: 0.9em;
color: #555;
line-height: 1.3;
}
.product-price .current-price {
font-size: 1.6em;
font-weight: 600;
}
.price-sale {
display: flex;
flex-direction: column;
gap: 0.25em;
}
.original-price {
font-size: 0.9em;
color: #999;
text-decoration: line-through;
}
.highlighted-price {
color: white;
padding: 4px 8px;
width: fit-content;
background-color: black;
}
.price-details {
display: flex;
flex-direction: row;
gap: 4px;
}
.sale-badge {
background: black;
color: white;
font-size: 0.9em;
font-weight: 600;
padding: 0.25em 0.5em;
width: fit-content;
}
.product-stock {
display: flex;
align-items: center;
gap: 0.4em;
margin-top: auto;
}
.stock-pulse {
width: 0.75em;
height: 0.75em;
border-radius: 9999px;
position: relative;
}
.stock-pulse::before {
content: '';
position: absolute;
inset: 0;
border-radius: 9999px;
opacity: 0.75;
animation: pulse 1.4s infinite;
}
.pulse-green {
background: #22c55e;
}
.pulse-green::before {
background: #22c55e;
}
.pulse-amber {
background: #f59e0b;
}
.pulse-amber::before {
background: #f59e0b;
}
.stock-text {
font-size: 0.85em;
color: #555;
}
.stock-demand, .stock-none {
font-size: 0.85em;
color: #999;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 0.75; }
50% { transform: scale(1.6); opacity: 0; }
100% { transform: scale(1); opacity: 0.75; }
}.itg-section-link {
display: inline-flex;
align-items: center;
gap: 0.5em;
font-weight: 600;
font-size: 1.6rem;
text-decoration: none;
}
.itg-section-link:hover .arrow-icon {
transform: translateX(4px);
transition: transform 0.2s ease;
font-weight: 900;
}