/* store.css — product list + lazy images + cart floating button */

/* card row: 2-column layout on md+, single column on small screens */
.product-list .product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .product-list .product-row {
    grid-template-columns: 1fr 320px; /* left: details, right: image */
  }
}

/* left column (details) */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.product-version {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-desc {
  color: #4b5563;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* features list */
.product-features {
  margin: 10px 0;
  padding-left: 18px;
  color: #333;
}
.product-features li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

/* right column (image) */
.product-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px;
}

.product-image {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: #fafafa;
}

/* price + buttons row (inside left column footer) */
.product-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.product-price {
  font-weight: 800;
  color: #0f9d58;
  font-size: 1.1rem;
}

.product-actions {
  display: flex;
  gap: 8px;
}

/* buttons */
.btn-primary-buy {
  background: #0d6efd;
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 8px 12px;
}
.btn-primary-buy:hover { background: #0b5ed7; }

.btn-outline {
  background: transparent;
  color: #0d6efd;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  padding: 7px 10px;
}
.btn-outline:hover {
  background: #f8fbff;
}

/* trial & learn more links look */
.btn-trial {
  background: #f8f9fa;
  border: 1px solid #e6eefc;
  color: #333;
  padding: 6px 10px;
  border-radius: 8px;
}

/* loading / empty */
.loading {
  text-align: center;
  padding: 80px;
  color: #777;
}

/* floating cart button bottom-right */
.cart-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #007bff;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  text-decoration: none;
}
.cart-floating svg { margin-left: 4px; }
#cartCount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* small responsive tweaks */
@media (max-width: 576px) {
  .product-image { max-height: 200px; }
  .product-price { font-size: 1rem; }
}
.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}
.cart-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#cartCount {
  position: absolute;
  top: 6px;
  right: 10px;
  background: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 5px;
}

  /* Product Cards */
  .product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
  }

  .product-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .product-left {
    flex: 1 1 60%;
    padding: 24px;
  }

  .product-right {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafc;
  }

  .product-right img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  .product-row:hover .product-right img {
    transform: scale(1.05);
  }

  .product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
  }

  .product-version {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 12px;
  }

  .product-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
  }

  .product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
  }

  .product-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    color: #444;
  }

  .product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: SteelBlue;
    font-weight: bold;
  }

  .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: SteelBlue;
    margin-top: 10px;
  }

  .product-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .product-actions button {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-outline {
    background: #f1f1f1;
    color: #333;
  }

  .btn-outline:hover {
    background: #e2e2e2;
  }

  .btn-primary-buy {
    background: SteelBlue;
    color: #fff;
  }

  .btn-primary-buy:hover {
    background: #1e6ba8;
  }

  .btn-trial {
    background: #198754;
    color: #fff;
  }

  .btn-trial:hover {
    background: #157347;
  }

  @media (max-width: 768px) {
    .product-row {
      flex-direction: column;
    }
    .product-left, .product-right {
      flex: 1 1 100%;
      text-align: center;
    }
    .product-right {
      padding: 12px;
    }
  }

  /* === CART MODAL ENHANCEMENT === */

  .cart-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
  }

  .cart-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 600px;
    animation: popIn 0.3s ease-out;
    font-family: "Segoe UI", sans-serif;
  }

  @keyframes popIn {
    from {
      transform: scale(0.95);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .cart-modal-header h4 {
    font-weight: 700;
    color: #222;
    font-size: 1.25rem;
  }

  .close {
    color: #888;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .close:hover {
    color: #333;
  }

  .cart-modal-body {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
  }

  .cart-summary {
    background: #f9fafc;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
  }

  .cart-summary p {
    margin: 0;
    padding: 6px 0;
  }

  .cart-summary strong {
    color: SteelBlue;
  }

  .cart-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    margin-top: 25px;
    padding-top: 15px;
  }

  .btn-modal {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-cancel {
    background: #f1f1f1;
    color: #333;
  }

  .btn-cancel:hover {
    background: #e2e2e2;
  }

  .btn-confirm {
    background: SteelBlue;
    color: #fff;
  }

  .btn-confirm:hover {
    background: #1e6ba8;
  }

  @media (max-width: 600px) {
    .cart-modal-content {
      margin-top: 20%;
      padding: 20px;
    }
    .cart-modal-header h4 {
      font-size: 1.1rem;
    }
  }


