/* ==========================================================================
   My Spectacles – product page (woocommerce/single-product-ms.php)
   Same design language as the Home page (home.css): navy headings, purple
   buttons, Poppins / Montserrat, grey and white bands, rounded cards.
   Lens options (TM Extra Product Options) keep their styles from style.css.
   ========================================================================== */

.ms-pdp {
	--ms-navy: #333974;
	--ms-purple: #575d9b;
	--ms-purple-dark: #454a85;
	--ms-ink: #1d1f2b;
	--ms-text: #3a3a3a;
	--ms-muted: #5f6470;
	--ms-grey: #f2f2f2;
	--ms-soft: #f5f6fb;
	--ms-line: #e2e4ea;
	--ms-sale: #c8102e;
	--ms-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
	--ms-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	font-family: var(--ms-body);
	color: var(--ms-text);
	font-size: 16px;
	line-height: 1.65;
}
.ms-pdp *, .ms-pdp *::before, .ms-pdp *::after { box-sizing: border-box; }
.ms-pdp img { max-width: 100%; height: auto; }
.ms-pdp :focus-visible { outline: 2px solid var(--ms-purple); outline-offset: 3px; border-radius: 4px; }

/* Edge to edge inside Astra (the bands bring their own container) */
body.ms-pdp-page .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
body.ms-pdp-page #primary { width: 100%; margin: 0; padding: 0; border: 0; }
body.ms-pdp-page .ast-woocommerce-container { padding: 0; margin: 0; max-width: none; }

.ms-container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.ms-icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.ms-pdp .ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 28px; border: 2px solid transparent; border-radius: 6px;
	font-family: var(--ms-head); font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.ms-pdp .ms-btn--outline { background: transparent; color: var(--ms-purple); border-color: var(--ms-purple); }
.ms-pdp .ms-btn--outline:hover { background: var(--ms-purple); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.ms-pdp__crumbs { padding: 18px 0 14px; font-size: .85rem; color: var(--ms-muted); }
.ms-pdp__crumbs a { color: var(--ms-muted); text-decoration: none; }
.ms-pdp__crumbs a:hover { color: var(--ms-purple); text-decoration: underline; }

/* ---------- Top: gallery + summary ---------- */
.ms-pdp__topwrap { padding-bottom: clamp(32px, 5vw, 64px); }
.ms-pdp__top {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(24px, 4vw, 56px); align-items: start;
}
.ms-pdp__media, .ms-pdp__summary { position: relative; min-width: 0; }
/* Astra / WooCommerce float and size these (48% / 26%): force the grid to decide. */
.ms-pdp .ms-pdp__media,
.ms-pdp .ms-pdp__media .images,
.ms-pdp .ms-pdp__summary,
.ms-pdp .summary.entry-summary {
	float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding-inline: 0 !important;
}

/* ---------- Gallery ---------- */
.ms-gal { position: relative; width: 100%; }
/* NB: the wrapper must NOT use the class "woocommerce-product-gallery__wrapper" –
   Astra turns that element into a mobile slider that crops the photo (object-fit: cover). */
.ms-gal__wrap { margin: 0; padding: 0; }
.ms-gal__main {
	position: relative; margin: 0 !important; float: none !important; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
	background: #fff; border: 1px solid var(--ms-line); border-radius: 16px;
}
.ms-gal__zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: zoom-in; }
.ms-gal__main img,
.ms-gal__img {
	display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: contain; background: #fff; border-radius: 0;
}
.ms-pdp .zoomImg { display: none !important; } /* never magnify the photo on touch screens */
/* Safety net: if any script (Astra slider) wraps the photo, keep it uncropped. */
.ms-gal .tns-outer, .ms-gal .tns-inner, .ms-gal .tns-slider { display: block; width: 100% !important; transform: none !important; }
.ms-gal .tns-controls, .ms-gal .tns-nav, .ms-gal .tns-liveregion { display: none !important; }
.ms-gal .tns-item { width: 100% !important; float: none !important; }
.ms-gal .ms-gal__main img, .ms-gal .tns-item img {
	position: static !important; inset: auto !important; width: 100% !important; height: 100% !important; object-fit: contain !important;
}
.ms-sale-dot {
	position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%; background: var(--ms-sale); color: #fff;
	font-family: var(--ms-head); font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: .02em;
	box-shadow: 0 6px 14px rgba(200, 16, 46, .3);
}
.ms-gal__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.ms-gal__thumbs li { margin: 0; }
.ms-gal__thumb {
	display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; cursor: pointer;
	background: #fff; border: 2px solid var(--ms-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.ms-gal__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ms-gal__thumb:hover,
.ms-gal__thumb:focus,
.ms-gal__thumb:active { background: #fff; border-color: #b9bddb; color: inherit; outline: 0; }
.ms-gal__thumb:focus-visible { outline: 2px solid var(--ms-purple); outline-offset: 2px; }
.ms-gal__thumb[aria-current="true"],
.ms-gal__thumb[aria-current="true"]:focus { border-color: var(--ms-purple); box-shadow: 0 4px 12px rgba(87, 93, 155, .2); }

/* Enlarge view */
.ms-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 22, 38, .88); }
.ms-lb[hidden] { display: none; }
.ms-lb img { max-width: min(1200px, 100%); max-height: 100%; background: #fff; border-radius: 12px; }
.ms-lb button {
	position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #1d1f2b;
	font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.ms-lb__close { top: 16px; right: 16px; }
.ms-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ms-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Summary ---------- */
.ms-pdp .product_title {
	display: block !important; visibility: visible !important; /* never hidden by a site-wide .entry-title rule */
	margin: 0 0 12px; font-family: var(--ms-head); font-weight: 700; color: var(--ms-navy);
	font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.2; overflow-wrap: anywhere;
}
.ms-pdp__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ms-pill {
	display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
	font-family: var(--ms-head); font-weight: 600; font-size: .78rem; line-height: 1.2;
}
.ms-pill--sale { background: var(--ms-sale); color: #fff; }
.ms-pill--soft { background: #eceef7; color: var(--ms-navy); }

.ms-pdp .woocommerce-product-rating { margin: 0 0 10px; }
.ms-pdp .summary p.price {
	display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; flex-wrap: wrap;
	gap: 4px 16px; margin: 0 0 16px; font-family: var(--ms-head); line-height: 1.2;
}
.ms-pdp .summary p.price ins,
.ms-pdp .summary p.price del { display: inline-block !important; margin: 0; background: none; }
.ms-pdp .summary p.price ins { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--ms-sale) !important; }
.ms-pdp .summary p.price del { font-size: 1.05rem; font-weight: 500; color: var(--ms-muted); }
.ms-pdp .summary p.price ins::before,
.ms-pdp .summary p.price del::before { font-size: .42em; letter-spacing: .08em; margin-right: 6px; font-weight: 600; color: var(--ms-muted); }
.ms-pdp .summary p.price del::before { font-size: .75em; }
.ms-pdp .summary p.price > .amount, .ms-pdp .summary p.price > span:only-child { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--ms-navy); }

.ms-pdp .woocommerce-product-details__short-description { margin: 0 0 20px; color: var(--ms-text); }
.ms-pdp .woocommerce-product-details__short-description p { margin: 0 0 10px; }
.ms-pdp .woocommerce-product-details__short-description ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ms-pdp .woocommerce-product-details__short-description li { position: relative; padding-left: 22px; }
.ms-pdp .woocommerce-product-details__short-description li::before {
	content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ms-purple);
}

/* Variation + lens form */
.ms-pdp .summary form.cart,
.ms-pdp .summary .tc-extra-product-options,
.ms-pdp .summary .tm-extra-product-options { max-width: 100%; min-width: 0; }
.ms-pdp .summary table.variations { width: 100%; margin: 0 0 14px; border: 0; }
.ms-pdp .summary table.variations th,
.ms-pdp .summary table.variations td { display: block; width: 100%; padding: 0 0 6px; border: 0; text-align: left; }
.ms-pdp .summary table.variations label { font-family: var(--ms-head); font-weight: 600; color: var(--ms-ink); font-size: .95rem; }
.ms-pdp .summary table.variations select {
	width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--ms-line); border-radius: 8px; background-color: #fff; font-size: 1rem;
}
.ms-pdp .summary .single_add_to_cart_button {
	width: 100%; min-height: 54px; border: 0; border-radius: 6px; background: var(--ms-purple); color: #fff;
	font-family: var(--ms-head); font-weight: 600; font-size: 1.02rem; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.ms-pdp .summary .single_add_to_cart_button:hover { background: var(--ms-purple-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(87, 93, 155, .3); }

.ms-pdp .product_meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ms-line); font-size: .85rem; color: var(--ms-muted); }
.ms-pdp .product_meta > span { display: block; margin-bottom: 4px; }
.ms-pdp .product_meta a { color: var(--ms-purple); }

/* Trust points */
.ms-pdp__trust {
	list-style: none; margin: 20px 0 0; padding: 18px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
	background: var(--ms-soft); border-radius: 14px;
}
.ms-pdp__trust li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .88rem; font-weight: 500; color: var(--ms-ink); line-height: 1.35; }
.ms-pdp__trust .ms-icon { color: var(--ms-purple); }

/* ---------- Quick links ---------- */
.ms-pdp__nav { border-block: 1px solid var(--ms-line); background: #fff; }
.ms-pdp__nav ul { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 12px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ms-pdp__nav ul::-webkit-scrollbar { display: none; }
.ms-pdp__nav li { margin: 0; flex: none; }
.ms-pdp__nav a {
	display: block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ms-line);
	font-family: var(--ms-head); font-weight: 500; font-size: .88rem; color: var(--ms-ink); text-decoration: none; white-space: nowrap;
}
.ms-pdp__nav a:hover { background: var(--ms-soft); border-color: var(--ms-purple); color: var(--ms-purple); }

/* ---------- Bands ---------- */
.ms-band { padding-block: clamp(44px, 6vw, 80px); scroll-margin-top: calc(var(--ms-hd-h, 0px) + var(--ms-adminbar, 0px) + 16px); }
.ms-band--grey { background: var(--ms-grey); }
.ms-band__head { margin-bottom: clamp(24px, 3.5vw, 40px); text-align: center; }
.ms-band__title,
.ms-pdp .related.products > h2,
.ms-pdp .up-sells > h2 {
	margin: 0; font-family: var(--ms-head); font-weight: 700; color: var(--ms-navy); text-transform: uppercase;
	font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; text-align: center; text-wrap: balance;
}
.ms-band__title::after,
.ms-pdp .related.products > h2::after,
.ms-pdp .up-sells > h2::after {
	content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--ms-purple);
}
.ms-pdp .related.products > h2, .ms-pdp .up-sells > h2 { margin-bottom: clamp(24px, 3.5vw, 40px); }

.ms-pdp__card { background: #fff; border: 1px solid var(--ms-line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.ms-band--white .ms-pdp__card { background: #fff; }
.ms-pdp__h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--ms-head); font-weight: 600; font-size: 1.1rem; color: var(--ms-navy); }
.ms-pdp__h3 .ms-icon { color: var(--ms-purple); }
.ms-pdp__note { margin: 14px 0 0; font-size: .88rem; color: var(--ms-muted); }

/* ---------- About (long description) ---------- */
.ms-pdp__prose { max-width: 920px; margin-inline: auto; font-size: 1rem; }
.ms-pdp__prose > :first-child { margin-top: 0; }
.ms-pdp__prose > :last-child { margin-bottom: 0; }
.ms-pdp__prose h3, .ms-pdp__prose h4, .ms-pdp__prose h5, .ms-pdp__prose h6 { font-family: var(--ms-head); color: var(--ms-navy); line-height: 1.3; margin: 28px 0 10px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ms-pdp__prose h3 { font-size: 1.3rem; }
.ms-pdp__prose h4 { font-size: 1.1rem; color: var(--ms-ink); }
.ms-pdp__prose h5, .ms-pdp__prose h6 { font-size: 1rem; color: var(--ms-ink); }
.ms-pdp__prose > h3:first-child { margin-top: 0; }
.ms-pdp__prose p { margin: 0 0 14px; }
.ms-pdp__prose a { color: var(--ms-purple); text-decoration: underline; text-underline-offset: 3px; }
.ms-pdp__prose ul, .ms-pdp__prose ol { margin: 0 0 14px 1.2em; padding: 0; }
.ms-pdp__prose li { margin-bottom: 6px; }
.ms-pdp__prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; font-size: .95rem; }
.ms-pdp__prose th, .ms-pdp__prose td { padding: 10px 14px; border: 1px solid var(--ms-line); text-align: left; vertical-align: top; }
.ms-pdp__prose th { background: var(--ms-soft); color: var(--ms-ink); font-weight: 600; white-space: nowrap; }

/* ---------- Lens price tables ---------- */
.ms-pdp__tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.ms-pdp__tablewrap { border: 1px solid var(--ms-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ms-pdp__table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 1rem; }
.ms-pdp__table th, .ms-pdp__table td { padding: 15px 16px; border: 0; border-bottom: 1px solid var(--ms-line); text-align: left; vertical-align: middle; background: transparent; }
.ms-pdp__table thead th { background: var(--ms-navy); color: #fff; border-bottom: 0; font-family: var(--ms-head); font-weight: 600; font-size: .84rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.ms-pdp__table tbody th { font-family: var(--ms-head); font-weight: 600; font-size: .95rem; color: var(--ms-ink); }
.ms-pdp__table tbody td { font-weight: 500; color: var(--ms-ink); }
.ms-pdp__table tbody tr:nth-child(even) th, .ms-pdp__table tbody tr:nth-child(even) td { background: var(--ms-soft); }
.ms-pdp__table tbody tr:last-child th, .ms-pdp__table tbody tr:last-child td { border-bottom: 0; }
.ms-pdp__table .ms-num { text-align: center; white-space: nowrap; }
.ms-free { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #e3f4e8; color: #1a7a3a; font-family: var(--ms-head); font-weight: 700; font-size: .78rem; letter-spacing: .03em; }
.ms-pdp__tables .ms-pdp__card { border: 0; padding: 0; background: transparent; border-radius: 0; }
.ms-pdp__tables .ms-pdp__h3 { margin-bottom: 12px; }

/* ---------- Frame details + size guide ---------- */
.ms-pdp__detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.ms-pdp .woocommerce-product-attributes { display: block; width: 100%; max-width: 100%; margin: 0; border: 0; }
.ms-pdp .woocommerce-product-attributes tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ms-pdp .woocommerce-product-attributes tr { display: block; background: var(--ms-soft); border-radius: 10px; padding: 12px 14px; min-width: 0; border: 0 !important; }
.ms-pdp .woocommerce-product-attributes th { display: block; padding: 0; border: 0 !important; text-align: left; font-family: var(--ms-head); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ms-muted); }
.ms-pdp .woocommerce-product-attributes td { display: block; padding: 2px 0 0; border: 0 !important; font-weight: 500; color: var(--ms-ink); overflow-wrap: anywhere; min-width: 0; }
.ms-pdp .woocommerce-product-attributes td p { margin: 0; }
.ms-pdp__sizeimg { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: 10px; background: var(--ms-grey); }

/* ---------- Delivery / returns / included ---------- */
.ms-pdp__help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ms-pdp__help p { margin: 0 0 14px; }
.ms-pdp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-pdp__list li { position: relative; margin: 0; padding-left: 28px; }
.ms-pdp__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ms-purple); font-weight: 700; }

/* ---------- Reviews ---------- */
.ms-pdp #reviews { max-width: 900px; margin-inline: auto; }
.ms-pdp #reviews #comments > h2 { font-family: var(--ms-head); font-size: 1.1rem; color: var(--ms-navy); text-transform: none; }
.ms-pdp #reviews .commentlist { padding: 0; margin: 0; list-style: none; }
.ms-pdp #reviews .commentlist li { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ms-line); }
.ms-pdp #reviews .commentlist img.avatar { border-radius: 50%; }

/* ---------- You may also like: shared product card, see cards.css ---------- */

/* ---------- Tabs (About / Lens prices / Frame details / Delivery / Reviews) ---------- */
.ms-tabs__list { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.ms-tabs__list::-webkit-scrollbar { display: none; }
.ms-tabs__tab {
	flex: none; padding: 12px 22px; border: 1px solid var(--ms-line); border-radius: 999px; background: #fff; cursor: pointer;
	font-family: var(--ms-head); font-weight: 500; font-size: .92rem; line-height: 1.2; color: var(--ms-ink); white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.ms-tabs__tab:hover,
.ms-tabs__tab:focus { background: #f1f2fa; border-color: var(--ms-purple); color: var(--ms-navy); }
.ms-tabs__tab[aria-selected="true"],
.ms-tabs__tab[aria-selected="true"]:hover,
.ms-tabs__tab[aria-selected="true"]:focus { background: var(--ms-purple); border-color: var(--ms-purple); color: #fff; }
.ms-tabs__panel { background: #fff; border: 1px solid var(--ms-line); border-radius: 16px; padding: clamp(20px, 3vw, 36px); min-width: 0; }
.ms-tabs__panel + .ms-tabs__panel { margin-top: 24px; }
.ms-tabs__title { margin: 0 0 20px; font-family: var(--ms-head); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.25; color: var(--ms-navy); text-transform: uppercase; }
.ms-tabs--on .ms-tabs__panel[hidden] { display: none; }
.ms-tabs--on .ms-tabs__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ms-tabs:not(.ms-tabs--on) .ms-tabs__list { display: none; }

/* Things Astra prints in the summary that this template replaces */
.ms-pdp .summary > .single-product-category,
.ms-pdp .summary > nav.woocommerce-breadcrumb,
.ms-pdp .summary > .product_meta,
.ms-pdp .summary .woocommerce-tabs { display: none !important; }
.ms-pdp__eyebrow { margin: 0 0 6px; font-family: var(--ms-head); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.ms-pdp__eyebrow a { color: var(--ms-purple); text-decoration: none; }
.ms-pdp__eyebrow a:hover { text-decoration: underline; }
.ms-pdp__box { background: var(--ms-soft); border-radius: 14px; padding: 22px; min-width: 0; }

/* ---------- Mobile sticky bar ---------- */
.ms-pdp-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(29, 31, 43, .12);
}
.ms-pdp-bar[hidden] { display: none !important; }
.ms-pdp-bar__price { font-family: "Poppins", Arial, sans-serif; font-weight: 700; color: #1d1f2b; font-size: 1.05rem; }
.ms-pdp-bar__price del, .ms-pdp-bar__price ins { display: inline !important; background: none; font-size: .9rem; }
.ms-pdp-bar__price ins::before, .ms-pdp-bar__price del::before { content: none; }
.ms-pdp-bar__btn {
	flex: 1 1 auto; max-width: 240px; min-height: 46px; border: 0; border-radius: 6px; background: #575d9b; color: #fff;
	font-family: "Poppins", Arial, sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer;
}

/* Astra paints EVERY <button>:hover blue – keep our buttons on-brand */
.ms-pdp-bar__btn:hover, .ms-pdp-bar__btn:focus { background: #454a85; color: #fff; }
.ms-lb button:hover, .ms-lb button:focus { background: #fff; color: #1d1f2b; }

@media (max-width: 1024px) {
	.ms-pdp__help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-pdp__help .ms-pdp__box:last-child { grid-column: 1 / -1; }
}

/* ---------- Single column (Astra breakpoint) ---------- */
@media (max-width: 921px) {
	.ms-pdp__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ms-pdp__tables, .ms-pdp__detail { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Desktop: gallery stays in view while the long lens form scrolls ---------- */
@media (min-width: 922px) {
	.ms-pdp__media { position: sticky; top: calc(var(--ms-hd-h, 0px) + var(--ms-adminbar, 0px) + 24px); } /* clears the sticky site header */
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.ms-container { padding-inline: 16px; }
	.ms-gal__thumbs { gap: 8px; }
	.ms-sale-dot { width: 48px; height: 48px; top: 12px; left: 12px; font-size: .7rem; }
	.ms-pdp__trust { grid-template-columns: minmax(0, 1fr); }
	.ms-tabs__list { justify-content: flex-start; }
	.ms-tabs__tab { padding: 10px 18px; }
	.ms-pdp__help { grid-template-columns: minmax(0, 1fr); }
	.ms-pdp .woocommerce-product-attributes tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-tabs__panel { padding: 16px 14px; }
	.ms-pdp__table { table-layout: fixed; font-size: .9rem; }
	.ms-pdp__table th, .ms-pdp__table td { padding: 12px 6px; }
	.ms-pdp__table thead th { white-space: normal; font-size: .74rem; line-height: 1.25; }
	.ms-pdp__table thead th:first-child, .ms-pdp__table tbody th { width: 28%; }
	.ms-pdp__prose table { font-size: .88rem; }
	.ms-pdp-bar:not([hidden]) { display: flex; }
	body.ms-pdp-bar-on { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	.ms-pdp * { transition: none !important; }
}

/* Title row: H1 with the wishlist heart right next to it */
.ms-pdp__titlerow { display: flex; flex-wrap: wrap; align-items: center; min-height: 0; justify-content: flex-start; gap: 4px 10px; margin: 0 0 12px; }
.ms-pdp .ms-pdp__titlerow .product_title, .ms-pdp__titlerow h1.product_title { flex: 0 1 auto; min-width: 0; margin: 0 !important; padding: 0; line-height: 1.2; }
.ms-pdp__wishlist { flex: 0 0 auto; display: inline-flex; align-items: center; width: auto; height: auto; margin: 0; padding: 0; line-height: 0; }
.ms-pdp__wishlist > *, .ms-pdp__wishlist .yith-wcwl-add-to-wishlist, .ms-pdp__wishlist .yith-wcwl-add-button,
.ms-pdp__wishlist .yith-wcwl-wishlistaddedbrowse, .ms-pdp__wishlist .yith-wcwl-wishlistexistsbrowse {
	display: inline-flex !important; align-items: center; width: auto; height: auto; margin: 0 !important; padding: 0 !important; float: none !important; position: static;
}
/* Just the heart (no circle), sitting right after the last letter of the title */
.ms-pdp__wishlist a {
	display: inline-flex !important; align-items: center; justify-content: center; width: 30px !important; height: 30px !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--ms-navy) !important;
	line-height: 1; text-decoration: none !important; box-shadow: none; overflow: visible; position: relative;
}
.ms-pdp__wishlist a:hover, .ms-pdp__wishlist a:focus { background: none !important; color: var(--ms-purple) !important; border: 0 !important; }
.ms-pdp__wishlist a svg, .ms-pdp__wishlist a img, .ms-pdp__wishlist a i { width: 26px; height: 26px; margin: 0 !important; font-size: 26px; flex: 0 0 auto; }
.ms-pdp__wishlist .feedback, .ms-pdp__wishlist .ajax-loading { display: none !important; }
/* Label stays for screen readers, the heart is the visible button. */
.ms-pdp__wishlist a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lens selector form: no "underline only" fields or underlined headings ---------- */
.ms-pdp form.cart h1, .ms-pdp form.cart h2, .ms-pdp form.cart h3, .ms-pdp form.cart h4, .ms-pdp form.cart h5, .ms-pdp form.cart h6,
.ms-pdp form.cart .tc-section-title, .ms-pdp form.cart .tm-epo-element-label, .ms-pdp form.cart .tc-epo-label,
.ms-pdp .tm-extra-product-options h2, .ms-pdp .tm-extra-product-options h3, .ms-pdp .tm-extra-product-options h4 {
	border: 0 !important; border-bottom: 0 !important; text-decoration: none !important; box-shadow: none !important; background-image: none !important;
}
.ms-pdp [class*="jsl-"] h2, .ms-pdp [class*="jsl-"] h3, .ms-pdp [class*="jsl-"] h4, .ms-pdp .summary h2, .ms-pdp .summary h3, .ms-pdp .summary h4 {
	border: 0 !important; border-bottom: 0 !important; text-decoration: none !important; box-shadow: none !important;
}
.ms-pdp form.cart hr, .ms-pdp .tm-extra-product-options hr, .ms-pdp [class*="jsl-"] hr { display: none; }
.ms-pdp form.cart select,
.ms-pdp form.cart input[type="text"], .ms-pdp form.cart input[type="number"], .ms-pdp form.cart input[type="email"], .ms-pdp form.cart input[type="tel"], .ms-pdp form.cart textarea {
	border: 1px solid #c9ccd8 !important; border-radius: 10px !important; background-color: #fff; box-shadow: none; padding-inline: 14px;
}
.ms-pdp form.cart select { padding-right: 40px; }
.ms-pdp form.cart select:focus, .ms-pdp form.cart input:focus { border-color: var(--ms-purple) !important; outline: 0; box-shadow: 0 0 0 3px rgba(87,93,155,.2); }
/* Tables shown inside the lens selector (e.g. "How it fits") */
.ms-pdp form.cart table:not(.variations), .ms-pdp [class*="jsl-"] table:not(.variations) { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ms-line); border-radius: 12px; overflow: hidden; margin: 0 0 16px; font-size: .95rem; }
.ms-pdp form.cart table:not(.variations) th, .ms-pdp form.cart table:not(.variations) td, .ms-pdp [class*="jsl-"] table:not(.variations) th, .ms-pdp [class*="jsl-"] table:not(.variations) td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--ms-line); text-align: left; vertical-align: top; background: transparent; }
.ms-pdp form.cart table:not(.variations) th, .ms-pdp [class*="jsl-"] table:not(.variations) th { background: var(--ms-soft); color: var(--ms-ink); font-weight: 600; white-space: nowrap; width: 38%; }
.ms-pdp form.cart table:not(.variations) tr:last-child th, .ms-pdp form.cart table:not(.variations) tr:last-child td { border-bottom: 0; }

/* Lens form labels (Color, Eye Size ...): white background, no grey band */
.ms-pdp form.cart .tc-epo-label, .ms-pdp form.cart .tm-epo-element-label, .ms-pdp form.cart h3.tc-cell, .ms-pdp form.cart label.tc-epo-element-label,
.ms-pdp .tm-extra-product-options .tc-epo-label, .ms-pdp .tm-extra-product-options .tm-epo-element-label,
.ms-pdp form.cart .tc-cell:has(> .tc-epo-label), .ms-pdp form.cart .tc-cell:has(> .tm-epo-element-label) {
	background: #fff !important; background-color: #fff !important; border-radius: 0 !important;
}

/* Variations table (Color, Eye Size ...): plain labels, no background, no border */
.ms-pdp .summary table.variations, .ms-pdp .summary table.variations tbody, .ms-pdp .summary table.variations tr,
.ms-pdp .summary table.variations th, .ms-pdp .summary table.variations td, .ms-pdp .summary table.variations .label, .ms-pdp .summary table.variations label {
	background: transparent !important; background-color: transparent !important; box-shadow: none !important;
}
.ms-pdp .summary table.variations { border: 0 !important; border-radius: 0 !important; overflow: visible; }
.ms-pdp .summary table.variations th, .ms-pdp .summary table.variations td { border: 0 !important; width: 100%; padding: 0 0 6px; }
.ms-pdp .summary table.variations th.label { padding-top: 6px; }

/* ==========================================================================
   v1.9.2 — Lens selector (TM Extra Product Options): fixes and tidy-up
   ========================================================================== */

/* BUG FIX: step titles ("Select Single Vision Lenses Types" …) were white text on the white bar
   (the white-background rule above removed the dark bar they were designed for) – they looked empty. */
.ms-pdp form.cart .tm-section-label,
.ms-pdp form.cart .tm-section-label .tc-section-label-text,
.ms-pdp form.cart .tm-section-label .tm-arrow { color: var(--ms-navy, #333974) !important; }
.ms-pdp form.cart .tm-section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 16px; cursor: pointer; font-family: var(--ms-head); font-weight: 600; line-height: 1.3; }
.ms-pdp form.cart .tm-section-label .tc-section-label-text { font-size: 1.02rem; }
.ms-pdp form.cart .tm-section-label .tm-arrow { flex: 0 0 auto; font-size: 1.1rem; }

/* Option cards: a little air between rows, rounded corners, readable description text, clear focus ring */
.ms-pdp form.cart .tmcp-field-wrap { border-radius: 6px; }
.ms-pdp form.cart .tc-inline-description { font-size: 13px; line-height: 1.5; color: #4a4d5a; }
.ms-pdp form.cart .tc-inline-description a { color: var(--ms-navy, #333974); }
.ms-pdp form.cart .tmcp-field-wrap:focus-within { outline: 2px solid var(--ms-purple, #575d9b); outline-offset: 2px; }
.ms-pdp form.cart .tc-active { border-radius: 6px; }

/* Lens coatings block ([ms_coating_features]) sits under the option's own description */
.ms-pdp form.cart .tc-inline-description .ms-cf { margin-top: 10px; }

/* Small screens: the lens cards use the full width and the text does not shrink below 13px */
@media (max-width: 600px) {
	.ms-pdp form.cart .tm-section-label { padding: 12px; }
	.ms-pdp form.cart .tc-inline-description { font-size: 13px; }
}
