/*
Theme Name: Astra Child
Theme URI: https://www.motagarage.com/
Description: Child theme for Astra
Author: Gaia Digital Agency
Author URI: https://www.motagarage.com/
Template: astra
Version: 1.0.0
*/

/* Import parent Astra styles */
/* Default transparent header * /
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Solid background when scrolled * /
.site-header.scrolled {
  background-color: #001E10 /* your chosen background * /
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Transparent header over hero by default */
.gaia-fixed-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent; 
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Solid background on scroll */
.gaia-fixed-header.gaia-scrolled {
  background-color: rgba(0, 30, 16, 0.8) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Navigation link colors */
.gaia-fixed-header .main-header-menu a,
.gaia-fixed-header .ast-builder-menu a {
  color: #000; /* white links on transparent header */
  transition: color 0.25s ease;
}

.gaia-fixed-header.gaia-scrolled .main-header-menu a,
.gaia-fixed-header.gaia-scrolled .ast-builder-menu a {
  color: #fff; /* keep white links on dark green background */
}
/* Force social icon color change on hover */
/* .ast-header-social-1-wrap a svg path {
  fill: currentcolor !important;
  transition: fill 0.3s ease;
} */

/* Default state */
.ast-header-social-1-wrap a {
  color: #ffffff !important;
}

/* Hover state */
/* .ast-header-social-1-wrap a:hover {
  color: #EE7F00 !important;
} */

/* Utility — if admin bar exists, JS will account for it (no CSS needed) */
@media (max-width: 780px) {
  .gaia-fixed-header {
    position: relative !important;
  }
  body { padding-top: 0 !important; } /* if you disable fixed header on mobile, reset padding */
}
/*****************/
/* Add space for WooCommerce pages (Cart, Checkout, Account, Shop) */
body.woocommerce-cart #main,
body.woocommerce-checkout #main,
body.woocommerce-account #main,
body.woocommerce-page #main {
  padding-top: 120px; /* adjust this to your header height */
}

/* Optional: single product pages too */
body.single-product #main {
  padding-top: 120px;
}

/* Mobile (≤768px) smaller padding */
@media (max-width: 768px) {
  .woocommerce-cart #main,
  .woocommerce-checkout #main,
  .woocommerce-account #main {
    padding-top: 60px; /* reduce padding for smaller header */
  }
}
/* === Custom Footer Styles === */

.custom-footer {
  background-color: #1b301d;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}
/* Limit width and center */
.custom-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto; /* center horizontally */
}
.custom-footer hr {
  border: none;                    /* remove default border */
  height: 1px;                     /* set thickness */
  background-color: rgba(255,255,255,0.2); /* line color */
  margin: 20px 0;                  /* spacing above/below */
}
/* First row */
.footer-top {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto; /* center the whole form block */
  gap: 10px;
  max-width: 400px;         /* responsive cap */
  width: 100%;              /* allow shrinking on small screens */
  background-color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 0px;
}

.subscribe-form input {
  flex: 1;                  /* input takes remaining space */
  min-width: 150px;         /* prevents collapsing */
  padding: 10px;
  border: none;
  border-radius: 0px;
}

.subscribe-form button {
  background-color: #001E10;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 0px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;      /* keeps button text in one line */
}

.subscribe-form button:hover {
  background-color: #333;
}

/* Divider */
.custom-footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

/* Second row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}
/***********Woocommerce**********/
/* ---------- PRODUCT TWO-COLUMN LAYOUT ---------- */
.single-product .product-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* left column: gallery */
.single-product .product-left {
  flex: 1 1 48%;
  max-width: 48%;
  box-sizing: border-box;
}

/* right column: summary */
.single-product .product-right {
  flex: 1 1 48%;
  max-width: 48%;
  box-sizing: border-box;
}

/* ---------- GALLERY LAYOUT (slider-friendly, images keep natural ratio) ---------- */
.single-product .product-left { box-sizing: border-box; }

/* container */
.single-product .product-left .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* viewport hides overflow so only one slide visible */
.single-product .product-left .flex-viewport {
  overflow: hidden !important;
  position: relative !important;
  height: auto !important; /* do NOT force a height here */
	background-color: #ffffff!important;
}

/* wrapper: slides inline in a row (JS will set widths) */
.single-product .product-left .woocommerce-product-gallery__wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform 0.35s ease !important;
  will-change: transform;
  box-sizing: border-box;
}

/* each slide: do not force height here */
.single-product .product-left .woocommerce-product-gallery__image {
  flex: 0 0 auto !important;
  box-sizing: border-box;
  display: block !important;
}

/* images keep natural aspect ratio (override any inline height) */
.single-product .product-left .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;        /* <-- important: no fixed height */
  object-fit: contain !important;
  display: block !important;
}

/* thumbnails row (scrollable if many) */
.single-product .product-left .flex-control-thumbs {
  display: flex !important;
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  padding: 6px 0;
}
.single-product .product-left .flex-control-thumbs li {
  flex: 0 0 auto;
  width: 60px;
  cursor: pointer;
  box-sizing: border-box;
}
.single-product .product-left .flex-control-thumbs li.flex-active img {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.woocommerce-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* Desktop layout */
.shop-sidebar {
    width: 30%;
    max-width: 350px;
    margin-top: 80px;
}

.shop-main {
    width: 70%;
}

/* Mobile layout (≤ 768px) */
@media (max-width: 768px) {
    .woocommerce-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .shop-sidebar,
    .shop-main {
        width: 100%;
        max-width: none;
        margin-top: 0;
    }
}
/***** Custom badge *****/
.new-badge {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 15px;
    margin-bottom: 15px;
    /* margin: 0 auto; */
    font-weight: bold;
    width: 80px;
    text-align: center;
}

/* Add to cart + wishlist inline */
.single_add_to_cart_button,
.wishlist-button {
  display: inline-block;
  margin-right: 10px;
}
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 auto;
  width: 80px; /* thumbnail size */
  margin-right: 5px;
}
/* Force product gallery viewport to be square */
.single-product .product-left .flex-viewport {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  height: auto !important;
  position: relative;
  overflow: hidden; /* hides the cropped part */
}

/* Crop images to fill the square */
.single-product .product-left .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills square, crops excess */
  object-position: center center;
}
.woocommerce-js div.product div.images.woocommerce-product-gallery .flex-viewport {
    transform-style: preserve-3d;
    margin-bottom: 1em;
    background-color: white;
}
/* hide the default product title shown inside the product summary */

/* optional: make sticky header transparent only on top of hero */

.single-product-hero {
  position: relative;
  padding: 160px 0; 
  text-align: center;
  color: #fff;
  background: url('/wp-content/uploads/2025/09/product-hero.webp') no-repeat center center;
  background-size: cover;
	margin-bottom: 100px;
}
.single-product-hero::after {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4); /* dark overlay */
  z-index: 0;
}
.single-product-hero .hero-inner {
  position: relative;
  z-index: 1; /* keep text above overlay */
}
/* Make header transparent by default only on single product pages */
.single-product #ast-desktop-header.gaia-fixed-header {
  background: transparent !important;
  box-shadow: none !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

/* Keep your scroll behavior */
.single-product #ast-desktop-header.gaia-fixed-header.gaia-scrolled {
  background-color: rgba(0, 30, 16, 0.8) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  position: fixed; /* stays sticky on scroll */
}
.ast-primary-header-bar {
    background-color: rgba(0, 30, 16, 0) !important;
    background-image: none;
}
/******Shop Sidebar*******/
.shop-sidebar {
  background: transparent;
  padding: 50px 20px 0 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-category-section h2 {
  font-size: 25px!important;
  font-weight: 400;
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}
.shop-sidebar h3,
.shop-sidebar .widget-title {
  font-weight: 400;
  border-bottom: none;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
	 font-size: 25px!important;
}
.woocommerce-container {
  align-items: flex-start;
}
.woocommerce-js h2 {
    font-size: 25px;
}
@media (max-width: 768px) {
  .woocommerce-container {
    flex-direction: column;
  }
  .shop-sidebar, .shop-main {
    width: 100%;
  }
}
