/*
Theme Name: Shophome (Astra)
Template: astra
Author: Shophome
Description: Shophome branding layer on top of the free Astra theme
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root{
  --sh-ink: #18181B;
  --sh-ink-soft: #62666B;
  --sh-accent: #16A673;
  --sh-accent-dark: #0F7A56;
  --sh-accent-light: #E4F5EE;
  --sh-line: #E4E4E7;
  --sh-radius: 14px;
  --sh-shadow: 0 10px 30px rgba(24,24,27,0.07);
  --sh-shadow-hover: 0 20px 44px rgba(24,24,27,0.14);
  --sh-ease: cubic-bezier(.22,1,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body{ font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--sh-ink); }
h1,h2,h3,h4,h5,
.ast-woocommerce-container .woocommerce-loop-product__title{
  font-family: 'Playfair Display', Georgia, serif;
}

a{ color: var(--sh-accent-dark); }
a:hover{ color: var(--sh-accent); }

/* We show the logo image only — hide the redundant text site title next to it */
.ast-site-title-wrap{ display: none; }

/* Compact, modern header */
.site-logo-img img.custom-logo{
  max-height: 34px !important;
  width: auto !important;
}
.ast-primary-header-bar{
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sh-line);
}
#masthead.site-header{ background: #fff; }
.main-header-menu .menu-link{
  font-weight: 600;
  font-size: 14.5px;
  color: var(--sh-ink-soft);
}
.main-header-menu .menu-link:hover, .main-header-menu li.current-menu-item > .menu-link{
  color: var(--sh-ink) !important;
}

/* ===== Homepage hero banner ===== */
.sh-hero{
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 10%, #24272B 0%, #18181B 55%, #0A0A0B 100%);
  color: #fff;
  padding: 90px 24px 76px;
  text-align: center;
  border-radius: var(--sh-radius);
  margin: 0 0 40px;
  width: 100% !important;
  max-width: 100% !important;
  order: -1;
}
/* The real .ast-container wrapping the shop page is display:flex (meant for a
   sidebar layout); with our hero injected it just sits the hero and #primary
   side by side. Force it back to a simple block stack. */
.ast-container:has(> .sh-hero){
  display: block !important;
}
.sh-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 80% 20%, rgba(22,166,115,.32), transparent 42%),
                     radial-gradient(circle at 10% 90%, rgba(22,166,115,.22), transparent 48%);
  pointer-events:none;
  animation: sh-glow-drift 14s ease-in-out infinite alternate;
}
@keyframes sh-glow-drift{
  0%{ transform: translate3d(0,0,0) scale(1); }
  100%{ transform: translate3d(-2%,2%,0) scale(1.08); }
}
.sh-hero-inner{ position:relative; max-width: 720px; margin: 0 auto; }
.sh-hero-eyebrow{
  display:inline-block;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #6EE7B7; margin-bottom: 18px; font-weight: 600;
}
.sh-hero h1{
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: #fff;
}
.sh-hero p{
  font-size: 17px;
  color: #C7CBD1;
  max-width: 540px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.sh-hero-cats{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.sh-hero-cats a{
  color: #E4E7EA;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.sh-hero-cats a:hover{ background: rgba(22,166,115,.25); border-color: var(--sh-accent); color: #fff; }
.sh-hero .sh-hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sh-accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--sh-ease), background .25s ease;
}
.sh-hero .sh-hero-cta:hover{ background: var(--sh-accent-dark); transform: translateY(-2px); color: #fff; }

/* Buttons / links — target core WooCommerce classes so it works regardless of theme markup */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .ast-button, button.ast-woocommerce-button{
  background-color: var(--sh-ink) !important;
  border-color: var(--sh-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600;
  transition: transform .3s var(--sh-ease), box-shadow .3s var(--sh-ease), background-color .25s ease !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.ast-button:hover, button.ast-woocommerce-button:hover{
  background-color: var(--sh-accent-dark) !important;
  border-color: var(--sh-accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--sh-shadow-hover);
}
.woocommerce a.button.alt, .single_add_to_cart_button{
  background-color: var(--sh-accent) !important;
  border-color: var(--sh-accent) !important;
}
.woocommerce a.button.alt:hover, .single_add_to_cart_button:hover{
  background-color: var(--sh-accent-dark) !important;
  border-color: var(--sh-accent-dark) !important;
}

.woocommerce span.onsale{
  background: #E11D48 !important;
  border-radius: 999px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price, .woocommerce div.product span.price{
  color: var(--sh-accent-dark) !important;
  font-weight: 700 !important;
}

/* Product cards — smooth lift + image zoom on hover (core WooCommerce classes, theme-agnostic) */
.woocommerce ul.products li.product{
  transition: transform .35s var(--sh-ease), box-shadow .35s var(--sh-ease) !important;
  border-radius: var(--sh-radius);
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-6px);
  box-shadow: var(--sh-shadow-hover);
}
.woocommerce ul.products li.product img{
  transition: transform .5s var(--sh-ease) !important;
  border-radius: 10px;
}
.woocommerce ul.products li.product:hover img{ transform: scale(1.05); }

/* Single product: photo on the left, info on the right */
.woocommerce div.product{
  display: grid !important;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px 44px;
  align-items: start;
}
.woocommerce div.product > .sh-pdp-image{ grid-column: 1; grid-row: 1; margin: 0; }
.woocommerce div.product > .summary{ grid-column: 2; grid-row: 1; padding-top: 0; }
.woocommerce div.product > .onsale,
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related{ grid-column: 1 / -1; }

.sh-pdp-image{
  border-radius: var(--sh-radius);
  overflow: hidden;
  border: 1px solid var(--sh-line);
  background: #fff;
}
.sh-pdp-image img{
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (max-width: 900px){
  .woocommerce div.product{ grid-template-columns: 1fr; }
}

/* Fade-up reveal for grids/sections, theme-agnostic selectors */
.sh-reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--sh-ease), transform .6s var(--sh-ease);
}
.sh-reveal.sh-in{ opacity: 1; transform: translateY(0); }

/* Sticky header glass effect (works alongside Astra's own sticky option) */
.ast-header-break-point .main-header-bar,
#masthead.site-header{
  transition: box-shadow .3s var(--sh-ease), backdrop-filter .3s var(--sh-ease);
}
.sh-header-glass{
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 24px rgba(24,24,27,.08);
}
