Files
santeh-ray/static/css/cart.css
Azimkin 1188cef7be
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
Make product cards fully clickable
2026-06-16 00:06:21 +02:00

455 lines
7.6 KiB
CSS

.cart-page {
margin-bottom: 88px;
padding-top: 34px;
}
.checkout-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(360px, 490px);
gap: 68px;
align-items: start;
}
.cart-section-title {
margin: 0 0 28px;
color: var(--dark);
font-family: var(--font-logo);
font-size: 38px;
font-weight: 400;
line-height: 1.05;
}
.cart-items {
display: flex;
flex-direction: column;
gap: 28px;
}
.cart-item {
position: relative;
display: grid;
grid-template-columns: 230px minmax(0, 1fr);
gap: 34px;
align-items: start;
cursor: pointer;
}
.cart-item__media {
position: relative;
z-index: 1;
display: block;
width: 100%;
aspect-ratio: 1.55 / 1;
overflow: hidden;
background: rgba(99, 118, 141, 0.12);
}
.cart-item__overlay {
position: absolute;
inset: 0;
z-index: 2;
display: block;
}
.cart-item__media img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.cart-item__placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: var(--mid);
}
.cart-item__info {
min-width: 0;
}
.cart-item__title {
position: relative;
z-index: 1;
display: inline-block;
color: var(--dark);
font-size: 25px;
line-height: 1.1;
}
.cart-item__color {
display: block;
color: #63768d;
font-size: 14px;
margin-top: 4px;
}
.cart-item__price {
margin-top: 24px;
color: var(--dark);
font-size: 18px;
}
.cart-item__controls {
position: relative;
z-index: 3;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin-top: 28px;
max-width: 180px;
}
.cart-quantity {
display: inline-flex;
align-items: center;
gap: 12px;
}
.cart-quantity form {
margin: 0;
}
.cart-quantity__button,
.cart-item__remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border: 0;
background: transparent;
color: var(--dark);
font-size: 18px;
line-height: 1;
cursor: pointer;
}
.cart-quantity__value {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--dark);
color: var(--white);
font-size: 16px;
}
.cart-item__remove {
width: auto;
min-width: 30px;
color: transparent;
position: relative;
}
.cart-item__remove::before {
content: "";
position: absolute;
left: 50%;
top: 8px;
transform: translateX(-50%);
width: 15px;
height: 18px;
border: 2px solid var(--dark);
border-top: 0;
border-radius: 0 0 3px 3px;
}
.cart-item__remove::after {
content: "";
position: absolute;
left: 50%;
top: 4px;
transform: translateX(-50%);
width: 19px;
height: 2px;
background: var(--dark);
box-shadow: 0 -3px 0 -1px var(--dark);
}
.cart-products-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin-top: 34px;
color: var(--mid);
font-size: 16px;
}
.checkout-summary p,
.checkout-services p,
.order-success__items p {
display: flex;
justify-content: space-between;
gap: 18px;
}
.cart-products-summary p {
display: block;
}
.cart-products-summary span,
.cart-products-summary strong {
display: block;
font-weight: 400;
}
.checkout-panel {
min-width: 0;
}
.checkout-form {
color: var(--dark);
}
.checkout-fieldset {
margin: 0 0 18px;
padding: 0;
border: 0;
}
.checkout-fieldset legend {
margin-bottom: 12px;
font-size: 19px;
text-transform: uppercase;
}
.checkout-options {
display: grid;
gap: 14px 34px;
}
.checkout-options--two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-options--three {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.checkout-radio,
.checkout-checkbox {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--dark);
font-size: 16px;
line-height: 1.25;
}
.checkout-radio input,
.checkout-checkbox input {
width: 13px;
height: 13px;
accent-color: var(--mid);
}
.checkout-grid {
display: grid;
grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
gap: 14px;
}
.checkout-grid--contacts {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-input {
display: block;
min-width: 0;
}
.checkout-input--wide {
grid-column: 1 / -1;
}
.checkout-input span {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.checkout-input input {
width: 100%;
height: 38px;
border: 1px solid rgba(85, 73, 113, 0.65);
background: #dedede;
padding: 0 13px;
color: var(--dark);
font: inherit;
}
.checkout-input input::placeholder {
color: rgba(85, 73, 113, 0.55);
}
.checkout-checkbox {
margin-top: 12px;
color: var(--mid);
}
.checkout-summary {
display: grid;
gap: 14px;
width: min(320px, 100%);
margin-top: 24px;
font-size: 16px;
}
.checkout-summary strong,
.checkout-services strong,
.order-success__items strong {
font-weight: 400;
}
.checkout-submit,
.order-success__link,
.cart-empty a {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 245px;
height: 38px;
margin-top: 18px;
border: 0;
background: var(--blue-gray);
color: var(--white);
font: inherit;
cursor: pointer;
}
.checkout-checkbox--terms {
display: flex;
margin-top: 12px;
}
.checkout-services {
display: grid;
gap: 12px;
width: min(260px, 100%);
margin-top: 18px;
font-size: 17px;
}
.checkout-services h3 {
font-family: var(--font-content);
font-size: 19px;
font-weight: 400;
}
.field-error,
.checkout-errors {
margin-top: 8px;
color: #a14b4b;
font-size: 15px;
line-height: 1.35;
}
.checkout-errors {
margin-bottom: 18px;
}
.cart-empty,
.order-success {
max-width: 760px;
margin: 0 auto;
padding: 54px 0 72px;
}
.cart-empty h1,
.order-success h1 {
font-size: 44px;
font-weight: 400;
line-height: 1.08;
}
.cart-empty p,
.order-success__lead {
margin-top: 14px;
color: var(--mid);
font-size: 19px;
line-height: 1.45;
}
.order-success__eyebrow {
margin-bottom: 10px;
color: var(--blue-gray);
font-size: 16px;
text-transform: uppercase;
}
.order-success__summary {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin-top: 28px;
padding: 24px;
background: rgba(99, 118, 141, 0.08);
}
.order-success__summary span {
display: block;
color: var(--mid);
}
.order-success__summary strong {
display: block;
margin-top: 6px;
font-size: 18px;
}
.order-success__items {
display: grid;
gap: 12px;
margin-top: 28px;
}
@media (max-width: 980px) {
.cart-page {
padding-left: 24px;
padding-right: 24px;
}
.checkout-layout {
grid-template-columns: 1fr;
gap: 44px;
}
}
@media (max-width: 680px) {
.cart-section-title,
.cart-empty h1,
.order-success h1 {
font-size: 34px;
}
.cart-item {
grid-template-columns: 1fr;
gap: 16px;
}
.cart-products-summary,
.checkout-options--two,
.checkout-options--three,
.checkout-grid,
.checkout-grid--contacts,
.order-success__summary {
grid-template-columns: 1fr;
}
.checkout-submit,
.order-success__link,
.cart-empty a {
width: 100%;
min-width: 0;
}
}