/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  /* Colors */
  --clr-text: #131B1E;
  --clr-muted: #808080;
  --clr-white: #ffffff;
  --clr-black: #000000;

  --clr-primary: #28a1c0;
  /* blue from your spec */
  --clr-danger: #E33D3B;
  /* red from your spec */

  --clr-mint: #F9F9F9;
  /* light bg */
  --clr-aqua-1: #84D8D0;
  --clr-aqua-2: #C6FCF5;

  /* Typography */
  --ff-sans: "Inter", sans-serif;
  --ff-serif: "Inter", sans-serif;

  --fs-h1: 36px;
  /* line-height 32 */
  --lh-h1: 40px;

  --fs-sub: 14px;
  /* line-height 16 */
  --lh-sub: 16px;

  --fs-title: 20px;
  /* line-height 22 */
  --lh-title: 22px;

  --fs-price: 16px;
  /* line-height 18 */
  --lh-price: 18px;

  --fs-badge: 12px;
  /* line-height 13 */
  --lh-badge: 13px;

  /* Layout */
  --container-max: 1216px;
  /* matches Rectangle 1892 width in Figma */
  --gutter: 32px;

  /* Cards */
  --card-w: 380px;
  --card-h: 451px;
  --media-h: 380px;
  --radius: 0px;

  /* Shadows / borders */
  --border: 1px solid rgba(0, 0, 0, 0.20);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Base Resets
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

body {
  margin: 0;
}

/* =========================================================
   Bundle Section
   ========================================================= */
.deal-card {
  padding: 40px 24px 64px;
  padding-top: 40px;
  padding-bottom: 0px;
  background: var(--clr-white);
  color: var(--clr-text);
  font-family: var(--ff-sans);
}

.deal-card.page-header {
  padding-bottom: 0px;
}

.bundle {
  margin-top: 16px;
}

.deal-card {
  max-width: calc(var(--container-max) + 2 * 8px);
  margin-inline: auto;
}

.bundle__header {
  margin-bottom: 24px;
}

.bundle__title,
.deal-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 400;
    font-family: var(--ff-serif);

  margin: 0;
  color: var(--clr-text);
}

.bundle__subtitle,
.deal-description {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  margin: 6px 0 0 0;
  margin-top: 16px;
  color: var(--clr-text);
}

/* Container mimicking your large rectangle with a subtle border */
.bundle__content {
  border: var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 379px;
  /* left area + summary width from spec */
  gap: 24px;
}

/* Left column: card grid */
.bundle__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  position: relative;
}

/* “+” signs positioned visually similar to Figma */
.bundle__plus {
  position: absolute;
  right: -34px;
  top: 38%;
  font-family: var(--ff-sans);
  font-size: 36px;
  line-height: 32px;
  color: var(--clr-primary);
  user-select: none;

  transform: translate(-54%, 0);
}

.card-bundle:nth-child(even) .bundle__plus {
  top: inherit;
  bottom: -30px;
  left: 0;
}

.bundle__plus--lower {
  top: calc(var(--media-h) + 110px);
  left: 180px;
  /* fine-tune based on final images */
}

/* Right column: summary */
.bundle__summary {
  margin-top: 33px;
  padding-top: 84px;
  border-left: var(--border);
  padding-left: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 85%;
}

.deals-list-container .page-title {
  line-height: 100%;
  font-size: 60px;
  font-family: var(--ff-serif);

}

.summary__title {
  font-size: var(--fs-h1);
  line-height: 31px;
  font-weight: 400;
  margin: 0 0 8px 0;
    font-family: var(--ff-serif);

}

.summary__desc {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  padding-top: 6px;
  margin: 0 0 8px 0;
}

.summary__total {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--clr-primary);
  font-weight: 500;
  margin: 0 0 16px 0;
}

.bundle .summary__cta {
  border-radius: 5px;
  background: #0095c3;
  color: white;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 10px;
  width: 100%;
  display: block;

  border-radius: 25px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  font-weight: 500;
  cursor: pointer;
}

.summary__cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--clr-primary) 50%, white);
  outline-offset: 2px;
}

.summary__small {
  margin-top: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--clr-muted);
}

/* =========================================================
   Card
   ========================================================= */


.card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  gap: 8px;
  z-index: 2;
}

.badge {
  font-size: var(--fs-badge);
  line-height: var(--lh-badge);
  color: var(--clr-white);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.badge--primary {
  background: var(--clr-primary);
}

.badge--danger {
  background: var(--clr-danger);
}

.card__media {
  height: var(--media-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__media--mint {
  background: var(--clr-mint);
}

.card__media--aqua {
  background: var(--clr-aqua-2);
  /* if you want the exact two-tone variants, you can swap to --clr-aqua-1 per card */
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 16px;
}

.card__title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 400;
  color: var(--clr-text);
  margin: 0 0 8px 0;
  max-width: calc(var(--card-w) - 32px);
}

/* Pricing */
.price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.price__current {
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  font-weight: 500;
  color: var(--clr-text);
}

.price__current--sale {
  color: var(--clr-danger);
}

.price__current--primary {
  color: var(--clr-primary);
}

.price__compare {
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  color: rgba(0, 0, 0, 0.50);
  text-decoration: line-through;
}

.card__note {
  margin: 6px 0 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--clr-danger);
}



.card-bundle .hover-block-product {
  display: none !important;
}

.card-bundle {
  position: relative;
}

/* Filter Buttons */
.filter-buttons {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.deals-list-container {
  padding-bottom: 120px;
}

.deals-list-container .filter-btn {
  font-weight: 400;
  font-size: 18px;
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  margin-right: 22px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.deals-list-container .filter-btn.active,
.deals-list-container .filter-btn:hover {
  font-weight: 500;
  color: rgba(40,161,192, 1);
  text-decoration: underline;
}

.deals-list-container .card-bundle .product-image img {
  width: 100%;
}

.deals-list-container .product-title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 400;
  color: var(--clr-text);
  padding-top: 18px;
  margin: 0 0 10px 0;
  max-width: calc(var(--card-w) - 32px);
}

.deals-list-container .savings {
  width: 100%;
  display: block;
  font-size: 16px;
  color: #000000;
}

.deals-list-container .product-price {
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  font-weight: 500;
  color: rgba(40,161,192, 1);
  margin: 0;
}

.deals-list-container .old_price {
  font-size: 16px;
  text-decoration: line-through;
}

.deals-list-container .original-price {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;

}

.bundle-price {
  padding-right: 8px;
  font-size: 16px;
  color: rgba(40,161,192, 1);
}

.text-blue-price {
  color: rgba(40,161,192, 1);
}

/* Bundle Customization Modal */
.bundle-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.bundle-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bundle-modal-header h3 {
  margin: 0;
  color: #333;
}

.bundle-modal-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-modal-close:hover {
  color: #333;
}

.bundle-modal-body {
  padding: 20px;
}

.customizable-products-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.customizable-products-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-name {
  font-weight: 500;
  flex: 1;
}

.product-quantity {
  color: #666;
  margin: 0 15px;
}

.customize-product-btn {
  background: var(--clr-primary, #0095c3);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.customize-product-btn:hover {
  background: #007da3;
  color: white;
}

.bundle-modal-instructions {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid var(--clr-primary, #0095c3);
}

.bundle-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.bundle-modal-footer .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.bundle-modal-footer .btn-secondary {
  background: #6c757d;
  color: white;
}

.bundle-modal-footer .btn-secondary:hover {
  background: #5a6268;
}

.bundle-modal-footer .btn-primary {
  background: var(--clr-primary, #0095c3);
  color: white;
}

.bundle-modal-footer .btn-primary:hover {
  background: #007da3;
}


.deal-products-grid-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 30px;
}

.deal-products-grid-list .product img {
  width: 100%;
}

.deal-products-grid {
  margin-top: 16px;
}

.deal-products-grid-list .swiper-recommended {
  padding-bottom: 20px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .bundle__plus {
    left: 50%;
    transform: translate(-50%, 0);
    top: inherit;
    bottom: 0;
    right: inherit;
    left: inherit;
    bottom: -35px;
  }

  .bundle__list {
    grid-template-columns: 1fr;
    /* one card per row */
    justify-items: center;
  }

  .card-bundle {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .card-bundle:nth-child(even) .bundle__plus {
    right: inherit;
    left: inherit;
    bottom: -35px;
  }

  .summary__total {
    font-size: 24px;
  }
}

@media (max-width: 860px) {

  .bundle__plus,
  .card-bundle:nth-child(even) .bundle__plus {

    bottom: -38px;
  }

  .filter-buttons {
    margin-top: 30px;
  }

  .deals-list-container .filter-btn {
    font-size: 16px;
  }

  .page-title {
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;

  }

  .bundle__content {
    grid-template-columns: 1fr;
  }

  .bundle__summary {

    border-left: none;
    border-top: var(--border);
    padding: 0;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .bundle__list {
    grid-template-columns: 1fr;
    /* one card per row */
    justify-items: center;

  }

  .deal-products-grid-list ul {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .bundle__summary #summary-title,
  .bundle__summary .summary__desc {
    display: none;

  }

  .bundle__summary {
    border-top: 0px;
    padding-top: 24px;
    margin: 0px;
  }

  .bundle__content {
    gap: 0px;
  }

  .card-bundle {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-card {
    display: grid;
    grid-template-columns: 39% 58%;
    grid-gap: 3%;
    font-size: 14px;
    align-items: center;
  }

  .product-card .product-title,
  .product-card .product-price {
    font-size: 14px;
  }

  .product-card .product-title {
    font-weight: 500;
    margin-top: 0px;
    padding-top: 0px;
  }

  .bundle__list.products {
    gap: 42px;
  }

  .deals-list-container .page-title {

    font-weight: 400;
    font-size: 24px;

    line-height: 24px;


  }

  .summary__total {
    padding-top: 24px;
  }

  .filter-buttons {
    gap: 0;
  }
  .deal-card { 
    margin-top: 36px;
 padding: 0;
  }
  .bundle__title, .deal-title {
      font-family: var(--ff-serif);

    font-size: 24px;
  }
}
