/* Blurred overlay effect */
#oc4-cart-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1035; 
}

#oc4-cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* Cart List Container */
.oc4-cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;  
  margin: 0 auto;
}

/* Each Product Entry */
.oc4-cart-item {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fefefe;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Product Image */
.oc4-cart-thumb img {
  width: 50px;
  height: auto;
  border-radius: 3px;
}

/* Product Info Block */
.oc4-cart-info {
  flex: 1;
  font-size: 13px;
  min-width: 200px;
  color: #333;
}

/* Product Title */
.oc4-cart-name {
  font-weight: 600;
  font-size: 14px;
  color: #1e1e1e;
  text-decoration: none;
  margin-bottom: 2px;
  display: inline-block;
}

.oc4-cart-name:hover {
  text-decoration: underline;
}

/* Meta (model, options) */
.oc4-cart-meta {
  list-style: none;
  padding: 0;
  margin: 2px 0 4px 0;
  color: #555;
  font-size: 12px;
}

/* Quantity / Update / Remove Row */
.oc4-cart-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.oc4-cart-actions-row input[type="text"] {
  width: 45px;
  padding: 2px 4px;
  font-size: 13px;
  text-align: center;
}

/* Buttons */
.oc4-cart-actions-row button,
.oc4-cart-actions-row a {
  border: none;
  background: none;
  color: #007bff;
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s ease;
}

.oc4-cart-actions-row button:hover,
.oc4-cart-actions-row a:hover {
  color: #0056b3;
}

/* Pricing (price and total) */
.oc4-cart-pricing {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 4px;
  color: #222;
}

.oc4-cart-pricing div:last-child {
  font-weight: 600;
}

/* Totals Summary */
.oc4-cart-summary {
  margin-top: 10px;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}

.oc4-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}

.oc4-cart-total-label {
  font-weight: 500;
  color: #555;
}

.oc4-cart-total-value {
  font-weight: 600;
  color: #111;
}

/* Heading */
.oc4-cart-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

.oc4-cart-item-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.oc4-cart-item-left {
  display: flex;
  gap: 10px;
  flex: 1;
}

.oc4-cart-item-left img {
  width: 48px;
  height: auto;
  border-radius: 4px;
}

.oc4-cart-item-details {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #333;
}

.oc4-cart-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 3px;
  text-decoration: none;
}

.oc4-cart-item-model {
  font-size: 12px;
  color: #666;
}

.oc4-cart-item-options {
  font-size: 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: #555;
}

.oc4-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 120px;
}

.oc4-cart-item-form {
  display: flex;
  gap: 5px;
  align-items: center;
}

.oc4-cart-item-form input[type="text"] {
  width: 45px;
  padding: 2px 4px;
  font-size: 13px;
  text-align: center;
}

.oc4-cart-item-form button,
.oc4-cart-item-form a {
  color: #007bff;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.oc4-cart-item-form button:hover,
.oc4-cart-item-form a:hover {
  color: #0056b3;
}

.oc4-cart-item-price {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}


.oc4-cart-items { 
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: clip;
  padding-bottom: 7px;
  border-bottom: 1px solid #eaeaea;
}

.dropdown-menu-end.p-2 {
  min-width: 380px;
}


.oc4-cart-dropdown.dropdown-menu {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: block !important; 
  pointer-events: none;
  visibility: hidden;
  z-index: 1080; 
}

.oc4-cart-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}



.oc4-cart-item {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  border-radius: 6px;
  padding: 5px;
  background-color: #fff;
  border: 1px solid #cacaca;
}

.oc4-cart-thumb img {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.oc4-cart-info {
  flex: 1;
  font-size: 14px;
}

.oc4-cart-name {
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.oc4-cart-meta {
  list-style: none;
  padding: 0;
  margin: -4px 0;
  color: #0d4561;
  font-size: 12px;
  font-weight: bold;
}

.oc4-cart-extra {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 0px;
}

.oc4-cart-remove button {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.oc4-cart-remove button:hover {
  color: #d00;
}

.oc4-cart-summary {
  padding: 8px 0;
}

.oc4-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 2px 0;
}

.oc4-cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.oc4-cart-btn {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #aaa;
  text-decoration: none;
  color: #333;
  background-color: #f5f5f5;
  transition: background-color 0.2s ease;
}

.oc4-cart-btn:hover {
  background-color: #e0e0e0;
}

.oc4-cart-btn.primary {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.oc4-cart-btn.primary:hover {
  background-color: #0056b3;
}
