/* --------------------------------------------------
   GLOBAL LAYOUT & TYPOGRAPHY FOR SINGLE PRODUCT
-------------------------------------------------- */
.woocommerce-cart main p,
.woocommerce-cart main a,
.woocommerce-cart main span,
.woocommerce-cart main h2 {
  font-family: "sora" !important;
  color: #ffffff;
}

.woocommerce-cart
  main
  a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  text-transform: uppercase !important;
}

/* Breadcrumbs */
.single-prod-breadcrumbs {
  margin-bottom: 20px;
  font-size: 14px;
}

/* Hero Section */
.single-prod-hero {
  display: flex;
  gap: 50px;
  align-items: center;
  margin: 0;
}

.details-area button#openBookNow {
  font-family: Inconsolata;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
  color: #bfa37c;
  width: 176px;
  height: 61px;
  opacity: 1;
  border: 1px solid #bfa37c;
  display: grid;
  align-items: center;
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  margin: 30px auto 0 0;
}

/* Gallery Wrapper */
.gallery-wrapper {
  display: flex;
  gap: 20px;
}

/* Thumbnail Column (Vertical) */
.thumb-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.thumb-column::-webkit-scrollbar {
  width: 6px;
}

.thumb-column::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 5px;
}

/* Single thumbnail */
.thumb-item {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s ease;
  background: #111;
}

.thumb-item.active {
  border-color: #bfa37c;
}

.thumb-item img {
  width: 90px;
  height: 60px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}

/* Main large image */
.main-image {
  overflow: hidden;
  position: relative;
}

.main-image img {
  width: 520px;
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

/* image loaded state */
.main-image img.loaded {
  opacity: 1;
}

/* Zoom on hover (desktop) */
@media (min-width: 992px) {
  .main-image:hover img {
    transform: scale(1.08);
  }
}

/* Right content */
.details-area {
  flex: 1;
}

.details-area h1 {
  font-family: Epilogue;
  font-weight: 400;
  font-size: 48px;
  line-height: 55px;
}

.details-area p {
  font-family: Sora;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: #a6a6a6;
}

.book-now-btn {
  padding: 12px 28px;
  border: 1px solid #bfa37c;
  color: #bfa37c;
  border-radius: 4px;
  background: transparent;
  transition: 0.3s;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-now-btn:hover {
  background: #bfa37c;
  color: #000;
}

/* Terms */
.terms {
  max-width: 900px;
  margin: 40px auto 60px;
}

.terms h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

/* Extra Charges */
.extra-charges {
  max-width: 1100px;
  margin: 0 auto 55px;
  text-align: center;
}

.extra-charges h2 {
  margin-bottom: 24px;
}

.extra-charges .boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.extra-charges .box {
  flex: 1;
  border: 1px solid #bfa37c;
  padding: 30px;
  text-align: left;
  background: #050505;
  max-width: 450px;
  width: 100%;
  min-height: 452px;
  height: 100%;
  text-align: center;
}

.extra-charges .box h3 {
  margin-bottom: 12px;
  font-family: Epilogue;
  font-weight: 400;
  font-size: 22px;
  line-height: 60px;
}

.extra-charges .box ul {
  max-width: 240px;
  margin: 0 40px 0 auto;
  text-align: left;
}

.extra-charges .box ul li {
  list-style-type: disc;
  font-family: Epilogue;
  font-weight: 400;
  font-size: 16px;
  line-height: 60px;
  color: #a6a6a6;
}

/* Related vehicles */
.related-vehicles {
  margin: 0 auto 80px;
  text-align: center;
}

.related-vehicles h2 {
  margin-bottom: 24px;
}

.related-vehicles .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.related-vehicles a {
  text-decoration: none;
  color: inherit;
}

.related-vehicles img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}

.related-vehicles p {
  font-size: 14px;
}

/* Modal */
#bookNowModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
}

.book-modal-content {
  width: 90%;
  max-width: 900px;
  background: #0b0b0b;
  margin: 40px auto;
  padding: 30px 30px 40px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
  top: 0;
  position: absolute;
  right: 2%;
}

p.note {
  font-family: Sora;
  font-weight: 200;
  line-height: 140%;
  padding: 0 12px;
}

.book-modal-content h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.book-form {
  margin-top: 10px;
}

.book-form .row {
  display: flex;
  margin: 10px 0;
}

.book-form .col {
  flex: 1;
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  background: transparent;
  border-width: 0 0 1px 0;
  color: #7e7e7e;
  font-size: 15px;
  border-color: #919191;
  border-style: solid;
  font-family: "Sora";
}

.book-form textarea {
  margin: 0 12px;
}
.book-form input:focus-visible {
  outline: none;
}
.unit-price,
.total-price,
.price-breakup {
  font-family: Sora;
  font-weight: 400;
  font-size: 22px;
  line-height: 100%;
  color: #ffffff;
}

.woocommerce-cart main h2 {
  font-size: 48px;
}

h2.wp-block-heading.has-text-align-center:not(.with-empty-cart-icon),
.wp-block-woocommerce-product-new {
  display: none;
}

.price-breakup .unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.total-price,
.price-breakup {
  padding: 20px 12px 30px;
  border-bottom: 1px solid #919191;
}

button.book-now-btn {
  margin-top: 30px;
  font-family: "Sora";
}

.book-form input::placeholder {
  font-family: Sora;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  color: #7e7e7e;
}

.book-form label {
  color: #7e7e7e;
  font-size: 15px;
  font-family: "Sora";
  padding-left: 10px;
}

.unit-row.surcharge-row {
  display: none;
}

.unit-price,
.total-price {
  margin-top: 20px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}

.related-vehicles .grid a.prod-thumb {
  min-height: 352px;
  background-image: url("../images/thumb-bg.png");
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 100%;
  display: flex;
  align-items: end;
}

.related-vehicles .grid a.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  margin-bottom: 50px;
}

.prod-title {
  font-family: Epilogue;
  font-weight: 500;
  font-size: 22px;
  line-height: 100%;
  text-align: center;
  color: #ffffff !important;
  display: block;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.single-product .terms-wrap h2.h2-title {
  margin: 0;
  font-size: 46px;
}

.single-product .terms-wrap h3 {
  font-family: Epilogue;
  font-weight: 400;
  font-size: 22px;
  line-height: 40px;
}

.single-product .terms-wrap ul li {
  list-style-type: disc;
  font-family: Sora;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: #a6a6a6;
  margin: 10px 0 10px 20px;
}

.total-row {
  padding: 30px 0;
  border-width: 1px 0 1px 0;
  border-style: solid;
  border-color: #545a60;
  font-family: Sora;
  font-weight: 400;
  font-size: 22px;
  line-height: 100%;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.book-now-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1199px) and (min-width: 991px) {
  .gallery-wrapper {
    width: 50%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .single-prod-hero {
    flex-direction: column;
  }

  .gallery-wrapper {
    flex-direction: column-reverse;
  }

  .thumb-column {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: unset;
  }

  .thumb-item img {
    width: 100px;
  }

  .main-image img {
    width: 100%;
  }

  .extra-charges .boxes {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .related-vehicles .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .book-form .row {
    flex-direction: column;
    margin: 0;
  }

  .book-form input,
  .book-form select {
    margin: 10px 0;
  }

  .book-form textarea {
    margin: 10px;
  }

  .woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wc-block-components-sidebar-layout.wc-block-checkout
    .wp-block-woocommerce-checkout-totals-block.is-sticky {
    display: none !important;
  }

  .woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wp-block-woocommerce-checkout-fields-block
    .wp-block-woocommerce-checkout-actions-block
    .checkout-order-summary-block-fill-wrapper {
    padding: 16px;
  }
  .book-form select {
    padding-left: 6px;
  }
  .book-form textarea {
    padding-left: 10px;
  }
  .book-form label {
    padding-left: 9px;
  }
}

/* Ultra-small screens */
@media (max-width: 576px) {
  .details-area h1 {
    font-size: 28px;
  }

  .related-vehicles .grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .related-vehicles .grid a.prod-thumb img {
    margin-bottom: 20px;
  }

  .extra-charges .box ul {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  .extra-charges h2 {
    text-align: left;
    margin-bottom: 40px !important;
  }

  .extra-charges .box h3 {
    font-size: 16px !important;
  }

  .details-area button#openBookNow {
    font-size: 14px;
  }

  .book-modal-content {
    padding: 30px 15px 40px;
  }

  .woocommerce-cart
    .wp-block-woocommerce-cart-items-block
    table
    tr.wc-block-cart-items__row {
    display: flex;
    flex-direction: column;
  }

  /* .woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item {
        display: block;
    } */

  /* .woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item span {
        width: 100%;
        display: flex;
    } */

  .woocommerce-cart
    table.wc-block-cart-items
    .wc-block-cart-items__row
    .wc-block-cart-item__wrap
    > * {
    margin: 10px 0 !important;
  }

  .woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wp-block-woocommerce-checkout-fields-block
    .wp-block-woocommerce-checkout-actions-block
    .checkout-order-summary-block-fill-wrapper
    .wc-block-components-order-summary-item {
    flex-direction: column;
  }

  .woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wp-block-woocommerce-checkout-fields-block
    .wp-block-woocommerce-checkout-actions-block
    .checkout-order-summary-block-fill-wrapper
    .wc-block-components-order-summary,
  .woocommerce-checkout
    .wp-block-woocommerce-checkout
    .wp-block-woocommerce-checkout-fields-block
    .wp-block-woocommerce-checkout-actions-block
    .checkout-order-summary-block-fill-wrapper
    .wc-block-components-order-summary-item
    .wc-block-components-order-summary-item__description {
    padding: 0;
  }

  .woocommerce-cart span.wc-block-components-totals-item__label {
    text-transform: capitalize;
    font-size: 13px;
  }
}

.woocommerce-cart span.wc-block-components-totals-item__label {
  text-transform: uppercase;
}

.wc-block-checkout__sidebar .wc-block-components-product-name,
.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-formatted-money-amount,
.wc-block-components-product-details__name,
.wc-block-components-product-details__value,
.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wc-block-components-totals-item__label,
.wc-block-components-checkbox .wc-block-components-checkbox__label,
.wc-block-components-checkbox > span,
span.wc-block-components-checkbox__label,
.wc-block-components-checkout-return-to-cart-button {
  color: #fff !important;
}
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper,
.wc-block-components-totals-coupon.wc-block-components-panel {
  display: none;
}
.wp-block-woocommerce-checkout-order-summary-block {
  border: 1px solid #bfa37c !important;
}

.wc-block-checkout__actions
  .wc-block-checkout__actions_row
  .wc-block-components-checkout-place-order-button {
  height: auto;
  padding: 1em;
  width: 50%;
  border: 1px solid #bfa37c;
  color: #bfa37c;
}

.woocommerce-cart .col-md-4 {
  display: none;
}

.woocommerce-cart .col-md-8 {
  width: 100%;
}

/* ------------------------------------
   TITANIUM – PREMIUM CART STYLING
------------------------------------ */

/* Make cart layout full-width */
.wc-block-components-sidebar-layout {
  /* display: grid !important; */
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

/* Hide sidebar totals area (we'll restyle below) */
/* .wc-block-components-sidebar {
    display: none !important;
} */

h2.wp-block-woocommerce-cart-order-summary-heading-block {
  color: #ffffff !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item {
  padding: 16px 0 !important;
}

.wc-block-components-address-card
  address
  .wc-block-components-address-card__address-section--secondary {
  color: #ffffff !important;
}

/* GLOBAL TYPOGRAPHY */
.wc-block-cart__main,
.wc-block-components-main {
  font-family: inherit;
  color: #ffffff;
}

/* Main cart wrapper */
.wc-block-cart {
  padding: 30px;
  background: #0f0f0f;
  border-radius: 10px;
  border: 1px solid rgba(191, 163, 124, 0.3);
}

/* Cart title */
.nsc-paged-title {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

/* ------------------------------------
   CART TABLE
------------------------------------ */

/* Header */
.wc-block-cart-items__header th {
  color: #bfa37c;
  font-size: 16px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(191, 163, 124, 0.2);
}

/* Table rows */
.wc-block-cart-items__row {
  border-bottom: 1px solid rgba(191, 163, 124, 0.15);
}

/* Product name */
.wc-block-components-product-name {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 500;
}

/* Product image */
.wc-block-cart-item__image img {
  border-radius: 8px;
  border: 1px solid rgba(191, 163, 124, 0.25);
}

/* Product metadata */
.wc-block-components-product-details__name {
  color: #bfa37c !important;
  font-size: 14px;
}

.wc-block-components-product-details__value {
  color: #ffffff;
}

/* Price styling */
.wc-block-components-product-price__value {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 18px;
}

/* ------------------------------------
   QUANTITY BOX
------------------------------------ */

.wc-block-components-quantity-selector {
  background: #1a1a1a;
  border-radius: 6px;
  border: 1px solid rgba(191, 163, 124, 0.2);
}

.wc-block-components-quantity-selector__input {
  background: transparent;
  color: #ffffff;
  border: none;
}

.wc-block-components-quantity-selector__button {
  background: transparent;
  color: #bfa37c !important;
  border: none;
}

/* Remove link */
.wc-block-cart-item__remove-link {
  color: #bfa37c !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------------
   TOTALS SECTION (Restyled)
------------------------------------ */

.wc-block-cart__payment-options,
.wc-block-cart__submit-container {
  margin-top: 35px;
}

/* Est. total */

.wc-block-components-totals-item__label {
  color: #bfa37c;
  font-size: 15px;
}

.wc-block-components-totals-item__value span {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 600;
}

/* ------------------------------------
   PROCEED TO CHECKOUT BUTTON
------------------------------------ */

.woocommerce-cart .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  font-family: Inconsolata;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
  color: #bfa37c;
  width: 100%;
  height: 61px;
  opacity: 1;
  border: 1px solid #bfa37c;
  display: grid;
  align-items: center;
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  z-index: 2 !important;
}

.woocommerce-cart .wc-block-cart__submit-button::before,
.wc-block-components-checkout-place-order-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: #bfa37c;
  transition: right 0.3s ease-in-out;
  z-index: -1;
}

.woocommerce-cart .wc-block-cart__submit-button:hover::before,
.wc-block-components-checkout-place-order-button:hover::before {
  right: 0;
}

.woocommerce-cart .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  color: #000 !important;
}

.woocommerce-checkout .wc-block-components-totals-footer-item {
  padding: 16px !important;
}

.woocommerce-order-received h2.nsc-paged-title {
  text-align: center;
  text-transform: capitalize;
}

/* ------------------------------------
   RESPONSIVE
------------------------------------ */

@media (max-width: 768px) {
  .wc-block-cart {
    padding: 20px;
  }

  .nsc-paged-title {
    font-size: 30px;
  }

  .wc-block-components-product-name {
    font-size: 16px;
  }
}

.textarea-wrapper {
  position: relative;
  width: 97%;
}
#charCount {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 0px;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  width: 100%;
}
.qty-control input {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.qty-btn {
  width: 29px;
  height: 29px;
  border: 1px solid #ccc;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.qty-btn:hover {
  background: #333;
}
/* Popup */
p#serviceNote,
.price-breakup {
  padding-left: 26px;
}
.book-form select {
  padding-left: 5px;
}
.book-form textarea {
  padding-left: 10px;
}
input#cars,
input#passengers,
input[type="number"] {
  padding-left: 12px;
}
p#serviceNote,
.price-breakup,
p.note {
  padding-left: 20px;
}
