/* 商店页面样式 */
.shop-page-caption {
    position: absolute;
    bottom: 50px; /* 默认设置，适用于PC和平板 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px;
    text-align: center;
    max-width: 90%; /* 默认最大宽度 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
} /* 应用于轮播图中的文本覆盖层 */

.shop-page-caption h1 {
    font-size: 2rem; /* 调整标题字体大小 */
    margin-bottom: 10px;
}

.shop-page-caption p {
    font-size: 1rem; /* 调整描述字体大小 */
    margin-bottom: 15px;
}

.shop-page-caption a {
    background-color: white; /* 设置按钮为白色 */
    color: black; /* 按钮文字颜色 */
    padding: 10px 20px; /* 按钮内边距 */
    border-radius: 50px; /* 药丸效果 */
    text-decoration: none; /* 移除下划线 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 过渡效果 */
}

.shop-page-caption a:hover {
    background-color: #e0e0e0; /* 悬停时背景颜色 */
    transform: scale(1.05); /* 悬停时缩放效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 阴影 */
}
.shop-page-caption a.btn {
    background-color: white !important; /* 设置按钮背景为白色 */
    color: black !important; /* 设置按钮文字颜色为黑色 */
    border-radius: 50px; /* 药丸效果 */
    text-decoration: none; /* 移除下划线 */
    padding: 10px 20px; /* 按钮内边距 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 添加过渡效果 */
}

.category-wrapper {
    display: flex;
    overflow-x: auto; /* 移动端水平滚动 */
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* IE和Edge隐藏滚动条 */
    scrollbar-width: none; /* Firefox隐藏滚动条 */
}

.category-wrapper::-webkit-scrollbar {
    display: none; /* Chrome、Safari、Opera隐藏滚动条 */
}

.category-item {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px;
    scroll-snap-align: start;
}

.category-circle {
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.category-circle img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

h6 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 20px; /* 确保图标大小合适 */
    color: #000; /* 图标颜色为黑色，保证对比度 */
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}


@media (max-width: 768px) {
    .category-item {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

.latest-products-container .carousel-control-prev-icon,
.latest-products-container .carousel-control-next-icon {
    background-image: none; /* 移除默认箭头图标 */
}

.latest-products-container .carousel-control-prev-icon::after,
.latest-products-container .carousel-control-next-icon::after {
    content: '';
    position: absolute;
    display: inline-block;
    font-size: 24px;
    color: #121111;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.latest-products-container .carousel-control-prev-icon::after {
    content: '\2039'; /* 使用 Unicode 设置左箭头 */
}

.latest-products-container .carousel-control-next-icon::after {
    content: '\203A'; /* 使用 Unicode 设置右箭头 */
}

.latest-products-container .carousel-indicators {
    position: absolute;
    bottom: 10px; /* 调整为距底部的距离 */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    z-index: 10; /* 确保位于顶层 */
}

.latest-products-container .carousel-indicators button {
    background-color: rgba(32, 30, 30, 0.7); /* 灰色 */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 5px;
}

.latest-products-container .product-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}


#latestProductCarousel {
    border-radius: 8px; /* 设置圆角 */
    background-color: white; /* 设置背景为白色 */
    overflow: hidden; /* 确保内容不超出圆角 */
}

.thumbnail-custom {
    width: 90px; /* 根据需要调整 */
    height: auto;
    border-radius: 8px; /* 圆角效果 */
    margin: 0 5px; /* 间距 */
}

.product-thumbnails {
    display: flex;
    justify-content: center;
}

#latestProductCarousel .carousel-item img {
    border-radius: 8px; /* 设置主图的圆角 */
}


.container .shop-page-latest-products,
.container .shop-page-recommended-products,
.container .shop-page-hot-products {
    border: none !important; /* 使用 !important 强制隐藏边框 */
}

#product-sections {
    background-color: #8f8a8a13; /* 设置浅灰色背景 */
   
}




/* 去掉边距和内边距 */
.container {
    padding-left: 0;
    padding-right: 0;
}

.row.category-grid-container {
    margin-left: 0;
    margin-right: 0;
}

/* 调整列的样式 */
.col-lg-6, .col-md-8, .col-sm-12 {
    padding-left: 0;
    padding-right: 0;
}

/* 回复 padding/ margin 对子项的设置 */
.parent-card {
    margin: 0; /* 去掉外边距 */
}

@media (max-width: 768px) {
    .shop-page-caption {
        top: 50%; /* 定位在垂直居中 */
        left: 50%;
        transform: translate(-50%, -50%); /* 完全居中 */
        width: 250px; /* 最大宽度 */
        height: 300px; /* 固定高度 */
        padding: 15px; /* 内边距 */
    }

    .shop-page-caption h1 {
        font-size: 1.5rem; /* 标题字体大小 */
        line-height: 1.2; /* 行高设置 */
    }

    .shop-page-caption p {
        font-size: 1rem; /* 描述字体大小 */
        line-height: 1.2; /* 行高设置 */
    }

    .shop-page-caption a {
        padding: 8px 16px; /* 按钮内边距 */
        margin-top: 10px; /* 按钮与文本的间隔 */
    }
} /* 针对小屏幕的轮播图文本样式调整 */

.shop-page .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
} /* 应用于轮播图的额外文本覆盖层 */

.shop-page .text-overlay h1, 
.shop-page .text-overlay .breadcrumb {
    margin: 0;
    color: white; /* 设置路径文字为白色 */
}

.breadcrumb-container.shop-page {
    margin-top: 20px; /* 根据需要调整间距 */
    padding: 10px; /* 可选：添加内边距 */
    background-color: transparent; /* 可选：添加背景颜色 */
    text-align: left; /* 确保文本左对齐 */
}

.breadcrumb {
    color: #333; /* 路径文本颜色 */
}

.breadcrumb a {
    color: #007bff; /* 链接颜色 */
}

.breadcrumb a:hover {
    color: #0056b3; /* 链接悬停颜色 */
} /* 应用于面包屑导航的样式 */

.shop-page .card-img-top {
    width: 100%; /* 确保图片宽度自适应 */
    height: auto; /* 保持图片比例 */
    object-fit: contain; /* 使图片完整显示 */
} /* 应用于产品卡片的顶部图片 */

.shop-page .price {
    color: rgb(235, 11, 11); /* 确保价格文本为红色 */
    margin: 10px 0; /* 增加上下边距以提升可读性 */
}

.shop-page .btn-primary {
    background-color: #0f0f0f; /* 确保按钮颜色合适 */
    border-color: #e5e9ee; /* 按钮边框颜色 */
}

.shop-page .short-description {
    color: #ccc; /* 确保描述颜色合适 */
}

.shop-page .shop-card-body {
    padding: 15px; /* 确保内边距合适 */
} /* 产品卡片内容的样式 */

.shop-page .card {
    transition: transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} /* 应用于产品卡片的基本样式 */

.shop-page .card:hover {
    transform: scale(1.05); /* 悬停时放大 */
}

.shop-page .d-flex {
    display: flex; /* 确保子元素在同一行并对齐 */
    justify-content: space-between; /* 在水平方向两端对齐 */
    align-items: center; /* 垂直居中 */
}

.shop-page .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 确保卡片伸展至容器高度 */
}

.shop-page .card-body {
    flex-grow: 1; /* 使卡片内容区域动态扩展 */
}

.shop-page .short-description {
    max-height: 3em; /* 限制最大高度 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 添加省略号 */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .shop-page .card {
        margin-bottom: 20px; /* 微调卡片底部边距 */
    }
} /* 针对小屏幕的卡片样式调整 */
