mobile is finished
This commit is contained in:
@@ -127,12 +127,12 @@
|
||||
|
||||
// Item card styles
|
||||
.item-card {
|
||||
background: white;
|
||||
background: #ffffff;
|
||||
border-radius: 13px;
|
||||
border: 1px solid #d3dad9;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.08);
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
|
||||
transition: box-shadow 0.3s ease, transform 0.3s ease;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -142,7 +142,7 @@
|
||||
margin: 0 auto;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
}
|
||||
@@ -158,56 +158,55 @@
|
||||
.item-image {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 140px;
|
||||
height: 170px;
|
||||
overflow: hidden;
|
||||
background: #f5f5f5;
|
||||
border-radius: 13px;
|
||||
background: #f5f3f9;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
background: white;
|
||||
padding: 10px;
|
||||
transition: transform 0.3s ease, filter 0.3s ease;
|
||||
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
|
||||
padding: 12px;
|
||||
transition: transform 0.4s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&:hover img {
|
||||
transform: scale(1.08);
|
||||
filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12)) brightness(1.05);
|
||||
.item-card:hover & img {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
}
|
||||
|
||||
.discount-badge {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
background: #ef4444;
|
||||
color: white;
|
||||
padding: 0.4rem 0.8rem;
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
font-size: 0.875rem;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
z-index: 10;
|
||||
letter-spacing: 0.02em;
|
||||
z-index: 2;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.item-details {
|
||||
padding: 0.625rem;
|
||||
padding: 12px 14px 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
gap: 6px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.item-name {
|
||||
font-family: "DM Sans", sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
line-height: 1.3;
|
||||
min-height: 2.6em;
|
||||
line-height: 1.35;
|
||||
min-height: 2.2em;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
@@ -216,20 +215,25 @@
|
||||
color: #1e3c38;
|
||||
transition: color 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: var(--primary-color, #497671);
|
||||
.item-card:hover & {
|
||||
color: #497671;
|
||||
}
|
||||
}
|
||||
|
||||
.item-rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
gap: 4px;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
font-size: 0.75rem;
|
||||
|
||||
.rating-stars {
|
||||
color: #497671;
|
||||
svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.rating-value {
|
||||
font-weight: 600;
|
||||
color: #1e3c38;
|
||||
}
|
||||
|
||||
.rating-count {
|
||||
@@ -241,15 +245,18 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
gap: 8px;
|
||||
margin-top: auto;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.item-price {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 0.375rem;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
flex: 1;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
|
||||
.current-price,
|
||||
.discounted-price {
|
||||
@@ -263,20 +270,22 @@
|
||||
}
|
||||
|
||||
.original-price {
|
||||
font-size: 0.8125rem;
|
||||
color: #697777;
|
||||
font-size: 0.75rem;
|
||||
color: #a1b4b5;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
|
||||
.cart-icon-btn {
|
||||
padding: 0.5rem;
|
||||
background: var(--primary-color, #497671);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 0;
|
||||
background: #497671;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
transition: background 0.2s ease, transform 0.15s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -284,11 +293,13 @@
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--primary-hover, #3d635f);
|
||||
transform: scale(1.05);
|
||||
background: #3d635f;
|
||||
transform: scale(1.08);
|
||||
}
|
||||
|
||||
&:active {
|
||||
@@ -336,27 +347,27 @@
|
||||
}
|
||||
|
||||
.item-image {
|
||||
height: 220px;
|
||||
height: 160px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.item-image {
|
||||
height: 200px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.item-details {
|
||||
padding: 1rem;
|
||||
padding: 10px 12px 12px;
|
||||
}
|
||||
|
||||
.item-name {
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.item-price {
|
||||
.current-price,
|
||||
.discounted-price {
|
||||
font-size: 1.125rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user