/* MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: slideIn 0.3s;
}

.modal-content.modal-lg {
  max-width: 800px;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #000;
}

/* PRODUCT MODAL */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.product-detail-image {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail-info h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.product-detail-info p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-price {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.modal-price .price {
  font-size: 24px;
  font-weight: bold;
  color: #007d7d;
}

.modal-price .time {
  background: #fff1dc;
  color: #ff6b35;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.btn-add-cart,
.btn-buy-now,
.btn-checkout,
.btn-continue,
.btn-confirm {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-add-cart {
  background: #f5f5f5;
  color: #007d7d;
  border: 2px solid #007d7d;
}

.btn-add-cart:hover {
  background: #007d7d;
  color: white;
}

.btn-buy-now,
.btn-checkout,
.btn-confirm {
  background: #007d7d;
  color: white;
}

.btn-buy-now:hover,
.btn-checkout:hover,
.btn-confirm:hover {
  background: #005e5e;
}

.btn-continue {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-continue:hover {
  background: #e8e8e8;
}

/* CART MODAL */
.cart-items {
  margin: 20px 0;
  border-top: 1px solid #ddd;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.cart-item-info h4 {
  margin-bottom: 5px;
  font-size: 14px;
}

.cart-item-info p {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: bold;
  color: #007d7d;
  margin-bottom: 8px;
}

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

.cart-item-qty button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 2px;
  font-size: 12px;
}

.cart-item-qty button:hover {
  background: #f0f0f0;
}

.cart-item-actions {
  text-align: right;
}

.remove-item {
  color: #ff6b35;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.remove-item:hover {
  text-decoration: underline;
}

.cart-summary {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.summary-row.total {
  border: none;
  border-top: 2px solid #007d7d;
  margin-top: 10px;
  padding-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #007d7d;
}

/* CHECKOUT FORM */
.checkout-form {
  margin: 20px 0;
}

.form-section {
  margin-bottom: 25px;
}

.form-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.form-section input,
.form-section select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-section input:focus,
.form-section select:focus {
  outline: none;
  border-color: #007d7d;
  box-shadow: 0 0 0 3px rgba(0,125,125,0.1);
}

/* CART FLOAT */
.cart-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--brand-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,125,125,0.3);
  transition: all 0.3s;
  z-index: 999;
}

.cart-float:hover {
  background: var(--brand-2);
  transform: scale(1.1);
}

.cart-icon {
  font-size: 24px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* INTERACTIVE ELEMENTS */
.clickable {
  cursor: pointer;
  transition: all 0.3s;
}

.panel-item,
.prod,
.recent-item {
  cursor: pointer;
}

.panel-item:hover {
  background: rgba(10, 7, 20, 0.96) !important;
  transform: translateY(-2px);
}

.prod:hover,
.recent-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,125,125,0.15) !important;
}

.seller-item {
  cursor: pointer;
  transition: all 0.3s;
}

.seller-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,125,125,0.2);
}

nav a,
footer a {
  cursor: pointer;
  transition: all 0.2s;
}

nav a:hover,
footer a:hover {
  color: #007d7d !important;
}

.currency {
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail-image {
    min-height: 250px;
  }

  .cart-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .cart-icon {
    font-size: 20px;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
  }
}

/* TOAST NOTIFICATIONS */
.toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #007d7d;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s;
  z-index: 998;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.show {
  animation: slideInRight 0.3s;
}

.toast.hide {
  animation: slideOutRight 0.3s;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
