/* Daniel to Date – product (Tribal Art) styles, ported from the iTheme2 child theme. */
.dtd-full { width: 100%; float: none; }
.dtd-full .site-main { margin-left: 0; margin-right: 0; }

/* Gallery */
.gallery-container { display: flex; flex-wrap: wrap; }
.gallery-container .gallery-item { flex-basis: 23%; padding: 1%; display: flex; }
.gallery-container .gallery-item img { width: 100%; height: auto; display: block; }

/* Search ID box */
.product_search { background: #cecece; width: 100%; padding: 15px; margin: 0 0 15px; box-sizing: border-box; }
.product_search h2 { margin: 0 0 10px; font-family: "Times New Roman", serif; color: #000; font-size: 32px; font-weight: normal; letter-spacing: 1px; }
.product_search .user-message:empty { display: none; }
.product_search .user-message { color: #a00; margin-bottom: 8px; }
.product_search form.search-form { display: flex; }
.product_search label { flex: 1; }
.product_search input.search-field { height: 40px; width: 100%; box-sizing: border-box; border-radius: 4px 0 0 4px; font-size: 15px; }
.product_search input.search-submit { height: 40px; border: 1px solid #cecece; border-left: 0; border-radius: 0 4px 4px 0; }

/* Product card */
.single_product { background: #efefef; width: 100%; padding: 15px 30px; position: relative; line-height: 1.5; font-family: Arial, sans-serif; font-size: 14px; box-sizing: border-box; display: flow-root; }
.page-number { position: absolute; width: 35px; font-size: 14px; text-align: center; right: 5px; top: 5px; }
.product_title { font-size: 30px; margin: 0 0 30px; width: 100%; }
.product_image, .product_map { float: left; width: 50%; padding: 0 0 15px; box-sizing: border-box; }
.product_image { padding-right: 15px; }
.product_image img, .product_map img { max-width: 100%; height: auto; display: block; }
.product_map { text-align: right; }
.product_info { list-style: none; padding: 0; margin: 15px 0; clear: both; display: flow-root; }
.product_info li { width: 50%; float: left; color: #999; padding: 0 5px; margin: 0 0 10px; box-sizing: border-box; }
.product_info li strong { color: #000; font-weight: 400; }
.product_details { width: 100%; margin: 15px 0; clear: both; }

/* Previous / Next */
.product_pagination { display: flex; justify-content: space-between; width: 100%; padding: 15px 0; clear: both; }
.product_pagination a, .product_pagination span,
.product_pagination .button a { padding: 10px 30px; display: inline-block; background: #4d90fe; border: 1px solid #3079ed; color: #fff; text-decoration: none; }
.product_pagination div.button { padding: 0; background: none; border: 0; }
.product_pagination a.button, .product_pagination span.button { background: #4d90fe; color: #fff; }
.product_pagination a:hover, .product_pagination a:focus { background: #357ae8; box-shadow: 0 1px 2px rgba(0,0,0,.3) inset; }
.product_pagination .less-visible, .product_pagination .less-visible span { opacity: .4; cursor: not-allowed; }
.product_list { width: 100%; position: relative; margin-bottom: 20px; }

@media (max-width: 991px) {
	.product_image, .product_map { width: 100%; float: none; text-align: left; padding: 0 0 15px; }
	.gallery-container .gallery-item { flex-basis: 31%; }
}
@media (max-width: 480px) {
	.product_info li { width: 100%; }
	.gallery-container .gallery-item { flex-basis: 48%; }
	.product_pagination a, .product_pagination span { padding: 5px 10px; }
}

/* Printing: product pages print just the product; Print Products prints one per sheet. */
@media print {
	.site-header, .main-navigation, .site-footer, #right-sidebar, #left-sidebar,
	.product_search, .product_pagination, .hide-print, #wpadminbar { display: none !important; }
	.single_product { background: none; padding: 0; }
	.product_image { width: 40%; }
	.product_map { width: 60%; padding-left: 15px; text-align: left; }
	.product_list { page-break-after: always; break-after: page; }
}
