/*
 Theme Name:   Storefront Child
 Description:  Child theme for Storefront
 Author:       Bisk
 Author URI:   https://www.bisk.com/
 Template:     storefront
 Version:      1.0.5
*/

/* Import parent theme styles */
@import url("../storefront/style.css");

/* ----------------------
   Header Customization
------------------------*/
.site-header {
  min-height: 40px !important;                 
  padding: 5px 0 !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-header .site-branding .custom-logo-link,
.site-header .site-branding img.custom-logo {
    margin: 0 auto;
    display: inline-block;
}

.site-branding .site-title,
.site-branding .site-description {
  display: none !important;
}

.site-header .main-navigation {
  display: none !important;
}

/* Enable 3-column flex header layout */
.header-layout-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side spacer */
.header-left-spacer {
    flex: 1;
}

/* Center container */
.header-center-logo {
    flex: 2;
    text-align: center;
}

/* Center the actual logo image */
.header-center-logo .custom-logo-link {
    display: inline-block;
    margin: 0 auto;
}

.header-center-logo .custom-logo {
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
}

.header-right {
    flex: 1 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.custom-logo,
.site-header .site-logo img {
    max-height: 150px !important;
    height: auto !important;
    width: auto !important;
}

.site-branding {
    max-width: none !important;
}

.site-branding .custom-logo {
    height: 150px !important;
    width: auto !important;
}


/* Prevent child elements from forcing horizontal stretching */
.header-right > * {
    width: auto !important;
    display: block !important;
}

.header-right .site-header-cart {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end;
}

/* Ensure the button/icon stays right-aligned inside full-width wrapper */
.header-right .site-header-cart > * {
    margin-left: auto;
}

/* Cart text + icon spacing */
.site-header-cart .cart-contents::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    content: ""; /* shopping basket icon */
    vertical-align: middle;
    margin-left: 6px; /* default spacing */
    float: none; /* stay inline */
    line-height: 1.2;
}

/* Medium and larger screens: slightly more spacing */
@media (min-width: 768px) {
    .site-header-cart .cart-contents::after {
        margin-left: 10px;
    }
}

/* Large screens: even more spacing if needed */
@media (min-width: 1200px) {
    .site-header-cart .cart-contents::after {
        margin-left: 12px;
    }
}


/* ----------------------
   WooCommerce Product Images
------------------------*/

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ----------------------
   WooCommerce Shop Layout
------------------------*/

.woocommerce-page .woocommerce-ordering,
.woocommerce-page .woocommerce-result-count {
  display: none !important;
}

.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Featured product (bundle) full-width */
.woocommerce ul.products li.product.featured {
  flex: 0 0 100%;
  max-width: 1000px;
  order: -1;                 /* bundle first */
  margin: 0 auto 15px auto;  /* spacing below bundle */
  border: 3px solid #0c6047; 
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background-color: #f9f9f9;
  text-align: center;
  float: none !important;
  clear: both !important;
  box-sizing: border-box;
}

.woocommerce ul.products li.product.featured a img {
  height: 350px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

.woocommerce ul.products li.product.featured .woocommerce-loop-product__title {
  font-size: 1.75em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 20px;
  color: #0c6047; 
}

/* Bundle info text below bundle */
.bundle-info-text {
    display: block;
    width: 100%;
    text-align: center;
    margin: 20px 0;
    font-size: 1.1em;
    color: #333;
    box-sizing: border-box;
}

/* ----------------------
   Courses Row (Grid layout)
------------------------*/
.course-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    width: 100%;
    margin: 0 0 40px 0;
    padding: 0;
    box-sizing: border-box;
}

.course-row li.product {
    margin: 0;
    flex: none;
    float: none !important;
    box-sizing: border-box;
}

/* Normal products (fallback if .course-row not applied) */
.woocommerce ul.products li.product:not(.featured) {
    flex: 0 0 23%;
    margin: 1%;
    clear: both;
    float: none !important;
    box-sizing: border-box;
}

.woocommerce ul.products li.product:not(.featured) a img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* ----------------------
   Shop Page Title
------------------------*/
/* Full-width WooCommerce page title banner */
.woocommerce-page .page-header {
    width: 100% !important;       
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.woocommerce-page .page-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background-color: #0c6047;
    padding: 20px 15px;
    width: 100% !important;       
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}


/* ----------------------
   Footer Mirror
------------------------*/
.footer-mirror {
  background-color: #0c6047; 
  padding: 30px 40px;
  color: #fff;
}

.footer-mirror-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-logo-link img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-mirror .footer-phone a,
.footer-mirror .footer-phone a span,
.footer-mirror .footer-phone a i {
    color: #ffffff !important; 
    text-decoration: none !important;
}

.footer-phone .phone-icon {
    margin-right: 5px;
    font-size: 1.1em; 
    vertical-align: middle;
}

.footer-links {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-links a {
    color: #ffffff; 
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 8px;
    color: #ffffff; 
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 25px !important;
  align-items: center;
}

.footer-socials a {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-socials a:hover {
  opacity: 0.8;
}

/* Responsive: center on smaller screens */
@media screen and (max-width: 768px) {
  .footer-mirror-inner {
    align-items: center;
    text-align: center;
  }
}

/* ----------------------
   Compact Footer
------------------------*/

/* Remove default bottom spacing for Storefront page wrappers */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto; /* take up remaining space */
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-footer {
    flex-shrink: 0; /* don't shrink footer */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer background and padding */
.footer-mirror {
    background-color: #0c6047;
    padding: 10px 20px !important;  
    color: #fff;
    margin: 0 !important;
}

/* Inner content layout */
.footer-mirror-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;  
}

/* Logo */
.footer-logo img {
    max-height: 40px; 
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Social icons */
.footer-socials {
    gap: 10px;        
}

/* Remove site-info completely */
.site-info {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove extra margins/padding on page wrapper and body */
#page,
body,
#content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive: center footer content on smaller screens */
@media screen and (max-width: 768px) {
    .footer-mirror-inner {
        align-items: center;
        text-align: center;
        gap: 6px;
    }
    .footer-logo img {
        max-height: 35px;
    }
    .footer-phone a {
        font-size: 0.95em;
    }
}

/* ----------------------
   Promo message below bundle
------------------------*/
.bundle-promo {
    margin: 20px auto 40px auto;
    padding: 15px 25px;
    max-width: 800px;
    text-align: center;
    background: #0c6047; /* green background */
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

.bundle-promo strong {
    color: #ffdd57; /* highlight discount */
}

/* Animated pop effect */
.bundle-promo {
    animation: popIn 0.6s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ----------------------
   Responsive Adjustments
------------------------*/
@media screen and (max-width: 768px) {
    .woocommerce-page .page-title {
        font-size: 2.5em;
    }
    .course-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .woocommerce-page .page-title {
        font-size: 2em;
    }
    .course-row {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products li.product.featured a img {
        height: 200px;
    }
}

/* Note inside the featured product (under title) */
.bundle-discount-note {
    font-size: 1em;
    font-weight: 500;
    color: #555;
    margin: 5px 0 10px 0;
}

/* Full-row messages below the featured product */
.bundle-info-text,
.bundle-info-note {
    text-align: center;
    margin: 8px 0;
    line-height: 1.4;
}

.bundle-info-text {
    font-weight: 600;
    font-size: 1.1em;
    color: #222;
}

.bundle-info-note {
    font-size: 0.95em;
    color: #555;
}

.bundle-info-wrapper {
    display: block;
    width: 100%;
}

/* Hide next/previous product navigation */
.woocommerce .product-navigation,
.storefront-product-pagination {
    display: none !important;
}

#tab-description {
    display: none !important;
}

.course-description {
    margin: 20px 0;
    line-height: 1.5;
}
.course-description h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #0c6047; 
}

.woocommerce-products-header {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-products-header__title {
    margin: 0 !important;
    padding: 25px 15px !important;
    display: inline-block !important; /* ensures proper centering */
}

#primary.site-main,
#main.site-main {
    padding: 0 !important;
}

/* Force WooCommerce page title to stretch full width */
.woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
    width: 100vw !important;           /* full viewport width */
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;     /* pull it out of the centered container */
    margin-right: -50vw !important;
    padding: 0 !important;
}

.woocommerce-products-header__title.page-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background-color: #0c6047;
    margin: 0 !important;
    padding: 60px 20px;
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    line-height: 1.3;

}

.woocommerce-page .site-main {
    margin-top: 0 !important;
}
/* Remove any space between the header and WooCommerce title bar */
#content,
.site-main,
.woocommerce-products-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Storefront sometimes adds top padding to the first section */
#main,
.content-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove breadcrumb or empty header spacing */
.storefront-breadcrumb,
.woocommerce-breadcrumb {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the blank space caused by empty main/content wrappers */
.content-area,
.site-main {
  margin: 0 !important;
  padding: 0 !important;
}

/* If they still reserve height for layout */
.content-area:empty,
.site-main:empty {
  display: none !important;
}

/* Uniform product card height and compact spacing */
ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 380px; /* reduce from 420px to tighten spacing */
}

/* Keep product title spacing compact */
ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px; /* enough for two lines max */
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Compact price spacing */
ul.products li.product .price {
  margin-bottom: 10px;
}

/* Button stays aligned at the bottom but not floating too far */
ul.products li.product .button {
  margin-top: auto;
  margin-bottom: 0;
  padding: 8px 14px;
}

.enroll-banner {
    background-color: #006484;
    color: #ffffff;  
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}
