.sklep-container {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease,
        box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  background: #f8f9fa;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.product-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  margin-bottom: 20px;
}

.btn-add-to-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-add-to-cart:hover {
  filter: brightness(0.9);
}

/* Shop modals for forms and confirmations */

.shop-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.shop-modal-close:hover {
  color: var(--primary);
}

/* Product detail popup grid and typography */

/* Administrator buttons to add products */

.admin-add-product-wrapper {
  text-align: center;
  margin-top: 50px;
  padding: 40px 0;
  border-top: 1px dashed #ccc;
}

.btn-admin-add {
  background: var(--primary);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-admin-add:hover {
  filter: brightness(0.9);
  transform: scale(1.05);
}

/* Form inputs inside shop modals */

/* Floating cart trigger button and badge */

.cart-trigger {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--primary);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease;
}

.cart-trigger:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
}

/* Individual items inside the cart summary */

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.cart-item-qty input {
  width: 50px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
}

.btn-checkout:hover {
  filter: brightness(0.9);
}

/* Container for InPost map geowidget */

/* Reusable shop buttons and state labels */

.btn-filter-active {
  background: var(--primary) !important;
  padding: 8px 15px;
  border-radius: 20px;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-filter-inactive {
  background: #f1f2f6 !important;
  color: #333 !important;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: none !important;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eee;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image-placeholder-icon {
  font-size: 40px;
  color: #ccc;
}

.product-category-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
}

.empty-products-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
}

.admin-actions-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Modal containers and removed inline styling adjustments */

.shop-flow-modal-card {
  max-width: 950px;
  min-height: 500px;
  transition: max-width 0.3s ease;
}

.shop-flow-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 100;
}

.shop-flow-title {
  padding-right: 40px;
}

.shop-flow-body {
  max-height: none;
  overflow: visible;
}

.admin-add-product-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.admin-modal-lg {
  max-width: 900px;
}

.table-responsive {
  overflow-x: auto;
}

.table-default {
  width: 100%;
  text-align: left;
  font-size: 14px;
  border-collapse: collapse;
}

.table-default th {
  padding: 12px;
}

.table-default td {
  padding: 12px;
}

.table-header {
  background: #f8f9fa;
  border-bottom: 2px solid #eee;
}

.text-right-btn {
  text-align: right;
  margin-top: 20px;
}

/* Mobile-friendly cart table transformation */

@media (max-width: 600px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr.cart-table-row {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right !important;
    border-bottom: 1px dashed #eee !important;
    padding: 15px !important;
  }

  .cart-table td[colspan] {
    display: block !important;
    text-align: center !important;
    padding: 30px 15px !important;
    border-bottom: none !important;
  }

  .cart-table td:last-child {
    border-bottom: none !important;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    margin-right: 15px;
    text-transform: uppercase;
    font-size: 11px;
  }

  .cart-table td[colspan]::before {
    display: none !important;
  }

  .cart-td-product {
    flex-direction: column;
    align-items: flex-start !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
  }

  .cart-td-product::before {
    display: none;
  }

  .cart-td-product img {
    margin-bottom: 0;
  }
}

/* User profile layout and tables */

.profil-hero {
  padding: 60px 0 30px;
}

.profil-layout {
  align-items: flex-start;
}

.profil-sidebar-inner {
  padding-right: 30px;
}

.list-unstyled {
  list-style: none;
}

.text-purple {
  color: #8e44ad !important;
}

.text-red {
  color: #e74c3c !important;
}

.table-responsive-wrapper {
  overflow-x: auto;
}

.table-orders {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.table-orders th,
.table-orders td {
  padding: 12px;
}

.text-dark-blue {
  color: #2c3e50;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}

.status-paid {
  background: #27ae60;
}

.status-pending {
  background: #f39c12;
}

.status-failed {
  background: #e74c3c;
}

.qty-badge {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f2f6;
  color: #555;
}

.btn-download-small {
  padding: 4px 10px;
  font-size: 11px;
  background: var(--primary);
  min-width: max-content;
  box-shadow: none;
}
.invoice-info-box {
  background: #eaf2f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.invoice-info-icon {
  color: #3498db;
  font-size: 1.8em;
}
.invoice-info-text {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
