:root {
--primary: #f08a5d;
--primary-dark: #e67e22;
--primary-light: #fad7a0;
--secondary: #f9b384;
--accent: #ffbe76;
--dark: #2d3436;
--light: #ffffff;
--gray: #636e72;
--gray-light: #f8f8f8;
}

.product-headline {
border-radius: 10px;
background-color: #fff;
box-shadow: 0 4px 15px 1px rgba(240, 138, 93, 0.1);
min-height: auto;
height: auto;
overflow: visible;
width: 100%;
display: flex;
align-items: center;
transition: all 0.3s ease;
}
.product-headline .firstgroup_box_prov {
color: var(--primary);
font-weight: 600;
flex-shrink: 0;
}
.product-headline .firstgroup_box_group {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.product-headline .headline-text {
color: var(--primary);
font-weight: 500;
margin: 0;
}
@media (max-width: 576px) {
.product-headline {
  padding: 12px;
  height: auto;
  min-height: auto;
}
.product-headline .firstgroup_box_group {
  width: 100%;
}
.product-headline .card-text {
  word-break: break-word;
  white-space: normal;
}
}
.card,
.cartitem {
border: none;
border-radius: 15px;
overflow: hidden;
transition: all 0.3s ease;
margin-bottom: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.cartitem .card-body {
padding: 15px;
flex: 1;
}
.cartitem h5 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--dark);
}
.cartitem .card-text {
color: var(--gray);
font-size: 0.9rem;
margin-bottom: 0.75rem;
}
.cartitem:hover {
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.cartitem.active {
background: #fff;
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.cartitem .card-footer {
background-color: transparent;
border-top: none;
padding: 0;
transition: all 0.3s ease;
}
.cartitem .card-footer a {
color: var(--primary);
display: inline-block;
width: 100%;
line-height: 45px;
background: #fff;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.cartitem.active .card-footer {
background-color: var(--primary) !important;
}
.cartitem.active .card-footer a {
background-color: var(--primary) !important;
color: #fff;
z-index: 99;
}
.cartitem .card-footer a:hover {
background-color: var(--primary) !important;
color: #fff;
}
.discount-badge {
background-color: var(--primary);
color: white;
font-size: 0.75rem;
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
display: inline-block;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(240, 138, 93, 0.4); }
70% { box-shadow: 0 0 0 6px rgba(240, 138, 93, 0); }
100% { box-shadow: 0 0 0 0 rgba(240, 138, 93, 0); }
}
.price-container {
margin-top: 1rem;
display: flex;
flex-direction: column;
}
.price-original {
text-decoration: line-through;
color: #999;
font-size: 0.9rem;
margin-top: 2px;
}
.price-current {
color: var(--primary);
font-size: 1.3rem;
font-weight: 700;
}
.price-trial {
color: #e64a19;
font-size: 0.9rem;
margin-top: 2px;
}
.sold-out-ribbon {
position: absolute;
top: 0;
right: 0;
width: 120px;
height: 120px;
overflow: hidden;
z-index: 10;
}
.sold-out-ribbon::before,
.sold-out-ribbon::after {
position: absolute;
z-index: -1;
content: '';
display: block;
border: 5px solid var(--primary-dark);
border-top-color: transparent;
border-right-color: transparent;
}
.sold-out-ribbon::before {
top: 0;
left: 0;
}
.sold-out-ribbon::after {
bottom: 0;
right: 0;
}
.sold-out-ribbon span {
position: absolute;
top: 30px;
right: -25px;
transform: rotate(45deg);
width: 150px;
padding: 8px 0;
background-color: var(--primary);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
color: #fff;
text-align: center;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
}
.cartitem:hover .sold-out-ribbon span {
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
background-color: var(--primary-dark);
}
.pagination {
display: flex;
justify-content: center;
margin-top: 2rem;
}
.pagination .page-item .page-link {
color: var(--primary);
border-radius: 5px;
margin: 0 3px;
border: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.pagination .page-item.active .page-link {
background-color: var(--primary);
border-color: var(--primary);
color: white;
}
.pagination .page-item .page-link:hover {
background-color: rgba(240, 138, 93, 0.1);
}
.search-box {
position: relative;
width: 100%;
margin-bottom: 15px;
transition: all 0.3s ease;
}
.search-box input {
border-radius: 30px;
padding: 10px 15px 10px 45px;
border: 1px solid rgba(240, 138, 93, 0.2);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
background-color: rgba(240, 138, 93, 0.03);
font-size: 0.9rem;
box-shadow: 0 2px 10px rgba(240, 138, 93, 0.05);
width: 100%;
}
.search-box::before {

position: absolute;
left: 18px;
top: 50%;
transform: translateY(-50%);
color: var(--primary);
font-size: 16px;
z-index: 1;
transition: all 0.3s ease;
}
.search-box input:focus {
box-shadow: 0 0 0 4px rgba(240, 138, 93, 0.15);
border-color: var(--primary);
background-color: #fff;
padding-left: 50px;
}
.search-box:hover::before {
transform: translateY(-50%) scale(1.1);
}
.product-description {
position: relative;
overflow: hidden;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
margin-bottom: 0;
max-height: 0;
width: 100%;
}
.product-description.collapsed {
opacity: 0;
margin: 0;
padding: 0;
max-height: 0;
}
.product-description.expanded {
opacity: 1;
margin-top: 10px;
margin-bottom: 10px;
max-height: none;
}
.toggle-description {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 8px;
padding: 4px 12px;
background-color: #fff;
color: var(--primary);
border-radius: 20px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
box-shadow: 0 2px 6px rgba(240, 138, 93, 0.15);
border: 1px solid rgba(240, 138, 93, 0.2);
}
.toggle-description:hover {
background-color: var(--primary);
color: #fff;
box-shadow: 0 3px 8px rgba(240, 138, 93, 0.25);
border-color: var(--primary);
transform: translateY(-1px);
}
.toggle-description i {
margin-left: 5px;
font-size: 10px;
transition: all 0.3s ease;
}
.toggle-description[data-action="collapse"] i {
transform: rotate(180deg);
}
.stock-indicator {
display: flex;
align-items: center;
margin-top: 10px;
font-size: 0.85rem;
}
.stock-indicator .stock-badge {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: 20px;
margin-right: 8px;
font-size: 0.75rem;
font-weight: 600;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.stock-indicator .stock-badge:before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 5px;
}
.stock-indicator .in-stock {
background-color: rgba(46, 204, 113, 0.1);
color: #2ecc71;
border: 1px solid rgba(46, 204, 113, 0.2);
}
.stock-indicator .in-stock:before {
background-color: #2ecc71;
}
.stock-indicator .low-stock {
background-color: rgba(243, 156, 18, 0.1);
color: #f39c12;
border: 1px solid rgba(243, 156, 18, 0.2);
}
.stock-indicator .low-stock:before {
background-color: #f39c12;
}
.stock-indicator .out-of-stock {
background-color: rgba(231, 76, 60, 0.1);
color: #e74c3c;
border: 1px solid rgba(231, 76, 60, 0.2);
}
.stock-indicator .out-of-stock:before {
background-color: #e74c3c;
}
.stock-indicator .stock-count {
font-size: 0.8rem;
color: var(--gray);
}
.products-container {
position: relative;
margin: 0 -8px;
min-height: 200px;
}
.product-item {
padding: 0 8px;
margin-bottom: 16px;
position: absolute;
width: 25%;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0;
transform: scale(0.9) translateY(20px);
}
.product-item.animated {
animation: productAppear 0.25s forwards;
}
@keyframes productAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.loading-container.hidden {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(240, 138, 93, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (min-width: 1200px) {
.product-item { width: 25%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
.product-item { width: 33.33%; }
}
@media (min-width: 768px) and (max-width: 991px) {
.product-item { width: 33.33%; }
.cartitem .card-body { padding: 12px; }
.cartitem h5 { font-size: 1rem; }
.price-current { font-size: 1.1rem; }
}
@media (min-width: 576px) and (max-width: 767px) {
.product-item { width: 50%; }
.cartitem .card-body { padding: 10px; }
.cartitem h5 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.stock-indicator { margin-top: 6px; }
.stock-indicator .stock-badge { padding: 2px 8px; font-size: 0.7rem; }
.price-current { font-size: 1rem; }
.cartitem .card-footer a { line-height: 40px; font-size: 0.9rem; }
}
@media (max-width: 575px) {
.product-item {
  width: 100%;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin-bottom: 12px;
}
.cartitem {
  flex-direction: column;
  border-radius: 10px;
}
.cartitem .card-body {
  padding: 10px;
  display: block;
}
.cartitem h5 {
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.product-description-container {
  width: 100%;
  padding-right: 0;
  margin-bottom: 8px;
}
.price-container {
  width: 100%;
  margin-top: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-current {
  font-size: 1rem;
}
.stock-indicator {
  margin-top: 5px;
  width: 100%;
}
.cartitem .card-footer {
  width: 100%;
  min-width: auto;
  display: block;
  border-left: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.cartitem .card-footer a {
  line-height: 40px;
  height: auto;
  display: block;
  font-size: 0.9rem;
  padding: 0;
  text-align: center;
}
.sold-out-ribbon {
  width: 80px;
  height: 80px;
}
.sold-out-ribbon span {
  top: 15px;
  right: -20px;
  width: 100px;
  padding: 5px 0;
  font-size: 10px;
}
.toggle-description {
  padding: 2px 8px;
  font-size: 10px;
  margin-top: 5px;
}
.toggle-description i {
  font-size: 8px;
}
.search-box {
  margin-bottom: 10px;
}
.search-box input {
  padding: 8px 15px 8px 40px;
  font-size: 0.85rem;
}
.search-box::before {
  left: 15px;
  font-size: 14px;
}
.product-description.expanded {
  max-height: none;
}
.product-description {
  font-size: 0.85rem;
  line-height: 1.4;
}
}
@media (max-width: 375px) {
.cartitem .card-body { padding: 8px; }
.cartitem h5 { font-size: 0.9rem; }
.price-current { font-size: 0.95rem; }
}
.discount-percent {
 display: inline-block;
 background-color: #ff6b6b;
 color: white;
 font-size: 10px;
 font-weight: bold;
 padding: 1px 5px;
 border-radius: 10px;
 margin-right: 5px;
 position: relative;
 top: -1px;
 box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}
.discount-percent {
 background-color: #ff6b6b;
 box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}
.no-products-message {
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  max-width: 300px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
  .no-products-message {
    margin: 10px auto;
    padding: 20px 15px;
  }
}


/* 修改: 统一搜索框样式 */
.search-box {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 8px 40px 8px 15px;
  border-radius: 30px;
  border: 1px solid rgba(240, 138, 93, 0.2);
  background-color: rgba(240, 138, 93, 0.03);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(240, 138, 93, 0.05);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 138, 93, 0.15);
  padding-left: 20px;
}

.search-box::before {

  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-box:hover::before {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 576px) {
  .search-box {
    margin-bottom: 12px;
  }
  
  .search-box input {
    height: 34px;
    font-size: 12px;
  }
}