From 3df1fcaab20743810a5cc24a8e4e0302b3d155cb Mon Sep 17 00:00:00 2001 From: "ab.an.ev@yandex.ru" Date: Thu, 2 Apr 2026 12:24:12 +0300 Subject: [PATCH] =?UTF-8?q?Anton=20|=20=D0=BD=D0=B0=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=D0=BA=D0=B0=20cart=20checkout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/css/test1-checkout.css | 371 +++++++++++++++++- .../themes/twentytwentyfour/page-cart.php | 132 ++++++- .../themes/twentytwentyfour/page-checkout.php | 134 ++++++- 3 files changed, 608 insertions(+), 29 deletions(-) diff --git a/wp-content/themes/twentytwentyfour/assets/css/test1-checkout.css b/wp-content/themes/twentytwentyfour/assets/css/test1-checkout.css index b7bd6c7f..e4981223 100644 --- a/wp-content/themes/twentytwentyfour/assets/css/test1-checkout.css +++ b/wp-content/themes/twentytwentyfour/assets/css/test1-checkout.css @@ -1,15 +1,59 @@ :root { --checkout-max-width: 1180px; + --premium-navy: #081f4f; + --premium-blue: #0d4fd6; + --premium-cyan: #6ee0ff; + --premium-mist: rgba(255, 255, 255, 0.66); + --premium-line: rgba(13, 79, 214, 0.14); + --premium-shadow: 0 40px 120px rgba(8, 31, 79, 0.18); } body:is(.test1-checkout-page, .test1-cart-page) { min-width: 320px; } +:is(.test1-checkout-page, .test1-cart-page) { + position: relative; +} + +:is(.test1-checkout-page, .test1-cart-page)::after { + content: ""; + position: fixed; + inset: 0; + pointer-events: none; + background: + radial-gradient(circle at 18% 12%, rgba(110, 224, 255, 0.12), transparent 24%), + radial-gradient(circle at 84% 18%, rgba(13, 79, 214, 0.14), transparent 22%), + linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%); + opacity: 0.9; +} + +.premium-topline { + position: relative; + z-index: 3; + border-bottom: 1px solid rgba(255, 255, 255, 0.24); + background: linear-gradient(90deg, rgba(8, 31, 79, 0.96), rgba(10, 43, 109, 0.84)); + color: rgba(255, 255, 255, 0.92); +} + +.premium-topline-inner { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + min-height: 42px; + font-size: 12px; + letter-spacing: 0.12em; + text-transform: uppercase; + font-weight: 800; +} + :is(.test1-checkout-page, .test1-cart-page) .checkout-shell { + position: relative; display: grid; gap: 28px; align-items: start; + z-index: 1; } :is(.test1-checkout-page, .test1-cart-page) .checkout-intro { @@ -24,11 +68,248 @@ body:is(.test1-checkout-page, .test1-cart-page) { white-space: nowrap; } +.premium-stage { + position: relative; + padding: clamp(18px, 2vw, 28px); + border-radius: 36px; + background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)); + border: 1px solid rgba(255, 255, 255, 0.5); + box-shadow: var(--premium-shadow); + overflow: hidden; + isolation: isolate; +} + +.premium-stage::before { + content: ""; + position: absolute; + inset: 0; + border-radius: inherit; + background: + linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 24%), + linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 68%); + opacity: 0.8; + pointer-events: none; +} + +.premium-orb { + position: absolute; + border-radius: 50%; + filter: blur(6px); + pointer-events: none; + opacity: 0.9; +} + +.premium-orb-one { + top: -64px; + right: -40px; + width: 220px; + height: 220px; + background: radial-gradient(circle, rgba(110, 224, 255, 0.38), transparent 70%); +} + +.premium-orb-two { + bottom: -80px; + left: -30px; + width: 260px; + height: 260px; + background: radial-gradient(circle, rgba(13, 79, 214, 0.22), transparent 70%); +} + +.premium-kicker { + display: inline-flex; + align-items: center; + gap: 10px; + margin-top: 18px; + padding: 8px 14px; + border-radius: 999px; + background: rgba(8, 31, 79, 0.08); + color: var(--premium-navy); + font-size: 12px; + letter-spacing: 0.14em; + text-transform: uppercase; + font-weight: 800; +} + +.premium-kicker::before { + content: ""; + width: 8px; + height: 8px; + border-radius: 50%; + background: linear-gradient(135deg, var(--premium-cyan), var(--premium-blue)); + box-shadow: 0 0 0 6px rgba(110, 224, 255, 0.12); +} + +.premium-metrics { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 14px; + margin-top: 26px; +} + +.premium-metric { + padding: 18px 18px 16px; + border-radius: 22px; + background: rgba(255, 255, 255, 0.68); + border: 1px solid rgba(255, 255, 255, 0.72); + box-shadow: 0 18px 44px rgba(8, 31, 79, 0.1); +} + +.premium-metric strong { + display: block; + margin-bottom: 6px; + font-size: 22px; + line-height: 1; + color: var(--premium-navy); +} + +.premium-metric span { + display: block; + color: var(--muted); + line-height: 1.55; +} + +.premium-note-row { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 14px; + margin-top: 24px; +} + +.premium-note-card { + padding: 18px 18px 20px; + border-radius: 22px; + background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56)); + border: 1px solid rgba(255, 255, 255, 0.76); + box-shadow: 0 18px 50px rgba(8, 31, 79, 0.1); +} + +.premium-note-card span { + display: inline-block; + margin-bottom: 8px; + color: var(--premium-blue); + font-size: 12px; + letter-spacing: 0.12em; + text-transform: uppercase; + font-weight: 800; +} + +.premium-note-card strong { + display: block; + color: var(--premium-navy); + line-height: 1.5; +} + +.premium-stack { + display: grid; + gap: 20px; +} + +.premium-aside, +.premium-form-card { + position: relative; + overflow: hidden; +} + +.premium-aside::before, +.premium-form-card::before, +.premium-footer-card::before { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 34%); + pointer-events: none; +} + +.premium-aside { + padding: 26px; + border-radius: 30px; +} + +.premium-aside-head h2 { + margin: 16px 0 0; + font-size: clamp(28px, 3vw, 38px); + line-height: 1.02; + letter-spacing: -0.04em; + color: var(--premium-navy); +} + +.premium-timeline { + display: grid; + gap: 14px; + margin-top: 24px; +} + +.premium-timeline-item { + display: grid; + grid-template-columns: auto 1fr; + gap: 14px; + align-items: start; + padding: 16px 18px; + border-radius: 20px; + background: rgba(255, 255, 255, 0.68); + border: 1px solid rgba(13, 79, 214, 0.08); +} + +.premium-timeline-item strong { + min-width: 44px; + height: 44px; + display: grid; + place-items: center; + border-radius: 14px; + background: linear-gradient(145deg, rgba(8, 31, 79, 0.96), rgba(13, 79, 214, 0.92)); + color: #fff; + font-size: 13px; + letter-spacing: 0.08em; +} + +.premium-timeline-item span { + display: block; + padding-top: 6px; + color: var(--text); + line-height: 1.6; +} + +.premium-badge-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 14px; + margin-top: 18px; +} + +.premium-badge-card { + padding: 18px; + border-radius: 20px; + background: linear-gradient(160deg, rgba(8, 31, 79, 0.88), rgba(13, 79, 214, 0.78)); + color: #fff; + box-shadow: 0 24px 60px rgba(8, 31, 79, 0.18); +} + +.premium-badge-card span { + display: block; + margin-bottom: 8px; + font-size: 11px; + letter-spacing: 0.12em; + text-transform: uppercase; + color: rgba(255, 255, 255, 0.72); +} + +.premium-badge-card strong { + display: block; + line-height: 1.45; +} + +.premium-form-card { + border-radius: 30px; + box-shadow: 0 34px 100px rgba(8, 31, 79, 0.16); +} + :is(.test1-checkout-page, .test1-cart-page) .entry-content, :is(.test1-checkout-page, .test1-cart-page) .woocommerce, :is(.test1-checkout-page, .test1-cart-page) .wc-block-checkout, :is(.test1-checkout-page, .test1-cart-page) .wc-block-cart, :is(.test1-checkout-page, .test1-cart-page) .is-large { + position: relative; + z-index: 1; max-width: 100%; } @@ -55,11 +336,11 @@ body:is(.test1-checkout-page, .test1-cart-page) { :is(.test1-checkout-page, .test1-cart-page) .components-form-token-field__input, :is(.test1-checkout-page, .test1-cart-page) .components-combobox-control__input, :is(.test1-checkout-page, .test1-cart-page) .coupon #coupon_code { - min-height: 56px; + min-height: 58px; padding: 14px 16px; border-radius: 18px; - border: 1px solid rgba(18, 48, 89, 0.14); - background: rgba(255, 255, 255, 0.9); + border: 1px solid var(--premium-line); + background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); } @@ -84,10 +365,10 @@ body:is(.test1-checkout-page, .test1-cart-page) { :is(.test1-checkout-page, .test1-cart-page) .woocommerce-cart-form, :is(.test1-checkout-page, .test1-cart-page) .cart_totals, :is(.test1-checkout-page, .test1-cart-page) .cart-collaterals { - border-radius: 24px; - border: 1px solid rgba(255, 255, 255, 0.72); - background: rgba(255, 255, 255, 0.76); - box-shadow: 0 30px 80px rgba(10, 43, 109, 0.12); + border-radius: 26px; + border: 1px solid rgba(255, 255, 255, 0.78); + background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)); + box-shadow: 0 30px 90px rgba(8, 31, 79, 0.12); } :is(.test1-checkout-page, .test1-cart-page) .woocommerce-checkout #payment, @@ -125,8 +406,8 @@ body:is(.test1-checkout-page, .test1-cart-page) { border: 0; border-radius: 999px; color: #fff; - background: linear-gradient(135deg, var(--primary-strong), var(--primary)); - box-shadow: 0 16px 30px rgba(13, 79, 214, 0.25); + background: linear-gradient(135deg, var(--premium-navy), var(--premium-blue)); + box-shadow: 0 18px 34px rgba(13, 79, 214, 0.24); font-weight: 800; } @@ -235,18 +516,79 @@ body:is(.test1-checkout-page, .test1-cart-page) { padding: 22px; } +.premium-footer { + position: relative; + z-index: 1; + padding-top: 0; +} + +.premium-footer-grid { + grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(240px, 0.8fr)); + gap: 20px; +} + +.premium-footer-card { + position: relative; + overflow: hidden; + border-radius: 30px; + background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62)); + border: 1px solid rgba(255, 255, 255, 0.8); + box-shadow: 0 26px 70px rgba(8, 31, 79, 0.12); +} + +.premium-footer-brand { + min-height: 100%; +} + +.premium-footer-pills { + display: flex; + flex-wrap: wrap; + gap: 10px; + margin-top: 20px; +} + +.premium-footer-contacts { + margin: 0; + padding: 0; + list-style: none; +} + +.premium-footer-contacts li + li { + margin-top: 10px; +} + +.premium-footer-bottom { + padding-top: 24px; +} + @media (min-width: 992px) { :is(.test1-checkout-page, .test1-cart-page) .checkout-shell { - grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); + grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr); + } +} + +@media (max-width: 991px) { + .premium-metrics, + .premium-note-row, + .premium-badge-grid, + .premium-footer-grid { + grid-template-columns: 1fr; } } @media (max-width: 781px) { + .premium-topline-inner, :is(.test1-checkout-page, .test1-cart-page) .header-row, :is(.test1-checkout-page, .test1-cart-page) .header-actions { flex-wrap: wrap; } + .premium-topline-inner { + justify-content: center; + padding: 8px 0; + text-align: center; + } + :is(.test1-checkout-page, .test1-cart-page) .header-actions { width: 100%; justify-content: stretch; @@ -258,7 +600,13 @@ body:is(.test1-checkout-page, .test1-cart-page) { text-align: center; } + .premium-stage { + padding: 14px; + border-radius: 26px; + } + :is(.test1-checkout-page, .test1-cart-page) .checkout-card, + :is(.test1-checkout-page, .test1-cart-page) .premium-aside, :is(.test1-checkout-page, .test1-cart-page) .woocommerce-checkout #payment, :is(.test1-checkout-page, .test1-cart-page) .woocommerce-billing-fields, :is(.test1-checkout-page, .test1-cart-page) .woocommerce-additional-fields, @@ -267,7 +615,8 @@ body:is(.test1-checkout-page, .test1-cart-page) { :is(.test1-checkout-page, .test1-cart-page) .wc-block-checkout__sidebar, :is(.test1-checkout-page, .test1-cart-page) .woocommerce-cart-form, :is(.test1-checkout-page, .test1-cart-page) .cart_totals, - :is(.test1-checkout-page, .test1-cart-page) .cart-collaterals { + :is(.test1-checkout-page, .test1-cart-page) .cart-collaterals, + .premium-footer-card { padding: 18px; } diff --git a/wp-content/themes/twentytwentyfour/page-cart.php b/wp-content/themes/twentytwentyfour/page-cart.php index 2b4c0821..fdb1f83a 100644 --- a/wp-content/themes/twentytwentyfour/page-cart.php +++ b/wp-content/themes/twentytwentyfour/page-cart.php @@ -15,6 +15,12 @@ > +
+
+ + +
+