body {
  background: #f6f5f2;
  font-family: Arial, sans-serif;
}

/* HERO */
.hero {
  background: url("../assets/images/backgrounds/page-header-bg-1-1.jpg")
    no-repeat center/cover;
  height: 260px;
  position: relative;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 70, 40, 0.6);
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 15px;
  transition: 0.3s;
  border: 1px solid #eee;
}

.product-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid #f4a51c;
  transform: translateY(-5px);
}

.product-img img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

/* BADGES */
.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f4a51c;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f4a51c;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ICONS */
.product-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  opacity: 1;
  transition: 0.3s;
}

.product-card:hover .product-icons {
  opacity: 1;
}

.product-icons a {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.product-icons a:hover {
  background: #155724;
  color: #fff;
}

/* TEXT */
.product-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

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

.new-price {
  color: #28a745;
  font-weight: bold;
  margin-left: 5px;
}

.product-rating {
  color: #f4a51c;
  font-size: 13px;
}

/* SIDEBAR */
.sidebar-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.sidebar-box h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.average-rating {
  text-align: center;
  padding: 20px 0;
}

.average-rating .stars {
  font-size: 24px;
  color: #f4a51c;
  margin: 10px 0;
}

.average-rating .count {
  color: #999;
  font-size: 14px;
}

/* FEATURED PRODUCTS */
.featured-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.featured-product:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.featured-product-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
}

.featured-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-product-info {
  flex: 1;
}

.featured-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.featured-product-name a {
  color: #2c3e50;
  text-decoration: none;
}

.featured-product-name a:hover {
  color: #155724;
}

.featured-product-price {
  font-size: 12px;
}

.featured-product-price del {
  color: #999;
  text-decoration: line-through;
  margin-right: 5px;
}

.featured-product-price span {
  color: #28a745;
  font-weight: bold;
}

/* PRICE DISPLAY */
.price-display {
  font-size: 13px;
  color: #2c3e50;
}

/* CATEGORIES */
.sidebar-box ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.sidebar-box ul li:last-child {
  border-bottom: none;
}

.sidebar-box ul li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.sidebar-box ul li a:hover {
  color: #155724;
  padding-left: 5px;
}

.sidebar-box ul li a i {
  font-size: 12px;
  color: #f4a51c;
}

/* CHECKOUT PAGE */
.checkout-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.checkout-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 18px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f4a51c;
}

.checkout-title i {
  color: #f4a51c;
  margin-right: 8px;
}

.checkout-box .form-group {
  margin-bottom: 18px;
}

.checkout-box .form-group label {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.checkout-box .form-control,
.checkout-box .form-control:focus {
  border: 1px solid #ddd;
  color: #2c3e50;
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.checkout-box .form-control:focus {
  border-color: #155724;
  box-shadow: none;
}

.checkout-box .form-check {
  margin-top: 15px;
}

.checkout-box .form-check-label {
  color: #2c3e50;
  font-size: 14px;
  margin-left: 5px;
}

/* ORDER SUMMARY */
.order-review {
  background: #f9f8f6;
  padding: 20px;
  border-radius: 8px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 2px solid #155724;
  margin-bottom: 15px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 14px;
}

.order-product {
  flex: 1;
}

.order-subtotal {
  flex: 0 0 100px;
  text-align: right;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  color: #2c3e50;
  font-size: 14px;
}

.order-item:last-child {
  border-bottom: none;
}

.order-qty {
  color: #999;
  font-size: 12px;
  margin-left: 5px;
}

.order-subtotal-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  margin-top: 10px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #2c3e50;
}

.order-shipping-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: #2c3e50;
  font-size: 14px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 2px solid #155724;
  color: #2c3e50;
}

/* PAYMENT SECTION */
.payment-section {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.payment-section h5 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 16px;
}

.payment-section i {
  color: #f4a51c;
  margin-right: 8px;
}

.payment-option {
  padding: 12px 0;
  margin-bottom: 10px;
}

.payment-option .form-check-input {
  margin-top: 5px;
  cursor: pointer;
}

.payment-option label {
  cursor: pointer;
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 0;
}

.payment-option label i {
  margin-right: 10px;
  font-size: 14px;
}

.payment-desc {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 3px;
  margin-left: 25px;
}

/* PLACE ORDER BUTTON */
.btn-place-order {
  background: #155724;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 5px;
  transition: 0.3s;
  font-size: 15px;
}

.btn-place-order:hover {
  background: #0d3b2e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 87, 36, 0.3);
}

.btn-place-order i {
  margin-right: 8px;
}

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1040;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.cart-drawer.active {
  opacity: 1;
  visibility: visible;
}

.cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.cart-drawer-panel {
  position: relative;
  z-index: 1;
  width: 400px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.active .cart-drawer-panel {
  transform: translateX(0);
}

/* Responsive drawer width */
@media (max-width: 768px) {
  .cart-drawer-panel {
    width: 100%;
  }
}

/* CART DRAWER HEADER */
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #f9f8f6;
}

.cart-drawer-header h4 {
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}

.btn-close:hover {
  color: #155724;
}

/* CART DRAWER BODY */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  max-height: calc(100vh - 300px);
}

/* Custom Scrollbar */
.cart-drawer-body::-webkit-scrollbar {
  width: 6px;
}

.cart-drawer-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
  background: #155724;
  border-radius: 3px;
}

.cart-drawer-body::-webkit-scrollbar-thumb:hover {
  background: #0d3b2e;
}

.cart-item {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  gap: 12px;
  transition: opacity 0.3s;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.cart-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #f9f8f6;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 5px 0;
}

.cart-item-price {
  color: #999;
  font-size: 13px;
  margin: 3px 0;
}

.cart-item-total {
  color: #28a745;
  font-weight: 600;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.btn-remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: 0.3s;
  align-self: flex-start;
}

.btn-remove:hover {
  color: #e74c3c;
}

/* CART DRAWER FOOTER */
.cart-drawer-footer {
  padding: 20px;
  border-top: 2px solid #eee;
  background: #f9f8f6;
}

.cart-summary {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #2c3e50;
  font-size: 14px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  margin-top: 8px;
  border-top: 1px solid #eee;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 700;
}

.btn-checkout {
  background: #155724;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: 0.3s;
  margin-bottom: 10px;
}

.btn-checkout:hover {
  background: #0d3b2e;
  color: #fff;
  transform: translateY(-2px);
}

.btn-checkout i {
  margin-right: 8px;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #ddd;
  color: #2c3e50;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #f9f8f6;
  border-color: #155724;
  color: #155724;
}

/* CART COUNT BADGE */
.cart-count {
  background: #f4a51c;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 5px;
}

/* FOOTER */
footer {
  background: #0d3b2e;
  color: #fff;
  padding: 40px 0;
  margin-top: 50px;
}
