/* Desire Gym Single Product Description Tabs CSS */

/* 容器与导航 */
.dgymsige-tabs-container { width: 100%; margin-top: 40px; font-family: 'Poppins', sans-serif; clear: both; }
.dgymsige-tabs-nav { list-style: none !important; padding: 0 !important; margin: 0 0 30px 0 !important; display: flex; gap: 35px; border-bottom: 1px solid #eaeaea; flex-wrap: wrap; }
.dgymsige-tabs-nav li { margin: 0 !important; padding: 0 !important; }
.dgymsige-tabs-nav li a { display: block; padding: 10px 0 15px 0; text-decoration: none !important; font-size: 14px; font-weight: 600; color: #777777; text-transform: uppercase; transition: all 0.3s ease; position: relative; margin-bottom: -1px; border-bottom: 2px solid transparent; box-shadow: none !important; }
.dgymsige-tabs-nav li a:hover { color: #111; }
.dgymsige-tabs-nav li.active a { color: #111111; border-bottom: 2px solid #111111; }

/* 面板控制 */
.dgymsige-tab-panel { display: none; font-family: 'Open Sans', sans-serif; color: #666; line-height: 1.8; font-size: 15px; animation: dgymFadeInTab 0.4s ease forwards; }
.dgymsige-tab-panel.active { display: block; }

@keyframes dgymFadeInTab { 
	from { opacity: 0; transform: translateY(5px); } 
	to { opacity: 1; transform: translateY(0); } 
}


/* 内容排版限制 */
.dgymsige-tab-panel p,
.dgymsige-tab-panel ul,
.dgymsige-tab-panel ol { margin-bottom: 20px; clear: both !important; display: block !important; }
.dgymsige-tab-panel p:empty { display: none !important; margin: 0; padding: 0; }
.dgymsige-tab-panel h2 { color: #da2128; font-size: 22px; font-weight: 400 !important; }
.dgymsige-tab-panel > h2:first-of-type { display: none !important; }
.dgymsige-tab-panel > .dgym-text-block:first-child h2:first-of-type { display: none !important; }

/* 图片与 Lightbox */
.dgymsige-tab-panel img { max-width: 100%; height: auto; display: block !important; clear: both !important; margin: 15px auto; cursor: zoom-in; transition: opacity 0.3s; }
.dgymsige-tab-panel img:hover { opacity: 0.9; }

.dgym-lightbox-overlay { display: none; position: fixed; z-index: 999999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); justify-content: center; align-items: center; cursor: zoom-out; }
.dgym-lightbox-overlay img { max-width: 90%; max-height: 90%; box-shadow: 0 0 20px rgba(0,0,0,0.5); transition: transform 0.15s ease-out; cursor: zoom-in; margin: 0 auto !important; }
.dgym-lightbox-overlay.active { display: flex; }

/* 表格样式 */
.dgymsige-tab-panel table.woocommerce-product-attributes { width: 100%; border-collapse: collapse; border: 1px solid #eaeaea; }
.dgymsige-tab-panel table.woocommerce-product-attributes th, .dgymsige-tab-panel table.woocommerce-product-attributes td { padding: 12px 15px; border-bottom: 1px solid #eaeaea; font-size: 14px; }
.dgymsige-tab-panel table.woocommerce-product-attributes th { width: 150px; background: #f9f9f9; color: #333; font-weight: 600; }
.dgymsige-tab-panel table.woocommerce-product-attributes p { margin: 0; }

/* 响应式：平板与桌面 (>= 768px) */
@media screen and (min-width: 768px) {
	.dgym-img-row { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 20px !important; margin: 20px 0 !important; }
	.dgym-img-row img { width: calc(50% - 10px) !important; max-width: 100% !important; height: auto !important; margin: 0 !important; display: block !important; clear: none !important; }
	.dgym-img-row.dgym-img-count-1 img { width: 60% !important; }
	.dgym-text-block { display: block !important; width: 100% !important; clear: both !important; margin-bottom: 15px !important; }
	.dgymsige-tab-panel:not(.dgym-reflowed) { opacity: 0 !important; }
	.dgymsige-tab-panel.dgym-reflowed { opacity: 1 !important; transition: opacity 0.3s ease; }

}

/* 响应式：桌面端 (>= 1025px) */
@media screen and (min-width: 1025px) {
	.dgym-img-row img { width: calc(33.333% - 14px) !important; }
	.dgym-img-row.dgym-img-count-1 img { width: 45% !important; }
	.dgym-img-row.dgym-img-count-2 img { width: calc(40% - 10px) !important; }
	
	.dgym-img-row.dgym-img-count-2 img.Kettler-Racer, .dgym-img-row.dgym-img-count-1 img.Kettler-Racer, img.Kettler-Racer{
		width:100% !important;
	}
}

/* 响应式：移动端 (< 768px) */
@media screen and (max-width: 767px) {
	.dgymsige-tab-panel img { display: block !important; float: none !important; margin: 15px auto !important; max-width: 90% !important; height: auto !important; }
}