/* Single-product gallery and review panels. */
.custom-product-slider {
    position: relative;
    width: 50%;
    max-width: 50%;
    overflow: hidden;
    float: left;
    margin-bottom: 30px;
}

.custom-product-slider .slider-viewport {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.custom-product-slider .slider-container {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.custom-product-slider .slider-image {
    flex: 0 0 100%;
    max-width: 100%;
}

.custom-product-slider .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

.custom-product-slider .slider-prev, .custom-product-slider .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(97 45 15 / 42%);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-product-slider .slider-prev:hover, .custom-product-slider .slider-next:hover, .custom-product-slider .slider-prev:focus, .custom-product-slider .slider-next:focus {
    background: #612d0f94;
}

.custom-product-slider .slider-prev {
    left: 10px;
}

.custom-product-slider .slider-next {
    right: 10px;
}

.custom-product-slider .slider-prev[hidden],
.custom-product-slider .slider-next[hidden] {
    display: none;
}

.custom-product-slider .slider-thumbnails {
    display: flex;
    position: relative;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    margin-top: 12px;
    scrollbar-width: thin;
}

.custom-product-slider .slider-thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.custom-product-slider .slider-thumbnail[aria-pressed="true"] {
    border-color: #996000;
}

.custom-product-slider .slider-thumbnail:focus-visible {
    outline: 2px solid var(--cohoma-color-brand);
    outline-offset: 1px;
}

.custom-product-slider .slider-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

@media only screen and (max-width: 921px) {
.custom-product-slider {
    width: 100%;
    max-width: 100%;
    float: none;
}
.custom-product-slider .slider-thumbnail {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
}
}

@media (prefers-reduced-motion: reduce) {
.custom-product-slider .slider-container {
    transition: none;
}
}

/* Keep the purchase count unboxed and aligned with its actual purchase button. */
.purchase-counter {
    display: block;
    box-sizing: border-box;
    width: var(--cohoma-purchase-counter-width, 100%);
    margin: 12px 0 0 var(--cohoma-purchase-counter-offset, 0px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cohoma-color-brand);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.woocommerce-js div.product .summary form.cart.cohoma-has-purchase-counter,
.woocommerce-js div.product .summary form.cart.cohoma-has-purchase-counter .single_add_to_cart_button {
    margin-bottom: 0;
}

.purchase-counter-icon,
.purchase-counter-count,
.purchase-counter-bought,
.purchase-counter-copy {
    display: inline;
    vertical-align: middle;
}

.purchase-counter-count,
.purchase-counter-bought {
    font-weight: 700;
}

.purchase-counter-copy {
    color: #6b625f;
    font-weight: 400;
}

/* Newly Launched Label (single product page) */
p.newly-launched-label {
    color: #ae2626;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Product reviews: keep collapsed and open states in this component. */
.woocommerce-tabs.accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-tabs.accordion > .accordion-header {
    background: transparent;
    color: inherit;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.woocommerce-tabs.accordion > .accordion-header:first-child {
    border-top: 1px solid #ddd;
}

.woocommerce-tabs.accordion > .accordion-header h2 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
}

.woocommerce-tabs.accordion > .accordion-header img {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.woocommerce-tabs.accordion > .accordion-header.active img {
    transform: rotate(90deg);
}

.woocommerce-tabs.accordion > .accordion-header i {
    font-size: 28px;
}

.woocommerce-tabs.accordion > .accordion-content {
    padding: 20px;
    display: none;
}

.woocommerce-tabs.accordion > .accordion-content.active {
    display: block;
}

/** Product summary offer and review controls, extracted from their templates. */
div.summary h3.offertag {
    width: fit-content;
    background: #612d0f26;
    color: var(--cohoma-color-brand);
    padding: 10px 20px 7px;
    line-height: normal;
    font-size: 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 2px solid #612d0f12;
}


.woocommerce-product-rating .woocommerce-review-link {
    margin: 0 4px;
    display: inline-block !important;
}

/* Match the catalog's gold across filled and unfilled rating glyphs. */
.single-product .woocommerce-product-rating .star-rating,
.single-product .woocommerce-product-rating .star-rating::before,
.single-product .woocommerce-product-rating .star-rating span::before,
.single-product .woocommerce-product-rating .rating {
    color: #996000;
}

/** Cohoma product variations, purchase buttons, sticky controls and quantity. */

.woocommerce-js div.product form.cart .variations select {
    width: 100%;
    border-radius: var(--cohoma-radius-large);
    border: 2px solid var(--cohoma-color-accent);
    color: #000;
    padding: 7px 15px 8px;
    font-size: 14px;
    min-height: var(--cohoma-purchase-control-height);
    transition: none;
}

.woocommerce-js div.product form.cart .variations td.value a.reset_variations {
    display: none !important;
}

.woocommerce-js div.product form.cart .variations label {
    font-weight: bold !important;
    font-size: 14px;
    line-height: 21px;
    display: block;
    margin-bottom: 0;

}

.woocommerce div.ast-sticky-add-to-cart-action-wrap .button.single_add_to_cart_button {
    padding: 11px 25px;
    min-width: 140px !important;
    margin-left: 20px !important;
}

/* Separate the purchase row from product details or variation selections. */
.woocommerce-js div.product .summary form.cart:not(.variations_form),
.woocommerce-js div.product .summary form.cart .woocommerce-variation-add-to-cart {
    padding-top: 30px;
}

.woocommerce-js div.product form.cart .button.single_add_to_cart_button {
    width: calc(100% - 110px);
    height: var(--cohoma-purchase-control-height, 44px);
    padding: 0 35px !important;
    line-height: 1;
}

.woocommerce-js div.product form.cart .button.single_add_to_cart_button, .ast-sticky-add-to-cart a.single_link_to_cart_button.button.alt, .woocommerce div.ast-sticky-add-to-cart-action-wrap .button.single_add_to_cart_button {
    padding: 15px 35px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--cohoma-color-brand);
    background: var(--cohoma-color-brand);
    border-radius: var(--cohoma-radius-large);
    border: 1px solid var(--cohoma-color-brand);
    background-color: var(--cohoma-color-accent);
    box-shadow: 0 5px 20px var(--cohoma-color-accent);
    position: relative;
    overflow: hidden;
}

.ast-sticky-add-to-cart a.single_link_to_cart_button.button.alt, .woocommerce div.ast-sticky-add-to-cart-action-wrap .button.single_add_to_cart_button {
	width: fit-content;
	margin: 0 !important;
}

.woocommerce-js div.product form.cart .button.single_add_to_cart_button:focus-visible,
.woocommerce-tabs.accordion > .accordion-header:focus-visible {
    outline: 2px solid var(--cohoma-color-brand);
    outline-offset: -3px;
}

.ast-sticky-add-to-cart-action-wrap .cart {
    display: block !important;
    text-align: right;
}

.woocommerce div.ast-sticky-add-to-cart-action-wrap .quantity {
	display: none;
}

.ast-sticky-add-to-cart .bundle-offer-notice {
    display: none
}

.ast-sticky-add-to-cart {
    transform: translate(0,0) !important;
    opacity: 1 !important;
    background: var(--cohoma-color-surface);
}

@media only screen and (max-width: 991px) {
.ast-sticky-add-to-cart .ast-sticky-add-to-cart-content .ast-sticky-add-to-cart-title-wrap {
		display: none;
	}
.ast-sticky-add-to-cart-action-wrap {
    justify-content: space-between;
    width: 100%;
}
.ast-sticky-add-to-cart-action-price {
    display: block !important;
    margin-right: auto;
}
.ast-sticky-add-to-cart #sticky-add-to-cart {
    display: flex;
    align-items: center;
}
.ast-sticky-add-to-cart-action-wrap form.cart,
.ast-sticky-add-to-cart-action-wrap .single_link_to_cart_button {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}
.ast-sticky-add-to-cart .purchase-counter {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    order: 1;
    gap: 4px;
    width: auto !important;
    min-width: 0;
    margin: 0 8px 0 0 !important;
    padding: 8px 0 !important;
    white-space: nowrap;
}
.ast-sticky-add-to-cart .purchase-counter-copy,
.ast-sticky-add-to-cart .purchase-counter-bought {
    display: none !important;
}
}

@media only screen and (max-width: 544px) {
.ast-sticky-add-to-cart .ast-sticky-add-to-cart-content {
    flex-direction: column;
}
.ast-sticky-add-to-cart-action-wrap .ast-sticky-add-to-cart-action-price {
    font-size: 18px;
    color: #96281b;
}
}

@media only screen and (min-width: 992px) {
div.ast-sticky-add-to-cart {
        display: none !important;
    }
}

@media only screen and (max-width: 374px) {
.ast-sticky-add-to-cart a.single_link_to_cart_button.button.alt,
.woocommerce div.ast-sticky-add-to-cart-action-wrap .button.single_add_to_cart_button {
    padding-left: 20px;
    padding-right: 20px;
}
}

/* Desktop-only floating shortcut, revealed after the main purchase row passes. */
.cohoma-desktop-purchase {
    display: none;
}
.cohoma-desktop-purchase[hidden] {
    display: none !important;
}
@media only screen and (min-width: 992px) {
.cohoma-desktop-purchase {
    position: fixed;
    z-index: 1190;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(680px, calc(100vw - 64px));
    box-sizing: border-box;
    padding: 18px 24px;
    border: 1px solid #f3d5ab;
    border-radius: 999px;
    background: #fffaf2;
    box-shadow: 0 8px 28px rgb(97 45 15 / 12%);
}
.cohoma-desktop-purchase__image {
    flex: 0 0 60px;
    width: 60px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}
.cohoma-desktop-purchase__identity {
    flex: 1 1 auto;
    min-width: 0;
}
.cohoma-desktop-purchase__title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--cohoma-color-text);
    font-family: var(--cohoma-font-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}
.cohoma-desktop-purchase .cohoma-desktop-purchase__price {
    margin: 2px 0 0;
    color: #96281b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}
.cohoma-desktop-purchase__price del {
    font-size: 14px;
    opacity: .65;
}
.cohoma-desktop-purchase__price ins {
    background: transparent;
}
.cohoma-desktop-purchase .purchase-counter {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 19px;
    white-space: nowrap;
}
.cohoma-desktop-purchase .purchase-counter-bought,
.cohoma-desktop-purchase .purchase-counter-copy {
    display: none;
}
.cohoma-desktop-purchase__button {
    flex: 0 0 196px;
    min-height: 56px;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid var(--cohoma-color-brand);
    border-radius: 999px;
    background: var(--cohoma-color-accent);
    color: var(--cohoma-color-brand);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    cursor: pointer;
}
.cohoma-desktop-purchase__button:hover,
.cohoma-desktop-purchase__button:focus {
    color: var(--cohoma-color-brand);
    background: #f8c579;
    border-color: var(--cohoma-color-brand);
}
.cohoma-desktop-purchase__button:focus-visible {
    outline: 2px solid var(--cohoma-color-brand);
    outline-offset: 3px;
}
.cohoma-desktop-purchase__button:disabled {
    opacity: .6;
    cursor: not-allowed;
}
}

/**
 * Cohoma single-product quantity control.
 */

body.single-product div.product .summary form.cart .quantity {
	display: grid;
	grid-template-columns: 28px minmax(28px, 1fr) 28px;
	align-items: stretch;
	flex: 0 0 94px;
	width: 94px;
	height: var(--cohoma-purchase-control-height, 44px);
	margin: 0 16px 0 0;
	overflow: hidden;
	border: 2px solid var(--cohoma-color-accent);
	border-radius: calc(var(--cohoma-purchase-control-height, 44px) / 2);
	background: #fff;
	box-sizing: border-box;
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cohoma-color-text);
	font: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button--minus {
	border-right: 1px solid var(--cohoma-color-accent);
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button--plus {
	border-left: 1px solid var(--cohoma-color-accent);
}

body.single-product .summary form.cart .quantity input.qty {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--cohoma-color-text);
	font-size: 14px;
	font-weight: 400;
	line-height: calc(var(--cohoma-purchase-control-height, 44px) - 4px);
	text-align: center;
	-moz-appearance: textfield;
}

body.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button:hover {
	background: #fff7eb;
	color: var(--cohoma-color-brand);
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--cohoma-color-brand);
	outline-offset: -2px;
}

body.single-product .summary form.cart .quantity .cohoma-product-quantity__button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}
