/*
	Theme Name:   Savoy Child
	Theme URI:    http://themeforest.net/item/savoy-minimalist-ajax-woocommerce-theme/12537825
	Description:  Savoy child theme
	Author:       NordicMade
	Author URI:   http://www.nordicmade.com
	Template:     savoy
	Version:      1.0
*/


/* Child theme CSS
--------------------------------------------------------------- */
/* Consolidated CSS from styled product descriptions */

/* Global Responsive Styles */
@media (max-width: 768px) {
  /* Force tables to behave like divs on mobile */
  table, tbody, tr, td {
    display: block !important;
    width: 100% !important;
  }
  
  /* Ensure proper box model */
  * {
    box-sizing: border-box;
  }
}

/* Overview Section Styles */
.overview-section {
  background-color: #fafafa;
  padding: 60px 20px;
  margin: -20px -20px 40px -20px;
}
.overview-container {
  max-width: 1200px;
  margin: 0 auto;
}
.overview-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}
.overview-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}
.overview-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 25px;
}
.overview-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .overview-section {
    padding: 30px 15px;
    margin: -15px -15px 30px -15px;
  }
  .overview-title {
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 20px;
  }
  .overview-content {
    text-align: left;
    padding: 0 10px;
  }
  .overview-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .overview-content p:last-child {
    margin-bottom: 0;
  }
}

/* Grid Styles */
@media (min-width: 769px) {
  .characteristics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
}
@media (max-width: 768px) {
  .characteristics-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (min-width: 769px) {
  .mechanisms-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}
@media (max-width: 768px) {
  .mechanisms-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

@media (min-width: 1024px) {
  .effects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .effects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
}
@media (max-width: 767px) {
  .effects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Research Table Styles */
.research-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 30px;
  margin-bottom: 40px;
}
.research-table td {
  width: 50%;
  padding: 0;
  vertical-align: top;
}
.research-card {
  background: #f8f9fa;
  padding: 35px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  height: 100%;
}
.research-card h3 {
  color: #2c3e50;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.research-card p {
  color: #5a6c7d;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.research-list {
  color: #34495e;
  font-size: 14px;
  line-height: 2;
}
.research-list-item {
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}
.research-list-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .research-table {
    border-spacing: 0 !important;
    display: block !important;
  }
  .research-table tbody {
    display: block !important;
  }
  .research-table tr {
    display: block !important;
    margin-bottom: 0 !important;
  }
  .research-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 0 25px 0 !important;
  }
  .research-table tr:last-child td:last-child {
    padding-bottom: 0 !important;
  }
  .research-card {
    margin: 0 0 30px 0 !important;
    display: block !important;
  }
}

.woocommerce-product-gallery__wrapper,
.nm-shop-loop-thumbnail {
  border-radius: 15px;
  box-shadow: 4px 4px 6px -2px rgba(0,0,0,0.15);
}

/* Note: This CSS has been extracted from the styled product description files.
   Some inline styles are still required and have been preserved in the HTML. */

/* Hide author name on posts and blog pages */
.post-meta .post-author,
.entry-meta .author,
.byline {
    display: none !important;
}

.nm-blog {
  padding-top: 66px;
}

#payment .payment_methods > li .payment_box {
    padding: 0px !important;
}

.payment_box payment_method_wc_unblock_cb {
    padding: 0px !important;   
}

.ub-payment-header {
    display: none;
}

.ub-tabs-container {
    display: none;
}

.ub-form-container {
    padding: 0px !important;
}

@media (max-width: 768px) {
    table, tbody, tr, td {
        display: inline-table !important;
    }
}

/*
form.wc-block-checkout__form:has(#radio-control-wc-payment-method-options-wc_unblock_cb:checked)
  .wc-block-checkout__terms.wc-block-checkout__terms--with-separator.wp-block-woocommerce-checkout-terms-block {
  display: none !important;
}

form.wc-block-checkout__form:has(#radio-control-wc-payment-method-options-wc_unblock_cb:checked)
  .wc-block-checkout__actions_row {
  display: none !important;
}
*/

.nm-variation-control li {
	padding: 10px;
	border-radius: 0px;
	font-weight: bold;
}

.nm-variation-control li.selected{
  border-color: rgb(167, 167, 167) !important;
  background-color: rgb(248, 245, 238);
}

.tiered-pricing-wrapper{
  display:block;
}

.tiered-pricing-option{
  border-radius: 0px;
}

.tiered-pricing-option{
  border-color: #dadada !important;
}

.tiered-pricing--active{
  border-color: rgb(167, 167, 167) !important;
  background-color: rgb(248, 245, 238) !important;
}

/* Bottom "Change Payment Method" toast */
.venzell-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #222;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none; /* so it doesn't block clicks */
  z-index: 9999;
  animation: venzell-toast-fade 5s ease-out forwards;
}

/* Little up arrow */
.venzell-toast__arrow {
  font-size: 18px;
  line-height: 1;
}

/* Fade in then out */
@keyframes venzell-toast-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}
