/* Lingoteria Smart Cart Styles */
@font-face {
  font-family: Vazir;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.eot');
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.eot?#iefix') format('embedded-opentype'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff') format('woff'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.lingo-cart-container * {
  font-family: Vazir, Tahoma, Arial, sans-serif !important;
  direction: rtl;
}

.lingo-cart-icon-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.lingo-cart-icon {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #61FF33;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.lingo-cart-icon:hover {
  background-color: #e8e8e8;
}

.lingo-cart-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  fill: #4CAF50;
}

.lingo-cart-icon span {
  font-size: 16px;
  color: #333;
}

.lingo-cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.lingo-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.lingo-cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lingo-cart-panel.open {
  right: 0;
}

.lingo-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px;
  border-bottom: 1px solid #eee;
}

.lingo-cart-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.lingo-cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lingo-cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.lingo-cart-empty {
  text-align: center;
  padding: 20px;
  color: #888;
}

.lingo-cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.lingo-cart-item-image {
  width: 60px;
  height: 60px;
  margin-left: 15px;
  flex-shrink: 0;
}

.lingo-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.lingo-cart-item-details {
  flex: 1;
}

.lingo-cart-item-name {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

.lingo-cart-item-price {
  color: #4CAF50;
  margin-bottom: 5px;
  font-size: 14px;
}

.lingo-cart-item-quantity {
  font-size: 14px;
  color: #666;
}

.lingo-cart-item-remove {
  color: #f44336;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-top: 5px;
}

.lingo-cart-footer {
  padding: 40px;
  border-top: 1px solid #eee;
}

.lingo-cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lingo-cart-button {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lingo-cart-button-view {
  background-color: #f8f8f8;
  color: #333;
  border: 1px solid #ddd;
}

.lingo-cart-button-checkout {
  background-color: #BAFF38;
  color: #000;
  border: none;
}

.lingo-cart-button:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .lingo-cart-panel {
    width: 300px;
  }
}

@media (max-width: 350px) {
  .lingo-cart-panel {
    width: 100%;
  }
}