/* Container for entire package page */
.package-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 52px 24px;
}

.package-page {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left section: main slider + thumbnails below */
.package-left-section {
    display: flex;
    flex-direction: column;
    width: 48%;
    gap: 12px;
}

/* Main slider styles */
.slider-main-wrapper {
    width: 100%;
    max-width: 100%;
}

.main-slider {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0; /* no margin bottom because thumbnails below */
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Hide main slider arrows */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    display: none;
}

/* Thumbnail wrapper horizontal below main slider */
.slider-thumbs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    gap: 12px;
}

/* Thumbnail navigation arrows left and right */
.thumbs-arrow {
    cursor: pointer;
    color: #FD5C37;
    font-size: 24px;
    user-select: none;
    width: 30px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.thumbs-arrow:hover {
    color: #004a9f;
}

/* Position arrows left and right */
#thumbs-prev {
    order: 0; /* left arrow */
    left: 0;
}

#thumbs-next {
    order: 2; /* right arrow */
    right: 0;
}

/* Thumbnails slider horizontal */
.swiper-thumbs {
    width: calc(100% - 72px); /* full width minus arrows (2 * 30px + gap) */
    height: 100px;
    box-sizing: border-box;
    order: 1;
}

.swiper-thumbs .swiper-wrapper {
    flex-direction: row;
    align-items: center;
}

/* Thumbnail slides horizontal */
.swiper-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 8px;
    margin-right: 10px;
    box-sizing: border-box;
    transition: opacity 0.3s, border-color 0.3s;
}

.swiper-thumbs .swiper-slide:last-child {
    margin-right: 0;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #FD5C37;
    border-radius: 10px;
}

.swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
}

/* Package info column */
.package-info {
    width: 48%;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
}

.package-info h1 {
    margin-bottom: 0.5rem;
    font-size: 34px;
    font-weight: 500;
    margin-top: 0;
    line-height: 1;
    color: #FD5C37;
}
.package-variant-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 8px;
}
.package-tabs {
    width: fit-content;
    font-size: 12px;
    color: #ff5c33;
    font-weight: 500;
    gap: 0;
    display: flex;
}
.package-tab-btn {
    cursor: pointer;
    background: #ff5c332b;
    padding: 4px 6px;
    border-top: 1px solid #ff5c33;
    border-bottom: 1px solid #ff5c33;
    border-right: 1px solid #ff5c33;
}
.package-tab-btn.active {
  background: #ff5c33;
  color: #fff;
}

.package-tab-btn:first-of-type {
  border-left: 1px solid #ff5c33;
  padding: 4px 8px;
  border-radius: 50px 0 0 50px;
}
.package-tab-btn:last-of-type {
  padding: 4px 8px;
  border-radius: 0 50px 50px 0;
}
.package-tab-content, .package-tab-price, .package-tab-desc {
  display: none;
}
.package-tab-content.active, .package-tab-price.active, .package-tab-desc.active  {
  display: block;
}
.no-of-kids{
    color: rgb(151, 93, 213);
    font-size: 14px;
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-direction: column;
}
.no-of-kids i {
    font-size: 16px;
    padding-right: 4px;
}
.package-variant {
    color: #FD5C37;
    background-color: rgba(255, 92, 51, 0.17);
    border: 2px solid #FD5C37;
    padding: 2px 10px;
    border-radius: 50px;
    width: fit-content;
    font-weight: 500;
    font-size: 14px;
}

.package-info p.description {
    font-size: 1rem;
    color: #444;
    margin: 4px 0;
}

.package-info h3.price {
    margin-top: 1rem;
    font-size: 24px;
    color: #FD5C37;
    margin: 4px 0;
}

h3.price span {
  font-size: 16px;
  font-weight: 400;
  color: #41087e;
}

.package-info h4 {
    margin-top: 1.5rem;
}

.inventory-quantity {
    color: #38bf38;
    margin-right: 12px;
    font-size: 18px;
}
.package-left-section{
    display: flex;
    align-items: start;
    width: 48%;
    gap: 8px;
}
.swiper-thumbs .swiper-slide:last-child {
  margin-bottom: 0;
}
.package-info{
    width: 48%;
}
.intventory-table {
    display: flex;
    align-items: center;
    padding: 4px 2px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}
.inventory-quantity {
    margin-right: 12px;
    font-size: 18px;
    flex: 0 0 40px;
    font-weight: bold;
    color: #4caf50;
    text-align: center;
    margin-right: 14px;
    font-size: 16px;
}
.inventory-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px 0 0;
}
.inventory-colors {
    flex: 0 0 120px;
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
    color: gray;
}
.color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.1);
}

.color.selectable {
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s;
  border: none;
}


/* Remove border on selected, show checkmark */
.color.selectable.selected {
  border-color: transparent;
  overflow: hidden;
}

/* White checkmark using ::after */
.color.selectable.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    color: white;
    font-size: 13px;
    pointer-events: none;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.intventory-table.header .inventory-quantity,
.intventory-table.header .inventory-title,
.intventory-table.header .inventory-colors   {
    color: #91818199;
    font-weight: 400;
    font-size: 14px;
}

  /* Personalization form side by side */
  #personalImages {
    display: none;
  }
  #personalNote {
    /* border: 1px solid #fd5c3763; */
  }
  #personalNote:focus {
    border-color: initial;
    outline: 0;
    box-shadow: none;
    border: initial;
    border: 1px solid #fd5c3763;
  }
  .personalization-form {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .personal-img-wrapper {
    display: flex;
    flex-direction: column;
  }
  #previewContainer button {
      padding: 2px !important;
  }

  /* Styled label as button */
  .custom-file-upload {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fd5c37;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    text-align: center;
  }
  .custom-file-upload:hover {
    background-color: #e54b24;
  }

  /* Preview images container */
  .image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .image-preview-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
  }
  .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .image-preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
  }

  /* Delivery form side by side */
  #delivery-form {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
  }
  #delivery-form label {
    flex: 0 0 100%;
  }
  #delivery-date, #pincode {
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #fd5c3763;
    flex: 1;
    outline: none;
  }
  .check-delivery, .addToCartBtn {
    flex: 1 0 100%;
    padding: 11px 20px;
    background: #fd5c37;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  .check-delivery:hover, .addToCartBtn:hover {
    background:  rgb(33, 11, 57);;
  }
  .addToCartBtn {
    background: rgb(65, 8, 126);
    /* display: none; */
  }
  /* Notes and error */
  .note {
    font-size: 0.85rem;
    color: #555;
  }
  .error {
    color: red;
    font-size: 0.9rem;
  }

  .delivery-wrapper{
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .productSwiper {
    padding: 1px;
  }
  .productSwiper img{
    width: 100%;
    height: 130px;
  }

  .product-swiper-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 20px auto;
}

.thumbs-arrow {
  cursor: pointer;
  color: #fd5c37;
  font-size: 24px;
  user-select: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: color 0.3s;
}

.thumbs-arrow:hover {
  color: #41087e;
}

#addons-thumbs-prev {
  left: -16px;  /* place 40px left of slider */
}

#addons-thumbs-next {
  right: -16px; /* place 40px right of slider */
}
.addons-wrapper{
  position: relative;
  padding: 8px 16px;
}
.addons-wrapper .btn-primary:hover {
  background-color: #41087e;
}
.addons-wrapper .btn-primary, #confirmAddToCart {
  background-color: #FD5C37;
  border: none;
}
.addons-wrapper h3 {
    font-size: 20px;
    color: #fd5c37;
    margin-left: -16px;
}
.addons-wrapper .swiper-slide{
  padding:  0 0 20px 0 !important;
}

.addons-wrapper .swiper-slide > div {
  padding: 0 4px;
  word-break: break-word;
  font-size: 14px;
}
/* Hide default checkbox */
#personalizationCheck[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #FD5C37;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Hover effect */
#personalizationCheck[type="checkbox"]:hover {
  border-color: #a8431f;
}

/* Checked state */
#personalizationCheck[type="checkbox"]:checked {
  background-color: #FD5C37;
  border-color: #FD5C37;
}

/* Checkmark */
#personalizationCheck[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Focus outline */
#personalizationCheck[type="checkbox"]:focus {
  box-shadow: 0 0 3px 2px rgba(253, 92, 55, 0.6);
}
.delivery-details {
    font-size: 12px;
    color: #fd5c37;
}
.delivery-details span {
  font-weight: 600;
}
.personalNotetext {
    font-size: 14px;
    font-style: italic;
    color: gray;
}
.confirm-add-to-cart-body {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.add-to-cart-success {
  width: 100%;
  text-align: center;
  display: none;
  justify-content: center;
}

.success-badge {
  width: 150px;
  height: 150px;
  background: green;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  color: #ffffff;
  margin: 0 auto;
}

.add-to-cart-success p {
  margin-bottom: 0;
}

.add-to-cart-success .title {
  font-size: 30px;
}

.add-to-cart-success .subtitle {
  font-size: 18px;
  font-style: italic;
}

.inventory-items span {
    display: inline-block;
    font-size: 14px;
}

h6 {
  color: #FD5C37;
  margin-top: 24px;
}
.choose-text {
  font-size: 12px;
  color: #975dd5;
}
.inventory-colors .dropdown button {
  padding: 4px;
  border-color: #41087e;
  color: #41087e;
  background-color: transparent !important;
  outline: none;
  width: 100%;
}

.inventory-colors .dropdown button:hover {
  background-color: transparent;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.color-circle i {
  display: none;
}
.selected .color-circle i {
  display: block;
}
.bg-red { background-color: #dc3545; }
.bg-blue { background-color: #0d6efd; }
.bg-green { background-color: #198754; }
.bg-yellow { background-color: #ffc107; }

.color-option-label {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 8px;
}

.color-option-label.selected {
  background-color: #f3e8ff; /* light purple */
}

.color-option-label.disabled {
  background-color: #e9ecef; /* light gray */
  cursor: not-allowed !important;
  pointer-events: all;
}
#delivery-date::placeholder {
  color: #999;
  font-style: italic;
}

input#pincode::placeholder {
  color: #999;
  font-style: italic;
}

.addToCartBtn:disabled {
  color: #fff;
  pointer-events: none;
  background-color: #41087e63;
  border-color: #41087e63;
  opacity: 1;
}

.add-to-cart-success .success-buttons a {
  text-decoration: none;
  padding: 10px;
  background: rgb(65, 8, 126);
  display: inline-block;
  width: 170px;
  margin: 12px 8px 0;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
}

.add-to-cart-success .success-buttons a:hover {
  color: #fff;
  background-color: rgb(33, 11, 57);
}

.order-summary-wrapper {
  min-width: 220px
}


@media (max-width: 768px) {
  .package-page {
    flex-direction: column;
    padding: 0;
  }
  .package-left-section{
    width: 100%;
  }
  .package-info{
    width: 100%;
  }
  .package-info {
    padding: 0;
  }
  #addToCartModal .modal-body{
    padding-right: 0;
  }
  #addToCartModal .confirm-add-to-cart-wrapper {
    max-width: 54% !important;
    padding-right: 12px !important;
  }
  #addToCartModal .personalization-label{
    font-size: 13px;
  }
  #addToCartModal .addons-wrapper {
    padding: 8px;
  }
  #addToCartModal .addons-wrapper h3{
    font-size: 16px;
  }
  #addToCartModal .order-summary-wrapper {
    min-width: 0;
    flex-grow: 1;
  }
  #addToCartModal .order-summary-wrapper h6 {
    font-size: 14px;
    margin-top: 0;
  }
  #addToCartModal .order-summary-wrapper > div {
    font-size: 12px;
    word-break: break-all;
  }
  #addToCartModal .grandtotal {
    font-size: 16px !important;
  }
  #addToCartModal .modal-footer {
    justify-content: center;
  }
  #addToCartModal .modal-error {
    text-align: center;
  }
  #addToCartModal .confirm-add-to-cart-body{
    gap: 8px;
  }
}