/* user-phocacart.css */
/* === Phoca Cart Styling Overrides === */

/* Product cards */
.ph-pc-box {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}
.ph-pc-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Category view wrapper */
.ph-pc-category-box {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  padding: 1rem;
}

/* Product images — lively effect */
.phocacart-item-box img,
.ph-item-image-full-box img {
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phocacart-item-box img:hover,
.ph-item-image-full-box img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(0, 200, 150, 0.6);
}

/* Base button styling (used for custom ph-pc-btn variants) */
.ph-pc-btn,
button.ph-pc-btn,
a.ph-pc-btn {
  display: inline-block;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.ph-pc-btn:hover,
button.ph-pc-btn:hover,
a.ph-pc-btn:hover {
  transform: translateY(-2px);
}

/* Ripple effect (optional, for ph-pc-btn variants) */
.ph-pc-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-animation {
  to { transform: scale(4); opacity: 0; }
}

/* ===== Buttons rendered by Phoca Cart (robust selectors) ===== */

/* Add to Cart: covers button, submit input, and Bootstrap .btn variants */
.ph-form-button .btn,
.ph-form-button button,
.ph-form-button input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto !important;
}
.ph-form-button .btn:hover,
.ph-form-button button:hover,
.ph-form-button input[type="submit"]:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Checkout/Confirm (if present) */
.ph-item-view-data-box .btn.btn-primary,
.ph-item-view-data-box .btn.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #28a745;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto !important;
}
.ph-item-view-data-box .btn.btn-primary:hover,
.ph-item-view-data-box .btn.btn-success:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* Tickets button in the top area: force compact size and brand accent */
.ph-top .btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ffc107;
  color: #000;
  font-weight: 600;
  border: 1px solid #e0a800;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  width: auto !important;
  white-space: nowrap;
}
.ph-top .btn.btn-secondary:hover {
  background-color: #e0a800;
  border-color: #cf9800;
  color: #fff;
  transform: translateY(-2px);
}

/* Layout fixes: remove giant empty spaces from empty containers */
.ph-form-button:empty,
.ph-form-quantity:empty {
  display: none;
}

/* Optional: tighten default form-group spacing inside the add-to-cart box only */
.ph-item-add-to-cart-box .form-group {
  margin-bottom: 0.5rem !important;
}

/* Optional: quantity input sizing for a cleaner row */
.ph-form-quantity input[type="number"],
.ph-form-quantity input[type="text"] {
  max-width: 6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

/* Ensure the top utility area doesn't force full-width buttons */
.ph-top {
  text-align: left;
}

/* === Reviews block styling === */
.ph-review {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ph-review .ph-review-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: #333;
}

.ph-review .ph-review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.ph-review .ph-review-author {
  font-size: 0.85rem;
  color: #777;
  margin-top: .5rem;
  text-align: right;
}

/* === Phoca Cart buttons === */
button.ph-btn,
input.ph-btn,
a.ph-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background-color: #007bff; /* Primary blue */
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button.ph-btn:hover,
input.ph-btn:hover,
a.ph-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Fix Save button in checkout */
button.ph-btn,
input.ph-btn,
a.ph-btn,
button.btn,
input.btn {
  color: #fff !important;          /* White text */
  background-color: #007bff !important; /* Blue background */
  border: none;
}

/* Hide the misleading Payment Price line in checkout step 4
.ph-checkout-payment-brutto,
.ph-checkout-payment-brutto-txt,
.ph-right.ph-checkout-payment-cost-info,
.ph-checkout-payment-cost-info-txt {
    color: #fdfefa; /* match your background gradient light color
} */

/* Styling iOPRO copyright replacement */
.ph-poweredby-wrap {
    text-align: right;
    margin-top: 1em;
    font-size: 0.85em;
    color: #666;
}

.ph-poweredby-link {
    color: #666;
    text-decoration: none;
}

.ph-poweredby-link:hover {
    text-decoration: underline;
    color: #333;
}

