/* 垂直居中核心样式 */
/* 1. 页头主容器：固定高度+flex布局，作为垂直对齐基准 */
.header-main-container {
    display: flex !important;
    align-items: center !important; /* 垂直居中核心属性 */
    justify-content: space-between !important;
    min-height: 80px !important; /* 固定高度确保对齐基准一致 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. 列容器：取消默认间距，确保flex子项特性 */
.header-col {
    display: flex !important;
    align-items: center !important; /* 列内元素垂直居中 */
    padding: 0 10px !important;
    margin: 0 !important;
    height: 100% !important; /* 占满父容器高度 */
}

/* 3. 元素容器：强制居中并消除内外边距干扰 */
.header-element {
    display: flex !important;
    align-items: center !important; /* 内部元素垂直居中 */
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. 搜索框特殊处理：确保高度匹配其他元素 */
.search-container {
    max-width: 300px !important;
}

#search {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#search .input-lg {
    height: 40px !important; /* 固定高度匹配购物车按钮 */
}

/* 5. 购物车特殊处理：确保高度和对齐 */
.cart-container {
    max-width: 200px !important;
}

#cart {
    margin: 0 !important;
    padding: 0 !important;
}

#cart > .btn {
    height: 40px !important; /* 与搜索框高度一致 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 6. Logo特殊处理：确保垂直居中 */
#logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#logo img {
    max-height: 50px !important; /* 控制Logo高度，避免过高 */
    vertical-align: middle !important;
    margin: 0 !important;
}

/* 7. 社交图标特殊处理 */
.wishlist.social-icons-container {
    height: 40px !important; /* 与其他元素高度一致 */
    gap: 8px !important;
}

/* 8. 响应式适配：保持垂直居中特性 */
@media (max-width: 991px) {
    .header-main-container {
        flex-wrap: wrap !important;
        min-height: auto !important;
        padding: 10px 0 !important;
    }
    
    .header-col {
        width: 100% !important;
        margin-bottom: 10px !important;
        justify-content: center !important;
    }
    
    .header-col:last-child {
        margin-bottom: 0 !important;
    }
}

/* 以下为原有样式，确保不影响垂直居中修复 */
body {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #666;
	font-size: 13px;
	line-height: 20px;
	width: 100%;
	background-color: #f8f8f8;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	color: #444;
	margin: 5;
	padding: 0;
}

.fa {
	font-size: 14px;
}

h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 20px; }
h4 { font-size: 15px; }
h5 { font-size: 12px; }
h6 { font-size: 10.2px; }

a {
	color: #D6065D;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

.b, strong {
	font-weight: 500;
}

.fa-icon {
	padding-right: 5px;
}

legend {
	font-size: 16px;
	padding: 7px 0px;
}

label {
	font-size: 13px;
	font-weight: normal;
}

select.form-control, textarea.form-control, input[type="text"].form-control, 
input[type="password"].form-control, input[type="datetime"].form-control, 
input[type="datetime-local"].form-control, input[type="date"].form-control, 
input[type="month"].form-control, input[type="time"].form-control, 
input[type="week"].form-control, input[type="number"].form-control, 
input[type="email"].form-control, input[type="url"].form-control, 
input[type="search"].form-control, input[type="tel"].form-control, 
input[type="color"].form-control {
	font-size: 13px;
}

.input-group input, .input-group select, .input-group .dropdown-menu, .input-group .popover {
	font-size: 13px;
}

.input-group .input-group-addon {
	font-size: 12px;
	height: 30px;
}

#top {
	background-color: #D6065D;
	padding: 0;
	margin: 0;
	min-height: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: relative;
	z-index: 10;
}

#top .container {
	padding: 0 20px;
}

#top #form-currency .currency-select,
#top #form-language .language-select {
	text-align: left;
	background-color: #fff;
	color: #000;
	border: 1px solid #eee;
	border-radius: 3px;
	padding: 3px 8px;
}

#top #form-currency .currency-select:hover,
#top #form-language .language-select:hover {
	text-shadow: none;
	color: #000;
	background-color: #f5f5f5;
	background-image: none;
}

#top .btn-link, #top-links li, #top-links a {
	color: #fff;
	text-decoration: none;
}

#top .btn-link:hover, #top-links a:hover {
	color: #f8f8f8;
}

#top-links .dropdown-menu {
	background-color: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#top-links .dropdown-menu a {
	text-shadow: none;
	color: #000;
	padding: 8px 15px;
}

#top-links .dropdown-menu a:hover {
	color: #fff;
	background-color: #D6065D;
}

#top .btn-link strong {
	font-size: 12px;
	line-height: 14px;
}

#top-links {
	padding-top: 6px;
	font-size: 12px;
}

#top-links a + a {
	margin-left: 15px;
}

header {
	background-color: #D6065D;
	padding-top: 10px;
	padding-bottom: 10px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.12);
	position: relative;
	z-index: 5;
}

#search .btn-lg {
	font-size: 15px;
	line-height: 18px;
	padding: 6px 20px;
	background-color: #fdd922;
	border: 1px solid #e0bc27;
	border-radius: 0 4px 4px 0;
	color: #444;
}

#search .btn-lg:hover {
	background-color: #fcc800;
}

#cart > .btn:hover {
	background-color: #a00445;
}

#cart.open > .btn {
	background-image: none;
	background-color: #b8054e;
	border: 1px solid #a00445;
	color: #fff;
	box-shadow: none;
	text-shadow: none;
}

#cart.open > .btn:hover {
	color: #fff;
	background-color: #a00445;
}

#cart .dropdown-menu {
	background: #fff;
	z-index: 1001;
	color: #333;
	border: 1px solid #ddd;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#cart .dropdown-menu table {
	margin-bottom: 10px;
	color: #333;
	width: 100%;
}

#cart .dropdown-menu th {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #eee;
	font-weight: 500;
}

#cart .dropdown-menu td {
	padding: 10px;
	border-bottom: 1px solid #eee;
}

#cart .dropdown-menu li > div {
	min-width: 427px;
	padding: 0 10px;
	color: #333;
}

#cart .dropdown-menu li p {
	margin: 20px 0;
	color: #333;
	text-align: center;
}

#menu {
	background-color: #b8054e;
	min-height: 40px;
	border-radius: 0px;
	margin-bottom: 0px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	position: relative;
	z-index: 4;
}

#menu .nav > li > a {
	color: #000;
	text-shadow: none;
	padding: 10px 15px 10px 15px;
	min-height: 15px;
	background-color: transparent;
	text-transform: uppercase;
	font-weight: 600;
}

#menu .nav > li > a:hover, #menu .nav > li.open > a {
	background-color: rgba(255, 255, 255, 0.2);
	color: #000;
}

#menu .dropdown-menu {
	padding-bottom: 0;
	background-color: #fdd922;
	border: 1px solid #e0bc27;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#menu .dropdown-inner {
	display: table;
}

#menu .dropdown-inner ul {
	display: table-cell;
}

#menu .dropdown-inner a {
	min-width: 160px;
	display: block;
	padding: 8px 20px;
	clear: both;
	line-height: 20px;
	color: #000;
	font-size: 12px;
	font-weight: 500;
}

#menu .dropdown-inner li a:hover {
	color: #000;
	background-color: #fcc800;
}

#menu .see-all {
	display: block;
	margin-top: 0.5em;
	border-top: 1px solid #e0bc27;
	padding: 8px 20px;
	border-radius: 0 0 3px 3px;
	font-size: 12px;
	color: #000;
	background-color: #fdd922;
}

#menu .see-all:hover, #menu .see-all:focus {
	text-decoration: none;
	color: #000;
	background-color: #fcc800;
	background-image: linear-gradient(to bottom, #fdd922, #fcc800);
	background-repeat: repeat-x;
}

#menu #category {
	float: left;
	padding-left: 15px;
	font-size: 16px;
	font-weight: 700;
	line-height: 40px;
	color: #000;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

#menu .btn-navbar {
	font-size: 15px;
	color: #000;
	padding: 2px 18px;
	float: right;
	background-color: #fdd922;
	background-image: linear-gradient(to bottom, #fdd922, #fcc800);
	background-repeat: repeat-x;
	border-color: #e0bc27 #e0bc27 #d4b01a;
}

#menu .btn-navbar:hover, #menu .btn-navbar:focus, #menu .btn-navbar:active {
	color: #000;
	background-color: #fcc800;
}

#content {
	min-height: 600px;
	padding: 20px 0;
}

.mt-20 {
	margin-top: 20px;
}

footer {
	margin-top: 20px;
	padding-top: 20px;
	background-color: #D6065D;
	border-top: 1px solid #c00550;
	color: #fff;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

footer hr {
	border-top: none;
	border-bottom: 1px solid #c00550;
}

footer a {
	color: #fff;
}

footer a:hover {
	color: #fdd922;
	text-decoration: underline;
}

footer h5 {
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
}

footer h3 {
   color: #fff;
}

.footer-logo {
	margin-bottom: 10px;
	margin-top: 15px;
}

.footer-social {
	padding-left: 0;
}

.footer-social > li {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 6px;
  background-color: rgba(255,255,255,0.1);
  padding: 5px 10px 5px 10px;
  border-radius: 3px;
}

.footer-social > li a {
	color: #fdd922;
}

.footer-payments {
	padding-left: 0;
}

.footer-payments li {
  display: inline-block;
  margin-right: 5px;
}

.footer-payments li a {
  color: #fdd922;
}

.footer-payments li a i {
	font-size: 36px;
}

.alert {
	padding: 8px 14px 8px 14px;
}

#breadcrumb {
  -webkit-box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.175);
  box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.175);
  background-color: #fff;
  margin-bottom: 20px;
}

.breadcrumb {
  background-color: #fff;
  border: none;
  border-radius: 0px;
  padding: 10px 0px;
  margin: 0 0 0 30px;
}

.breadcrumb i {
	font-size: 12px;
}

.breadcrumb > li {
	padding: 0 5px;
	position: relative;
	white-space: nowrap;
}

.breadcrumb > li a {
	color: #999;
}

.breadcrumb > li + li:before {
	content: "/\00a0";
	padding: 0;
	color: #DADADA;
}

.pagination {
	margin: 0;
}

.buttons {
	margin: 1em 0 5em;
}

.btn {
	padding: 7.5px 12px;
	font-size: 12px;
	border: 1px solid #cccccc;
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
}

.btn-xs {
	font-size: 9px;
}

.btn-sm {
	font-size: 10.2px;
}

.btn-lg {
	padding: 10px 16px;
	font-size: 15px;
}

.btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover {
	font-size: 12px;
}

.btn-group > .btn-xs {
	font-size: 9px;
}

.btn-group > .btn-sm {
	font-size: 10.2px;
}

.btn-group > .btn-lg {
	font-size: 15px;
}

.btn-default {
	color: #777;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	background-color: #e7e7e7;
	background-image: linear-gradient(to bottom, #eeeeee, #dddddd);
	background-repeat: repeat-x;
	border-color: #dddddd #dddddd #b3b3b3 #b7b7b7;
}

.btn-primary {
	background-color: #D6065D;
	color: #fff;
	border: 1px solid transparent;
}

.btn-primary:hover, .btn-primary:active, .btn-primary.active {
	background-position: 0 -15px;
	background-color: #b8054e;
	color: #fff;
	border: 1px solid transparent;
}

.btn-warning {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #faa732;
	background-image: linear-gradient(to bottom, #fbb450, #f89406);
	background-repeat: repeat-x;
	border-color: #f89406 #f89406 #ad6704;
}

.btn-warning:hover, .btn-warning:active, .btn-warning.active {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-danger {
	color: #ffffff;
	background-color: #dc3545;
	border: 1px solid #dc3545;
}

.btn-danger:hover, .btn-danger:active, .btn-danger.active {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-success {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #5bb75b;
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	background-repeat: repeat-x;
	border-color: #51a351 #51a351 #387038;
}

.btn-success:hover, .btn-success:active, .btn-success.active {
	box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-info {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #df5c39;
	background-image: linear-gradient(to bottom, #e06342, #dc512c);
	background-repeat: repeat-x;
	border-color: #dc512c #dc512c #a2371a;
}

.btn-info:hover, .btn-info:active, .btn-info.active {
	background-image: none;
	background-color: #df5c39;
}

.btn-link {
	border-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	color: #e83a7d;
	border-radius: 0;
}

.btn-link, .btn-link:active {
	background-color: rgba(0, 0, 0, 0);
	background-image: none;
	box-shadow: none;
}

.list-group a {
	border: 1px solid #DDDDDD;
	color: #888888;
	padding: 8px 12px;
}

.list-group a.active, .list-group a.active:hover, .list-group a:hover {
	color: #444444;
	background: #eeeeee;
	border: 1px solid #DDDDDD;
	text-shadow: 0 1px 0 #FFF;
}

.carousel-caption {
	color: #FFFFFF;
	text-shadow: 0 1px 0 #000000;
}

.carousel-control .icon-prev:before {
	content: '\f053';
	font-family: FontAwesome;
}

.carousel-control .icon-next:before {
	content: '\f054';
	font-family: FontAwesome;
}

.product-thumb {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  background-color: #fff;
}

.product-thumb:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-thumb .image {
  text-align: center;
  padding: 10px;
  background-color: transparent;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb .image img {
  max-width: 100%;
  width: 100%;
  max-height: none;
  object-fit: contain;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.product-thumb:hover .image img {
  transform: scale(1.05);
}

.product-thumb .caption {
  padding: 15px 15px 10px;
  min-height: auto;
}

.product-thumb h4 {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb .description {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb .price {
  margin-bottom: 10px;
  display: block;
}

h2.price,
.product-thumb .price h2,
.product-thumb .price .price-new,
.product-thumb .price .price-old {
  font-weight: bold !important;
  color: #D6065D !important;
}

h2.price {
  font-size: 18px !important;
  margin-bottom: 8px;
}

.product-thumb .price .price-new {
  font-size: 18px !important;
  margin-right: 8px;
}

.product-thumb .price .price-old {
  font-size: 14px !important;
  color: #999 !important;
  text-decoration: line-through !important;
}

.product-thumb .price-tax {
  font-size: 13px !important;
  color: #777 !important;
  font-weight: 500;
}

.product-thumb .rating {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.product-thumb .button-group {
  border-top: none;
  background-color: transparent;
  padding: 10px 15px 15px;
  display: flex;
  gap: 5px;
}

.product-thumb .button-group button {
  flex: 1;
  width: auto;
  background-color: #f3f4f6;
  color: #4b5563;
  line-height: 34px;
  font-size: 12px;
  transition: all 0.2s ease;
  padding: 8px 5px;
}

.product-thumb .button-group .btn-cart {
  flex: 2;
  background-color: #D6065D;
  color: white;
}

.product-thumb .button-group .btn-cart:hover {
  background-color: #b8054e;
}

.product-thumb .button-group button:hover {
  background-color: #D6065D;
  color: #fff;
}

.product-list .product-thumb .image {
  width: 200px;
  flex: none;
}

.product-list .product-thumb .caption {
  margin-left: 220px;
  padding-top: 15px;
}

.rating .fa-stack {
  font-size: 7px;
}
.rating .fa-star-o {
  color: #999;
  font-size: 13px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 13px;
}
.rating .fa-star + .fa-star-o {
  color: #FFB656;
}

.thumbnails {
	overflow: auto;
	clear: both;
	list-style: none;
	padding: 0;
	margin: 0;
}

.thumbnails > li {
	margin-left: 20px;
}

.thumbnails {
	margin-left: -20px;
}

.thumbnails > img {
	width: 100%;
}

.image-additional a {
	margin-bottom: 20px;
	padding: 5px;
	display: block;
	border: 1px solid #ddd;
}

.image-additional {
	max-width: 78px;
}

.thumbnails .image-additional {
	float: left;
	margin-left: 20px;
}

.header-wishlist {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#whatsapp-link,
#facebook-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

#whatsapp-link i.fa-whatsapp,
#facebook-link i.fa-facebook {
    font-size: 24px !important;
    color: #fff !important;
    transition: all 0.3s ease;
    line-height: 1 !important;
    margin: 0 !important;
}

#whatsapp-link {
    background-color: #25D366 !important;
}

#whatsapp-link:hover {
    background-color: #1DA851 !important;
}

#whatsapp-link:hover i.fa-whatsapp {
    font-size: 26px !important;
}

#facebook-link {
    background-color: #1877F2 !important;
}

#facebook-link:hover {
    background-color: #145DB3 !important;
}

#facebook-link:hover i.fa-facebook {
    font-size: 26px !important;
}

.header-wishlist .qty {
    display: none !important;
}

.owl-product-item {
	margin: 10px 10px 15px 10px;
	background-color: #fff;
	box-shadow: 0 0px 2px 0 rgba(60,64,67,0.1),0 0px 6px 0px rgba(60,64,67,0.25);
	border-radius: 10px !important;
}

.owl-product-item .image {
	position: relative;
}

.owl-product-item .image img {
	width: 70%;
	padding-top: 10px;
}

.owl-product-item .label-discount-st1 {
  color: #fff;
  font-size: 11px;
  height: 35px;
  width: 35px;
  line-height: 31px;
  text-align: center;
  display: block;
  position: absolute;
  z-index: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50px;
  background-color: #D6065D;
  border: 1px dashed #fff;
  -webkit-box-shadow: 0 0 0 2px #D6065D;
  box-shadow: 0 0 0 2px #D6065D;
  right: 7%;
  top: 8%;
  font-weight: 500;
}

.owl-product-item .label-discount {
  background: #D6065D;
  color: #FFF;
  height: 40px;
  width: 40px;
  text-align: right;
  padding-top: 5px;
  padding-right: 1px;
  position: absolute;
  border-radius: 0 0 0 100%;
  border: 1px dashed #FFF;
  box-shadow: 0 0 0 3px #D6065D;
  right: 3px;
  top: 3px;
  font-weight: 500;
  font-size: 12px;
}

.owl-product-item .price {
	color: #D10024;
	padding: 0 15px;
}

.owl-product-item .price-new {
	font-weight: 500;
	font-size: 16px;
}

.owl-product-item .price-old {
	color: #999;
	text-decoration: line-through;
	margin-left: 10px;
}

.owl-product-item .name {
	padding: 0 15px;
	height: 50px;
	overflow: hidden;
}

.owl-product-item .name a {
	color: #444;
}

.owl-product-item .name a:hover {
	color: #D6065D;
}

.owl-product-item .rating {
	padding: 0 15px 15px 15px;
}

#lib-special {
	background: linear-gradient(#D6065D 0%, #e83a7d);
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 1px;
	margin-top: 15px;
	border-radius: 5px;
	box-shadow: 0 0 3px 0 #dee2e6;
}

#lib-special h3 {
	color: #fff5f9;
	margin-left: 50px;
}

#lib-special h3::before {
	position: absolute;
	margin-left: -40px;
	margin-top: -5px;
	content: "\f06d";
	font-family: 'FontAwesome';
	background: #fdd922;
	height: 30px;
	width: 30px;
	border-radius: 50px;
	line-height: 25px;
	text-align: center;
	color: #b79f28;
}

#lib-special span.see-all a {
	font-size: 13px;
	font-weight: normal;
	color: #fff;
	padding-right: 15px;
}

.owl-special .owl-nav {
  position: absolute;
  top: 35%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.owl-special .owl-nav > button.owl-prev {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  width: 35px;
  height: 35px;
  border-radius: 0;
}

.owl-special .owl-nav > button.owl-next {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  width: 35px;
  height: 35px;
  border-radius: 0;
}

#lib-category {
  background: #fff;
  border-radius: 5px;
  margin: 20px 0px 20px 0px;
  padding: 1px 15px 0px 15px;
  box-shadow: 0 0 3px 0 #dee2e6;
}

#lib-category h3 {
	text-transform: uppercase;
}

.category-item {
	padding-bottom: 20px;
}

.category-item .name {
	text-align: center;
	color: #666;
	padding-top: 5px;
}

.category-item .image:hover {
	opacity: 0.6;
}

.category-item .name:hover {
	color: #D6065D;
}

@media (max-width: 1200px) {
  .product-thumb .image {
    height: auto;
  }
  .product-thumb .image img {
    max-height: none;
  }
  .product-thumb .button-group button, 
  .product-thumb .button-group button + button {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 991px) {
  .product-thumb .image {
    height: auto;
  }
}

@media (max-width: 767px) {
  .product-thumb .image {
    height: auto;
    padding: 8px;
  }
  .product-thumb .image img {
    max-height: none;
  }
  
  .product-list .product-thumb .image {
    width: 100%;
    float: none;
    margin-bottom: 10px;
  }
  .product-list .product-thumb .caption {
    margin-left: 0;
  }
  
  .product-thumb .button-group button {
    font-size: 10px;
    padding: 0 3px;
  }
  
  h2.price,
  .product-thumb .price .price-new {
    font-size: 16px !important;
  }
  .product-thumb .price .price-old {
    font-size: 13px !important;
  }
  
  .wishlist.social-icons-container {
    flex-direction: row !important;
    gap: 8px !important;
  }
  
  .header-wishlist {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }
  
  #whatsapp-link i.fa-whatsapp,
  #facebook-link i.fa-facebook {
    font-size: 22px !important;
  }
  
  .product-list .product-thumb .caption {
    min-height: 0;
    padding: 0 10px;
  }
  .product-grid .product-thumb .caption {
    min-height: 0;
  }
}

@media (min-width: 1200px) {
	#content .col-lg-2:nth-child(6n+1),
	#content .col-lg-3:nth-child(4n+1),
	#content .col-lg-4:nth-child(3n+1),
	#content .col-lg-6:nth-child(2n+1) {
		clear:left;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	#content .col-md-2:nth-child(6n+1),
	#content .col-md-3:nth-child(4n+1),
	#content .col-md-4:nth-child(3n+1),
	#content .col-md-6:nth-child(2n+1) {
		clear:left;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	#content .col-sm-2:nth-child(6n+1),
	#content .col-sm-3:nth-child(4n+1),
	#content .col-sm-4:nth-child(3n+1),
	#content .col-sm-6:nth-child(2n+1) {
		clear:left;
	}
}

@media (min-width: 768px) {
    #column-left  .product-layout .col-md-3 {
       width: 100%;
    }

	#column-left + #content .product-layout .col-md-3 {
       width: 50%;
    }

	#column-left + #content + #column-right .product-layout .col-md-3 {
       width: 100%;
    }

    #content + #column-right .product-layout .col-md-3 {
       width: 100%;
    }
    #menu .dropdown:hover .dropdown-menu {
		display: block;
	}
}

@media (max-width: 767px) {
	#menu div.dropdown-inner > ul.list-unstyled {
		display: block;
	}
	#menu div.dropdown-menu {
		margin-left: 0 !important;
		padding-bottom: 10px;
		background-color: #fdd922;
	}
	#menu .dropdown-inner {
		display: block;
	}
	#menu .dropdown-inner a {
		width: 100%;
		color: #000;
	}
	#menu .dropdown-menu a:hover,
	#menu .dropdown-menu ul li a:hover {
		background: #fcc800;
		color: #000;
	}
	#menu .see-all {
		margin-top: 0;
		border: none;
		border-radius: 0;
		color: #000;
	}
}

@media (max-width: 478px) {
	#cart .dropdown-menu {
		width: 100%;
	}
	#cart .dropdown-menu li > div {
		min-width: 100%;
	}
}
/* 补充：tab导航激活状态（当前显示的标签按钮） */
.nav.tab-nav li.active a {
  color: #D6065D !important; /* 激活时文字改为主题色 */
  border-bottom: 2px solid #D6065D !important; /* 底部主题色下划线（突出选中） */
  font-weight: 700 !important; /* 激活时文字更粗 */
}

/* 基础h3下划线样式：文本下方加线并延伸至容器右侧 */
h3 {
  position: relative; /* 为伪元素提供定位基准 */
  display: inline-block; /* 确保伪元素能以文本宽度为起点 */
  padding-bottom: 8px; /* 文本与下划线的间距 */
  margin-bottom: 15px; /* 下划线与下方内容的间距 */
}

/* 仅对非页脚的h3添加下划线 */
h3:not(footer h3)::after {
  content: "";
  position: absolute;
  left: 0; /* 从文本最左侧开始 */
  bottom: 0; /* 与文本底部对齐 */
  height: 2px; /* 下划线粗细 */
  background-color: #D6065D; /* 下划线颜色（使用主题色） */
  width: 100vw; /* 宽度设为视口宽度，确保延伸到最右侧 */
  max-width: calc(100% - 0px); /* 限制最大宽度为父容器宽度 */
}

/* 特殊模块内的h3下划线（与文本颜色协调） */
#lib-special h3::after {
  background-color: #fff5f9; /* 浅粉色下划线适配特殊模块 */
}

/* 分类模块内的h3下划线 */
#lib-category h3::after {
  background-color: #444; /* 深色下划线适配白色背景 */
}

/* 商品详情页描述区域图片响应式处理 */
/* 针对商品描述内容中的图片（通常是富文本编辑器生成的内容） */
#content .product-description img,
#content .tab-content img,
#content .description-content img {
    display: block !important;
    max-width: 100% !important; /* 核心：不超过容器宽度 */
    height: auto !important;    /* 保持宽高比，避免变形 */
    margin: 10px auto !important; /* 居中显示，增加上下间距 */
    padding: 0 !important;
    border: none !important;
}

/* 移动端进一步优化 */
@media (max-width: 767px) {
    #content .product-description img,
    #content .tab-content img,
    #content .description-content img {
        max-width: 95% !important; /* 留5%边距，避免贴边 */
    }
}

/* 针对极小屏幕（如320px手机）的适配 */
@media (max-width: 479px) {
    #content .product-description img,
    #content .tab-content img,
    #content .description-content img {
        max-width: 92% !important; /* 边距稍大，提升阅读体验 */
    }
}