/* ==================================================
   Root variables
   ================================================== */
:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe2ea;
    --black: #000000;
    --primary: #2563eb;
    --primary-2: #40a9ff;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15,23,42,.08);
    --radius: 22px;
}

/* ==================================================
   Base elements
   ================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial,Helvetica,sans-serif;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1240px,calc(100% - 48px));
    margin: 0 auto;
}

.site-main {
    min-height: 50vh;
}

/* ==================================================
   Header and navigation
   ================================================== */
.topbar {
    background: #020817;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar strong,
.topbar a {
    color: var(--primary-2);
}

.navbar {
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar-inner {
    min-height: 96px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    color: #fff;
}

.brand img {
    height: 48px;
}

.brand span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .28em;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu li {
    margin: 0;
}

.main-nav .menu a,
.main-nav .menu a:visited {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: .2s;
}

.main-nav .menu a:hover,
.main-nav .menu li.current-menu-item>a,
.main-nav .menu li.current_page_item>a,
.main-nav .menu li.current-menu-ancestor>a,
.main-nav .menu li.current-page-ancestor>a {
    color: var(--primary-2);
}

/* ==================================================
   Home hero
   ================================================== */
.hero-home {
    position: relative;
    overflow: hidden;
    background: #000;
    height: min(750px,80vh);
}

.hero-home__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity .6s ease;
}

.hero-home__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-home__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}

.hero-home__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-home__subtitle {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 14px;
}

.hero-home__content h1 {
    font-size: clamp(40px,6vw,72px);
    line-height: 1.04;
    margin: 0 0 28px;
    max-width: 980px;
}

.hero-home__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    border: none;
    background: none;
    color: rgba(255,255,255,.65);
    font-size: 70px;
    cursor: pointer;
    padding: 0 14px;
}

.hero-home__arrow:hover {
    color: #fff;
}

.hero-home__arrow--prev {
    left: 20px;
}

.hero-home__arrow--next {
    right: 20px;
}

.hero-home__dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.hero-home__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.32);
    cursor: pointer;
    transition: .2s;
}

.hero-home__dot.is-active {
    width: 34px;
    background: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    padding: 15px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s;
}

.btn-home {
    background: #2563eb;
    color: #fff;
}

.btn-home:hover {
    background: #1d4ed8;
}

.btn-dark {
    background: #000;
    color: #fff;
}

.btn-dark:hover {
    background: #111827;
}


/* ==================================================
   Home sections
   ================================================== */
.metrics-strip {
    background: #000;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 44px 0;
}

.metrics-strip__grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
    text-align: center;
}

.metrics-strip strong {
    display: block;
    color: #3b82f6;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.metrics-strip span {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title span,
.categories-home__eyebrow {
    display: inline-block;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.section-title--light span {
    position: relative;
    padding: 0 70px;
    color: #fff;
}

.section-title--light span:before,
.section-title--light span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 48px;
    height: 2px;
    background: rgba(255,255,255,.32);
}

.section-title--light span:before {
    left: 0;
}

.section-title--light span:after {
    right: 0;
}

.featured-home {
    background: #40a9ff;
    padding: 84px 0;
}

.featured-home__grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 34px;
}

.featured-home__item {
    text-align: center;
    color: #fff;
}

.featured-home__imagebox {
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 22px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

.featured-home__imagebox:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.featured-home__imagebox img {
    max-height: 100%;
    width: auto;
    transition: transform .4s;
}

.featured-home__imagebox:hover img {
    transform: scale(1.08);
}

.featured-home__item h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.featured-home__item p {
    max-width: 220px;
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.featured-home__cta {
    text-align: center;
    margin-top: 42px;
}

.categories-home {
    background: #030712 url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    padding: 96px 0;
    color: #fff;
}

.categories-home__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.categories-home__head h2 {
    font-size: clamp(34px,4vw,52px);
    margin: 14px 0 18px;
}

.categories-home__line {
    width: 82px;
    height: 4px;
    background: #2563eb;
    margin: 0 auto;
}

.categories-home__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.category-glass {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    padding: 34px;
    border-radius: 20px;
}

.category-glass__icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(59,130,246,.2);
    margin-bottom: 24px;
}

.category-glass h3 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.category-glass p {
    font-size: 15px;
    color: rgba(219,234,254,.7);
    margin: 0 0 24px;
}

.category-glass a {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.about-home {
    background: #fff;
    padding: 96px 0;
}

.about-home__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-home__media img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

.about-home__copy h2 {
    font-size: clamp(34px,4vw,48px);
    line-height: 1.14;
    margin: 12px 0 22px;
}

.about-home__copy p {
    font-size: 18px;
    color: #4b5563;
    margin: 0 0 18px;
}

.about-home__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.about-home__badges div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    min-width: 220px;
}

.about-home__badges strong {
    display: block;
    color: #111827;
}

.about-home__badges span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.solutions-home {
    background: #000;
    padding: 96px 0;
    color: #fff;
}

.solutions-home__head {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    margin-bottom: 48px;
}

.solutions-home__head h2 {
    font-size: clamp(34px,4vw,52px);
    line-height: 1.08;
    margin: 12px 0 0;
    max-width: 760px;
}

.solutions-home__head p {
    max-width: 360px;
    color: #6b7280;
    font-size: 14px;
}

.solutions-home__grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}

.solution-card {
    position: relative;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.08);
}

.solution-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(0,0,0,.94),rgba(0,0,0,.25),transparent);
}

.solution-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
    z-index: 2;
}

.solution-card__content h3 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.solution-card__content p {
    font-size: 14px;
    color: rgba(219,234,254,.74);
    margin: 0 0 18px;
}

.solution-card__content a {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.contact-home {
    background: #fff;
    padding: 96px 0;
}

.contact-home__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-home h2 {
    font-size: clamp(34px,4vw,50px);
    margin: 12px 0 26px;
}

.contact-home__cards {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
    margin-bottom: 34px;
}

.contact-home__cards .full {
    grid-column: 1/-1;
}

.contact-home__cards div {
    padding: 0;
}

.contact-home__cards strong {
    display: block;
    font-size: 18px;
    color: #111827;
    margin-bottom: 6px;
}

.contact-home__cards span {
    display: block;
    color: #4b5563;
    font-size: 15px;
}

.contact-home__hours {
    background: #030712;
    color: #fff;
    border-radius: 22px;
    padding: 32px;
}

.contact-home__hours strong {
    display: block;
    color: #3b82f6;
    letter-spacing: .22em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.contact-home__hours div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 15px;
    color: #9ca3af;
    padding: 6px 0;
}

.contact-home__hours div span:last-child {
    color: #fff;
    font-weight: 700;
}

.contact-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
    padding: 34px;
}

.contact-form-card h3 {
    margin: 0 0 18px;
    font-size: 28px;
}

.contact-form-card__form .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 16px 18px;
    font: inherit;
    outline: none;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}

.news-strip {
    background: #eef2f7;
    padding: 96px 0;
}

.news-strip__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.news-teaser {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
}

.news-teaser__date {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.news-teaser h3 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 12px;
}

.news-teaser p {
    margin: 0;
    color: #64748b;
}

/* ==================================================
   Footer
   ================================================== */
.site-footer {
    background: #000;
    color: #9ca3af;
    padding: 84px 0 28px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 46px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.site-footer h4 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-footer .footer-menu,
.site-footer .menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-menu li,
.site-footer .menu li {
    margin: 0;
}

.site-footer a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-footer .footer-menu a,
.site-footer .footer-menu span,
.site-footer p,
.site-footer li {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

.site-footer .footer-menu a {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.site-footer .footer-menu a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    color: #9ca3af;
}

/* ==================================================
   Archive, cards and single pages
   ================================================== */
.archive-hero.compact {
    padding: 56px 0 26px;
    border-bottom: 1px solid var(--line);
}

.archive-hero h1 {
    font-size: clamp(34px,5vw,72px);
    line-height: 1.06;
    margin: 12px 0 14px;
}

.archive-hero p {
    max-width: 820px;
    color: var(--muted);
    margin: 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
	margin: 2rem 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pill {
    display: inline-flex;
    padding: 11px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
}

.pill.is-active,
.pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.product-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px;
}

.product-card,
.post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.product-thumb,
.post-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 26px;
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
}

.product-thumb img {
    max-height: 170px;
    width: auto;
}

.product-body,
.post-body {
    padding: 22px;
}

.product-body h3,
.post-body h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.product-body p,
.post-body p {
    margin: 0;
    color: var(--muted);
}

.product-code {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.pagination-wrap {
    text-align: center;
    margin-top: 30px;
    padding: 3rem 0;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    margin: 0 4px;
}

.pagination-wrap .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: start;
}

.single-visual {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.single-visual img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.single-copy h1 {
    font-size: clamp(36px,5vw,60px);
    line-height: 1.06;
    margin: 10px 0 14px;
}

.single-copy .lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 22px;
}

.entry-content {
    font-size: 17px;
}

.entry-content p {
    margin: 0 0 16px;
}

.single-post-wrap,
.single-product-wrap {
    padding: 56px 0;
}

.cookie-box {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: none;
}

.cookie-box.is-visible {
    display: block;
}

.cookie-box__inner {
    max-width: 420px;
    margin-left: auto;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 25px 50px rgba(0,0,0,.24);
    border-radius: 24px;
    padding: 24px;
    color: #d1d5db;
}

.cookie-box__inner p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
}

.cookie-box__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-box__actions a {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: underline;
}

.cookie-box__actions .btn {
    margin-left: auto;
}

/* ==================================================
   Responsive rules
   ================================================== */
@media (max-width: 1100px) {
    .featured-home__grid,
    .product-grid,
    .post-grid,
    .categories-home__grid,
    .solutions-home__grid,
    .news-strip__grid {
        grid-template-columns: repeat(2,1fr);
    }

    .about-home__grid,
    .contact-home__grid,
    .footer-grid,
    .single-grid {
        grid-template-columns: 1fr;
    }

    .solutions-home__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-home__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(1240px,calc(100% - 28px));
    }

    .topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
    }

    .navbar-inner {
        min-height: 82px;
    }

    .brand img {
        height: 38px;
    }

    .brand span {
        font-size: 11px;
        padding-bottom: 4px;
    }

    .main-nav .menu {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .main-nav .menu a {
        font-size: 11px;
    }

    .hero-home {
        height: 560px;
    }

    .hero-home__subtitle {
        font-size: 20px;
    }

    .hero-home__content h1 {
        font-size: 38px;
    }

    .hero-home__arrow {
        display: none;
    }

    .metrics-strip__grid,
    .featured-home__grid,
    .categories-home__grid,
    .solutions-home__grid,
    .news-strip__grid,
    .product-grid,
    .post-grid,
    .contact-form-card__form .split {
        grid-template-columns: 1fr;
    }

    .featured-home__item p {
        max-width: none;
    }

    .categories-home,
    .featured-home,
    .about-home,
    .solutions-home,
    .contact-home {
        padding: 72px 0;
    }

    .site-footer {
        padding-top: 64px;
    }

    .cookie-box {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-box__inner {
        max-width: none;
        margin-left: 0;
    }
}

/* ==================================================
   Custom product layout
   ================================================== */
.single-product-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 42px;
    align-items: start;
}

.single-product-gallery {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
}

.single-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.single-product-info h1 {
    margin-top: 10px;
    line-height: 1.08;
}

.single-product-info .lead {
    margin: 20px 0;
    max-width: 720px;
}

@media (max-width: 900px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce single product fix */
body.single-product .site-main .woocommerce,
body.single-product .site-main .product {
    max-width: none;
}

.metrel-product-page {
    padding: 56px 0 80px;
    background: var(--bg);
}

.metrel-product-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.metrel-product-gallery {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.metrel-product-main-image,
.metrel-product-gallery > img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
}

.metrel-product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.metrel-product-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
    padding: 6px;
}

.metrel-product-info h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.06;
    margin: 10px 0 14px;
}

.metrel-product-info .lead {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 22px;
}

.metrel-product-info .lead p {
    margin: 0 0 12px;
}

@media (max-width: 1100px) {
    .metrel-product-layout {
        grid-template-columns: 1fr;
    }
}

/* Strong WooCommerce product page layout override - fixes narrow/centered default product pages */
/* ==================================================
   WooCommerce single product override
   ================================================== */
body.single-product .site-main {
    background: var(--bg);
}

body.single-product .woocommerce,
body.single-product .site-main > .product,
body.single-product .woocommerce div.product {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.single-product .woocommerce div.product {
    display: grid !important;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr) !important;
    gap: 42px !important;
    align-items: start !important;
    padding: 56px 0 80px !important;
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product div.summary,
body.single-product .woocommerce-page div.product div.images,
body.single-product .woocommerce-page div.product div.summary {
    float: none !important;
    width: auto !important;
    clear: none !important;
    margin: 0 !important;
}

body.single-product .woocommerce div.product div.images {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px;
}

body.single-product .woocommerce div.product div.images img {
    width: 100% !important;
    max-height: 560px;
    object-fit: contain;
}

body.single-product .woocommerce div.product div.summary h1,
body.single-product .product_title.entry-title {
    font-size: clamp(36px, 5vw, 60px) !important;
    line-height: 1.06 !important;
    margin: 10px 0 14px !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs,
body.single-product .woocommerce div.product .related,
body.single-product .woocommerce div.product .upsells {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 860px !important;
    margin-left: calc(520px + 42px) !important;
}

body.single-product .woocommerce div.product .related ul.products,
body.single-product .woocommerce div.product .upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

body.single-product .woocommerce div.product .related ul.products li.product,
body.single-product .woocommerce div.product .upsells ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 1100px) {
    body.single-product .woocommerce div.product {
        grid-template-columns: 1fr !important;
    }

    body.single-product .woocommerce div.product .woocommerce-tabs,
    body.single-product .woocommerce div.product .related,
    body.single-product .woocommerce div.product .upsells {
        max-width: none !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 760px) {
    body.single-product .woocommerce,
    body.single-product .site-main > .product,
    body.single-product .woocommerce div.product {
        width: min(1240px, calc(100% - 28px)) !important;
    }

    body.single-product .woocommerce div.product .related ul.products,
    body.single-product .woocommerce div.product .upsells ul.products {
        grid-template-columns: 1fr !important;
    }
}

.main-foot {
    margin: 3rem auto;
    display: block;
}

article h1 {
    font-size: xxx-large;
}
