/*
 Theme Name:     NDSSC
 Description:    A custom theme for The National Drosophila Species Stock Center, based on Divi theme.
 Author:         Ancient Wisdom Productions
 Author URI:     https://awpny.com
 Template:       Divi
 Version:        1.0.0
*/
/* Typography */
@import url('https://fonts.googleapis.com/css?family=Averia+Serif+Libre:700');

body h1,
body .et_pb_module h1 {
  font-family: "Averia Serif Libre", serif, display;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 56px;
  color: #f7f7f7;
  text-align: center;
  text-shadow: 0em 0em 1em rgba(89,79,66,0.75);
}

/* Force main content to full-width (no sidebar) */
#main-content .container::before {
  display: none;
}

#main-content #left-area {
  width: 100%;
  padding-right: 0;
  float: none;
}

/* Page banner styles */
.page-banner {
  background-color: #A2998C;
  padding: 60px 0;
}

#main-content .page-banner .container {
  padding: 0;
}

.page-banner h1.entry-title {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Forms */
input[type=number] {
  -webkit-appearance: textfield;
     -moz-appearance: textfield;
          appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]:hover::-webkit-inner-spin-button {
  display: none;
}

/* Contact Form */
.wpcf7-form label {
  display: block;
  font-size: 16px;
  margin-bottom: 15px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  font-size: 15px;
  border: 1px solid #bbb;
  padding: 15px;
  margin-top: 5px;
  border-radius: 3px;
}

.wpcf7-form input[type="submit"] {
  display: block;
  color: #0068ac;
  font-size: 20px;
  font-weight: 500;
  padding: 8px 45px;
  border: 2px solid #0068ac;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:focus {
  background-color: #0068ac;
  color: white;
}

/* Search results page */
.search #searchform input {
  font-size: 20px;
  border-radius: 3px;
}

.search #searchform input[type=text] {
  padding: 5px 20px;
  margin-right: 5px;
}

.search #searchform input[type=submit] {
  background-color: #2ea3f2;
  color: white;
  padding: 6px 20px;
  border: none;
  transition: background-color .25s;
}

.search #searchform input[type=submit]:hover,
.search #searchform input[type=submit]:focus {
  background-color: #0068ac;
}

.search .no-search-results {
  margin: 60px 0;
}

.search article {
  padding: 30px 0;
  border-top: 1px solid #a2998b;
  margin-bottom: 0;
}

.search article:first-child {
  border-top: none;
}

.search article .entry-title a:hover {
  color: #0068ac;
}

.search article .product-category {
  margin-bottom: 15px;
}

/* Breadcrumbs */
.ndssc-breadcrumb,
.ndssc-breadcrumb a {
  font-size: 12.88px;
  color: #777;
}

/* Product category header */
.woocommerce-products-header.has-category-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 100px 0;
}

.woocommerce-products-header.no-category-image {
  background-color: #A2998C;
  padding: 70px 0;
}

.woocommerce-products-header h1 {
  padding: 0;
}

.woocommerce-products-header + #main-content > .container {
  padding-top: 30px;
}

.woocommerce-category-description {
  margin: 45px 0 60px;
}

/* Post title */
.et_pb_fullwidth_header .et_pb_fullwidth_header_container.center .header-content {
  margin-top: 0;
  margin-bottom: 0;
}

.et_pb_module.et_pb_fullwidth_header .header-content h1.et_pb_module_header {
  padding-bottom: 0;
}

/* Product/search results title */
.product_title,
.search-title {
  background-color: #A2998B;
  text-transform: none;
  padding: 60px 0;
}

.product_title + #main-content > .container {
  padding-top: 12px;
}

.product_title + #main-content > .container .woocommerce-breadcrumb {
  margin-bottom: 45px;
}

/* Homepage featured product listings */
.woocommerce.columns-5 ul.products {
  margin: 0 -20px 15px;
}

.woocommerce.columns-5 ul.products li.product {
  width: 20%;
  padding: 0 20px;
  margin-left: 0;
  margin-right: 0;
  border-right: 2px solid rgba(162, 153, 139, .25);
}

.woocommerce.columns-5 ul.products li.product:last-child {
  border-right: none;
}

/* Product add to cart button */
.woocommerce button.button.single_add_to_cart_button.disabled,
.woocommerce button.button.single_add_to_cart_button.disabled:hover {
  background-color: #1276ba;
}

.woocommerce button.button.single_add_to_cart_button:hover {
  background-color: #2ea3f2;
  color: white;
}

/* Product meta info (SKU, ID numbers) */
@media (min-width: 469px) {
  .product_meta .product-meta-info {
    display: inline-block;
  }

  .product_meta .product-meta-info::after {
    content: "|";
    color: #bbb;
    margin: 0 10px;
  }

  .product_meta .product-meta-info:last-child::after {
    content: "";
    margin: 0;
  }
}

/* Product description */
.product-description {
  clear: both;
}

/* News listings */
.et_pb_post .et_pb_image_container {
  border: 1px solid #d8d8d8;
}

.et_pb_post .et_pb_image_container a {
  margin-bottom: 0;
}

.et_pb_post:hover .et_pb_image_container .et_overlay {
  border: none;
}

/* News detail page */
.single-post #main-content .page-banner + .post-breadcrumbs {
  padding-top: 12px;
}

.single-post #main-content .post-breadcrumbs + .container {
  padding-top: 24px;
}

.single-post .post-meta,
.single-post .post-meta .published {
  color: #777;
  font-size: 18px;
}

@media (min-width: 769px) {
  .single-post .et_post_meta_wrapper img {
    max-width: 50%;
    float: left;
    margin: 0 30px 30px 0;
  }

  .single-post .entry-content {
    padding-top: 0;
  }
}
