/* Single product page — Shopify PDP styling */

.npd-single-product-page .product.type-product {
	margin-bottom: 0;
}

/* Blocksy sets overflow-x: hidden on body, which creates a scroll
   container and prevents position: sticky from working. clip does not. */
body.npd-single-product-page {
	overflow-x: clip;
}

.npd-pdp {
	--npd-pdp-accent: #459bff;
	--npd-pdp-border: rgba(18, 18, 18, 0.1);
	--npd-pdp-card-radius: 16px;
	--npd-pdp-card-padding: 2rem;
	font-family: 'Outfit', sans-serif;
	margin: 0;
}

.npd-pdp__container {
	padding-top: 1rem;
	padding-bottom: 2rem;
}

.npd-pdp-flair-wrap {
	padding-top: 16px;
	padding-bottom: 0;
}

.npd-pdp-flair-banner {
	background: var(--npd-pdp-accent);
	color: #fff;
	text-align: center;
	border-radius: 10px;
	padding: 10px;
}

.npd-pdp-flair-banner p {
	margin: 0;
}

.npd-pdp__mobile-title {
	padding-top: 12px;
	padding-bottom: 0;
}

.npd-pdp__mobile-title .product-title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.1;
}

/* Top product grid: gallery+specs | buy box */
.npd-pdp__product {
	display: grid;
	gap: 1rem;
}

.npd-pdp__media-middle-wrap {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.npd-pdp__gallery,
.npd-pdp__middle,
.npd-pdp__buy {
	min-width: 0;
}

.npd-pdp__middle,
.npd-pdp__gallery,
.npd-pdp__buy {
	background: #fff;
	border-radius: var(--npd-pdp-card-radius);
	padding: var(--npd-pdp-card-padding);
	border: 1px solid var(--npd-pdp-border);
}

.npd-pdp__gallery .woocommerce-product-gallery {
	margin: 0;
}

.npd-pdp__gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.npd-pdp__gallery .flex-control-thumbs li {
	width: 72px;
	margin: 0;
}

.npd-pdp__gallery .woocommerce-product-gallery__image img {
	border-radius: 8px;
}

/* Variant specs column */
.npd-variant-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: space-evenly;
	align-items: center;
	gap: 1.25rem;
}

.npd-variant-specs__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	text-align: center;
	width: 100%;
}

.npd-variant-specs__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.npd-variant-specs__icon--flavour {
	padding: 5px 5px 0;
}

.npd-variant-specs__icon--flavour img {
	object-fit: contain;
	max-width: 64px;
	height: auto;
}

.npd-variant-specs__icon--format img {
	width: 60px;
	height: auto;
}

.npd-variant-specs__icon--strength svg {
	width: 100%;
	max-width: 150px;
	height: auto;
}

.npd-variant-specs__text,
.npd-variant-specs__strength-per-pouch {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
}

.npd-variant-specs__strength-per-pouch {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.npd-variant-specs__strength-value {
	font-weight: 700;
	font-size: 1.7rem;
	line-height: 1;
}

.npd-variant-specs__strength-unit {
	font-size: 0.95rem;
}

/* Buy box */
.npd-pdp-buy-box__title {
	display: none;
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 2vw, 2rem);
	line-height: 1.1;
}

.npd-pdp-buy-box .price,
.npd-pdp-buy-box__price .price,
.npd-pdp-buy-box__price .sale-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.5rem;
	font-size: 1.3rem;
	font-weight: lighter;
	margin-bottom: 0;
}

.npd-pdp-buy-box .price del,
.npd-pdp-buy-box__price del,
.npd-pdp-buy-box__price .sale-price del {
	opacity: 0.55;
	font-weight: 400;
	text-decoration: line-through;
}

.npd-pdp-buy-box .price ins,
.npd-pdp-buy-box__price ins,
.npd-pdp-buy-box__price .sale-price ins {
	text-decoration: none;
	font-weight: 700;
}

.npd-pdp-buy-box__reviews-slot:empty {
	display: none;
}

.npd-pdp-buy-box__reviews-slot .npd-yotpo-star-rating:empty {
	display: none;
}

.npd-pdp-hr {
	border: 0;
	height: 1px;
	background: #ededed;
	margin: 10px 0;
}

.npd-pdp-inventory {
	margin: 0;
	font-size: 0.95rem;
}

.npd-pdp-inventory--low {
	color: #c2410c;
}

.npd-pdp-inventory--in {
	color: #15803d;
}

.npd-pdp-inventory--out {
	color: #6b7280;
}

.npd-delivery-estimate {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.95em;
	margin: 0.5rem 0;
}

.npd-delivery-estimate__line {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	column-gap: 0.35rem;
	align-items: baseline;
}

.npd-delivery-estimate__icon svg {
	width: 15px;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

.npd-delivery-estimate__date {
	font-size: 1.05em;
	font-weight: 600;
}

.npd-delivery-estimate__countdown-value {
	font-feature-settings: "tnum";
	font-weight: 600;
}

.npd-delivery-estimate__next-window {
	margin: 0;
	font-size: 0.9em;
	color: rgba(17, 24, 39, 0.65);
}

.npd-delivery-estimate--after-cutoff .npd-delivery-estimate__countdown-value {
	color: #c2410c;
}

.npd-pdp-buy-box__free-shipping {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
}

/* Variation pills */
.npd-variations-pills {
	margin-bottom: 0.5rem !important;
}

.npd-variations-pills .label {
	display: none;
}

.npd-variations-pills td {
	padding: 0;
	border: 0;
}

.npd-variation-pill-group__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.npd-variation-pill-group__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.npd-variation-pill {
	border: 1px solid rgba(18, 18, 18, 0.2);
	background: #fff;
	border-radius: 999px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.npd-variation-pill.is-selected {
	border-color: var(--npd-pdp-accent);
	box-shadow: 0 0 0 2px var(--npd-pdp-accent);
	color: #111827;
	background: #fff;
}

.npd-variation-pill:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.npd-variations-form .reset_variations {
	display: none !important;
}

/* WC injects variation price/stock here — hidden; we render those in the buy box */
.npd-variations-form .npd-variation-details-placeholder,
.npd-variations-form .single_variation_wrap > .woocommerce-variation {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

/* Pack picker */
.npd-pack-picker {
	border: 0;
	margin-bottom: 1rem;
	padding: 0;
}

.npd-pack-picker__heading {
	font-weight: 600;
	margin: 0 0 0.5rem;
	padding: 0;
	font-size: 1.05rem;
}

.npd-pack-picker__options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.npd-pack-picker__option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin: 0px !important;
}

.npd-pack-picker__option input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.npd-pack-picker__option.is-selected {
	border-color: #fff;
	box-shadow: 0 2px 8px rgba(69, 155, 255, 0.5), 0 0 0 2px var(--npd-pdp-accent);
}

.npd-pack-picker__option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.npd-pack-picker__option--best-value::before {
	content: 'Best Value';
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	display: block;
	background: gold;
	font-size: 0.6rem;
	padding: 0 1rem;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	white-space: nowrap;
	z-index: 1;
}

.npd-pack-picker__details {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 100%;
	text-align: center;
	line-height: normal;
}

.npd-pack-picker__qty {
	font-weight: 600;
	background-color: var(--npd-pdp-accent);
	color: #fff;
	border-radius: 16px;
	padding: 4px 10px;
	font-size: 0.8rem;
}

.npd-pack-picker__price {
	font-weight: 600;
	line-height: 1.2;
}

.npd-pack-picker__unit {
	font-size: 0.85rem;
	color: #6b7280;
}

body.npd-has-pack-picker .npd-pdp-buy-box .ct-cart-actions .quantity,
body.npd-has-pack-picker .npd-pdp-buy-box .quantity {
	display: none !important;
}

body.npd-has-pack-picker .npd-pdp-buy-box .ct-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

body.npd-has-pack-picker .npd-pdp-buy-box .ct-cart-actions .added_to_cart {
	display: none !important;
}

.npd-pdp-buy-box__cart .ct-cart-actions .single_add_to_cart_button,
.npd-pdp-buy-box__cart .single_add_to_cart_button {
	width: 100%;
	margin-top: 0;
	border-radius: 40px;
}

/* Detail split */
.npd-product-detail-split {
	padding-top: 1rem;
}

.npd-product-detail-split__grid {
	display: grid;
	gap: 1rem;
	align-items: start;
}

.npd-product-detail-split__cell {
	position: sticky;
	top: 15px;
	align-self: start;
	height: fit-content;
}

.npd-product-detail-split__panel {
	background: #fff;
	border-radius: var(--npd-pdp-card-radius);
	padding: 15px;
	border: 1px solid var(--npd-pdp-border);
	margin-bottom: 0;
}

.npd-product-detail-split__cell--description {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
}

.npd-product-detail-split__summary {
	cursor: pointer;
	padding: 0;
	list-style: none;
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.npd-product-detail-split__summary::-webkit-details-marker {
	display: none;
}

.npd-product-detail-split__content {
	padding: 0;
}

.npd-specification-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.npd-spec-item {
	border-bottom: 1px solid #d1d1d1;
	padding: 5px 5px 5px 0;
	font-size: 1rem;
}

.npd-spec-item:last-child {
	border-bottom: 0;
}

.npd-spec-title {
	font-weight: 600;
}

.npd-product-detail-split__text--rich {
	line-height: 1.6;
}

.npd-product-detail-split__text--rich * + * {
	margin-top: 0.75rem;
}

.npd-shipping-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.npd-shipping-table th,
.npd-shipping-table td {
	border: 1px solid #e5e7eb;
	padding: 0.5rem;
	vertical-align: middle;
}

.npd-shipping-table__carrier svg {
	max-width: 72px;
	height: auto;
}

.npd-cost-column--highlight {
	font-weight: 600;
}

.npd-shipping-badge {
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.75rem;
	background: #dcfce7;
	color: #166534;
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
}

.npd-pdp-reviews {
	margin-top: 2rem;
}

.npd-pdp-reviews:empty {
	display: none;
}

.added_to_cart.wc-forward {
    border-radius: 40px;
}

.npd-shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    overflow: hidden;
    margin-top: 16px;
    min-width: 380px;
    border: 0px;
  }

.product-detail-split__content {
  overflow: auto;
}

.product-detail-split__content::-webkit-scrollbar {
  display: none;
}

  .npd-shipping-table th,
  .npd-shipping-table td {
    padding: 0.85rem 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    border-top: 0;
    border-left: 0;
    border-right: 0
  }

  .npd-shipping-table th {
    font-size: 1rem;
  }

  .npd-shipping-table tbody tr:last-child td {
    border-bottom: 0;
  }

  td.npd-shipping-table__carrier svg {
    width: 45px;
    height: auto;
  }

  @media (max-width: 749px) {
    .npd-shipping-table th,
    .npd-shipping-table td {
      padding: 0.7rem 0.5rem;
    }
    .npd-product-detail-split__panel--shipping .npd-product-detail-split__content {
      overflow:auto
    }
  }

.npd-shipping-table tbody tr td.npd-cost-column {
  position:relative
}

.npd-shipping-table tbody tr td.npd-cost-column:after {
  content: "Free Over £30";
  position:relative;;
  display:block;
  top:0;
  width: 100%;
  font-size:.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: #459afe;
  color: #fff;
  border-radius: 10px;
}

.single-product article>:where(.related,.up-sells) {
    margin-top: 0px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.npd-pdp-reviews {
    background: #fff;
    border-radius: var(--npd-pdp-card-radius);
    border: 1px solid var(--npd-pdp-border);
    padding: 1rem;
}


@media (min-width: 750px) {
	.npd-delivery-estimate {
		flex-direction: row;
		align-items: baseline;
	}

	.npd-pdp__product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: 1rem;
	}

	.npd-pdp__media-middle-wrap {
		flex-direction: row;
		align-items: stretch;
		align-self: start;
		position: sticky;
		top: 3rem;
		z-index: 2;
		height: fit-content;
	}

	.npd-pdp__gallery {
		flex: 1 1 auto;
		min-width: 0;
	}

	.npd-pdp__middle {
		flex: 0 0 150px;
		padding: 1.25rem 1rem;
	}

	.npd-pdp__buy {
		position: sticky;
		top: 3rem;
		z-index: 2;
		align-self: start;
		height: fit-content;
	}

	.npd-pdp__mobile-title {
		display: none;
	}

	.npd-pdp-buy-box__title {
		display: block;
	}

	.npd-pack-picker__options {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.npd-pack-picker__option {
		flex: 1 1 0;
		min-width: 0;
	}

	.npd-product-detail-split__grid {
		grid-template-columns: minmax(0, 0.733fr) minmax(0, 1.1fr);
		gap: 1rem;
	}
}

@media (min-width: 990px) {
	.npd-pdp__middle {
		flex-basis: 180px;
		max-width: calc(20% - 1rem) !important;
	}
}

@media (max-width: 749px) {
	.npd-pdp__middle,
	.npd-pdp__buy {
		padding: 1.25rem;
	}

	.npd-product-detail-split__cell {
		position: static;
		width: 88vw
	}
}

a.added_to_cart.wc-forward {
    border-radius: 40px;
}

@media (max-width: 1070px) {
    .npd-pack-picker__options {
        flex-wrap: wrap !important;
    }
    label.npd-pack-picker__option {
        min-width: calc(100% / 2 - 4px)
    }
    .npd-pdp__media-middle-wrap {
        flex-direction: column
    }
    .npd-pdp__middle {
        position: relative;
        max-width: unset !important;
        padding: 0px;
        flex: unset
    }
    .npd-pdp__middle .npd-variant-specs {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: stretch !important;
        align-content: space-between !important;
        gap: 1rem;
        scrollbar-width: none;
    }
        .npd-pdp__middle .npd-variant-specs li {
        width: 25%;
        display: flex;
        flex-direction: column;
        flex: 0 0 35%;
        scroll-snap-align: start;
        align-items: center;
        justify-content: flex-end;
    }

    .npd-variant-specs__icon--flavour img {
        max-width:40px
    }
    .npd-variant-specs__icon.npd-variant-specs__icon--format img {
        margin-bottom: 5px;
        min-width: 70px
    }
    
    .npd-variant-specs__icon.npd-variant-specs__icon--strength img {
        max-width: 110px;
        margin-bottom:8px
    }
    
    .npd-variant-specs__strength-per-pouch .npd-variant-specs__strength-value {
        margin-bottom: 10px;
    }

    .npd-pdp__middle:before,
    .npd-pdp__middle:after {
      content: '';
      width: 10px;
      height: 10px;
      position: absolute;
      rotate: 45deg;
      top: 50%;
    }
  
    .npd-pdp__middle:before {
      border-left: 1px solid #7c7c7c;
      border-bottom: 1px solid #7c7c7c;
      left: 10px;
    }

    .npd-pdp__middle:after {
      border-right: 1px solid #7c7c7c;
      border-top: 1px solid #7c7c7c;
      right: 10px;
    }
}

@media (max-width:750px) {
    label.npd-pack-picker__option {
        width: calc(100% / 2 - 4px);
        min-width: unset !important;
    }
    .npd-pack-picker__options {
        flex-direction: row
    }
}