/*!
Theme Name:Civi Child
Theme URI: https://civi.uxper.co/
Author: Uxper
Author URI: http://uxper.co/
Description: This is a child theme of Civi
Template: civi
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.4
License URI: https://choosealicense.com/licenses/gpl-2.0/
Text Domain: civi-child
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

.shop-addons-ui {
  margin: 32px 0;
}

.woocommerce .order-again {
  display: none;
}

.woocommerce-notice.woocommerce-notice--success {
  color: var(--civi-color-primary);
  font-size: 18px;
}

.addons-heading {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.addons-heading i {
  margin-right: 10px;
  color: #ff9800;
}

.addons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.addon-card {
  width: 320px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.05);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.addon-card:hover {
  box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.12);
}

.addon-card.addon-disabled {
  opacity: 0.6;
  filter: grayscale(50%);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.addon-card.addon-disabled .buy-now-btn:disabled,
.addon-card.addon-disabled input:disabled {
  background-color: #e0e0e0;
  color: #999;
  border-color: #ccc;
  cursor: not-allowed;
}

.addon-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--civi-color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.addon-icon {
  margin-right: 10px;
  font-size: 1.25rem;
  color: var(--civi-color-accent);
}

.addon-description {
  color: #666;
  font-size: 0.98rem;
  margin: 10px 0 0 0;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addon-description p {
  margin-bottom: 0;
}

.addon-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

.addon-price {
  font-weight: 600;
  color: var(--civi-color-accent);
  font-size: 1.1rem;
}

.addon-price del {
  font-size: 90%;
  opacity: 0.7;
}

.buy-now-btn {
  width: 180px;
  height: 48px;
  margin-top: 20px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.addon-qty input[type="number"] {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px;
  width: 88px;
  text-align: center;
  font-size: 1rem;
}

.addon-thumbnail {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

.addon-thumb-img {
  border-radius: 8px;
  width: 100%;
  height: 150px;
  max-width: 320px;
  object-fit: cover;
  background: #f8f8f8;
}

.addon-job {
  font-weight: bold;
  color: #ff9800;
}

@media (max-width: 576px) {
  .addon-list {
    padding: 0 20px;
  }

  .addon-card {
    width: 100%;
    padding: 16px 10px;
  }

  .addon-card-action {
    flex-direction: column;
    gap: 8px;
  }
  .addon-thumb-img {
    max-width: unset;
  }
  .addon-qty {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .addon-qty input[type="number"] {
    width: 50%;
    margin: 0 auto;
  }
  .buy-now-btn {
    width: 75%;
    text-align: center;
  }
}