352 lines
5.7 KiB
SCSS
352 lines
5.7 KiB
SCSS
:host {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.cart-copia {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
height: 100%;
|
|
border: 1px solid #f0f0f0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
box-shadow: 0 18px 40px rgba(24, 30, 48, 0.08);
|
|
}
|
|
|
|
.cart-copia__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 16px 16px 30px;
|
|
background: transparent;
|
|
border-bottom: 1px solid #f2f2f2;
|
|
}
|
|
|
|
.cart-copia__title {
|
|
margin: 0;
|
|
color: #a6a6a6;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cart-copia__close-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #ababab;
|
|
font-size: 16px;
|
|
transition: color 0.2s ease;
|
|
|
|
&:hover {
|
|
color: #7b7b7b;
|
|
}
|
|
}
|
|
|
|
.cart-copia__body {
|
|
min-height: 0;
|
|
background: #f8f8f8;
|
|
}
|
|
|
|
.cart-copia__items {
|
|
display: grid;
|
|
gap: 18px;
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 16px 14px 20px 30px;
|
|
scrollbar-color: #d1d1d1 transparent;
|
|
scrollbar-width: thin;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: #d1d1d1;
|
|
border-radius: 999px;
|
|
}
|
|
}
|
|
|
|
.cart-copia__item {
|
|
display: grid;
|
|
grid-template-columns: 88px minmax(0, 1fr);
|
|
gap: 14px;
|
|
padding-bottom: 18px;
|
|
border-bottom: 1px solid #ececec;
|
|
}
|
|
|
|
.cart-copia__media {
|
|
position: relative;
|
|
width: 88px;
|
|
height: 98px;
|
|
overflow: hidden;
|
|
background: #d8d8d8;
|
|
|
|
img,
|
|
.cart-copia__media-placeholder {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
img {
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.cart-copia__media-placeholder {
|
|
background: linear-gradient(180deg, #d9d9d9, #cecece);
|
|
}
|
|
|
|
.cart-copia__discount-badge {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
padding: 4px 8px 3px;
|
|
background: #6173ff;
|
|
color: #ffffff;
|
|
font-size: 8px;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
}
|
|
|
|
.cart-copia__content {
|
|
display: grid;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cart-copia__top-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.cart-copia__product {
|
|
margin: 0;
|
|
color: #7a7a7a;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 1.28;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cart-copia__prices {
|
|
display: grid;
|
|
justify-items: end;
|
|
gap: 2px;
|
|
white-space: nowrap;
|
|
line-height: 1;
|
|
}
|
|
|
|
.cart-copia__original-price {
|
|
color: #b2b2b2;
|
|
font-size: 10px;
|
|
font-weight: 300;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.cart-copia__discounted-price {
|
|
color: #909090;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cart-copia__attributes {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.cart-copia__attribute {
|
|
color: #727272;
|
|
font-size: 12px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cart-copia__attribute-label {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.cart-copia__attribute-value {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cart-copia__item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.cart-copia__quantity-selector {
|
|
display: inline-grid;
|
|
grid-template-columns: 16px 1fr 16px;
|
|
align-items: center;
|
|
width: 52px;
|
|
height: 23px;
|
|
border: 1px solid #cdcdcd;
|
|
border-radius: 4px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.cart-copia__quantity-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #6f6f6f;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
|
|
&:disabled {
|
|
color: #c4c4c4;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.cart-copia__quantity-value {
|
|
color: #666666;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
text-align: center;
|
|
user-select: none;
|
|
}
|
|
|
|
.cart-copia__remove-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #aaaaaa;
|
|
font-size: 14px;
|
|
transition: color 0.2s ease;
|
|
|
|
&:hover {
|
|
color: #7b7b7b;
|
|
}
|
|
}
|
|
|
|
.cart-copia__footer {
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 20px 30px 28px;
|
|
background: #ffffff;
|
|
border-top: 1px solid #f2f2f2;
|
|
}
|
|
|
|
.cart-copia__summary-row,
|
|
.cart-copia__total-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.cart-copia__summary-label,
|
|
.cart-copia__summary-value {
|
|
color: #a9a9a9;
|
|
font-size: 13px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cart-copia__summary-label {
|
|
font-weight: 300;
|
|
}
|
|
|
|
.cart-copia__summary-value {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cart-copia__divider {
|
|
height: 1px;
|
|
margin: 6px 0 2px;
|
|
background: #efefef;
|
|
}
|
|
|
|
.cart-copia__total-row {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.cart-copia__total-label,
|
|
.cart-copia__total-value {
|
|
color: #666666;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cart-copia__footer-actions {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.cart-copia__footer-button {
|
|
min-height: 42px;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.cart-copia__footer-button--secondary {
|
|
border-color: #6173ff;
|
|
background: #ffffff;
|
|
color: #6173ff;
|
|
}
|
|
|
|
.cart-copia__footer-button--primary {
|
|
background: #6173ff;
|
|
color: #ffffff;
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.cart-copia__header,
|
|
.cart-copia__footer {
|
|
padding-left: 18px;
|
|
padding-right: 18px;
|
|
}
|
|
|
|
.cart-copia__items {
|
|
padding-left: 18px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.cart-copia__item {
|
|
grid-template-columns: 76px minmax(0, 1fr);
|
|
}
|
|
|
|
.cart-copia__media {
|
|
width: 76px;
|
|
height: 88px;
|
|
}
|
|
|
|
.cart-copia__footer-actions {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|