#shop {
  --shop-ease: cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 20px;
  gap: 1rem;
  align-items: stretch;
  display: flex;
  flex-direction: column;
}

#shop .shop-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

#shop .shop-cart-gift,
#shop .shop-cart-gift * {
  max-width: 100%;
  box-sizing: border-box;
}

#shop .shop-cart-gift .btn {
  white-space: normal;
  line-height: 1.25;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
}

#shop .shop-cart-gift .alert,
#shop .shop-cart-gift .card-body,
#shop .shop-cart-gift p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#shop .shop-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#shop .shop-nav-cat {
  background: var(--gradient-1-vertical) !important;
  color: var(--text-color-4);
  border: 0;
  text-align: left;
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#shop .shop-nav-cat[aria-expanded="false"] .arr {
  transition: transform 0.3s var(--shop-ease);
}

#shop .shop-nav-cat[aria-expanded="true"] .arr {
  transform: rotate(90deg);
  transition: transform 0.3s var(--shop-ease);
}

#shop .shop-nav-item {
  color: var(--text-color-1);
  position: relative;
  display: block;
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  opacity: 0.75;
  transition: opacity 0.25s var(--shop-ease), padding-left 0.25s var(--shop-ease);
}

#shop .shop-nav-item::after {
  position: absolute;
  content: "";
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 4px;
  background: var(--gradient-1) !important;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: top 0.25s var(--shop-ease), bottom 0.25s var(--shop-ease);
}

#shop .shop-nav-item:hover,
#shop .shop-nav-item.active {
  padding-left: 24px;
  text-decoration: none;
  opacity: 1;
}

#shop .shop-nav-item:hover::after,
#shop .shop-nav-item.active::after {
  top: 12px;
  bottom: 12px;
}

#shop .shop-nav-body {
  background: 0;
}

#shop .shop-sidebar-header {
  padding: 0.75rem 0.75rem 0;
}

#shop .shop-sidebar-body {
  background: var(--gradient-2);
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

#shop .shop-navigation {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

#shop .shop-navigation .card {
  background: var(--color-4);
  background-size: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

#shop .shop-banner-media {
  max-height: 160px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

#shop .shop-banner-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

#shop .shop-banner {
  border-radius: 16px;
  padding: 1rem 1.15rem;
  background: var(--color-4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  margin: 0;
  transform: none;
}

#shop .shop-banner--overlap {
  border-radius: 16px;
  margin-top: 0.75rem;
  transform: none;
}

#shop .shop-banner h1 {
  font-size: 1.2rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

/* Default = mobile-safe product cards (no floating images) */
#shop .products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  align-items: stretch;
}

#shop .product {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  height: auto;
  min-height: 0;
  background: var(--gradient-2-reverted);
  background-size: 500%;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid color-mix(in srgb, var(--text-color-1) 8%, transparent);
  color: var(--text-color-1);
  border-radius: 18px !important;
  overflow: hidden;
}

#shop .product-media {
  position: static;
  height: auto;
  padding: 1.1rem 1rem 0;
  text-align: center;
}

#shop .product-media-inner {
  position: static;
  height: auto;
  top: auto;
  right: auto;
  left: auto;
  text-align: center;
  pointer-events: auto;
}

#shop .product-media img {
  height: 110px;
  width: auto;
  max-width: 70%;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
  display: inline-block;
}

#shop .product-body {
  margin: 0.5rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

#shop .product-price {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

#shop .product-name {
  text-align: center;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

#shop .product-desc {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.75;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

#shop .product .btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

del::after {
  transform: rotate(345deg) translate(-3px, 8px);
}

.progress {
  position: relative;
  height: 2.5em;
  background: var(--gradient-1-vertical);
  border-radius: 15px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--color-2);
}

.progress-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-4);
  font-weight: bold;
}

#itemModal {
  background: rgba(8, 10, 16, 0.45);
  backdrop-filter: blur(18px);
}

#itemModal .modal-content {
  border-radius: 18px !important;
  border: 0;
  background: var(--color-4);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

#itemModal .modal-body {
  overflow-x: hidden;
}

#itemModal .modal-dialog {
  margin: 0.75rem;
  max-width: calc(100% - 1.5rem);
}

#itemModal .package-row {
  flex-direction: column;
}

#itemModal .package-row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
}

#itemModal .package-description {
  max-height: none;
  padding: 1.25rem !important;
}

#itemModal .btn-custom-close {
  background: color-mix(in srgb, var(--text-color-4) 16%, transparent);
  color: var(--text-color-4);
  border-radius: 999px;
}

#itemModal .btn-custom-close:hover {
  background: color-mix(in srgb, var(--text-color-4) 28%, transparent);
}

.package-infos {
  background: var(--gradient-1);
  border-radius: 0 0 18px 18px;
}

#shop .quantity-input {
  width: 50px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center !important;
  color: var(--color-4) !important;
  background-color: var(--text-color-1) !important;
  border-radius: 0;
}

#shop .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

#shop .quantity-form {
  border-radius: 15px;
  overflow: hidden;
}

#shop .quantity-form.no-bg .quantity-input {
  background: transparent !important;
  color: var(--text-color-1) !important;
}

#shop .minus-btn,
#shop .plus-btn {
  border-radius: 0;
}

#shop .quantity-form.no-bg .minus-btn,
#shop .quantity-form.no-bg .plus-btn {
  background: transparent !important;
  color: var(--text-color-1) !important;
  box-shadow: none !important;
}

#shop .cart-panel,
#shop .cart-summary {
  border-radius: 16px;
  padding: 1.1rem;
  background: color-mix(in srgb, var(--text-color-1) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color-1) 8%, transparent);
}

#shop .cart-line {
  border-radius: 12px;
  transition: background 0.2s var(--shop-ease);
}

#shop .cart-line:hover {
  background: color-mix(in srgb, var(--text-color-1) 7%, transparent);
}

#shop .shop-empty {
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--text-color-1) 20%, transparent);
  background: color-mix(in srgb, var(--text-color-1) 3%, transparent);
  padding: 2rem 1.25rem;
  text-align: center;
}

/* Tablet: 2 columns, still no floating images */
@media (min-width: 576px) {
  #shop .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  #shop .shop-cart-gift .btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Desktop: sidebar + floating product art */
@media (min-width: 992px) {
  #shop {
    flex-direction: row;
    gap: 0;
  }

  #shop .shop-sidebar {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
    align-self: stretch;
  }

  #shop .shop-sidebar-header {
    padding: 20px;
    padding-bottom: 0;
  }

  #shop .shop-sidebar-body {
    padding: 1.15rem;
  }

  #shop .shop-navigation {
    min-height: calc(100vh - 280px);
  }

  #shop .shop-content {
    padding-left: 1rem;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  #shop .shop-banner-media {
    max-height: 280px;
    border-radius: 20px 20px 0 0;
  }

  #shop .shop-banner-media img {
    height: 280px;
    transform: scale(1.02);
    transition: transform 0.6s var(--shop-ease);
  }

  #shop .shop-banner-media:hover img {
    transform: scale(1.06);
  }

  #shop .shop-banner {
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
  }

  #shop .shop-banner--overlap {
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
    transform: translateY(-20px);
  }

  #shop .shop-banner h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
  }

  #shop .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    padding: 4.5rem 0.5rem 1.25rem;
  }

  #shop .product {
    min-height: 280px;
    height: 100%;
    overflow: visible;
    transition:
      transform 0.3s var(--shop-ease),
      box-shadow 0.3s var(--shop-ease),
      border-color 0.3s var(--shop-ease);
  }

  #shop .product:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    border-color: color-mix(in srgb, var(--text-color-2) 40%, transparent);
  }

  #shop .product-media {
    position: relative;
    height: 70px;
    padding: 0;
  }

  #shop .product-media-inner {
    height: 140px;
    position: absolute;
    top: -70px;
    right: 0;
    left: 0;
    pointer-events: none;
  }

  #shop .product-media img {
    height: 140px;
    max-width: 90%;
    transition: transform 0.35s var(--shop-ease);
  }

  #shop .product:hover .product-media img {
    transform: translateY(-6px) scale(1.04);
  }

  #shop .product-body {
    margin: 0.75rem 1.15rem 1.15rem;
  }

  #shop .product-desc {
    -webkit-line-clamp: 3;
    min-height: 3.6em;
  }

  #itemModal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 1140px;
  }

  #itemModal .package-row {
    flex-direction: row;
  }

  #itemModal .package-description {
    max-height: 90vh;
    padding: 3rem !important;
  }

  .package-infos {
    border-radius: 0;
  }
}
