/**
 * American Jacket — single product page layout.
 *
 * Every rule below is scoped to markup that only exists inside the custom
 * single product template (.aj-*) or to the single product body/page wrapper,
 * so shop, category and other pages are not affected.
 */

/* ------------------------------------------------------------------
 * Breadcrumbs above the product section
 * ---------------------------------------------------------------- */
.aj-breadcrumb {
	margin: 18px 0 22px;
}

.aj-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: 0;
	color: #7d7d7d;
}

.aj-breadcrumb .woocommerce-breadcrumb a {
	color: #7d7d7d;
}

.aj-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #222;
}

.aj-breadcrumb .aj-breadcrumb-sep {
	margin: 0 8px;
	color: #c4c4c4;
}

/* ------------------------------------------------------------------
 * Three column grid
 * ---------------------------------------------------------------- */
.aj-single-product {
	float: none;
	width: 100%;
}

.aj-product-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	margin: 0 -15px;
}

.aj-col-gallery,
.aj-col-details,
.aj-col-summary,
.aj-col-purchase {
	padding: 0 15px;
	min-width: 0;
}

.aj-col-gallery {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 38%;
	flex: 0 0 38%;
	max-width: 38%;
}

.aj-col-details {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 62%;
	flex: 0 0 62%;
	max-width: 62%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	padding: 0;
}

.aj-col-summary {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 56%;
	flex: 0 0 56%;
	max-width: 56%;
}

.aj-col-purchase {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 44%;
	flex: 0 0 44%;
	max-width: 44%;
}

/* ------------------------------------------------------------------
 * LEFT — gallery
 * ---------------------------------------------------------------- */
.aj-col-gallery.product-images {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.aj-col-gallery .images-wrapper {
	margin-bottom: 0;
}

/* the spacer only makes sense for the horizontal thumbnail layout */
.aj-col-gallery .swiper-vertical-images > .empty-space {
	display: none;
}

.aj-col-gallery .woocommerce-main-image img,
.aj-col-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 620px;
	margin-left: auto;
	margin-right: auto;
}

.aj-col-gallery .vertical-thumbnails-wrapper li {
	margin-bottom: 8px;
}

/* sale badge keeps XStore's position/styling — only hidden when the selected
   variation is not discounted */
.aj-col-gallery .sale-wrapper.aj-sale-hidden {
	display: none !important;
}

/* ------------------------------------------------------------------
 * MIDDLE — product information
 * ---------------------------------------------------------------- */
.aj-col-summary .product_title {
	display: block !important;
	text-align: start !important;
	margin: 0 0 10px;
	font-size: 32px;
	line-height: 1.25;
	word-wrap: break-word;
}

.aj-rating-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
}

.aj-rating-row .woocommerce-product-rating {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1;
}

.aj-rating-row .woocommerce-product-rating .star-rating {
	margin: 0 10px 0 0;
	float: none;
}

.aj-rating-row .woocommerce-review-link {
	font-size: 13px;
	color: #777;
}

.aj-write-review {
	font-size: 14px;
	color: #222;
	text-decoration: underline;
	margin-inline-start: 14px;
}

.aj-rating-row .woocommerce-product-rating:empty + .aj-write-review,
.aj-rating-row > .aj-write-review:first-child {
	margin-inline-start: 0;
}

.aj-write-review:hover {
	color: #d50e16;
}

.aj-availability-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
}

.aj-availability-label {
	color: #777;
	min-width: 130px;
}

.aj-availability-value {
	font-weight: 600;
	color: #222;
}

.aj-availability-value.out-of-stock {
	color: #d50e16;
}

.aj-price-wrap {
	margin: 0 0 18px;
}

.aj-price-wrap .price {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: baseline;
	-ms-flex-align: baseline;
	align-items: baseline;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.2;
}

.aj-price-wrap .price ins {
	text-decoration: none;
	margin-inline-end: 12px;
	background: transparent;
}

.aj-price-wrap .price del {
	opacity: .55;
	font-size: .6em;
	font-weight: 400;
}

.aj-price-wrap .price .screen-reader-text {
	display: none;
}

.aj-col-summary .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.75;
	color: #555;
}

.aj-col-summary .woocommerce-product-details__short-description ul {
	margin: 0 0 0 18px;
	padding: 0;
	list-style: disc;
}

.aj-col-summary .woocommerce-product-details__short-description ul ul {
	list-style: circle;
}

.aj-col-summary .woocommerce-product-details__short-description li {
	margin-bottom: 4px;
}

/* promo / coupon box */
.aj-promo-box {
	margin: 18px 0 0;
	padding: 14px 18px;
	border: 1px dashed #7aa7c7;
	border-radius: 6px;
	background: #fbfdff;
	font-size: 14px;
	line-height: 1.6;
}

.aj-promo-box .aj-promo-line {
	margin: 0 0 4px;
	color: #1f6b3a;
}

.aj-promo-box .aj-promo-line:last-child {
	margin-bottom: 0;
}

.aj-promo-box .aj-promo-title {
	font-weight: 700;
	color: #1f6b3a;
	text-transform: uppercase;
}

.aj-promo-box .aj-promo-code {
	font-weight: 700;
	color: #d50e16;
	letter-spacing: .5px;
}

.aj-promo-box .aj-promo-expiry {
	color: #d50e16;
	font-weight: 600;
}

/* ------------------------------------------------------------------
 * RIGHT — purchase card
 * ---------------------------------------------------------------- */
.aj-purchase-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 22px;
	-webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.aj-purchase-card > p:last-child,
.aj-purchase-card form.cart {
	margin-bottom: 0;
}

/* variation attributes rendered as buttons */
.aj-purchase-card table.variations {
	width: 100%;
	margin: 0 0 14px;
	border: 0;
}

.aj-purchase-card table.variations tbody,
.aj-purchase-card table.variations tr,
.aj-purchase-card table.variations th,
.aj-purchase-card table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
}

.aj-purchase-card table.variations th.label {
	margin-bottom: 8px;
}

.aj-purchase-card table.variations th.label label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #222;
	text-transform: capitalize;
}

.aj-purchase-card .aj-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	overflow: hidden;
	pointer-events: none;
}

.aj-swatches {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: 0 -4px;
}

.aj-swatch {
	-webkit-appearance: none;
	appearance: none;
	min-width: 58px;
	margin: 0 4px 8px;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	transition: all .2s ease;
}

.aj-swatch:hover {
	border-color: #222;
}

.aj-swatch.aj-swatch-active {
	background: #222;
	border-color: #222;
	color: #fff;
}

.aj-swatch[disabled] {
	opacity: .4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.aj-swatch[disabled]:hover {
	border-color: #ddd;
}

/* size guide + clear on one row */
.aj-variation-actions {
	-ms-flex: 0 0 100%;
	flex: 0 0 100%;
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 0 0 16px;
}

.aj-purchase-card .size-guide {
	margin: 0 16px 0 0;
	padding: 0;
}

.aj-purchase-card .size-guide a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 4px;
	background: #d50e16;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.aj-purchase-card .size-guide a:hover {
	background: #222;
	color: #fff;
}

.aj-purchase-card .reset_variations {
	font-size: 13px;
	color: #d50e16;
	text-decoration: none;
}

/* the variation price / stock are mirrored into the middle column */
.aj-purchase-card .woocommerce-variation-price,
.aj-purchase-card .woocommerce-variation-availability {
	display: none !important;
}

.aj-purchase-card .single_variation_wrap,
.aj-purchase-card .woocommerce-variation {
	margin: 0;
}

/* quantity + add to cart on one row, buy now full width underneath */
.aj-purchase-card form.cart:not(.variations_form),
.aj-purchase-card .woocommerce-variation-add-to-cart {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: stretch;
	-ms-flex-align: stretch;
	align-items: stretch;
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	width: 100%;
	margin: 0;
	text-align: start;
}

.aj-purchase-card .quantity {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none;
	margin: 0 12px 0 0 !important;
	text-align: start;
}

.aj-purchase-card .single_add_to_cart_button:not(.et-single-buy-now) {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 140px;
	margin: 0 !important;
}

.aj-purchase-card .et-or-wrapper {
	display: none;
}

.aj-purchase-card .et-single-buy-now {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 100%;
	flex: 0 0 100% !important;
	width: 100% !important;
	margin: 12px 0 0 !important;
}

.aj-purchase-card .stock,
.aj-purchase-card .et_stock {
	margin-bottom: 10px;
	font-size: 14px;
}

/* ------------------------------------------------------------------
 * Wishlist / categories / share — outside the card
 * ---------------------------------------------------------------- */
.aj-product-extras {
	margin-top: 18px;
}

.aj-product-extras .aj-wishlist,
.aj-product-extras .product_meta,
.aj-product-extras .product-share {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: 13px;
}

.aj-product-extras .product_meta > span,
.aj-product-extras .product_meta .products-page-cats {
	display: block;
	margin-bottom: 6px;
	color: #777;
}

.aj-product-extras .product-share .menu-social-icons {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aj-product-extras .product-share .menu-social-icons li {
	display: inline-block;
	margin: 0 10px 0 0;
}

/* ------------------------------------------------------------------
 * Tabs below the product section
 * ---------------------------------------------------------------- */
.single-product-page .woocommerce-tabs {
	clear: both;
	margin-top: 30px !important;
	margin-bottom: 45px !important;
}

.single-product-page .product-content,
.single-product-page .product-content > .row {
	margin-bottom: 0;
}

.single-product-page .woocommerce-tabs .panel {
	overflow-x: auto;
}

/* ------------------------------------------------------------------
 * Tablet — gallery on one side, information + card stacked on the other
 * ---------------------------------------------------------------- */
@media only screen and (max-width: 991px) {

	.aj-col-gallery {
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
	}

	.aj-col-details {
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
	}

	.aj-col-summary,
	.aj-col-purchase {
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}

	.aj-col-purchase {
		margin-top: 22px;
	}

	.aj-col-summary .product_title {
		font-size: 26px;
	}
}

/* ------------------------------------------------------------------
 * Mobile — everything stacked, thumbnails horizontal
 * ---------------------------------------------------------------- */
@media only screen and (max-width: 767px) {

	.aj-col-gallery,
	.aj-col-details {
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}

	.aj-col-details {
		margin-top: 24px;
	}

	.aj-col-summary .product_title {
		font-size: 22px;
	}

	.aj-price-wrap .price {
		font-size: 24px;
	}

	.aj-availability-label {
		min-width: 100px;
	}

	.aj-purchase-card {
		padding: 18px;
	}

	.aj-purchase-card .quantity {
		margin-bottom: 10px;
	}

	.aj-purchase-card .single_add_to_cart_button:not(.et-single-buy-now) {
		min-width: 0;
	}
}

/* slick switches the thumbnails to horizontal below 650px */
@media only screen and (max-width: 650px) {

	.aj-col-gallery .swiper-vertical-images {
		display: block;
	}

	.aj-col-gallery .swiper-vertical-images .swiper-control-top,
	.aj-col-gallery .swiper-vertical-images .vertical-thumbnails-wrapper {
		display: block;
		width: 100%;
	}

	.aj-col-gallery .swiper-vertical-images .vertical-thumbnails-wrapper {
		margin-top: 12px;
	}

	.aj-col-gallery .swiper-vertical-images .vertical-thumbnails-wrapper li {
		margin: 0 8px 0 0;
	}

	.aj-col-gallery .woocommerce-main-image img,
	.aj-col-gallery .woocommerce-product-gallery__image img {
		max-height: none;
		width: 100%;
	}
}
