import { colors } from '@/styles/variables' import styled from 'styled-components' import { IProductCard } from './ProductCard.interface' export const StyledProductCard = styled.div>` cursor: pointer; background-color: white; border: 1px solid ${colors.gray30}; color: ${colors.gray90}; aspect-ratio: 3/4; width: 100%; position: relative; overflow: hidden; transition: all 400ms; img { width: 100%; height: 100%; object-fit: contain; transition: all 1s ease; } .absolute { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; height: 100%; width: 100%; } .wishlist { align-self: flex-end; >div { position: absolute; top: 12px; right: 12px; z-index: 1200; } } .name { padding: 8px; border: 1px solid transparent; transition: border 400ms linear; } &:hover { .name { border: 1px solid ${colors.gray30}; } img { transform: scale(1.1); } } `