/* ============================================================
   CloudPedia VM Cart — Custom Product Listing Styles
   Matches the Figma "Find the Perfect Hosting" design.
   ============================================================ */

/* --- Page Background Gradient & Outer Container --- */
/* The user requested the border be moved to #order-standard_cart */
#order-standard_cart.cpvc-body {
  background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 50%, #ffffff 100%),
              rgba(255, 255, 255, 0.4);
  border: 2px solid #ffffff;
  border-radius: 32px;
  padding: 40px 20px;
  min-height: 100vh;
  /* Allow the border to be visible inside the main bootstrap container */
  margin: 20px auto; 
}

/* --- Section Header --- */
.cpvc-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.cpvc-section-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #5e5e5e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.cpvc-section-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #2563ea, #e42b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  display: inline-block;
}

.cpvc-section-subtitle {
  font-size: 15px;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Products Wrapper (Width Limiter) --- */
/* This div no longer has the border; it just centers the content */
.cpvc-products-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

/* --- Product Cards Container --- */
.cpvc-products {
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Individual Product Card --- */
.cpvc-product-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #BFC4FF;
  border-radius: 12px;
  padding: 24px;
  gap: 24px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cpvc-product-card:hover {
  box-shadow: 0 4px 20px rgba(28, 111, 255, 0.08);
  border-color: #9ba3ff;
}

/* --- Product Icon (Left Column) --- */
.cpvc-product-icon {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpvc-product-img {
  width: 100%;
  height: auto;
  max-width: 110px; /* based on SVG width */
}

/* --- Product Info (Name + Description) --- */
.cpvc-product-info {
  flex: 0 0 180px;
  min-width: 0;
}

.cpvc-product-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cpvc-product-desc {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.cpvc-product-stock {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #adb5bd;
}

/* --- Feature Columns --- */
.cpvc-product-features {
  flex: 1 1 auto;
  display: flex;
  gap: 24px;
  min-width: 0;
}

.cpvc-feature-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpvc-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
  font-weight: 600;
}

.cpvc-feature-highlight .cpvc-feature-value {
  font-weight: 600;
  color: #1c6fff;
}

.cpvc-feature-value {
  font-weight: 500;
}

.cpvc-feature-check {
  color: #1c6fff;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Pricing + Order Button (Right Column) --- */
.cpvc-product-pricing {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  min-width: 160px;
}

.cpvc-price {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}

.cpvc-billing-cycle {
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
}

.cpvc-starting-from {
  font-size: 12px;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cpvc-bundle-label {
  font-size: 12px;
  font-weight: 600;
  color: #1c6fff;
  text-transform: uppercase;
}

.cpvc-setup-fee {
  font-size: 11px;
  color: #adb5bd;
}

/* --- Order Now Button --- */
#order-standard_cart .cpvc-products .cpvc-btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #0048E6;
  border: none;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

#order-standard_cart .cpvc-products .cpvc-btn-order:hover {
  background: #003cc2;
  box-shadow: 0 4px 12px rgba(0, 72, 230, 0.4);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

#order-standard_cart .cpvc-products .cpvc-btn-order:active {
  transform: translateY(0);
}

#order-standard_cart .cpvc-products .cpvc-btn-icon {
  width: 14px;
  height: auto;
  flex-shrink: 0;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

@media (max-width: 992px) {
  .cpvc-product-card {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .cpvc-product-icon {
    flex: 0 0 90px;
  }

  .cpvc-product-img {
    max-width: 90px;
  }

  .cpvc-product-info {
    flex: 1 1 auto;
  }

  .cpvc-product-features {
    flex: 1 1 100%;
    order: 3;
  }

  .cpvc-product-pricing {
    order: 2;
    align-items: flex-end;
  }
}

@media (max-width: 576px) {
  #order-standard_cart.cpvc-body {
    padding: 20px 12px;
    border-radius: 20px;
    margin: 10px auto;
  }

  .cpvc-products {
    padding: 0 16px;
  }

  .cpvc-section-title {
    font-size: 24px;
  }

  .cpvc-section-subtitle {
    font-size: 13px;
  }

  .cpvc-product-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  .cpvc-product-icon {
    flex: none;
    margin: 0 auto;
  }

  .cpvc-product-info {
    flex: none;
    text-align: center;
  }

  .cpvc-product-features {
    flex-direction: column;
    gap: 12px;
    order: unset;
  }

  .cpvc-feature-col {
    align-items: center;
  }

  .cpvc-product-pricing {
    order: unset;
    align-items: center;
    text-align: center;
  }

  #order-standard_cart .cpvc-products .cpvc-btn-order {
    width: 100%;
    justify-content: center;
  }
}
