/**
Theme Name: crystal
Template: cartify
**/

a{color:#0092c1;text-decoration:none;}
a:hover{color:#0092c190;}
.site-header-main {background:rgba(255,255,255,0.8);backdrop-filter:blur(7px);}
.site-header-main a{color:#333;}
header.site-header{position:sticky;top:0;z-index:100; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);}
/*首页banner*/
.ocbanner {position: relative;max-width: 1400px;width: 100%;border-radius: 24px;overflow: hidden;}
.hero-banner{display:flex;justify-content:center;padding:15px 10px;background:#f8f8f8;position:relative;}
.hero-banner h1{position:absolute;display:flex;width:100%;height:100%;justify-content:center;align-items:center;font-size:80px;opacity:0.5;text-align:center;color:#fff;}
@media(max-width:768px){.hero-banner h1{font-size:40px;height:auto;}}
.ocbanner-slides {position: relative; width: 100%;}
.ocb-item {position: absolute;top: 0;left: 0;width: 100%;opacity: 0;transition: opacity 0.5s ease;visibility: hidden;}
.ocb-item.active {opacity: 1;visibility: visible;position: relative; }
.ocb-img img {width: 100%; height: auto; display: block;}
.ocb-text {
    position: absolute;top: 50%;left: 30%;transform: translate(-50%, -50%);width: 80%;max-width: 600px;
    text-align: center;
    color: #222;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.hero-banner {
    position: relative; 
    width: 100%;
    overflow: hidden; 
    background: linear-gradient(135deg, #0092c1 0%, #005b7a 100%);
    padding:0 !important;
}

.hero-banner > h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 7vw; 
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px; 
    color: rgba(255,255,255,0.2); 
    opacity: 0.8;

    z-index: 1;
    pointer-events: none; 
    white-space: nowrap; 
}
.ocb-text {
    position: absolute;
    left: 28%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: left;
    max-width: 700px;
}
.ocb-text .title{text-shadow:1px 1px 5px #555;}
.ocb-text .title {
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif; 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: #ffffff; 
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    letter-spacing: -1px; 
}

.ocb-text .desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin-bottom: 30px;
}

.ocb-text .button {
    display: inline-block;
    background-color: #ffffff;
    color: #0092c1; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ocb-text .button:hover {
    background-color: #111;
    color: #fff;
    transform: translateY(-3px); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .ocb-text {
        left: 5%;
        max-width: 90%;
        text-align: center;
        top: auto;
        bottom: 40px; 
        transform: none;
    }
    .ocb-text .title {
        font-size: 2.2rem;
    }
    .ocb-text .desc {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    .ocb-text .button {
        padding: 12px 28px;
    }
}
.hero-banner .ocbanner {
    position: relative;
    z-index: 10; 
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto; 
}

.ocb-item.active .ocb-text {opacity: 1;transform: translate(-50%, -50%);}
.title {font-size: clamp(1.6rem, 5vw, 3rem);font-weight: 800;margin-bottom: 0.5rem;}
.desc {font-size: clamp(0.85rem, 3vw, 1.1rem);margin-bottom: 1.2rem;opacity: 0.9;}
.button {display: inline-block;background: white;color: #111;text-decoration: none;padding: 0.6rem 1.6rem;border-radius: 40px;font-weight: 600;font-size: 0.9rem;transition: 0.2s;}
.button:hover {background: #000;color:#fff;}
.ocb-dots-vertical {position: absolute;right: 20px;top: 50%;transform: translateY(-50%);display: flex;flex-direction: column;gap: 15px;z-index: 20;padding: 12px 8px;border-radius: 40px;}
.dot {width: 10px;height: 10px;background: rgba(0,0,0,0.6);border-radius: 50%;cursor: pointer;transition: 0.2s;}
.dot.active {background: #000;transform: scale(1.6);}
@media (max-width: 700px) {
    .ocb-dots-vertical { right: 12px; gap: 8px; padding: 8px 6px; }
    .dot { width: 8px; height: 8px; }
}
.site-header-mobile .spacer-mobile {height: 120px !important;}
.site-home section{padding:50px 10px;}
.site-title-logo { height: 50px !important; }

/* ===== 通用 ===== */
.container { max-width: 1400px; margin: 0 auto;}
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 26px; font-weight: 800; }
.see-all { font-size: 14px; color: #4ea1ff; }

/* ===== 1. 特色产品 ===== */
.feature-products { padding: 60px 0; background: #fff; }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.hp-card { border: 1px solid #eee; border-radius: 10px; padding: 8px; text-align: center; transition: .2s; }
.hp-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.hp-thumb { position: relative; display: block; }
.hp-thumb img { width: 100%; border-radius: 8px; }
.hp-badge {
  position: absolute; top: 8px; left: 8px; background: #ff4d6d; color: #fff;
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
}
.hp-title { font-size: 15px; margin: 12px 0 6px; min-height: 40px; }
.hp-price { color: #ff4d6d; font-weight: 700; margin-bottom: 10px; }
.hp-btn {
  display: inline-block; padding: 8px 18px; background: #111; color: #fff;
  border-radius: 30px; font-size: 13px;
}

/* ===== 2. 品牌列表 ===== */
.brand-list { padding: 60px 0; background: #fafafa; }
.brand-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.brand-item {
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  padding: 18px 12px; text-align: center; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 100px;
}
.brand-item img { max-height: 50px; }
.brand-name { font-weight: 700; font-size: 14px; }
.brand-count { font-size: 11px; color: #999; }

/* ===== 3. 最新产品 Carousel ===== */
.latest-products {
    padding: 60px 0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.latest-products .container {
    width: 100%;
    box-sizing: border-box;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-nav button {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 产品网格 */
.lp-carousel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 产品卡片 */
.lp-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    text-align: center;
}

/* 产品图片 */
.lp-thumb {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.lp-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sale 标签 */
.lp-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d6d;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 4px;
}

/* 产品标题 */
.lp-title {
    margin: 10px 0 6px;
    min-height: 40px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lp-title a {
    color: inherit;
    text-decoration: none;
}

/* 价格 */
.lp-price {
    margin-bottom: 10px;
    color: #ff4d6d;
    font-weight: 700;
}

/* 加购按钮 */
.lp-btn {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 16px;
    background: #111;
    color: #fff;
    border-radius: 30px;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

/* 平板 */
@media (max-width: 1024px) {
    .lp-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 手机 */
@media (max-width: 768px) {
    .latest-products {
        padding: 45px 0;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .lp-carousel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lp-card {
        padding: 10px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .latest-products {
        padding: 40px 0;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .lp-carousel {
        gap: 12px;
    }

    .lp-card {
        padding: 8px;
    }

    .lp-title {
        font-size: 13px;
        min-height: 36px;
    }

    .lp-btn {
        padding: 6px 13px;
        font-size: 11px;
    }
}

/* ===== 4. 简介 + FAQ ===== */
.brief-faq { padding: 70px 0; background: #f4f7fb; }
.bf-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
.bf-intro h2 { font-size: 26px; margin-bottom: 16px; }
.bf-intro p { color: #555; line-height: 1.75; margin-bottom: 14px; font-size: 15px; }
.bf-link { color: #4ea1ff; font-weight: 600; }
.bf-faq h2 { font-size: 26px; margin-bottom: 16px; }
.bf-faq details {
  background: #fff; border: 1px solid #e5e9f0; border-radius: 8px;
  padding: 14px 18px; margin-bottom: 10px;
}
.bf-faq summary {
  cursor: pointer; font-weight: 600; list-style: none; position: relative;
  padding-right: 24px;
}
.bf-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0; font-size: 18px; color: #4ea1ff;
}
.bf-faq details[open] summary::after { content: "−"; }
.bf-faq details p { margin-top: 10px; color: #666; font-size: 14px; line-height: 1.65; }

/* ===== 5. 最新文章 ===== */
.latest-news { padding: 60px 0; background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.news-thumb img { width: 100%; height: 200px; object-fit: cover; }
.news-placeholder { height: 200px; background: #eee; }
.news-meta {
  display: flex; gap: 12px; font-size: 12px; color: #999;
  padding: 12px 16px 0;
}
.news-cat { color: #4ea1ff; font-weight: 600; }
.news-title { font-size: 17px; padding: 6px 16px 0; }
.news-excerpt { font-size: 14px; color: #666; padding: 6px 16px 0; line-height: 1.6; }
.news-more { display: inline-block; padding: 12px 16px 18px; color: #4ea1ff; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .bf-wrap { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .feature-grid{grid-template-columns: repeat(2,minmax(0, 1fr));}
  .lp-card { flex: 0 0 75%; }
  .section-head h2 { font-size: 20px; }
}

.agni-shop-dock{max-width:none !important; border-radius:15px 15px 0 0;}
.site-footer-main, .site-footer-widgets {background-color:none !important;}

/* ===== 卡片内加购表单整体布局 ===== */

/* 表单本身保持块级，不要 flex */
.hp-card .hp-cart-wrap form.cart {
    display: block;
    margin: 0;
}

/* ===== 1. 属性选择单独一行 ===== */

.hp-card .variations_form .variations {
    width: 100%;
    display: block;
}

.hp-card .variations_form .variations tbody,
.hp-card .variations_form .variations tr,
.hp-card .variations_form .variations th,
.hp-card .variations_form .variations td {
    display: block;
    width: 100%;
    text-align: left;
}

.hp-card .variations_form .variations select {
    width: 100%;
    max-width: 100%;
}

/* ===== 2. 数量 + 加购按钮一行，左右各 50% ===== */

.hp-card .variations_form .woocommerce-variation-add-to-cart,
.hp-card .hp-cart-wrap form.cart:not(.variations_form) {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 6%;
    width: 100%;
}

.hp-card .variations_form .woocommerce-variation-add-to-cart .quantity,
.hp-card .hp-cart-wrap form.cart .quantity {
    flex: 0 0 42%;
    max-width: 42%;
    margin: 0;
}

.hp-card .variations_form .woocommerce-variation-add-to-cart .quantity .agni-product-qty-container,
.hp-card .hp-cart-wrap form.cart .quantity .agni-product-qty-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.hp-card .variations_form .woocommerce-variation-add-to-cart .quantity input.qty,
.hp-card .hp-cart-wrap form.cart .quantity input.qty {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.hp-card .variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.hp-card .hp-cart-wrap form.cart button.button,
.hp-card .hp-cart-wrap form.cart .single_add_to_cart_button {
    flex: 0 0 42%;
    max-width: 42%;
    width: 42%;
    margin: 0;
    text-align: center;
}

/* ===== 3. 隐藏原生 select（保留它参与提交） ===== */

.hp-card .variations_form .variations select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* ===== 4. 口味选择按钮 + 弹窗 ===== */

.hp-flavor-picker {
    margin: 20px 0;
    position: relative;
    display:flex;
    justify-content: center;
}

.hp-flavor-trigger {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.hp-flavor-trigger .hp-flavor-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-flavor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hp-flavor-modal[hidden] {
    display: none;
}

.hp-flavor-modal-inner {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding:5px;
}

.hp-flavor-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.hp-flavor-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.hp-flavor-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
}

.hp-flavor-list li {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    border-bottom: 1px solid #f5f5f5;
}

.hp-flavor-list li:hover,
.hp-flavor-list li.is-selected {
    background: #f0f7ff;
}

@media (max-width: 480px) {
    .hp-card .variations_form .woocommerce-variation-add-to-cart,
    .hp-card .hp-cart-wrap form.cart:not(.variations_form) {
        flex-direction: column;
    }
    .hp-card .variations_form .woocommerce-variation-add-to-cart .quantity,
    .hp-card .variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
    .hp-card .hp-cart-wrap form.cart .quantity,
    .hp-card .hp-cart-wrap form.cart button.button {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    .hp-flavor-list li {
        padding: 14px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hp-flavor-modal {
        align-items: flex-end;
        padding: 0;
    }
    .hp-flavor-modal-inner {
        max-width: 100%;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
    }
}
/* 隐藏原生 select（保留在 DOM 里，variations.js 要用） */
.hp-card .variations .value select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
   #overflow: hidden;
}

/* 隐藏原生 label（"Příchuť"） */
.hp-card table.variations th.label {
    #display: none;
}

/* 隐藏原生 Clear（因为你的 UI 里没有清除入口，就藏起来）
   或者保留它，加个样式好看点 */
.hp-card .reset_variations {
    #display: none;
}
.hp-card .hp-attrs{font-size: 11.5px;display: flex; flex-wrap: wrap; font-style: italic;justify-content: center;align-items: center;}
.hp-card .hp-attrs .hp-attr{
    padding:3px;
    margin-right:3px;
    margin-bottom:3px; 
    border:1px solid #e8e8e8;
    border-radius:5px;
    color:#555;
    background:#f8f9fa;
    cursor: pointer;
}
.hp-card .hp-attrs .hp-attr:hover{color:#111;}
.hp-price del bdi {color:gray !important;}
.hp-price ins bdi {font-weight:bold;}
.quantity > span:first-child{text-align: left;}


.hp-flavor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding:5px;
}

.hp-flavor-list li {
  cursor: pointer;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.hp-flavor-list li:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
}

.hp-flavor-list li.is-selected {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,.2);
}

.hp-flavor-list li img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  display: block;
}

.hp-flavor-list li span {
  font-size: 13px;
  color: #333;
}

@media (max-width: 768px) {
    html, body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

.site-home .products {
    --cartify_products_gap: 0;}


.hp-flavor-list li.is-out-of-stock {
    opacity: .45;
    cursor: not-allowed;
}
.hp-flavor-list li.is-out-of-stock span:first-of-type {
    text-decoration: line-through;
}
.hp-flavor-list li.is-out-of-stock .hp-flavor-oos {
    margin-left: 6px;
    font-size: 11px;
    color: #c00;
    text-decoration: none;
}
.hp-flavor-list li.is-low-stock .hp-flavor-low {
    margin-left: 6px;
    font-size: 11px;
    color: #b26a00;
}
.variations_form .woocommerce-variation, table.variations .label{display:none !important;}
table.variations .value{padding-bottom:10px;text-align: center !important;}
/* 默认隐藏时不占位 */
.variations .reset_variations[style*="visibility: hidden"],
.variations .reset_variations[style*="visibility:hidden"] {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

/* 可见时恢复正常 */
.variations .reset_variations[style*="visibility: visible"],
.variations .reset_variations[style*="visibility:visible"] {
    height: auto;
    line-height: normal;
    font-size: inherit;
    margin-top: 6px;
}

.after_single_product_summary .related-products-2 {
    --agni_product_layout_related_columns_count_mobile: 2 !important;
    --agni_product_layout_related_columns_count_tablet: 3 !important;
    --agni_product_layout_related_columns_count_laptop: 4 !important;
    --agni_product_layout_related_columns_count_desktop: 4 !important;
}

/* 只隐藏 Related 区块里的 Buy now */
.ws-single-related .single_buynow_button {
    display: none !important;
}

#.site-header-mobile-container{background:#f8f8f8;position:sticky;top:0;z-index: 6;}

.site-header-menu-primary .sub-menu{box-shadow:1px 1px 10px #99999990;}


.select-paczkomat-button{background:orange;transition:all 3s ease; -webkit-transition:all 3s ease;-moz-transition:all 3s ease;}