/* BUYAMTO polish (2026-11-03) — calmer shop cards and product page. Uses the --by-* tokens, so dark mode recolours it. */

/* Names: bold brand + quiet description line */
.by-name-sub { display: block; margin-top: 3px; font-weight: 400; font-size: .84em; line-height: 1.35; color: var(--by-grey); letter-spacing: 0; }
.product_title .by-name-sub { font-size: .5em; margin-top: 8px; color: var(--by-ink-soft); }

/* Shop cards: left-aligned, steady rhythm, full-width button */
.product-small .box-text.text-center { text-align: left; }
.product-small .box-text { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.product-small .title-wrapper { min-height: 0; }
.product-small .title-wrapper .name a, .product-small .product-title a { font-size: 1.02rem; line-height: 1.3; }
.product-small .price-wrapper { margin-top: 10px; }
.product-small .price { font-size: 1.02rem; letter-spacing: -.01em; }
.product-small .add-to-cart-button { margin-top: 12px; }
.product-small .add-to-cart-button .button, .product-small .add-to-cart-button a.button {
	width: 100%; margin: 0; min-height: 42px; border-radius: var(--by-pill);
	background: transparent; color: var(--by-ink); border: 1.5px solid var(--by-line);
	font-size: .88rem; font-weight: 650; text-transform: none; letter-spacing: 0;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.product-small .add-to-cart-button .button:hover { background: var(--by-ink); color: var(--by-bg); border-color: var(--by-ink); }

/* Product page: quiet facts instead of loud orange lines */
.by-essentials__facts { color: var(--by-ink-soft); font-weight: 500; font-size: .95rem; }
.by-essentials__facts:first-of-type { margin-top: 12px; }

/* Section titles like the home page: sentence case, no shouting */
.related-products-wrapper .product-section-title, .product-section-title-related, .product-section-title {
	text-transform: none; letter-spacing: -.02em; font-size: 1.6rem; font-weight: 750;
}

@media (max-width: 549px) {
	.product-small .box-text { padding: 12px 12px 14px; }
	.product-small .title-wrapper .name a, .product-small .product-title a { font-size: .95rem; }
	.by-name-sub { font-size: .8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.product-small .add-to-cart-button .button { min-height: 38px; font-size: .82rem; }
}

/* Category cards (category pages): photo card with a calm label */
.product-category .col-inner > a { display: block; text-decoration: none; }
.product-category .box { border-radius: var(--by-r); overflow: hidden; background: var(--by-surface); box-shadow: var(--by-shadow); transition: transform .4s ease, box-shadow .4s ease; }
.product-category .box:hover { transform: translateY(-4px); box-shadow: var(--by-shadow-lg); }
.product-category .box-image { aspect-ratio: 1 / 1; overflow: hidden; }
.product-category .box-image img { width: 100%; height: 100%; object-fit: cover; }
.product-category .box-text { position: static; background: var(--by-surface); padding: 14px 16px 16px; text-align: left; }
.product-category .box-text .header-title { text-transform: none; letter-spacing: -.01em; font-size: 1.02rem; font-weight: 700; color: var(--by-ink); margin: 0; }
.product-category .box-text .count { text-transform: none; letter-spacing: 0; color: var(--by-grey); font-size: .82rem; opacity: 1; }
@media (max-width: 549px) {
	.product-category .box-text { padding: 10px 12px 12px; }
	.product-category .box-text .header-title { font-size: .92rem; }
}
/* Label sits on the photo's lower edge (Flatsome "badge" style places it mid-card) */
.product-category .box { position: relative; }
.product-category .box-badge .box-text, .product-category .box-text {
	position: absolute !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
	width: 100% !important; margin: 0 !important; transform: none !important;
	background: linear-gradient(0deg, rgba(20,18,15,.74) 0%, rgba(20,18,15,0) 100%) !important;
	padding: 34px 16px 14px !important;
}
.product-category .box-text-inner { background: none !important; padding: 0 !important; }
.product-category .box-text .header-title { color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.product-category .box-text .count { color: rgba(255,255,255,.8); }
@media (max-width: 549px) { .product-category .box-badge .box-text, .product-category .box-text { padding: 26px 12px 10px !important; } }
/* Everything in a shop card lines up on the left */
.product-small .box-text, .product-small .box-text .title-wrapper, .product-small .box-text .price-wrapper,
.product-small .box-text .name, .product-small .box-text .price, .product-small .box-text .add-to-cart-button { text-align: left !important; width: 100%; margin-left: 0; margin-right: 0; }
.product-small .box-text .price-wrapper .price { display: block; }
.product-info .by-essentials__facts, .product-summary .by-essentials__facts, .by-essentials .by-essentials__facts { color: var(--by-ink-soft, #4B463F) !important; font-weight: 500; }

/* Shop card rating (only printed when a product has a rating or reviews) */
.by-card-rating { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: .82rem; line-height: 1; color: var(--by-ink-soft, #4B463F); }
.by-card-rating__stars { position: relative; display: inline-block; font-size: .95rem; letter-spacing: 1px; line-height: 1; }
.by-card-rating__stars::before { content: "\2605\2605\2605\2605\2605"; color: var(--by-line, #D9D4CC); }
.by-card-rating__stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--by-r, 0%); overflow: hidden; white-space: nowrap; color: #E0A100; }
.by-card-rating__avg { font-weight: 700; color: var(--by-ink, #1A1815); }
.by-card-rating__count { white-space: nowrap; }
@media (max-width: 480px) { .by-card-rating__word { display: none; } }
