/*
  Theme Name: Antica Braceria
  Author: MSE Studio
  Author URI: https://sigmase.studio
  Version: 1.0.1
*/

/*
*=====================================================================================
*=====================================================================================
RESET
*=====================================================================================
*=====================================================================================
*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body,
html {
    line-height: 1.3;
    font-family: var(--ff-primary);
    /* zt */
    /* height: 100%;
  margin: 0;
  padding: 0; */
}

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

strong {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

input,
select,
textarea {
    font-family: inherit;
}
/*
*=====================================================================================
*=====================================================================================
UTILITIES
*=====================================================================================
*=====================================================================================
*/

:root {
    --header-height: 6.25rem;
    --breadcrumb-height: 3.5625rem;
    --total-header-height: calc(var(--header-height) + var(--breadcrumb-height));
    --container-inner-size: 1280px;
    --container-padding: 1rem;
    --container-total-size: calc(var(--container-inner-size) + (2 * var(--container-padding)));

    --container-columns: 12;
    --container-gap: 1rem;
    --container-column-width: 5.75rem;
    --container-x-padding: 2rem;

    --ff-primary: "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --ff-secondary: "Martian Mono";
    --c-white: #ffffff;
    --c-blue-raw: 21 33 74;
    --c-blue: rgba(var(--c-blue-raw) / 1);
    --c-gray: #2b2b2b;
    --c-light-gray: #f3f4f6;
    --c-background-grey: #f7f7f7;
    --c-background-blue: #07032b;
    --c-border-grey: #f2f2f2;
    --c-not-black: #1b1742;
    --c-light-purple: #efeef8;
    --c-almost-grey: rgba(27, 23, 66, 0.5);
}

@media only screen and (max-width: 768px) {
    :root {
        --header-height: 6.25rem;
        --breadcrumb-height: 0rem;
    }
    .container,
    .container.container-10,
    .container.container-8,
    .container.container-6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }
}

.invisible {
    position: fixed;
    opacity: 0;
    scale: 0;
    right: 0;
    bottom: 0;
}

.bg-light-gray {
    background-color: var(--c-light-gray);
}

.bg-white {
    background-color: var(--c-white);
}

body {
    color: var(--c-gray);
}

@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("assets/fonts/MartianMono-Light.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/MartianMono-Regular.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/MartianMono-Medium.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/MartianMono-SemiBold.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/HelveticaNeueCyr-Roman.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/HelveticaNeueCyr-Medium.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Helvetica Neue";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/HelveticaNeueCyr-Bold.ttf") format("truetype");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fs-48 {
    font-size: 3rem;
    line-height: 1.125;
}

.fs-50 {
    font-size: 3.125rem;
}

.fs-45 {
    font-size: 2.8125rem;
    line-height: 1.2;
}

.fs-40 {
    font-size: 2.5rem;
    line-height: 1.4;
}

.fs-35 {
    font-size: 2.1875rem;
    line-height: 1.1428571428571;
}

.fs-32 {
    font-size: 2rem;
    line-height: 1.4;
}

.fs-25 {
    font-size: 1.5625rem;
    line-height: 1.28;
}

.fs-24 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.fs-22 {
    font-size: 1.375rem;
}

.fs-20 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.fs-18 {
    font-size: 1.125rem;
    line-height: 1.4;
}

.fs-16 {
    font-size: 1rem;
    line-height: 1.8;
}

.fs-16-140 {
    font-size: 1rem;
    line-height: 1.4;
}
.fs-13 {
    font-size: 0.8125rem !important;
    line-height: 1.69;
}
.fs-14 {
    font-size: 0.875rem;
    line-height: 1.4;
}

.fs-12 {
    font-size: 0.75rem;
    line-height: 1.4;
}

@media only screen and (max-width: 768px) {
    .sm\:fs-48 {
        font-size: 3rem;
        line-height: 1.125;
    }

    .sm\:fs-50 {
        font-size: 3.125rem;
    }

    .sm\:fs-45 {
        font-size: 2.8125rem;
        line-height: 1.2;
    }

    .sm\:fs-40 {
        font-size: 2.5rem;
        line-height: 1.4;
    }

    .sm\:fs-35 {
        font-size: 2.1875rem;
        line-height: 1.1428571428571;
    }

    .sm\:fs-32 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .sm\:fs-25 {
        font-size: 1.5625rem;
        line-height: 1.28;
    }

    .sm\:fs-24 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .sm\:fs-22 {
        font-size: 1.375rem;
    }

    .sm\:fs-20 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .sm\:fs-18 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .sm\:fs-16 {
        font-size: 1rem;
        line-height: 1.8;
    }

    .sm\:fs-16-140 {
        font-size: 1rem;
        line-height: 1.4;
    }
    .sm\:fs-13 {
        font-size: 0.8125rem;
        line-height: 1.69;
    }
    .sm\:fs-14 {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .sm\:fs-12 {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

.container {
    max-width: calc((var(--container-x-padding) * 2) + ((var(--container-columns) - 1) * var(--container-gap)) + (var(--container-columns) * var(--container-column-width)));
    padding-inline: var(--container-x-padding);
    width: 100%;
    margin-inline: auto;
}
.container.container-10 {
    --container-columns: 10;
}
.container.container-8 {
    --container-columns: 8;
}
.container.container-6 {
    --container-columns: 6;
}
.container.container-4 {
    --container-columns: 4;
}

@media (min-width: 768px) {
    .only-mobile {
        display: none;
    }
}

/* 变量定义 */
:root {
    --red: #FF002E;
    --black: #080808;
    --gray: #1A1A1A;
}

/* 布局基础 */
.performance-site {
    background: var(--black);
    color: white;
    cursor: crosshair; /* 增加竞技感 */
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 25vw;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    font-style: italic;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-style: italic;
    z-index: 2;
    position: relative;
}

.text-red { color: var(--red); }

/* 按钮设计 */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* 倾斜切角 */
    transition: 0.3s;
}

.btn-main:hover {
    transform: skewX(-5deg) scale(1.05);
    filter: brightness(1.2);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    margin-top: 4rem;
}

.bento-item {
    background: var(--gray);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.item-1 { grid-column: span 8; height: 500px; }
.item-2 { grid-column: span 4; height: 500px; }
.item-3 { grid-column: span 12; height: 400px; }

.bento-img-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.bento-img-wrapper img {
    height: 80%;
    width: auto;
    object-fit: contain;
    transition: 0.8s;
}

.bento-item:hover img {
    transform: scale(1.1) rotate(-5deg);
}
/* 视频背景全屏 */
.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.6); }
.video-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--black) 10%, transparent 100%);
}

/* 核心：红光划过效果 */
.red-streak-bg {
    position: fixed;
    top: 0; left: -150%; /* 初始在左侧隐藏 */
    width: 300%; height: 100vh;
    background: linear-gradient(90deg, transparent, rgba(255,0,46,0.2), var(--red), rgba(255,0,46,0.2), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

/* 跑马灯样式补全 */
.marquee-wrapper {
    background: var(--red);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(-1deg) translateY(-20px); /* 增加动感斜度 */
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.product-performance-page { background: var(--black); padding-top: 100px; }
.product-grid { display: flex; min-height: 200vh; }

/* 左侧图片滚动 */
.product-visuals { width: 60%; padding: 2vw; }
.sticky-gallery { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.visual-frame { 
    background: var(--gray); 
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
}
.visual-frame img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.visual-frame:hover img { transform: scale(1.05); }

/* 右侧面板 */
.product-info-panel { width: 40%; padding: 5vw; position: sticky; top: 100px; height: fit-content; }
.italic-title { font-family: 'Bebas Neue'; font-size: 5rem; font-style: italic; line-height: 1; margin: 20px 0; }

/* 仪表盘样式 */
.performance-stats { margin: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.stat-item { margin-bottom: 15px; font-size: 0.8rem; letter-spacing: 2px; }
.stat-bar { height: 4px; background: rgba(255,255,255,0.1); margin-top: 8px; position: relative; }
.stat-bar .fill { 
    height: 100%; background: var(--red); 
    box-shadow: 0 0 15px var(--red);
    transition: 1.5s ease-out;
}

/* 适配 WooCommerce 原生按钮 */
.single_add_to_cart_button {
    width: 100% !important;
    background-color: var(--red) !important;
    color: white !important;
    padding: 20px !important;
    font-family: 'Bebas Neue' !important;
    font-size: 1.5rem !important;
    border-radius: 0 !important;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    transition: 0.3s !important;
}
.single_add_to_cart_button:hover { background-color: white !important; color: black !important; }

/* 商城整体背景 */
.shop-engine {
    background: #050505;
    padding: 120px 0;
    min-height: 100vh;
}

/* 电池滤镜栏设计 */
.filter-battery-wrapper {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.battery-body {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    width: 100%;
    max-width: 1000px;
}

/* 电池那个突起的小头 */
.battery-cap {
    position: absolute;
    right: -12px;
    width: 10px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 4px 4px 0;
}

.battery-cells {
    display: flex;
    width: 100%;
    gap: 10px;
}

.cell {
    flex: 1;
    height: 60px;
    background: rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid transparent;
}

.cell:hover, .cell.active {
    background: var(--red);
    box-shadow: 0 0 20px rgba(255, 0, 46, 0.4);
    border-color: var(--white);
}

.cell-label {
    font-family: 'Bebas Neue';
    font-size: 1rem;
    letter-spacing: 1px;
}

/* 状态电芯动画 */
.status-cell {
    background: transparent;
    border-left: 1px solid rgba(255,255,255,0.1);
    max-width: 150px;
}

.charging-indicator {
    width: 10px;
    height: 10px;
    background: #00ff88; /* 准备就绪用绿色 */
    border-radius: 50%;
    margin-bottom: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* 滤镜下拉菜单 */
.cell-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 200px;
    background: #111;
    border: 1px solid var(--red);
    display: none;
    z-index: 100;
}

.cell:hover .cell-dropdown {
    display: block;
}

.cell-dropdown a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cell-dropdown a:hover { background: var(--red); }

/* 商城卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card-premium {
    background: #111;
    position: relative;
    transition: 0.5s;
    border-bottom: 4px solid transparent;
}

.product-card-premium:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--red);
}

.img-reveal-wrapper {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #1a1a1a;
}

.img-reveal-wrapper img {
    width: 100%; height: 100%; object-fit: contain; padding: 30px;
    transition: 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.product-card-premium:hover img {
    transform: scale(1.1) rotate(3deg);
}

.card-info { padding: 25px; }
.product-item-title { font-family: 'Bebas Neue'; font-style: italic; font-size: 1.8rem; margin: 0 0 10px 0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-price { color: var(--red); font-weight: bold; font-size: 1.2rem; }
