/*
Theme Name: Homesupplies
Template: hello-elementor
Theme URI: https://homesupplies.pk/
Author: Homesupplies
Description: Homesupplies.pk storefront child theme (Hello Elementor). Emerald brand, native header/footer, WooCommerce product styling. No Elementor Pro required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: homesupplies
License: GNU General Public License v2 or later
*/

/* ---------------------------------------------------------------------
   Brand tokens + WooCommerce styling (kit: custom-css.css)
   --------------------------------------------------------------------- */
:root {
  --hs-ink:       #12211A;
  --hs-accent:    #0E7C5B;
  --hs-accent-d:  #0A5C44;
  --hs-soft:      #EAF4EF;
  --hs-warm:      #F7F5F1;
  --hs-border:    #E7E9E5;
  --hs-star:      #F5A623;
  --hs-sale:      #E4572E;
  --hs-radius:    14px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--hs-ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.site-title, .hs-brand,
.woocommerce-loop-product__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--hs-ink);
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.hs-announce {
  background: var(--hs-ink);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hs-announce p { margin: 0; }
.hs-announce a.hs-wa {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hs-announce a.hs-wa svg { fill: #25D366; }
.hs-header {
  background: #fff;
  border-bottom: 1px solid var(--hs-border);
  padding: 14px 20px;
}
.hs-header-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hs-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--hs-ink);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hs-brand .em { color: var(--hs-accent); }
.hs-brand img.hs-logo { height: 30px; width: auto; }

.hs-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.hs-nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--hs-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.hs-nav ul li a:hover,
.hs-nav ul li.current-menu-item a {
  color: var(--hs-accent);
  background: var(--hs-soft);
}

.hs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hs-actions button,
.hs-actions a.hs-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--hs-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.hs-actions button:hover,
.hs-actions a.hs-icon:hover { background: var(--hs-soft); }
.hs-cart { position: relative; }
.hs-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--hs-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.hs-search-box {
  display: none;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px 14px;
}
.hs-search-box.open { display: block; }
.hs-search-box form {
  display: flex;
  gap: 8px;
  border: 1px solid var(--hs-border);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  background: #fff;
}
.hs-search-box input[type=search] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--hs-ink);
}
.hs-search-box button {
  background: var(--hs-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}
.hs-search-box button:hover { background: var(--hs-accent-d); }

/* Mobile nav toggle */
.hs-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 900px) {
  .hs-burger { display: inline-flex; }
  .hs-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hs-border);
    padding: 10px 20px 18px;
    box-shadow: 0 20px 40px rgba(18,33,26,.08);
  }
  .hs-header { position: relative; }
  .hs-nav.open { display: flex; justify-content: flex-start; }
  .hs-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .hs-announce { flex-direction: column; gap: 6px; text-align: center; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.hs-footer {
  background: #101C16;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.hs-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 64px 25px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  gap: 40px;
}
.hs-f-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  margin: 0 0 12px;
}
.hs-f-brand .em { color: var(--hs-accent); }
.hs-footer p { margin: 0 0 12px; line-height: 1.6; }
.hs-social { display: flex; gap: 10px; margin-top: 16px; }
.hs-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease;
}
.hs-social a:hover { background: var(--hs-accent); }
.hs-f-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin: 0 0 14px;
}
.hs-f-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hs-f-col ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease;
}
.hs-f-col ul li a::before {
  content: '›';
  color: var(--hs-accent);
  font-size: 14px;
}
.hs-f-col ul li a:hover { color: #fff; }
.hs-f-touch li a { align-items: center; gap: 10px; }
.hs-f-touch li a::before { content: ''; }
.hs-f-touch .ico {
  width: 18px;
  height: 18px;
  color: var(--hs-accent);
  flex: none;
}
.hs-payments { margin-top: 16px; }
.hs-payments strong { color: #fff; display: block; margin-bottom: 4px; }
.hs-payments span { color: rgba(255,255,255,0.6); font-size: 13px; }
.hs-footer-bottom {
  background: #0B140F;
  padding: 16px 25px;
}
.hs-footer-bottom-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
@media (max-width: 900px) {
  .hs-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hs-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------------------
   Main content spacing
   --------------------------------------------------------------------- */
#content.site-main { padding: 40px 24px; max-width: 1260px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.single-product #content.site-main { padding-top: 24px; }
.elementor-page #content.site-main { max-width: 100%; padding: 0; }

/* ---------------------------------------------------------------------
   WooCommerce product cards / shop (kit: custom-css.css)
   --------------------------------------------------------------------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 14px 14px 20px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18,33,26,.10);
}
.woocommerce ul.products li.product a img {
  border-radius: 10px;
  margin-bottom: 14px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  font-size: 15px;
  padding: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--hs-accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.woocommerce ul.products li.product .price del { color: #9AA6A0; font-weight: 500; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
a.button, button.button, #respond input#submit {
  background: var(--hs-accent) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 22px !important;
  border: none !important;
  transition: background .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product .button:hover,
a.button:hover, button.button:hover {
  background: var(--hs-accent-d) !important;
  transform: translateY(-1px);
}
.woocommerce span.onsale {
  background: var(--hs-sale) !important;
  border-radius: 50px !important;
  min-height: auto !important;
  line-height: 1 !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
}
.woocommerce .star-rating span::before,
.woocommerce p.stars a { color: var(--hs-star) !important; }
.woocommerce .woocommerce-result-count { color: #55605A; font-size: 14px; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--hs-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--hs-ink);
  background: #fff;
}
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--hs-border) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: var(--hs-ink);
  font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--hs-accent) !important;
  color: #fff !important;
  border-color: var(--hs-accent) !important;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  background: var(--hs-accent) !important;
  border-radius: 50px !important;
  padding: 16px 44px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
  background: var(--hs-accent-d) !important;
}
.woocommerce .quantity .qty {
  border: 1px solid var(--hs-border);
  border-radius: 50px;
  padding: 12px 14px;
  width: 80px;
  text-align: center;
}
.woocommerce div.product .product_meta > span { display: block; padding: 4px 0; font-size: 14px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--hs-warm) !important;
  border: none !important;
  border-radius: 50px !important;
  margin: 0 6px 0 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 10px 24px !important;
  color: var(--hs-ink) !important;
  font-weight: 600;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--hs-accent) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce div.product .woocommerce-tabs .panel {
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 28px;
  margin-top: 14px;
}
.woocommerce ul.products li.product-category a {
  display: block;
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product-category a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18,33,26,.10);
}
.woocommerce ul.products li.product-category img { margin: 0 !important; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  padding: 14px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-align: center;
}
.woocommerce ul.products li.product-category mark.count {
  background: var(--hs-soft);
  color: var(--hs-accent);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 12px;
}
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: #55605A; }
.woocommerce .woocommerce-breadcrumb a { color: var(--hs-accent); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  background: var(--hs-accent) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover { background: var(--hs-accent-d) !important; }
.woocommerce-info, .woocommerce-message {
  border-top-color: var(--hs-accent) !important;
  border-radius: 10px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--hs-accent); }

/* Single product trust badges */
.hs-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  max-width: 460px;
}
.hs-tb {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--hs-soft);
  color: var(--hs-ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
}
.hs-tb svg { width: 18px; height: 18px; color: var(--hs-accent); flex: none; }
@media (max-width: 480px) { .hs-trust-badges { grid-template-columns: 1fr; } }

/* Shop archive hero banner */
.hs-shop-hero {
  background: linear-gradient(135deg, #0E7C5B 0%, #0A5C44 100%);
  color: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  margin-bottom: 36px;
}
.hs-shop-hero h1 {
  color: #fff;
  font-size: 38px;
  margin: 0 0 10px;
  font-weight: 800;
}
.hs-shop-hero p { color: rgba(255,255,255,0.92); margin: 0; max-width: 640px; font-size: 17px; }
@media (max-width: 768px) { .hs-shop-hero { padding: 32px 22px; } .hs-shop-hero h1 { font-size: 28px; } }
