/* ============================================================================
   product-sections.css - the product page's Descriere / Specificații / Opinii
   ============================================================================
   Loaded on the product page only, by ocmod/product_sections.ocmod.xml.

   The layout follows Baymard Institute's product page testing: no horizontal tabs
   (27 % of users overlooked tabbed content), "Expanded Sections" on desktop and
   "Collapsed Sections" on mobile. One markup serves both: every section is open on
   desktop; on a phone only Descriere starts open, the others are one tap away. Every
   heading is a real button on every screen, so a section can always be closed and the
   state is announced to screen readers (aria-expanded).

   The specification sheet is one column, label left of value, alternating rows and
   titled groups, as Baymard's spec sheet research recommends.
   ============================================================================ */

.asc-ps {
	margin: 24px 0 8px;
	border-bottom: 1px solid #e3e6ea;
}
.asc-ps-sec {
	border-top: 1px solid #e3e6ea;
}
.asc-ps-head {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}
.asc-ps-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 2px;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: #222;
	text-align: left;
	cursor: pointer;
}
.asc-ps-btn:hover {
	color: #229ac8;
}
.asc-ps-btn:focus-visible {
	outline: 2px solid #229ac8;
	outline-offset: 2px;
}
.asc-ps-count {
	margin-left: 6px;
	font-weight: 400;
	color: #777;
}
/* A chevron drawn with borders: no icon font, no image. Points down when closed. */
.asc-ps-icon {
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0 6px 4px 16px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.asc-ps-sec.is-open .asc-ps-icon {
	margin-bottom: -4px;
	transform: rotate(-135deg);
}
.asc-ps-body {
	padding: 0 2px 22px;
}
/* Hidden only once the script has run: without it every section stays readable. */
.asc-ps-js .asc-ps-sec:not(.is-open) > .asc-ps-body {
	display: none;
}

/* ---------- the specification sheet ------------------------------------------ */
.asc-specs {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}
.asc-specs th,
.asc-specs td {
	padding: 9px 14px;
	text-align: left;
	vertical-align: top;
}
.asc-specs th[scope="row"] {
	width: 40%;
	font-weight: 400;
	color: #555;
}
.asc-specs td {
	color: #222;
}
.asc-specs tbody tr:nth-child(odd) th[scope="row"],
.asc-specs tbody tr:nth-child(odd) td {
	background: #f5f7f9;
}
.asc-specs .asc-specs-group th {
	padding: 18px 14px 8px;
	background: none;
	border-bottom: 2px solid #e3e6ea;
	font-size: 13px;
	font-weight: 700;
	color: #333;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.asc-specs tbody:first-child .asc-specs-group th {
	padding-top: 4px;
}
/* The group title row counts as a row for nth-child, so the stripes restart after it. */
.asc-specs tbody tr.asc-specs-group ~ tr:nth-child(odd) th[scope="row"],
.asc-specs tbody tr.asc-specs-group ~ tr:nth-child(odd) td {
	background: none;
}
.asc-specs tbody tr.asc-specs-group ~ tr:nth-child(even) th[scope="row"],
.asc-specs tbody tr.asc-specs-group ~ tr:nth-child(even) td {
	background: #f5f7f9;
}

/* ---------- reviews ------------------------------------------------------------ */
.asc-review-write {
	margin-top: 16px;
}
.asc-review-write h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

/* ---------- phones --------------------------------------------------------------
   The stock page puts the description inside the image column, so on a phone it came
   BEFORE the name, the price and the Add to cart button. Here the two columns become
   one flex column and the image column's own box disappears (display: contents), so
   its children can be ordered: images, then the buy box, then these sections. */
@media (max-width: 767px) {
	.asc-pp-row {
		display: flex;
		flex-direction: column;
	}
	/* The row's two children: the image column, then the buy box. */
	.asc-pp-row > div:first-child {
		display: contents;
	}
	/* The column's 15 px padding is gone with its box; the theme's -20 px on the list
	   and 20 px on each image (stylesheet.css, .thumbnails) net to -5 px. */
	.asc-pp-row > div:first-child > .thumbnails {
		order: 1;
		margin-left: -5px;
		margin-right: 15px;
	}
	.asc-pp-row > div:nth-child(2) {
		order: 2;
	}
	.asc-pp-row > div:first-child > .asc-ps {
		order: 3;
		margin-left: 15px;
		margin-right: 15px;
	}
	.asc-ps-head {
		font-size: 17px;
	}
	.asc-specs {
		font-size: 13.5px;
	}
	.asc-specs th,
	.asc-specs td {
		padding: 8px 10px;
	}
	.asc-specs th[scope="row"] {
		width: 45%;
	}
}

/* ---------- the breadcrumb ----------------------------------------------------- */
/* The theme keeps every breadcrumb item on one line (stylesheet.css: white-space: nowrap),
   so a product's long name ran past a phone's screen and widened the page. It wraps now. */
.breadcrumb > li {
	white-space: normal;
	overflow-wrap: anywhere;
}
