/* 等高行樣式 */
.equal-height-row {
  display: flex;
  flex-wrap: wrap;
}
.equal-height-row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* 產品卡片樣式 */
.product-card {
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 輪播樣式 */
.carousel {
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.carousel-inner img {
  width: 100%;
  height: auto;
}
.carousel-control {
  background: none;
  width: 30px;
  height: 30px;
  top: 50%;
  margin-top: -15px;
  line-height: 30px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .carousel-control {
  opacity: 1;
}
.carousel-control .glyphicon {
  font-size: 14px;
}

.product-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  margin-top: 0;
  font-size: 18px;
}

.product-description {
  flex-grow: 1;
  color: #666;
  margin-bottom: 15px;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 15px;
}

/* 模態框中的顏色選擇 */
.color-options .radio {
  margin-bottom: 10px;
}
.color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  vertical-align: middle;
  margin-right: 5px;
}

/* 購物車表格 */
.table-responsive {
  margin-top: 20px;
}

/* 響應式調整 */
@media (max-width: 767px) {
  .equal-height-row > [class*='col-'] {
    display: block;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
}

/* 旋轉動畫 */
.glyphicon.spinning {
  display: inline-block;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 提示訊息 */
#alert-container .alert {
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}