.og-carousel-container { position: relative; width: 100%; overflow: visible !important; display: block; z-index: 10; }

.og-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea; 
    padding-bottom: 12px;
    margin-bottom: 5px; 
}
.og-related-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}
.og-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.og-carousel-dots .og-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #da2128;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.og-carousel-dots .og-dot.active::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #da2128;
    border-radius: 50%;
    display: block;
}

.og-related-wrapper { display: flex; gap: 25px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; padding-top: 20px !important; padding-bottom: 15px !important; padding-right: 25px !important; }
.og-related-wrapper::-webkit-scrollbar { display: none; }
.og-related-wrapper * { box-sizing: border-box; }

.og-related-wrapper .og-custom-wc-card { flex: 0 0 calc((100% - 75px) / 4); max-width: calc((100% - 75px) / 4); min-width: 0; scroll-snap-align: start; background: #fff; position: relative; transition: all 0.3s ease; display: flex; flex-direction: column; border: 1px solid transparent; overflow: visible !important; }
.og-related-wrapper .og-custom-wc-card:hover { box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); z-index: 10; }

.og-related-wrapper .og-custom-wc-media { position: relative; overflow: hidden; background: #ffffff; width: 100%; height: 246.66px; display: block; border: none !important; }
.og-related-wrapper .og-custom-wc-img-link { display: block !important; width: 100% !important; height: 100% !important; text-decoration: none !important; border: none !important; box-shadow: none !important; position: relative; z-index: 0; }
.og-related-wrapper .og-custom-wc-media::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #0000001a; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; }
.og-related-wrapper .og-custom-wc-card:hover .og-custom-wc-media::after { opacity: 1; }
.og-related-wrapper .og-custom-wc-img-link img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; border: none !important; transition: opacity 0.4s ease; }
.og-related-wrapper .og-custom-wc-hover-img { position: absolute; top: 0; left: 0; opacity: 0; z-index: 0; }
.og-related-wrapper .og-custom-wc-card:hover .og-custom-wc-hover-img { opacity: 1; }

.og-related-wrapper .og-custom-wc-quick-view { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(218, 33, 40, 0.9); color: #fff; text-align: center; padding: 12px 0; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transform: translateY(102%); opacity: 0; transition: all 0.3s ease; z-index: 2; cursor: pointer; border: none !important;}
.og-related-wrapper .og-custom-wc-card:hover .og-custom-wc-quick-view { transform: translateY(0); opacity: 1; }
.og-related-wrapper .og-custom-wc-quick-view:hover { background: rgba(218, 33, 40, 1); }

.og-related-wrapper .og-custom-wc-top-action { position: absolute !important; top: 15px !important; right: 15px !important; width: 35px !important; height: 35px !important; background: #222 !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; z-index: 99 !important; color: #999 !important; text-decoration: none !important; transition: all 0.3s ease !important; opacity: 0; visibility: hidden; border: none !important; }
.og-related-wrapper .og-custom-wc-card:hover .og-custom-wc-top-action { opacity: 1 !important; visibility: visible !important; }
.og-related-wrapper .og-custom-wc-top-action:hover { color: #fff !important; }

.og-related-wrapper .og-custom-wc-tooltip { position: relative; }
.og-related-wrapper .og-custom-wc-tooltip::before { content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 6px 10px; font-size: 12px; border-radius: 3px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 9999 !important; }
.og-related-wrapper .og-custom-wc-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 5px; border-style: solid; border-color: #222 transparent transparent transparent; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 9999 !important; }
.og-related-wrapper .og-custom-wc-tooltip:hover::before, .og-related-wrapper .og-custom-wc-tooltip:hover::after { opacity: 1; visibility: visible; bottom: calc(100% + 5px); }
.og-related-wrapper .og-custom-wc-tooltip:hover::after { bottom: calc(100% - 5px); }

.og-related-wrapper .og-custom-wc-info { padding: 15px 15px 5px 15px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.og-related-wrapper .og-custom-wc-cat-wishlist { display: flex; justify-content: space-between; align-items: center; width: 100%; overflow: visible !important; }

.og-related-wrapper .og-custom-wc-category { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; padding-right: 5px; }
.og-related-wrapper .og-custom-wc-category a { color: #888; font-size: 11px; text-transform: uppercase; text-decoration: none; transition: color 0.3s; }
.og-related-wrapper .og-custom-wc-category a:hover { color: #da2128; }

.og-related-wrapper .og-custom-wc-title { margin: 4px 0 0 0 !important; padding: 0 10px 0 0 !important; box-sizing: border-box !important; width: 100%; display: block !important; border: none !important; }
.og-related-wrapper .og-custom-wc-title a { display: block !important; width: 100% !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; color: #0b0b0b; font-size: 14.72px; font-family: 'Poppins', sans-serif !important; font-weight: 500; text-decoration: none; transition: color 0.3s; line-height: 1.4 !important; padding-bottom: 2px !important; }
.og-related-wrapper .og-custom-wc-title a:hover { color: #da2128; }

.og-related-wrapper .og-custom-wc-rating { font-size: 11px; display: inline-flex; gap: 1px; width: fit-content; margin-top: 4px; position: relative; }
.og-related-wrapper .og-custom-wc-rating i.active-star { color: #888 !important; }
.og-related-wrapper .og-custom-wc-rating i.empty-star { color: #00000029 !important; }

.og-related-wrapper .og-custom-wc-price { font-size: 18px; font-family: 'Open Sans', sans-serif !important; font-weight: 600; color: #444; margin-top: 6px; line-height: 1; padding-bottom: 10px; }
.og-related-wrapper .og-custom-wc-price ins { text-decoration: none; }

@media (max-width: 1024px) {
    .og-related-wrapper .og-custom-wc-card { flex: 0 0 calc((100% - 50px) / 3); max-width: calc((100% - 50px) / 3); }
}

@media (max-width: 767px) {
    .og-related-wrapper { padding: 0px !important; gap: 25px; }
    .og-related-wrapper .og-custom-wc-card { flex: 0 0 calc((100% - 25px) / 2); max-width: calc((100% - 25px) / 2); height: 280px !important; }
    .og-related-wrapper .og-custom-wc-media { height: 122px !important; }
    .og-related-wrapper .og-custom-wc-title { padding: 0 5px 0 0 !important; }
    .og-related-wrapper .og-custom-wc-title a { font-size: 13px; }
    .og-related-wrapper .og-custom-wc-price { font-size: 15px; margin-top: 4px; }
    .og-related-wrapper .og-custom-wc-info { padding: 15px 15px 5px 15px; }
    .og-related-header h3 { font-size: 14px; } 
}

/* ========================================================== */
/* 高级版 Quick View 弹窗样式 */
/* ========================================================== */
.og-qv-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 999999; display: none; align-items: center; justify-content: center; }
.og-qv-modal-overlay.active { display: flex; }
.og-qv-modal-content { background: #fff; width: 1000px; max-width: 95%; height: 90vh; border-radius: 4px; position: relative; display: flex; box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: og-qv-fade 0.3s ease; overflow: hidden; }
@keyframes og-qv-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.og-qv-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; z-index: 10; color: #999; line-height: 1; transition: 0.3s; }
.og-qv-close-btn:hover { color: #da2128; background-color: transparent;}
.og-qv-left { width: 50%; height: 100%; padding: 40px; border-right: 1px solid #f0f0f0; display: flex; flex-direction: column; overflow: hidden; }
.og-qv-left-main-img { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 20px; }
.og-qv-left-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.og-qv-gallery-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.og-qv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: #fff; border: 1px solid #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; font-size: 12px; color: #555; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.2s; padding: 0; }
.og-qv-arrow:hover { background: #da2128; color: #fff; border-color: #da2128; }
.og-qv-arrow.prev { left: 0px; }
.og-qv-arrow.next { right: 0px; }
.og-qv-left-gallery { display: flex; gap: 10px; height: 80px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; width: 100%; padding: 0 15px; }
.og-qv-left-gallery::-webkit-scrollbar { display: none; }
.og-qv-left-gallery img { flex: 0 0 80px; width: 80px; height: 80px; object-fit: contain; border: 1px solid #ddd; cursor: pointer; opacity: 0.6; transition: 0.3s; background: #fff;}
.og-qv-left-gallery img:hover, .og-qv-left-gallery img.active { opacity: 1; border-color: #da2128; }
.og-qv-right { width: 50%; height: 100%; padding: 40px; overflow-y: auto; text-align: left;}
.og-qv-right::-webkit-scrollbar { width: 6px; }
.og-qv-right::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.og-qv-right::-webkit-scrollbar-track { background: #f9f9f9; }
.og-qv-right-title { font-size: 26px; font-weight: 700; color:#222; margin: 0 0 10px 0; line-height: 1.2; font-family: 'Poppins', sans-serif;}
.og-qv-right-rating { margin-bottom: 15px; font-size: 14px;}

.og-qv-right-price { margin-bottom: 20px; }
.og-qv-right-price, .og-qv-right-price span, .og-qv-right-price ins, .og-qv-right-price bdi { 
    font-size: 24px !important; 
    font-weight: 600 !important; 
    color: #333 !important;
    font-family: 'Open Sans', sans-serif; 
    text-decoration: none !important; 
}
.og-qv-right-price del, .og-qv-right-price del span, .og-qv-right-price del bdi { 
    color: #999 !important; 
    font-size: 18px !important; 
    font-weight: 400 !important; 
    text-decoration: line-through !important; 
    margin-right: 8px; 
}

.og-qv-right-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 25px; }
.og-qv-right-meta { font-size: 13px; color: #888; margin-bottom: 25px; line-height: 2; border-top: 1px solid #eee; padding-top: 20px; }
.og-qv-right-meta strong { color: #333; margin-right: 5px; }
.og-qv-right-meta a { color: #666 !important; text-decoration: none; transition: color 0.3s; }
.og-qv-right-meta a:hover { color: #da2128 !important; }

.og-qv-modal-content .variations select { display: none !important; }
.og-qv-modal-content table.variations { width: 100% !important; border-top: none !important; border-left: none !important; border-right: none !important; border-bottom: 1px solid #eee !important; padding-bottom: 25px !important; margin-bottom: 20px !important; background: transparent !important; display: block !important; }
.og-qv-modal-content table.variations tbody { display: block !important; width: 100% !important; }

.og-qv-modal-content table.variations tr { display: flex !important; width: 100% !important; align-items: flex-start !important; margin-bottom: 15px !important; }
.og-qv-modal-content table.variations tr:last-child { margin-bottom: 0 !important; }

.og-qv-modal-content table.variations th, .og-qv-modal-content table.variations th.label { width: 80px !important; text-align: left !important; vertical-align: top !important; padding: 8px 10px 0 0 !important; background: transparent !important; background-color: transparent !important; border: none !important; height: auto !important; min-height: 0 !important; line-height: 1 !important; flex-shrink: 0 !important; }
.og-qv-modal-content table.variations td, .og-qv-modal-content table.variations td.value { vertical-align: top !important; padding: 0 !important; background: transparent !important; background-color: transparent !important; border: none !important; flex-grow: 1 !important; }
.og-qv-modal-content table.variations label { font-weight: 700 !important; color: #111 !important; text-transform: uppercase !important; font-size: 14px !important; margin: 0 !important; line-height: 1.2 !important; }
.og-custom-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 0 !important; }
.og-custom-swatches .og-swatch { padding: 6px 15px; border: 1px solid #ddd; background: #fff; color: #555; font-size: 13px; cursor: pointer; transition: all 0.2s ease; line-height: normal; }
.og-custom-swatches .og-swatch:hover, .og-custom-swatches .og-swatch.active { background: #222; color: #fff; border-color: #222; }

/* 隐藏 WooCommerce 默认的全局 Clear 按钮 */
.og-qv-modal-content .variations .reset_variations, .woocommerce .og-qv-modal-content table.variations a.reset_variations { display: none !important; }

/* 独立的 Clear 按钮样式 */
.og-custom-swatches .og-swatch-clear { 
    display: none; 
    align-items: center;
    justify-content: center;
    background: #f5f5f5 !important; 
    background-color: #f5f5f5 !important; 
    border: none !important; 
    padding: 6px 15px !important; 
    margin: 0 !important; 
    color: #333 !important; 
    font-size: 11px !important; 
    text-transform: uppercase !important; 
    text-decoration: none !important; 
    box-shadow: none !important; 
    min-width: 0 !important; 
    min-height: 0 !important; 
    height: auto !important; 
    line-height: 1.2 !important; 
    border-radius: 2px !important; 
    letter-spacing: 0.5px !important; 
    transition: all 0.3s ease !important; 
    cursor: pointer !important;
}
.og-custom-swatches .og-swatch-clear:hover { 
    color: #fff !important; 
    background: #222 !important; 
    background-color: #222 !important; 
}

.og-qv-modal-content .woocommerce-variation-availability { margin-bottom: 15px !important; }
.og-qv-modal-content p.stock { width: 155px !important; display: inline-flex !important; align-items: center !important; background: #f2f2f2 !important; color: #555 !important; font-size: 12px !important; font-weight: 600 !important; border-radius: 20px !important; overflow: hidden !important; padding: 0 18px 0 0 !important; margin: 0 !important; text-transform: uppercase !important; height: 32px !important; line-height: 32px !important; border: none !important; }
.og-qv-modal-content p.stock.in-stock::before { content: '' !important; display: inline-block !important; width: 23.250px !important; height: 100% !important; background: #2ecc71 !important; margin-right: 20px !important; }
.og-qv-modal-content p.stock.out-of-stock::before { content: '' !important; display: inline-block !important; width: 36px !important; height: 100% !important; background: #e74c3c !important; margin-right: 15px !important; }
.og-qv-modal-content p.stock i, .og-qv-modal-content p.stock::after { display: none !important; }

.og-qv-right-add-to-cart { display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; }
.og-qv-modal-content form.cart { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: none !important; }
.og-qv-modal-content .woocommerce-variation-add-to-cart, .og-qv-modal-content form.cart:not(.variations_form) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 15px !important; align-items: center !important; margin-top: 15px !important; margin-bottom: 15px !important; padding-bottom: 0 !important; width: 100% !important; }
.og-qv-modal-content form.cart::before, .og-qv-modal-content form.cart::after, .og-qv-modal-content .woocommerce-variation-add-to-cart::before, .og-qv-modal-content .woocommerce-variation-add-to-cart::after { display: none !important; }
.og-qv-modal-content .quantity { float: none !important; margin: 0 !important; padding: 0 !important; border: none !important; display: block !important; flex-shrink: 0 !important; }
.og-qv-modal-content .quantity input[type="number"]::-webkit-outer-spin-button, .og-qv-modal-content .quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.og-qv-modal-content .quantity input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.og-qv-modal-content .quantity > .minus, .og-qv-modal-content .quantity > .plus, .og-qv-modal-content .quantity > input[type="button"] { display: none !important; }
.og-custom-qty-wrapper { display: inline-flex !important; align-items: center !important; border: 1px solid #ddd !important; border-radius: 2px !important; height: 42px !important; background: #fff !important; box-sizing: border-box !important; overflow: hidden !important; }
.og-custom-qty-wrapper .og-qty-btn { background: transparent !important; border: none !important; color: #333 !important; width: 35px !important; height: 100% !important; font-size: 18px !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; outline: none !important; padding: 0 !important; transition: background 0.2s !important; }
.og-custom-qty-wrapper .og-qty-btn:hover { background: #f5f5f5 !important; color: #da2128 !important; }
.og-custom-qty-wrapper input.qty { width: 45px !important; height: 100% !important; border: none !important; border-left: 1px solid #ddd !important; border-right: 1px solid #ddd !important; text-align: center !important; padding: 0 !important; margin: 0 !important; background: transparent !important; font-weight: 700 !important; font-size: 15px !important; color: #222 !important; box-shadow: none !important; border-radius: 0 !important; }

.og-qv-modal-content form.cart .button, .og-qv-modal-content form.cart button.single_add_to_cart_button, .og-qv-modal-content .woocommerce-variation-add-to-cart .single_add_to_cart_button { background: #222 !important; background-color: #222 !important; color: #fff !important; border: none !important; padding: 0 25px 0 45px !important; cursor: pointer !important; height: 42px !important; font-weight: 700 !important; font-size: 13px !important; letter-spacing: 0.5px !important; text-transform: uppercase !important; border-radius: 2px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; flex-grow: 1 !important; max-width: fit-content !important; margin: 0 !important; box-shadow: none !important; transition: all 0.3s ease !important; position: relative !important; }
.og-qv-modal-content form.cart .button::before, .og-qv-modal-content form.cart button.single_add_to_cart_button::before, .og-qv-modal-content .woocommerce-variation-add-to-cart .single_add_to_cart_button::before { content: ''; display: inline-block !important; position: absolute; left: 18px; width: 16px !important; height: 16px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'/%3E%3C/svg%3E") !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
.og-qv-modal-content form.cart .button:hover, .og-qv-modal-content form.cart button.single_add_to_cart_button:hover, .og-qv-modal-content .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover { background: #da2128 !important; background-color: #da2128 !important; }

.og-qv-whatsapp-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; background: #2ecc71 !important; background-color: #2ecc71 !important; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase !important; text-decoration: none !important; height: 42px !important; padding: 0 25px !important; border-radius: 2px !important; letter-spacing: 0.5px !important; width: 100% !important; max-width: 325px !important; transition: all 0.3s ease !important; box-shadow: none !important; }
.og-qv-whatsapp-btn:hover { background: #27ae60 !important; background-color: #27ae60 !important; color: #fff !important; }
.og-qv-whatsapp-btn svg { margin-right: 8px !important; }
.og-wa-no-price { max-width: fit-content !important; text-transform: none !important; }
.og-qv-wa-only-wrap { margin: 20px 0 25px 0 !important; }

.og-qv-social-actions { display: flex !important; align-items: center !important; gap: 10px !important; padding-top: 20px !important; margin-top: 20px !important; border-top: 1px solid #eee !important; width: 100% !important; }
.og-qv-social-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; border: 2px solid #eaeaea !important; border-radius: 50% !important; color: #333 !important; text-decoration: none !important; transition: all 0.3s ease !important; background: #fff !important; }
.og-qv-social-btn svg { width: 14px !important; height: 14px !important; fill: currentColor !important; transition: fill 0.3s ease !important; }
.og-qv-social-btn:hover { border-color: #333 !important; color: #111 !important; }

@media (max-width: 767px) {
    .og-qv-modal-content { flex-direction: column; overflow-y: auto; height: 90vh; }
    .og-qv-left, .og-qv-right { width: 100%; height: auto; border-right: none; overflow: visible; }
    .og-qv-left { padding: 20px; border-bottom: 1px solid #eee; }
    .og-qv-right { padding: 20px; overflow-y: visible; }
}

/* 强制隐藏 WooCommerce 原生插入到下方的变体价格 */
.og-qv-modal-content .woocommerce-variation-price { display: none !important; }