mirror of
https://git.meshkee.com/Meshkee/dashboards.git
synced 2026-08-11 22:30:58 +04:30
Includes business, customer, and super-admin apps with shared packages and production deploy scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
181 lines
3.2 KiB
CSS
181 lines
3.2 KiB
CSS
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--glass-shadow);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(31, 38, 135, 0.1);
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
}
|
|
|
|
.imageWrap {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 10px;
|
|
}
|
|
|
|
.imagePlaceholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(148, 163, 184, 0.08);
|
|
}
|
|
|
|
.festivalBadge,
|
|
.stockBadge {
|
|
position: absolute;
|
|
top: 8px;
|
|
padding: 4px 10px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.03em;
|
|
border-radius: 50px;
|
|
border: 1px solid var(--glass-border);
|
|
background: rgba(255, 255, 255, 0.82);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
|
|
z-index: 1;
|
|
}
|
|
|
|
.festivalBadge {
|
|
left: 8px;
|
|
text-transform: uppercase;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.stockBadge {
|
|
right: 8px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.body {
|
|
padding: 10px 10px 8px;
|
|
flex: 1;
|
|
}
|
|
|
|
.nameEn {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.3;
|
|
margin-bottom: 3px;
|
|
text-align: left;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nameFa {
|
|
font-family: var(--font-fa), var(--font-en);
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
direction: rtl;
|
|
text-align: left;
|
|
unicode-bidi: plaintext;
|
|
margin-bottom: 4px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.variantLabel {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 6px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 6px 10px;
|
|
border-top: 1px solid rgba(148, 163, 184, 0.15);
|
|
overflow: visible;
|
|
}
|
|
|
|
.controlsLeft {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.controlsLeft button {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.controlsLeft button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.controlsLeft button.danger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.addToCartIcon {
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.addToCartBtn {
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, transform 0.15s;
|
|
}
|
|
|
|
.addToCartBtn:hover {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
transform: scale(1.06);
|
|
}
|
|
|
|
.addToCartBtn:active {
|
|
transform: scale(0.98);
|
|
}
|