/* ==========================================================================
   TB Store – Navy Classic: single product, cart & checkout
   Overrides the older Customizer CSS (green buttons, blue links, rounding).
   ========================================================================== */

/* ---------- Bundle notice (shortcode [cart_message_product_detail]) ---------- */
body.tb-navy .salesgen-discount-notices {
	background: #eef2f7 !important;
	border: 0;
	border-left: 4px solid var(--tb-red);
	border-radius: 0;
	color: var(--tb-navy);
	font-family: var(--tb-head);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 12px 18px;
	text-align: left;
}
body.tb-navy .salesgen-discount-notices strong { color: var(--tb-red); }

/* ---------- Gallery ---------- */
body.tb-navy.single-product .product-gallery-slider img,
body.tb-navy.single-product .product-thumbnails img,
body.tb-navy .box-image,
body.tb-navy .box-image img { border-radius: 0 !important; }
body.tb-navy .product-gallery-slider { background: var(--tb-grey); }
body.tb-navy.single-product .product-thumbnails a { border: 2px solid transparent; border-radius: 0 !important; }
body.tb-navy.single-product .product-thumbnails .is-nav-selected a { border: 2px solid var(--tb-navy) !important; border-radius: 0 !important; }
body.tb-navy .flickity-prev-next-button svg { background-color: rgba(12, 35, 64, .75); }

/* ---------- Summary column ---------- */
body.tb-navy .product-breadcrumb-container { margin-bottom: 8px; }
body.tb-navy .product-info .breadcrumbs { font-size: 12px; color: var(--tb-muted); }
body.tb-navy .product-info .breadcrumbs a { color: var(--tb-muted); }
body.tb-navy .product-info .breadcrumbs a:hover { color: var(--tb-red); }

body.tb-navy h1.product-title.product_title.entry-title {
	font-family: var(--tb-head);
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: 800;
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--tb-navy);
	margin: 4px 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tb-line);
}

/* Option labels */
body.tb-navy .wcpa_form_outer .wcpa_form_item { margin-bottom: 18px; }
body.tb-navy .wcpa_form_outer .wcpa_form_item > label {
	font-family: var(--tb-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tb-navy);
	margin-bottom: 8px;
}
body.tb-navy .wcpa_form_outer .required_ast { color: var(--tb-red); }
body.tb-navy .wcpa_helptext { font-weight: 600; color: var(--tb-ink); text-transform: none; letter-spacing: 0; }
body.tb-navy .color-custom-v1_parent .wcpa_helptext {
	background: none;
	border-radius: 0;
	text-shadow: none;
	color: var(--tb-red);
}
body.tb-navy .size a.size-guide {
	color: var(--tb-navy) !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.tb-navy .size a.size-guide:before { background-color: var(--tb-line); }

/* Text buttons (Fit style, Size) */
body.tb-navy .wcpa_form_outer .wcpa_color label span.label_inside {
	background-color: #fff !important;
	border: 1px solid #c9ced6 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--tb-navy);
	font-family: var(--tb-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
	min-width: 48px !important;
	transition: border-color .15s, background-color .15s;
}
body.tb-navy .wcpa_form_outer .wcpa_color label span.label_inside:hover { border-color: var(--tb-navy) !important; }
body.tb-navy .wcpa_form_outer .wcpa_color input:checked + label span.label_inside {
	background-color: var(--tb-navy) !important;
	border-color: var(--tb-navy) !important;
	color: #fff !important;
}

/* Colour swatches */
body.tb-navy .wcpa_form_outer .wcpa_color label span.disp_squircle:not(.label_inside) {
	border-radius: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
body.tb-navy .wcpa_form_outer .wcpa_color input:checked + label span.disp_squircle:not(.label_inside) {
	outline: 2px solid var(--tb-navy);
	outline-offset: 2px;
}

/* Style (image) picker */
body.tb-navy .wcpa_form_outer .wcpa_image img {
	border-radius: 0 !important;
	border: 1px solid #c9ced6;
	background: #fff;
	box-shadow: none !important;
}
body.tb-navy .wcpa_form_outer .wcpa_image input:checked + img {
	border-color: var(--tb-navy) !important;
	box-shadow: 0 0 0 1px var(--tb-navy) !important;
}

/* Radios */
body.tb-navy .wcpa_form_outer .wcpa_radio label { font-weight: 600; color: var(--tb-ink); }
body.tb-navy .wcpa_form_outer input[type="radio"] { accent-color: var(--tb-navy); }

/* Price */
body.tb-navy .cart .wcpa_price_summary { margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid var(--tb-line); }
body.tb-navy .wcpa_price .woocommerce-Price-amount *,
body.tb-navy .wcpa_price_summary .woocommerce-Price-amount * {
	color: var(--tb-navy) !important;
	font-family: var(--tb-head);
	font-size: 34px !important;
	font-weight: 800 !important;
}
body.tb-navy .product-info .price-wrapper .price .amount { color: var(--tb-navy); font-family: var(--tb-head); font-weight: 800; }

/* Quantity + Add to cart + Check out */
body.tb-navy form.cart { gap: 10px 0; }
body.tb-navy form.cart .quantity input[type="number"],
body.tb-navy form.cart .quantity input[type="button"] {
	border-radius: 0 !important;
	border: 1px solid #c9ced6 !important;
	height: 54px;
	box-shadow: none;
	color: var(--tb-navy);
	font-weight: 700;
}
body.tb-navy form.cart .quantity input[type="button"]:hover { background: var(--tb-grey); }
body.tb-navy form.cart button { border-radius: 0 !important; height: 54px; }
body.tb-navy button.single_add_to_cart_button,
body.tb-navy button.single_add_to_cart_button.button.alt {
	background: var(--tb-navy) !important;
	border: 2px solid var(--tb-navy) !important;
	color: #fff !important;
	font-family: var(--tb-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .12em;
}
body.tb-navy button.single_add_to_cart_button:hover {
	background: #13325a !important;
	border-color: #13325a !important;
	color: #fff !important;
}
body.tb-navy form.cart button.buy_now_button,
body.tb-navy button.button.buy_now_button {
	background: var(--tb-red) !important;
	border: 2px solid var(--tb-red) !important;
	color: #fff !important;
	margin-top: 4px;
	line-height: 50px;
	font-family: var(--tb-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .12em;
}
body.tb-navy form.cart button.buy_now_button:hover { background: #9e0a33 !important; border-color: #9e0a33 !important; }

/* Purchase protection + trust badges */
body.tb-navy .mm-pp-div {
	background: var(--tb-grey);
	border: 0;
	border-radius: 0;
	padding: 14px 16px;
	margin: 18px 0 16px;
}
body.tb-navy .mm-pp-div svg { fill: var(--tb-navy); }
body.tb-navy .mm-pp-div .wyuscs .wyuscs2 .mm-pp { color: var(--tb-ink) !important; }
body.tb-navy .mm-pp-div a { color: var(--tb-navy); font-weight: 600; }
body.tb-navy .trust_badge_img { margin-bottom: 18px; }
body.tb-navy .trust_badge_img img { border-radius: 0; }

/* SalesGen "Buy more save more" */
body.tb-navy .salesgen-bmsm-heading {
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0;
}
body.tb-navy .salesgen-bmsm-heading .sgboxes {
	border: 0 !important;
	border-top: 3px solid var(--tb-navy) !important;
	border-radius: 0 !important;
	background: #fff;
	padding: 14px 4px 6px;
}
body.tb-navy .salesgen-bmsm-heading svg { fill: var(--tb-navy); }
body.tb-navy .salesgen-bmsm-heading .sgbox2 > *:first-child,
body.tb-navy .salesgen-bmsm-heading h3,
body.tb-navy .salesgen-bmsm-heading strong {
	color: var(--tb-navy) !important;
	font-family: var(--tb-head);
	text-transform: uppercase;
	letter-spacing: .06em;
}
body.tb-navy ul.salesgen-bmsm-items li {
	border: 1px solid var(--tb-line) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
}
body.tb-navy ul.salesgen-bmsm-items li:hover { border-color: var(--tb-navy) !important; }
body.tb-navy .salesgen-bmsm-item-label {
	background: var(--tb-navy) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: var(--tb-head);
	letter-spacing: .04em;
}
body.tb-navy .salesgen-bmsm-item-title,
body.tb-navy .salesgen-bmsm-item-label2 { color: var(--tb-red) !important; }

/* Meta */
body.tb-navy .product_meta { font-size: 13px; color: var(--tb-muted); border-top: 1px solid var(--tb-line); padding-top: 12px; }
body.tb-navy .product_meta > span { display: block; margin-bottom: 4px; }
body.tb-navy .product_meta a { color: var(--tb-navy); }
body.tb-navy .product_meta a:hover { color: var(--tb-red); }

/* ---------- Tabs & description ---------- */
body.tb-navy .woocommerce-tabs { margin-top: 30px; }
body.tb-navy .woocommerce-tabs ul.product-tabs { border-bottom: 2px solid var(--tb-navy); }
body.tb-navy .woocommerce-tabs ul.product-tabs li a {
	font-family: var(--tb-head);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .08em;
	color: var(--tb-navy);
	padding: 12px 26px;
}
body.tb-navy .woocommerce-tabs ul.product-tabs > li.active > a { background: var(--tb-navy); color: #fff; }
body.tb-navy .woocommerce-tabs li a:after { display: none; }

body.tb-navy #tab-description { max-width: 900px; margin: 0 auto; }
body.tb-navy #tab-description p,
body.tb-navy #tab-description ul,
body.tb-navy #tab-description .a-keyvalue td { font-size: 17px; line-height: 1.75; color: #374151; }
body.tb-navy #tab-description h2,
body.tb-navy #tab-description h3,
body.tb-navy #tab-description h4 {
	font-family: var(--tb-head);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--tb-navy);
	margin-top: 1.4em;
}
body.tb-navy #tab-description h2 { font-size: 30px; }
body.tb-navy #tab-description h3 { font-size: 24px; }
body.tb-navy #tab-description a,
body.tb-navy #tab-description em,
body.tb-navy #tab-description .wp-description a,
body.tb-navy #tab-description .wp-source,
body.tb-navy #tab-description .wp-more-category a { color: var(--tb-navy); }
body.tb-navy #tab-description a:hover,
body.tb-navy #tab-description .wp-source:hover,
body.tb-navy #tab-description .wp-more-category a:hover { color: var(--tb-red); }
body.tb-navy #tab-description figure { width: auto; max-width: 620px; margin: 10px auto 26px; }
body.tb-navy #tab-description figure img,
body.tb-navy .tabbed-content figure img { border-radius: 0; }
body.tb-navy #tab-description figure figcaption,
body.tb-navy .tabbed-content figure figcaption { background: var(--tb-grey); font-style: normal; font-size: 14px; color: var(--tb-muted); }
body.tb-navy #tab-description table { border-top: 2px solid var(--tb-navy); }
body.tb-navy #tab-description table th,
body.tb-navy #tab-description table td { border-color: var(--tb-line); padding: 12px 10px; vertical-align: top; }
body.tb-navy #tab-description table tr > td:first-child,
body.tb-navy #tab-description table th {
	font-family: var(--tb-head);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tb-navy);
	width: 180px;
}

/* Reviews */
body.tb-navy #reviews h2,
body.tb-navy #reviews h3,
body.tb-navy #reviews .woocommerce-Reviews-title,
body.tb-navy #reply-title {
	font-family: var(--tb-head);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--tb-navy);
}
body.tb-navy #review_form_wrapper .review-form-inner.has-border,
body.tb-navy #review_form .has-border { border: 1px solid var(--tb-line) !important; border-top: 3px solid var(--tb-navy) !important; }
body.tb-navy #review_form input[type="text"],
body.tb-navy #review_form input[type="email"],
body.tb-navy #review_form textarea { border-radius: 0; box-shadow: none; }
body.tb-navy #review_form #submit { background: var(--tb-navy); border-radius: 0; }
body.tb-navy #review_form #submit:hover { background: var(--tb-red); }
body.tb-navy .stars a, body.tb-navy .star-rating span:before { color: #f5a524; }

/* Related / upsell titles */
body.tb-navy .related .product-section-title,
body.tb-navy .upsells .product-section-title,
body.tb-navy .product-section-title {
	font-family: var(--tb-head);
	font-weight: 800;
	font-size: 30px;
	text-transform: uppercase;
	color: var(--tb-navy);
	border-bottom: 2px solid var(--tb-navy);
	padding-bottom: 10px;
}

/* ---------- Product cards: undo the old rounded/blue styles ---------- */
body.tb-navy .product-small .col-inner { border-radius: 0; }
body.tb-navy .product-small .title-wrapper a { color: var(--tb-navy); font-size: 15px; }
body.tb-navy .product-small .woocommerce-Price-amount * { color: var(--tb-navy); font-size: 17px; }

/* ---------- Mini cart, cart & checkout ---------- */
body.tb-navy .widget_shopping_cart_content span.amount,
body.tb-navy .cart-container span.amount,
body.tb-navy .woocommerce-checkout-review-order span.amount { color: var(--tb-navy); }
body.tb-navy .woocommerce-mini-cart__buttons a { border-radius: 0; background-color: var(--tb-red) !important; }
body.tb-navy .woocommerce-mini-cart__buttons a:first-child { background-color: var(--tb-navy) !important; }
body.tb-navy .cart-wrapper td.product-name a { color: var(--tb-navy); font-weight: 600; }
body.tb-navy dd.variation-Color,
body.tb-navy dd.variation-Size,
body.tb-navy dd.variation-FitStyle { color: var(--tb-navy) !important; }
body.tb-navy .wc-proceed-to-checkout a,
body.tb-navy .woocommerce-checkout-payment #place_order {
	background-color: var(--tb-red) !important;
	border-radius: 0;
	font-family: var(--tb-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .12em;
}
body.tb-navy .wc-proceed-to-checkout a:hover,
body.tb-navy .woocommerce-checkout-payment #place_order:hover { background-color: #9e0a33 !important; }
body.tb-navy .cart-container .continue-shopping a,
body.tb-navy .cart-container .woocommerce-cart-form__contents button,
body.tb-navy .cart-container p.return-to-shop a { border-radius: 0; }
body.tb-navy .current .breadcrumb-step { background-color: var(--tb-navy) !important; }
body.tb-navy .checkout-page-title a,
body.tb-navy .checkout-breadcrumbs a { font-family: var(--tb-head); letter-spacing: .08em; }
body.tb-navy form.woocommerce-checkout .has-border { border: 1px solid var(--tb-line); border-top: 3px solid var(--tb-navy); }
body.tb-navy .fl-labels .form-row input:not([type=checkbox]),
body.tb-navy .fl-labels .form-row select,
body.tb-navy .fl-labels .form-row textarea { border-radius: 0; }
body.tb-navy .woocommerce-privacy-policy-text p a { color: var(--tb-navy); }

/* ---------- Mobile ---------- */
@media (max-width: 549px) {
	body.tb-navy .salesgen-discount-notices { font-size: 14px; padding: 10px 12px; }
	body.tb-navy h1.product-title.product_title.entry-title { font-size: 26px; }
	body.tb-navy .wcpa_price .woocommerce-Price-amount *,
	body.tb-navy .wcpa_price_summary .woocommerce-Price-amount * { font-size: 28px !important; }
	body.tb-navy .woocommerce-tabs ul.product-tabs li a { font-size: 17px; padding: 10px 16px; }
	body.tb-navy #tab-description p,
	body.tb-navy #tab-description ul { font-size: 16px; }
	body.tb-navy #tab-description table tr > td:first-child { width: 110px; }
}

/* ---------- Hide "Click Preview" (Preview Mockup plugin) ---------- */
body.tb-navy .preview-mockup,
body.tb-navy a.preview-mockup { display: none !important; }

/* ---------- Horizontal thumbnails under the main image ---------- */
body.tb-navy.single-product .product-thumbnails { margin-top: 10px; }
body.tb-navy.single-product .product-thumbnails .col { padding: 0 8px 0 0; }
body.tb-navy.single-product .product-thumbnails a { background: var(--tb-grey); opacity: .75; transition: opacity .15s; }
body.tb-navy.single-product .product-thumbnails .is-nav-selected a,
body.tb-navy.single-product .product-thumbnails a:hover { opacity: 1; }

/* ---------- Style picker: icon cards with names ---------- */
body.tb-navy .wcpa_type_image-group .image-group {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
	margin-top: 2px;
}
body.tb-navy .wcpa_type_image-group .wcpa_image {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: auto !important;
	margin: 0 !important;
	padding: 12px 6px 10px !important;
	background: var(--tb-grey);
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
body.tb-navy .wcpa_type_image-group .wcpa_image:hover { border-color: #c9ced6; background: #fff; }
body.tb-navy .wcpa_form_outer .wcpa_type_image-group .wcpa_image img,
body.tb-navy .wcpa_form_outer .wcpa_type_image-group .wcpa_image input:checked + img {
	width: 46px !important;
	height: 46px !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	mix-blend-mode: multiply;
	opacity: .75;
}
body.tb-navy .wcpa_type_image-group .wcpa_image label {
	display: block !important;
	margin: 8px 0 0;
	font-family: var(--tb-head);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.15;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-align: center;
	color: var(--tb-muted);
	cursor: pointer;
}
/* Whole card is clickable */
body.tb-navy .wcpa_type_image-group .wcpa_image label::after { content: ""; position: absolute; inset: 0; }
body.tb-navy .wcpa_type_image-group .wcpa_image:has(input:checked) { background: #fff; border-color: var(--tb-navy); }
body.tb-navy .wcpa_form_outer .wcpa_type_image-group .wcpa_image input:checked + img { opacity: 1; }
body.tb-navy .wcpa_type_image-group .wcpa_image:has(input:checked) label { color: var(--tb-navy); }
body.tb-navy .wcpa_type_image-group .wcpa_image:has(input:checked)::before {
	content: "";
	position: absolute;
	top: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	background: var(--tb-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
