:root {
    --primary-color: #c09578 !important;
    --secondary-color: #0a0a0a;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #c09578!important;
    --background-color: #f8f8f8;
    --bs-border-color: #c09578!important;
    --bs-dropdown-link-active-bg: #c09578!important;
}


body {
    color: var(--text-primary);
    background-color: white;
    font-size: 16px;
    line-height: 1.6;
}

.dropdown-menu{
    --bs-dropdown-link-active-bg: #c09578!important;
}

h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}
a {
    color: var(--secondary-color);
    text-decoration: none;
}
@media (min-width: 1920px) {
    .container {
        width: 1920px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1200px;
    }
}
.bg-primary{
    background-color: var(--primary-color) !important;
}
.text-danger{
    color: var(--primary-color)!important;
}
.text-primary{
    color: var(--primary-color)!important;
}
.navbar {
    background: var(--primary-color);
}
.header .navbar-nav .nav-link{
    color:white!important;
}
.btn-header-cart{
    color:var(--primary-color);
    border-color: var(--primary-color);
}

.form-select {
    
    color: var(--secondary-color);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    
}
.form-select:focus {
    border-color: var(--primary-color) !important;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(192, 149, 120, 0.6);
  }
 


.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background-color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}


.form-check-input:checked {
    background-color:var(--primary-color)!important;
    border-color:var(--primary-color)!important;
}

.custom-shadow:focus {
    box-shadow: 0 0 0 0.2rem rgba(192, 149, 120, 0.5);
    border-color: var(--primary-color); /* 改变边框颜色 */
  }

.custom-slider:focus {
    box-shadow: 0 0 8px rgba(你的颜色, 0.6); /* 调整颜色和透明度以符合你的需求 */
    outline: none; /* 移除默认的轮廓 */
}
.btn-primary {
    background-color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}

.btn-outline-primary {
    color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}
.btn-outline-primary:hover {
    color: #fff!important;
    background-color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}


.custommenu-title-blog {
    font-size: 28px;
    color: #0a0a0a;
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
    margin-bottom: 55px;
    position: relative;
    font-weight: 700;
    letter-spacing: 0;
    display: table;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Roboto';
    padding-bottom: 15px;
}

.custommenu-title-blog::before {
    position: absolute;
    content: '';
    width: 70px;
    border-bottom: 4px solid var(--primary-color);
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}


/* 添加验证样式 */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.was-validated .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
}


.footer-title{
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 24px;
    color: var(--secondary-color);
}
footer .text-decoration-none{
    color: #666 !important;
    font-size: 14px !important;
    line-height: 24px !important;
}
footer .text-decoration-none:hover{
    color: var(--primary-color) !important;
}



.cart-preview-container {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 400px;
    z-index: 1000;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.cart-hover-container:hover .cart-preview-container {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




.cart-hover-container {
    position: relative;
    display: inline-block;
}

.cart-preview-container {
    position: absolute;
    right: 0;
    top: 100%;
    width: 500px;
    max-height: 600px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.cart-img-box {
    padding-right: 0px !important;
}

.cart-content-box {
    padding-left: 0px !important;
}

.cart-preview-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

/* Webkit浏览器滚动条样式 */
.cart-preview-content::-webkit-scrollbar {
    width: 6px;
}

.cart-preview-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.cart-preview-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.cart-preview-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.cart-preview-item {
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 确保商品图片和文本不会溢出 */
.cart-preview-item .col-2,
.cart-preview-item .col-6,
.cart-preview-item .col-3 {
    overflow: hidden;
}

.cart-product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




/* 添加验证错误提示样式 */
.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.error-message-container {
    position: relative;
}
.error-message-container::before {
    content: "!";
    position: absolute;
    left: -1.25rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}
input.error {
    border-color: #dc3545 !important;
    animation: shake 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}


.pagination .active>.page-link, .page-link.active{
    color: white!important;
    background-color: var(--primary-color)!important;
}

.pagination .page-link{
    border-color: var(--primary-color)!important;
    color: var(--primary-color)!important;
}
.text-original-danger{
    color: #dc3545!important;
}